maint: fix typos in comments and ChangeLog
[gnulib.git] / ChangeLog
1 2012-05-29  Jim Meyering  <meyering@redhat.com>
2
3         maint: fix typos in comments and ChangeLog
4         Culprits identified and fixed mostly automatically using these commands:
5         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
6         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
7         using http://github.com/lyda/misspell-check
8         * ChangeLog: Fix typos.
9         * doc/solaris-versions: Likewise.
10         * lib/regexec.c (re_search_stub): Likewise.
11         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
12
13 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
14
15         manywarnings: remove duplicate -Wmultichar entry
16         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
17         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
18         so keep the entry marked as documented.
19
20 2012-05-27  Karl Berry  <karl@gnu.org>
21
22         * config/srclist.txt (mktime.c): remove last libc sync,
23         perhaps just temporarily.
24
25 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
26
27         regex: don't assume uint64_t or uint32_t
28         * lib/regcomp.c (init_word_char): Don't assume that the types
29         uint64_t and uint32_t exist.  The C standard doesn't guarantee
30         them, and on some 32-bit compilers there is no uint64_t.
31         Problem reported by Gianluigi Tiesi in
32         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html>.
33
34 2012-05-25  Jim Meyering  <meyering@redhat.com>
35
36         maint.mk: add strncpy-prohibiting syntax-check rule
37         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
38
39 2012-05-24  Jim Meyering  <meyering@redhat.com>
40
41         maint.mk: compute $(gpg_key_ID) more portably
42         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
43         That use of sed is not portable to some fringe systems.
44         Reported by Paul Eggert in
45         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
46
47 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
48
49         mktime: sync from glibc
50         * config/srclist.txt: Uncomment mktime.c.
51         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
52         First, indent with tabs, since glibc uses tabs and doesn't want to
53         change and we'd rather be identical to glibc.  Also, two small
54         coding changes:
55         (isdst_differ): Use &&, not &, as && is the usual style.
56         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
57         for clarity.
58
59 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
60
61         announce-gen: du -h is more portable than du --human
62         * build-aux/announce-gen (sizes): Invoke du with -h instead
63         of --human.  Accept leading white space in its output.
64
65 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
66
67         announce-gen: Improve diagnostics.
68         * build-aux/announce-gen: When parsing command line options,
69         prefer "announce-gen: option --release-type requires an argument"
70         to "Option release-type requires an argument".
71
72 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
73
74         maint.mk: gpg_key_ID: use sed more portably
75         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
76         the closing brace.
77         (refresh-po): Fuse two sed invocations into one.
78
79 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
80
81         gitlog-to-changelog: support the log message format used in Bison.
82         * build-aux/gitlog-to-changelog: Support --strip-tab and
83         --strip-cherry-picked.
84
85 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
86
87         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
88         the rest of the current time slice to another thread in the current
89         process. So if the thread that feeds the file decscriptor we're
90         polling is not in the current process, we get busy-waiting.
91         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
92         Patch from Theodore Leblond.
93         * lib/select.c: Split polling out of the loop that sets the output
94         fd_sets.  Check for zero result and loop if the wait timeout is
95         infinite.
96
97 2012-05-21  Simon Josefsson  <simon@josefsson.org>
98
99         select: Fix build error on IRIX 6.5.
100         * lib/select.c: Include stddef.h for NULL.
101
102 2012-05-21  Simon Josefsson  <simon@josefsson.org>
103
104         gc: fix libgcrypt detection on older machines.
105         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
106         copyright years because the file has been distributed every year
107         since it was created.
108
109 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
110
111         crypto: fix bug in large buffer handling
112         Problem reported by Serge Belyshev for glibc in
113         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
114         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00226.html>.
115         * lib/md4.c (md4_process_block):
116         * lib/md5.c (md5_process_block):
117         * lib/sha1.c (sha1_process_block):
118         * lib/sha256.c (sha256_process_block):
119         Don't assume the buffer length is less than 2**32.
120         * lib/sha512.c (sha512_process_block): Likewise.
121         Here, the bug is present only in the rare case where the host does
122         not support uint64_t or where size_t is wider than 64 bits.
123         Use u64size to work around the problems.
124         * lib/u64.h (u64size): New macro.
125
126 2012-05-15  Pádraig Brady  <P@draigBrady.com>
127
128         fsusage: fix block size returned on older Linux 2.6
129
130         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
131         which is available since Linux 2.6.
132         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
133         when the member is available so it can be used as a fallback.
134         * doc/posix-functions/statvfs.texi: Mention the hang issue
135         on Linux < 2.6.36.
136
137 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
138
139         bootstrap: suppress stderr chatter
140         * build-aux/bootstrap (insert_sorted_if_absent, main program):
141         Omit unnecessary chatter to stderr.  The main program chatter
142         was there only inadvertantly.
143
144         bootstrap: .gitignore files created by autopoint, libtool
145         I ran into this problem when bootstrapping the latest diffutils.
146         After './bootstrap', 'git status' reported lots of untracked files
147         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
148         autopoint and do not need to be version-controlled.
149         * build-aux/bootstrap: Put into .gitignore the files that
150         autopoint and libtool create, by keeping track of files that exist
151         after but not before these programs are run.
152         (version_controlled_file): Move up.  2nd arg is now full file
153         name, not base name; this is more convenient.  Put CVS at the end,
154         as it's now somewhat deprecated.
155
156 2012-05-14  Jim Meyering  <meyering@redhat.com>
157
158         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
159         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
160         definition.  Reported by Bruno Haible.
161
162 2012-05-13  Bruno Haible  <bruno@clisp.org>
163             Paul Eggert  <eggert@cs.ucla.edu>
164
165         binary-io: Define set_binary_mode function.
166         * lib/binary-io.h (set_binary_mode): New function.
167         (SET_BINARY): Define in terms of set_binary_mode.
168         * modules/binary-io (configure.ac): Require AC_C_INLINE.
169         * tests/test-binary-io.c (main): Accept an argument, and test either
170         set_binary_mode or SET_BINARY depending on the argument.
171         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
172         argument. Clean up also t-bin-out0.tmp.
173
174 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
175
176         bootstrap: take advantage of POSIX shell features
177
178         The 'bootstrap' script offered by Gnulib script already uses POSIX
179         shell features (like $((...)) arithmetic expansions) that are not
180         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
181         means that bootstrap must already be run using a proper POSIX shell,
182         which will thus provide more features, like ${var#pattern} parameter
183         expansion or inversion of a command exit status with '!'.  We can
184         thus use these features to improve the clarity and the performances
185         of the bootstrap script.
186
187         Suggested by Eric Blake.
188
189         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
190         of sed/expr plus command substitutions, to save some forks.  While
191         we are at it, prefer the POSIX $(...) form of command substitution,
192         rather than the legacy form `...` (since the former is visually
193         clearer and interacts better with quoting), and prefer the idiom:
194           "if ! CMD; then ACTION ..."
195         over the idiom:
196           "if CMD; then :; else ACTION ..."
197         which was required by legacy Bourne shells not supporting '!'.
198
199 2012-05-12  Bruno Haible  <bruno@clisp.org>
200
201         system-quote: Add more comments.
202         * lib/system-quote.h: Add more comments about wilcards and limitations.
203         Suggested by Eli Zaretskii <eliz@gnu.org>.
204
205         sh-quote, system-quote: Add comments about wildcards.
206         * lib/sh-quote.h: Clarify what happens with wildcard characters.
207         * lib/system-quote.h: Likewise.
208         Reported by Eli Zaretskii <eliz@gnu.org>.
209
210 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
211
212         fsusage: check for GNU/Linux statvfs problem dynamically
213         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
214         Define STAT_STATFS2_BSIZE too, since in this case the code now
215         checks dynamically whether statvfs is reliable, falling back on
216         Linux-style statfs otherwise.
217         (statvfs_works): New function, for dynamically testing statvfs.
218         (get_fs_usage) [STAT_STATVFS]: Use it.
219         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
220         statvfs on GNU/Linux hosts, since it's now done dynamically.
221
222 2012-05-10  Bruno Haible  <bruno@clisp.org>
223
224         system-quote, execute, spawn-pipe: Escape '?' on Windows.
225         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
226         '?' character.
227         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
228         * tests/test-system-quote-main.c (check_all): Check also strings like
229         "??????????".
230         Reported by Eli Zaretskii <eliz@gnu.org>.
231
232 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
233
234         _Noreturn: port config.h to gcc -Wundef
235         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
236         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
237         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00147.html>.
238
239 2012-05-10  Bruno Haible  <bruno@clisp.org>
240
241         system-quote: Refactor.
242         * lib/system-quote.h (system_quote_copy): Fix comment.
243         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
244         New functions, extracted from system_quote_copy.
245         (system_quote_length, system_quote_copy): Use these functions.
246         Reported by Paul Eggert.
247
248 2012-05-08  Bruno Haible  <bruno@clisp.org>
249
250         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
251         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
252
253 2012-05-08  Bruno Haible  <bruno@clisp.org>
254
255         Tests for module 'system-quote'.
256         * modules/system-quote-tests: New file.
257         * tests/test-system-quote.sh: New file.
258         * tests/test-system-quote-main.c: New file.
259         * tests/test-system-quote-child.c: New file.
260
261         New module 'system-quote'.
262         * lib/system-quote.h: New file.
263         * lib/system-quote.c: New file.
264         * modules/system-quote: New file.
265
266 2012-05-08  Bruno Haible  <bruno@clisp.org>
267
268         sh-quote: Make C++ safe and allow multiple inclusion.
269         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
270         declarations in extern "C".
271
272 2012-05-08  Bruno Haible  <bruno@clisp.org>
273
274         sh-quote tests: Make tests stricter.
275         * tests/test-sh-quote.c (check_one): Check the return value of
276         shell_quote_copy.
277         (main): Check a string with a CR character. Check a string that
278         contains UCHAR_MAX.
279
280 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
281
282         warnings.m4: provide a means to specify the program to compile.
283         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
284         (gl_WARN_ADD): here.
285         Use gl_AS_VAR_APPEND.
286         Support an argument to specify the program to compile.
287         (gl_WARN_ADD): Accept an argument to specify the program to compile.
288         AC_SUBST the WARN_CFLAGS when they are used.
289         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
290         leave this to gl_WARN_ADD.
291
292 2012-05-08  Eric Blake  <eblake@redhat.com>
293
294         doc: recommendations on gettext version
295         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
296         choice between versions.
297         * DEPENDENCIES (gettext): Cover both approaches.
298
299 2012-05-08  Jim Meyering  <meyering@redhat.com>
300
301         init.sh: explain why EXEEXT support uses aliases rather than functions
302         * tests/init.sh: Add a comment.
303
304         init.sh: don't let bash aliases interfere with tests
305         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
306         is bash.  This avoids problems for those who alias standard commands to
307         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
308         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
309
310 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
311
312         stdint: be more consistent with glibc, SunOS libc
313         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
314         (gl_int_fast16_t, gl_uint_fast16_t)
315         (gl_int_fast32_t, gl_uint_fast32_t)
316         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
317         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
318         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
319         Be consistent with glibc by default, and with SunOS 5.10 and later
320         if __sun is defined.  This lessens the likelihood of clashes if
321         code compiled for older hosts is combined with code compiled for
322         newer ones.  Problem reported by Niels Möller in
323         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00074.html>.
324
325 2012-05-07  Eric Blake  <eblake@redhat.com>
326
327         isatty: relax license to LGPLv2+
328         * modules/isatty (License): Relax license.
329
330 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
331
332         stat-size: comment fix
333         * lib/stat-size.h: Remove obsolete comment about indenting.
334
335 2012-05-06  Bruno Haible  <bruno@clisp.org>
336
337         Tests for module 'sh-quote'.
338         * modules/sh-quote-tests: New file.
339         * tests/test-sh-quote.c: New file.
340
341 2012-05-06  Bruno Haible  <bruno@clisp.org>
342
343         sh-quote: Improve shell_quote_argv's signature.
344         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
345         * lib/sh-quote.c (shell_quote_argv): Likewise.
346
347 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
348
349         stdint: document issues with int_fast8_t etc.
350         * doc/posix-headers/stdint.texi (stdint.h): Say that other
351         stdint.h substitutes may define these types differently.  See
352         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00071.html>.
353
354 2012-05-05  Bruno Haible  <bruno@clisp.org>
355
356         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
357         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
358         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
359         or 'guessing no (mishandles large arguments)'.
360
361 2012-05-05  Bruno Haible  <bruno@clisp.org>
362
363         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
364         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
365         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
366         set gl_cv_func_link_follows_symlink to "guessing no".
367
368 2012-05-05  Bruno Haible  <bruno@clisp.org>
369
370         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
371         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
372         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
373         "guessing no".
374         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
375
376 2012-05-05  Bruno Haible  <bruno@clisp.org>
377
378         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
379         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
380         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
381         set gl_cv_struct_dirent_d_ino to "guessing yes".
382
383 2012-05-05  Bruno Haible  <bruno@clisp.org>
384
385         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
386         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
387         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
388         "guessing yes".
389
390 2012-05-05  Bruno Haible  <bruno@clisp.org>
391
392         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
393         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
394         compiling to a glibc system, set gl_cv_func_signbit and
395         gl_cv_func_signbit_gcc to "guessing yes".
396
397 2012-05-05  Bruno Haible  <bruno@clisp.org>
398
399         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
400         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
401         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
402         to "guessing yes".
403         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
404         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
405
406 2012-05-05  Bruno Haible  <bruno@clisp.org>
407
408         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
409         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
410         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
411         gl_cv_func_realpath_works to "guessing yes".
412
413 2012-05-05  Bruno Haible  <bruno@clisp.org>
414
415         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
416         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
417         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
418
419 2012-05-04  Bruno Haible  <bruno@clisp.org>
420
421         Tweak last commit.
422         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
423         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
424
425 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
426
427         unistd_h: make it easier to avoid sys_types_h
428         This is useful for Emacs, which has its own method of porting to
429         Windows, and which therefore does not need the sys_types_h module.
430         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
431         code moved here from gl_SYS_TYPES_H.
432         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
433         using the code directly.
434         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
435         gl_SYS_TYPES_H.
436         * modules/sys_types (Files):
437         * modules/unistd (Files): Add m4/off_t.m4.
438
439 2012-05-03  Bruno Haible  <bruno@clisp.org>
440
441         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
442         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
443         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
444         "guessing yes" or "guessing no".
445         (gl_FUNC_LSTAT): Update.
446         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
447         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
448         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
449
450 2012-05-03  Bruno Haible  <bruno@clisp.org>
451
452         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
453         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
454         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
455         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
456         cross-compiling, choose the first alternative on glibc systems.
457         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
458
459 2012-05-03  Bruno Haible  <bruno@clisp.org>
460
461         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
462         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
463         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
464
465 2012-05-03  Bruno Haible  <bruno@clisp.org>
466
467         chown: Avoid "guessing no" when cross-compiling to glibc systems.
468         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
469
470 2012-05-03  Bruno Haible  <bruno@clisp.org>
471
472         Avoid "guessing no" guesses when cross-compiling to glibc systems.
473         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
474         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
475         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
476         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
477         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
478         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
479         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
480         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
481         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
482         compiling to glibc systems, set gl_cv_func_chown_slash_works,
483         gl_cv_func_chown_ctime_works to "guessing yes".
484         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
485         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
486         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
487         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
488         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
489         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
490         compiling to glibc systems, set gl_cv_func_open_directory_works to
491         "guessing yes".
492         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
493         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
494         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
495         "guessing yes".
496         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
497         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
498         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
499         compiling to glibc systems, set gl_cv_func_floorf_ieee to
500         "guessing yes".
501         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
502         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
503         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
504         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
505         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
506         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
507         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
508         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
509         "guessing yes".
510         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
511         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
512         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
513         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
514         "guessing yes".
515         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
516         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
517         "guessing yes".
518         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
519         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
520         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
521         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
522         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
523         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
524         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
525         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
526         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
527         compiling to glibc systems, set gl_cv_func_log10f_ieee to
528         "guessing yes".
529         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
530         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
531         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
532         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
533         "guessing yes".
534         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
535         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
536         "guessing yes".
537         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
538         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
539         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
540         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
541         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
542         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
543         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
544         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
545         compiling to glibc systems, set gl_cv_func_mkfifo_works to
546         "guessing yes".
547         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
548         compiling to glibc systems, set gl_cv_func_mknod_works to
549         "guessing yes".
550         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
551         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
552         "guessing yes".
553         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
554         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
555         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
556         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
557         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
558         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
559         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
560         compiling to glibc systems, set gl_cv_func_svid_putenv to
561         "guessing yes".
562         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
563         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
564         "guessing yes".
565         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
566         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
567         "guessing yes".
568         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
569         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
570         to "guessing yes".
571         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
572         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
573         to "guessing yes".
574         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
575         compiling to glibc systems, set gl_cv_func_rmdir_works to
576         "guessing yes".
577         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
578         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
579         gl_cv_func_unlink_parent_fails to "guessing yes".
580         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
581         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
582         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
583         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
584         gl_cv_func_rename_dest_works to "guessing yes".
585         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
586         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
587         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
588         compiling to glibc systems, set gl_cv_func_roundf_ieee to
589         "guessing yes".
590         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
591         compiling to glibc systems, set gl_cv_func_roundl_ieee to
592         "guessing yes".
593         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
594         compiling to glibc systems, set gl_cv_func_setenv_works to
595         "guessing yes".
596         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
597         compiling to glibc systems, set gl_cv_func_unsetenv_works to
598         "guessing yes".
599         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
600         compiling to glibc systems, set gl_cv_func_sleep_works to
601         "guessing yes".
602         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
603         compiling to glibc systems, set gl_cv_func_stat_file_slash to
604         "guessing yes".
605         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
606         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
607         "guessing yes".
608         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
609         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
610         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
611         compiling to glibc systems, set gl_cv_func_truncf_ieee to
612         "guessing yes".
613         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
614         compiling to glibc systems, set gl_cv_func_truncl_ieee to
615         "guessing yes".
616         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
617         compiling to glibc systems, set gl_cv_func_usleep_works to
618         "guessing yes".
619         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
620         compiling to glibc systems, set gl_cv_func_futimesat_works to
621         "guessing yes".
622
623 2012-05-03  Bruno Haible  <bruno@clisp.org>
624
625         Say "guessing yes" or "guessing no" when cross-compiling.
626         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
627         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
628         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
629         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
630         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
631         am_cv_func_working_getline to "guessing yes" or "guessing no".
632         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
633         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
634         (gl_FUNC_MEMMEM): When cross-compiling, set
635         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
636         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
637         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
638         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
639         set gl_cv_func_strcasestr_works_always to "guessing yes" or
640         "guessing no".
641         (gl_FUNC_STRCASESTR): When cross-compiling, set
642         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
643         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
644         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
645         (gl_FUNC_STRSTR): When cross-compiling, set
646         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
647         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
648         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
649         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
650         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
651
652 2012-05-01  Bruno Haible  <bruno@clisp.org>
653
654         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
655         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
656         * build-aux/reloc-ldflags: Likewise.
657         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
658
659 2012-05-01  Bruno Haible  <bruno@clisp.org>
660
661         gnulib-tool: Remove transitional code.
662         * gnulib-tool: Don't warn about --import with 0 arguments any more.
663         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
664
665 2012-05-01  Bruno Haible  <bruno@clisp.org>
666
667         getcwd: Fix misindentation.
668         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
669
670 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
671
672         exclude: process exclude and include directives in order
673         This restores the pre-2009 behavior, and is part of a fix of a
674         grep bug reported by Quentin Arce in
675         <http://lists.gnu.org/archive/html/bug-grep/2012-04/msg00056.html>.
676         * lib/exclude.c (struct exclude): Remove 'tail' member.
677         (new_exclude_segment): Prepend the new segment instead of appending.
678         Return void, since that's now more convenient.
679         (file_pattern_matches): Renamed from excluded_file_pattern_p.
680         (file_name_matches): Renamed from excluded_file_name_p.
681         (file_pattern_matches, file_name_matches):
682         Return true if the pattern matches, not if it excludes.
683         All callers changed.
684         (excluded_file_name): Process the list in reverse order;
685         since the list is now reversed this restores the pre-2009 behavior.
686         (add_exclude): Adjust to new reversed-order list.  Use local var
687         rather than macro, for clarity.
688         * tests/test-exclude7.sh: Adjust to corrected behavior.
689
690         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
691         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
692         it's not possible here.  Handle the case of \ at end of pattern
693         without dumping core.
694         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
695
696         _Noreturn: future-proof non-GNU and non-MSVC compilers
697         * build-aux/snippet/_Noreturn.h (_Noreturn):
698         * m4/gnulib-common.m4 (gl_COMMON_BODY):
699         Do not define _Noreturn if __STDC_VERSION__ indicates this is
700         C11 or later.  This is more likely to work with random future C
701         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
702         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00195.html>.
703
704         exclude: handle wildcards with FNM_EXTMATCH
705         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
706         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
707         comment that "has wildcards" really means "has or may have
708         wildcards".  Simplify by avoiding the need to call strcspn.
709
710 2012-04-29  Bruno Haible  <bruno@clisp.org>
711
712         gnulib-tool: Fix list of authors.
713         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
714
715 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
716
717         bootstrap: support Automake-NG in $buildreq
718         * bootstrap (check_versions): Handle automake and aclocal from
719         Automake-NG specially.  They can be specified as respectively
720         the "automake-ng" and "aclocal-ng" requirements.
721
722 2012-04-25  Eric Blake  <eblake@redhat.com>
723
724         bootstrap: only force latest Makefile.in.in for gettext module
725         * build-aux/bootstrap (with_gettext): Only install latest
726         Makefile.in.in for projects requesting bleeding edge gettext.
727
728 2012-04-22  Bruno Haible  <bruno@clisp.org>
729
730         doc: Mention reason for replacement on glibc/Linux systems.
731         * doc/posix-functions/dprintf.texi: Mention the problem with special
732         'long double' values.
733         * doc/posix-functions/fprintf.texi: Likewise.
734         * doc/posix-functions/printf.texi: Likewise.
735         * doc/posix-functions/snprintf.texi: Likewise.
736         * doc/posix-functions/sprintf.texi: Likewise.
737         * doc/posix-functions/vdprintf.texi: Likewise.
738         * doc/posix-functions/vfprintf.texi: Likewise.
739         * doc/posix-functions/vprintf.texi: Likewise.
740         * doc/posix-functions/vsnprintf.texi: Likewise.
741         * doc/posix-functions/vsprintf.texi: Likewise.
742         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
743         platforms with F_DUPFD_CLOEXEC problems.
744         * doc/posix-functions/glob.texi: Mention which platforms are affected
745         by the problem with symbolic links.
746         * doc/posix-functions/linkat.texi: Mention the problem with
747         AT_SYMLINK_FOLLOW on Linux.
748
749 2012-04-22  Bruno Haible  <bruno@clisp.org>
750
751         pwrite: Don't replace on all platforms.
752         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
753
754 2012-04-22  Bruno Haible  <bruno@clisp.org>
755
756         rint* tests: Avoid gcc warnings.
757         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
758         * tests/test-rintf.c (INFINITY, NAN): Likewise.
759         * tests/test-rintl.c (INFINITY, NAN): Likewise.
760
761 2012-04-21  Bruno Haible  <bruno@clisp.org>
762
763         users.txt: Update.
764         * users.txt: Add freedink, wdiff. Update URLs for projects that have
765         switched from CVS to git, bzr, or svn.
766
767 2012-04-21  Bruno Haible  <bruno@clisp.org>
768
769         Large File Support for native Windows platforms.
770
771         * m4/largefile.m4 (gl_LARGEFILE): New macro.
772         * modules/largefile (configure.ac): Require gl_LARGEFILE.
773
774         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
775         type.
776         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
777         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
778         * doc/posix-headers/sys_types.texi: Mention the effect of the
779         'largefile' module.
780
781         * lib/fcntl.in.h: Add comments about off_t.
782         * modules/fcntl-h (Depends-on): Add sys_types.
783
784         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
785         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
786         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
787         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
788         * modules/unistd (Depends-on): Add sys_types.
789         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
790
791         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
792         instead of lseek.
793         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
794         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
795         * modules/lseek (Depends-on): Add sys_types.
796
797         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
798         msvc-nothrow.h.
799         (SetFileSize): New function.
800         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
801         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
802         if Large File Support is requested.
803         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
804         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
805
806         * lib/stdio.in.h: Add comments about off_t.
807         * modules/stdio (Depends-on): Add sys_types.
808
809         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
810         instead of ftello.
811         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
812         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
813         (gl_PREREQ_FTELLO): New macro.
814         * modules/ftello (Depends-on): Add sys_types.
815         (configure.ac): Incoke gl_PREREQ_FTELLO.
816
817         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
818         instead of fseeko.
819         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
820         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
821         (gl_PREREQ_FSEEKO): New macro.
822         * modules/fseeko (Depends-on): Add sys_types.
823         (configure.ac): Invoke gl_PREREQ_FSEEKO.
824
825         * lib/sys_stat.in.h: Add comments about off_t.
826         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
827         64-bit integer for st_size in 'struct stat'.
828         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
829         Define _GL_WINDOWS_64_BIT_ST_SIZE.
830         * modules/sys_stat (Depends-on): Add sys_types.
831         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
832
833         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
834         instead of stat or _stat.
835
836         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
837         'struct _stati64' instead of fstat and 'struct stat'.
838         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
839         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
840
841         Reported by Ray Satiro <raysatiro@yahoo.com>.
842
843 2012-04-19  Eric Blake  <eblake@redhat.com>
844
845         bootstrap: accommodate older libtool
846         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
847         Reported by Daniel P. Berrange.
848
849 2012-04-19  Jim Meyering  <meyering@redhat.com>
850
851         announce-gen: avoid failure due to lack of Digest::SHA1
852         Even with the preferred Digest::SHA available, this script
853         would fail when the backup module, Digest::SHA1, was not installed.
854         * build-aux/announce-gen: Quote the conditional use of "use".
855         Reported by Reuben Thomas in:
856         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
857
858         bootstrap: don't let a user's CDPATH setting affect this script
859         When CDPATH is set, cd will sometimes generate output.
860         When "cd" is run in a subshell whose output matters, that
861         surprising-to-some output can cause malfunction.
862         Unsetting CDPATH turns off this shell "feature."
863         * build-aux/bootstrap (CDPATH): Unset.
864         Reported by Reuben Thomas in:
865         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
866         and inspired by his patch here:
867         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
868
869 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
870         and Jim Meyering  <meyering@redhat.com>
871
872         maint.mk: catch "see @xref{}" and similar
873         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
874         prohibit "See also @xref{", "Also see @pxref{", and similar.
875
876 2012-04-16  Jim Meyering  <meyering@redhat.com>
877
878         bootstrap: really use gnulib's po/Makefile.in.in
879         * build-aux/bootstrap: Correct the source file name in previous change.
880         Reported by Akim Demaille.
881
882         configmake: correct minor inconsistency in Makefile rule
883         * modules/configmake (Makefile.am): All other rules like this one
884         run the final "mv -f ..." in the same backslash-continued command
885         as the one that does everything else.  This one put the mv -f ...
886         command on a separate, non-backslash-continued line.
887         Make it like the others.
888
889         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
890         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
891         the one from gettext.  Reported by Akim Demaille.
892
893 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
894
895         Fix recursion of install-* into po directories.
896         Bison's install-pdf bug reported by Hans Aberg at
897         <http://lists.gnu.org/archive/html/bug-bison/2011-05/msg00008.html>.
898         * build-aux/po/Makefile.in.in (install-dvi, install-html)
899         (install-info, install-pdf, install-ps): New targets.
900
901 2012-04-16  Jim Meyering  <meyering@redhat.com>
902
903         maint: avoid spurious "make sc_maint" failure
904         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
905         exempt all *.class file names, for lib/javaversion.class.
906
907 2012-04-15  Bruno Haible  <bruno@clisp.org>
908
909         lseek: Make configure test independent of environment.
910         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
911         Windows, we know that lseek() on pipes is broken; skip the runtime
912         test.
913
914 2012-04-14  Bruno Haible  <bruno@clisp.org>
915
916         stat: Bypass buggy override in mingw64.
917         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
918         * lib/stat.c (stat) [mingw64]: Define to _stat.
919         * doc/posix-functions/stat.texi: Mention mingw64 bug.
920
921 2012-04-14  Bruno Haible  <bruno@clisp.org>
922
923         pathmax: Fix compilation error on MSVC 9.
924         * modules/pathmax (Depends-on): Add unistd.
925
926 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
927
928         README: document pointer comparison assumption
929         * README (Portability guidelines): Document assumption about
930         pointer comparisons, in response to a recent bug-gnulib comment by
931         Jeffrey Kegler.
932
933 2012-04-12  Bruno Haible  <bruno@clisp.org>
934
935         Tests for module 'getrusage'.
936         * modules/getrusage-tests: New file.
937         * tests/test-getrusage.c: New file.
938
939         New module 'getrusage'.
940         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
941         warn-on-use.h.
942         (getrusage): New declaration.
943         * lib/getrusage.c: New file.
944         * m4/getrusage.m4: New file.
945         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
946         is declared.
947         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
948         HAVE_GETRUSAGE.
949         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
950         snippet/c++defs, snippet/warn-on-use.
951         (Makefile.am): Update generation of sys/resource.h. Substitute
952         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
953         * modules/getrusage: New file.
954         * doc/posix-functions/getrusage.texi: Mention the new module.
955
956 2012-04-12  Bruno Haible  <bruno@clisp.org>
957
958         Tests for module 'sys_resource'.
959         * modules/sys_resource-tests: New file.
960         * tests/test-sys_resource.c: New file.
961
962         New module 'sys_resource'.
963         * lib/sys_resource.in.h: New file.
964         * m4/sys_resource_h.m4: New file.
965         * modules/sys_resource: New file.
966         * doc/posix-headers/sys_resource.texi: Mention the new module.
967
968 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
969
970         ioctl: Fix compilation error on mingw.
971         * lib/ioctl.c: Include <windows.h>.
972         Also reported by Ray Satiro <raysatiro@yahoo.com>.
973
974 2012-04-04  Jim Meyering  <meyering@redhat.com>
975
976         regex: correct #pragma guard expression
977         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
978         not 4.3.  Correct its cpp guard expression.
979
980 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
981
982         regex: remove unnecessary type punning
983         Problem reported by Vladimir Serbinenko in
984         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00006.html>.
985         * lib/regex.h (struct re_pattern_buffer): Change the type of
986         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
987         Fix comment to match code.
988         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
989         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
990         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
991         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
992         (set_regs):
993         Omit no-longer-necessary casts.
994
995 2012-04-03  Bruno Haible  <bruno@clisp.org>
996
997         Tests for module 'ilogbl'.
998         * modules/ilogbl-tests: New file.
999         * tests/test-ilogbl.c: New file.
1000
1001         New module 'ilogbl'.
1002         * lib/math.in.h (ilogbl): New declaration.
1003         * lib/ilogbl.c: New file.
1004         * m4/ilogbl.m4: New file.
1005         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
1006         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
1007         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
1008         Split sed invocation, to avoid the limit of 100 substitutions of
1009         HP-UX 'sed'.
1010         * modules/ilogbl: New file.
1011         * tests/test-math-c++.cc: Check the declaration of ilogbl.
1012         * doc/posix-functions/ilogbl.texi: Mention the new module.
1013
1014 2012-04-03  Bruno Haible  <bruno@clisp.org>
1015
1016         Tests for module 'ilogbf'.
1017         * modules/ilogbf-tests: New file.
1018         * tests/test-ilogbf.c: New file.
1019
1020         New module 'ilogbf'.
1021         * lib/math.in.h (ilogbf): New declaration.
1022         * lib/ilogbf.c: New file.
1023         * m4/ilogbf.m4: New file.
1024         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
1025         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
1026         REPLACE_ILOGBF.
1027         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
1028         REPLACE_ILOGBF.
1029         * modules/ilogbf: New file.
1030         * tests/test-math-c++.cc: Check the declaration of ilogbf.
1031         * doc/posix-functions/ilogbf.texi: Mention the new module.
1032
1033 2012-04-03  Bruno Haible  <bruno@clisp.org>
1034
1035         Tests for module 'ilogb'.
1036         * modules/ilogb-tests: New file.
1037         * tests/test-ilogb.c: New file.
1038         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
1039         tests/test-logb-ieee.h.
1040
1041         New module 'ilogb'.
1042         * lib/math.in.h (ilogb): New declaration.
1043         * lib/ilogb.c: New file.
1044         * m4/ilogb.m4: New file.
1045         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
1046         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
1047         REPLACE_ILOGB.
1048         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
1049         REPLACE_ILOGB.
1050         * modules/ilogb: New file.
1051         * tests/test-math-c++.cc: Check the declaration of ilogb.
1052         * doc/posix-functions/ilogb.texi: Mention the new module.
1053
1054 2012-04-03  Bruno Haible  <bruno@clisp.org>
1055
1056         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
1057         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
1058         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
1059         (main): Check their values.
1060         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
1061         problem.
1062
1063 2012-04-03  Bruno Haible  <bruno@clisp.org>
1064
1065         Tests for module 'logbl-ieee'.
1066         * modules/logbl-ieee-tests: New file.
1067         * tests/test-logbl-ieee.c: New file.
1068
1069         New module 'logbl-ieee'.
1070         * modules/logbl-ieee: New file.
1071
1072         Tests for module 'logb-ieee'.
1073         * modules/logb-ieee-tests: New file.
1074         * tests/test-logb-ieee.c: New file.
1075
1076         New module 'logb-ieee'.
1077         * modules/logb-ieee: New file.
1078
1079         Tests for module 'logbf-ieee'.
1080         * modules/logbf-ieee-tests: New file.
1081         * tests/test-logbf-ieee.c: New file.
1082         * tests/test-logb-ieee.h: New file.
1083
1084         New module 'logbf-ieee'.
1085         * modules/logbf-ieee: New file.
1086
1087 2012-04-03  Bruno Haible  <bruno@clisp.org>
1088
1089         Tests for module 'logbl'.
1090         * modules/logbl-tests: New file.
1091         * tests/test-logbl.c: New file.
1092
1093         New module 'logbl'.
1094         * lib/math.in.h (logbl): New declaration.
1095         * lib/logbl.c: New file.
1096         * m4/logbl.m4: New file.
1097         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
1098         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
1099         REPLACE_LOGBL.
1100         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
1101         REPLACE_LOGBL.
1102         * modules/logbl: New file.
1103         * tests/test-math-c++.cc: Check the declaration of logbl.
1104         * doc/posix-functions/logbl.texi: Mention the new module.
1105
1106 2012-04-02  Bruno Haible  <bruno@clisp.org>
1107
1108         Tests for module 'logbf'.
1109         * modules/logbf-tests: New file.
1110         * tests/test-logbf.c: New file.
1111
1112         New module 'logbf'.
1113         * lib/math.in.h (logbf): New declaration.
1114         * lib/logbf.c: New file.
1115         * m4/logbf.m4: New file.
1116         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
1117         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
1118         REPLACE_LOGBF.
1119         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
1120         REPLACE_LOGBF.
1121         * modules/logbf: New file.
1122         * tests/test-math-c++.cc: Check the declaration of logbf.
1123         * doc/posix-functions/logbf.texi: Mention the new module.
1124
1125 2012-04-02  Bruno Haible  <bruno@clisp.org>
1126
1127         logb tests: More tests.
1128         * tests/test-logb.h: New file, based on tests/test-logb.c and
1129         tests/test-frexp.h.
1130         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
1131         (main): Just invoke test_function.
1132         * modules/logb-tests (Files): Add tests/test-logb.h,
1133         tests/minus-zero.h, tests/randomd.c.
1134         (Makefile.am): Add randomd.c to test_logb_SOURCES.
1135
1136         logb: Provide replacement and workarounds.
1137         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
1138         is 1.
1139         * lib/logb.c: New file.
1140         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
1141         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
1142         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
1143         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
1144         * modules/logb (Files): Add lib/logb.c.
1145         (Depends-on): Add isfinite, frexp, isnand.
1146         (configure.ac): Compile the replacement code logb.c if needed.
1147         * tests/test-math-c++.cc: Check the declaration of logb.
1148         * doc/posix-functions/logb.texi: Mention the replacement and the bug
1149         with subnormal numbers.
1150
1151 2012-04-02  Bruno Haible  <bruno@clisp.org>
1152
1153         log10* tests: Speed up.
1154         * tests/test-log10.h (test_function): Reduce amount of random numbers
1155         to test.
1156
1157 2012-04-01  Bruno Haible  <bruno@clisp.org>
1158
1159         logf-ieee: Fix test whether logf works.
1160         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
1161
1162 2012-04-01  Bruno Haible  <bruno@clisp.org>
1163
1164         log10l: Work around log10l-ieee test failure on IRIX 6.5.
1165         * lib/log10l.c: Include <float.h>
1166         (log10l): On IRIX, normalize the +Infinity value.
1167         * modules/log10l (Depends-on): Add 'float'.
1168         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
1169         +Infinity.
1170
1171         log10f-ieee: Work around test failure on NetBSD 5.1.
1172         * m4/log10f-ieee.m4: New file.
1173         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
1174         test whether log10f works with a negative argument. Replace it if not.
1175         * lib/log10f.c (log10f): For negative arguments, return NaN.
1176         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
1177         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
1178         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
1179
1180         log10f-ieee: Work around test failure on Solaris 9.
1181         * modules/log10f-ieee (Depends-on): Add log10-ieee.
1182         (configure.ac): Require gl_FUNC_LOG10F.
1183
1184         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
1185         * m4/log10-ieee.m4: New file.
1186         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
1187         whether log10 works with a negative argument. Replace it if not.
1188         * lib/log10.c (log10): For negative arguments, return NaN.
1189         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
1190         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
1191         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
1192
1193         Tests for module 'log10l-ieee'.
1194         * modules/log10l-ieee-tests: New file.
1195         * tests/test-log10l-ieee.c: New file.
1196
1197         New module 'log10l-ieee'.
1198         * modules/log10l-ieee: New file.
1199
1200         Tests for module 'log10-ieee'.
1201         * modules/log10-ieee-tests: New file.
1202         * tests/test-log10-ieee.c: New file.
1203
1204         New module 'log10-ieee'.
1205         * modules/log10-ieee: New file.
1206
1207         Tests for module 'log10f-ieee'.
1208         * modules/log10f-ieee-tests: New file.
1209         * tests/test-log10f-ieee.c: New file.
1210         * tests/test-log10-ieee.h: New file.
1211
1212         New module 'log10f-ieee'.
1213         * modules/log10f-ieee: New file.
1214
1215 2012-04-01  Bruno Haible  <bruno@clisp.org>
1216
1217         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
1218         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
1219         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
1220         workaround.
1221         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
1222         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
1223         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
1224         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
1225         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
1226         (Depends-on): Update conditions.
1227         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
1228         IRIX 6.5, OSF/1 5.1 problems.
1229
1230 2012-04-01  Bruno Haible  <bruno@clisp.org>
1231
1232         log10f: Work around OSF/1 5.1 bug.
1233         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
1234         * lib/log10f.c (log10f): If logf exists, use it and provide just the
1235         workaround.
1236         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
1237         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
1238         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
1239         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
1240         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
1241         (Depends-on): Update conditions.
1242         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
1243
1244 2012-04-01  Bruno Haible  <bruno@clisp.org>
1245
1246         log10: Work around OSF/1 5.1 bug.
1247         * lib/math.in.h (log10): New declaration.
1248         * lib/log10.c: New file.
1249         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
1250         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
1251         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
1252         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
1253         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
1254         * modules/log10 (Files): Add lib/log10.c.
1255         (Depends-on): Add math.
1256         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
1257         * tests/test-math-c++.cc: Check the declaration of log10.
1258         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
1259
1260 2012-03-31  Bruno Haible  <bruno@clisp.org>
1261
1262         log10l tests: More tests.
1263         * modules/log10l-tests (Files): Add tests/test-log10l.h,
1264         tests/minus-zero.h, tests/randoml.c.
1265         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
1266         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
1267         (main): Invoke test_function.
1268
1269         log10f tests: More tests.
1270         * modules/log10f-tests (Files): Add tests/test-log10.h,
1271         tests/minus-zero.h, tests/randomf.c.
1272         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
1273         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
1274         (main): Invoke test_function.
1275
1276         log10 tests: More tests.
1277         * tests/test-log10.h: New file.
1278         * modules/log10-tests (Files): Add tests/test-log10.h,
1279         tests/minus-zero.h, tests/randomd.c.
1280         (Makefile.am): Add randomd.c to test_log10_SOURCES.
1281         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
1282         (main): Invoke test_function.
1283
1284 2012-03-31  Simon Josefsson  <simon@josefsson.org>
1285
1286         fflush: Fix syntax error.
1287         * lib/fflush.c: Include unused-parameter.h, needed for
1288         _GL_UNUSED_PARAMETER.
1289         * modules/fflush (Depends-on): Add snippet/unused-parameter.
1290
1291 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
1292
1293         regex: pacify GCC when compiling GRUB
1294         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
1295         a diagnostic.  Reported by Vladimir Serbinenko in
1296         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00163.html>.
1297
1298 2012-03-29  Eric Blake  <eblake@redhat.com>
1299
1300         stdio: don't assume gets any more
1301         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
1302         support.
1303         * modules/stdio (Makefile.am): Likewise.
1304         * lib/stdio-read.c (gets): Likewise.
1305         * tests/test-stdio-c++.cc: Likewise.
1306         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
1307         * lib/stdio.in.h (gets): Make warning occur in more places.
1308         * doc/posix-functions/gets.texi (gets): Update documentation.
1309         Reported by Christer Solskogen.
1310
1311         maint.mk: fix syntax checks without exclusions
1312         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
1313         Reported by Daniel P. Berrange.
1314
1315         strerror_r: avoid compiler warning
1316         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
1317         level.
1318
1319         fflush: avoid compiler warning
1320         * lib/fflush.c (update_fpos_cache): Mark variables that are
1321         potentially unused.
1322
1323 2012-03-25  Bruno Haible  <bruno@clisp.org>
1324
1325         Tests for module 'localeconv'.
1326         * modules/localeconv-tests: New file.
1327         * tests/test-localeconv.c: New file.
1328
1329         New module 'localeconv'.
1330         * lib/locale.in.h (localeconv): New declaration.
1331         * lib/localeconv.c: New file.
1332         * m4/localeconv.m4: New file.
1333         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
1334         REPLACE_LOCALECONV.
1335         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
1336         REPLACE_LOCALECONV.
1337         * modules/localeconv: New file.
1338         * modules/nl_langinfo (Depends-on): Add localeconv.
1339         * modules/human (Depends-on): Likewise.
1340         * doc/posix-functions/localeconv.texi: Mention the new module.
1341
1342 2012-03-25  Bruno Haible  <bruno@clisp.org>
1343
1344         locale: Provide a complete 'struct lconv'.
1345         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
1346         'struct lconv' does not contain int_p_cs_precedes.
1347         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
1348         * doc/posix-headers/locale.texi: Update.
1349
1350         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
1351         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
1352         * doc/posix-headers/locale.texi: Update.
1353
1354         locale: Provide a working 'struct lconv'.
1355         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
1356         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
1357         'struct lconv' does not even contain decimal_point.
1358         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
1359         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
1360         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
1361         * doc/posix-headers/locale.texi: Mention the problems with
1362         'struct lconv'.
1363         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
1364
1365 2012-03-24  Bruno Haible  <bruno@clisp.org>
1366
1367         Enable common subexpression optimization in GCC.
1368         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
1369         macros.
1370         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
1371         GCC attribute 'const'.
1372         (uc_locale_language): Declare with GCC attribute 'pure'.
1373         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
1374         with GCC attribute 'const'.
1375         * lib/unictype.in.h (uc_is_general_category_withtable,
1376         uc_combining_class, uc_combining_class_name,
1377         uc_combining_class_long_name, uc_bidi_class_name,
1378         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
1379         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
1380         uc_decimal_value, uc_digit_value, uc_numeric_value,
1381         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
1382         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
1383         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
1384         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
1385         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
1386         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
1387         Declare with GCC attribute 'const'.
1388         (uc_general_category_name, uc_general_category_long_name,
1389         uc_general_category_byname, uc_general_category,
1390         uc_is_general_category, uc_combining_class_byname,
1391         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
1392         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
1393         Declare with GCC attribute 'pure'.
1394         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
1395         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
1396         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
1397         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
1398         with GCC attribute 'pure'.
1399         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
1400         'const'.
1401         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
1402         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
1403         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
1404         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
1405         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
1406         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
1407         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
1408         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
1409         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
1410         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
1411         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
1412         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
1413         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
1414         GCC attribute 'pure'.
1415         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
1416         'const'.
1417         * lib/uniwidth.in.h (uc_width): Simplify declaration.
1418         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
1419         u32_strwidth): Declare with GCC attribute 'pure'.
1420
1421         Enable common subexpression optimization in GCC.
1422         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
1423         (alphasort): Declare with GCC attribute 'pure'.
1424         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
1425         (atoll): Declare with GCC attribute 'pure'.
1426         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
1427         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
1428         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
1429         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
1430         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
1431         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
1432         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
1433
1434 2012-03-24  Bruno Haible  <bruno@clisp.org>
1435
1436         gnulib-tool: Avoid unintended error output from 'cmp'.
1437         * gnulib-tool (func_add_file, func_update_file, func_import): Use
1438         "cmp -s", not "cmp > /dev/null".
1439
1440 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
1441
1442         gnulib-tool: fix imprecise comments w.r.t. an automake bug
1443
1444         It's not just Automake versions < 1.9b that creates an empty
1445         pkgdatadir at installation time if pkgdata_DATA is specified
1446         to empty; modern automake versions do this as well, at least
1447         until automake 1.11.4 (not yet released at the moment of writing,
1448         but soon to appear).  That behaviour was generally considered a
1449         feature rather than a bug, at least until this discussion:
1450         <http://lists.gnu.org/archive/html/automake/2012-03/msg00014.html>
1451
1452         See also automake bugs #10997 and #11030.
1453
1454         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
1455         reference to relevant automake bug numbers.
1456         (func_emit_tests_Makefile_am): Likewise.
1457
1458 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
1459
1460         announce-gen: use Digest::SHA when possible
1461         * build-aux/announce-gen: Use Digest::SHA when possible, falling
1462         back to Digest::SHA1 if necessary.
1463
1464 2012-03-20  Jim Meyering  <meyering@redhat.com>
1465
1466         tests: avoid gcc warnings about argv vs. const initializers
1467         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
1468         warnings about discarding 'const' qualifier from pointer target type.
1469         * tests/test-posix_spawn2.c (main): Likewise.
1470
1471 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
1472
1473         README-release: simplify slightly
1474         * top/README-release: Run "git checkout master" only once.
1475
1476 2012-03-15  Mark Wielaard  <mark@klomp.org>
1477
1478         git-merge-changelog: add specific example on how to use with hg.
1479         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
1480
1481 2012-03-18  Mark Wielaard  <mark@klomp.org>
1482
1483         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
1484
1485 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
1486
1487         git-version-gen: don't let "prefix" envvar cause trouble
1488         * build-aux/git-version-gen (prefix): Initialize properly,
1489         so as not to use a value specified via the environment.
1490         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
1491
1492 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
1493
1494         regex: diagnose too-large repeat counts in EREs
1495         Previously, the code did not diagnose the too-large repeat count
1496         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
1497         as if it were 'b\{1000000000}', which is unexpected.
1498         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
1499         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
1500         is a reasonable one for this problem.  Another option would be to
1501         create a new REG_OVERFLOW error for repeat counts that are too large.
1502         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
1503         count is too large, so that the caller can distinguish the two cases.
1504         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
1505         "Too large" return code, and that repeat counts are one example of this.
1506
1507 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
1508
1509         doc: some glibc x32 integer width issues
1510         * doc/posix-headers/sys_types.texi (sys/types.h):
1511         * doc/posix-headers/time.texi (time.h):
1512         Mention that glibc x32 does not conform to POSIX in a couple of
1513         areas related to integer widths.
1514
1515 2012-03-15  Bruno Haible  <bruno@clisp.org>
1516
1517         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
1518         * lib/fma.c (VOLATILE): New macro.
1519         (FUNC): Use it to work around a GCC compiler bug.
1520
1521 2012-03-13  Bruno Haible  <bruno@clisp.org>
1522
1523         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
1524         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
1525         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
1526         REPLACE_HYPOTL to 1.
1527         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
1528
1529 2012-03-13  Bruno Haible  <bruno@clisp.org>
1530
1531         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
1532         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
1533         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
1534         REPLACE_REMAINDERL to 1.
1535         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
1536         bug.
1537
1538 2012-03-13  Bruno Haible  <bruno@clisp.org>
1539
1540         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
1541         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
1542         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
1543         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
1544         too big rounding errors.
1545         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
1546         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
1547         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
1548         (Depends-on): Update conditions.
1549         * tests/test-sqrtl.c (my_ldexpl): New function.
1550         (main): Add test of a particular value.
1551         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
1552
1553 2012-03-13  Pádraig Brady  <P@draigBrady.com>
1554
1555         doc: Update timer_* platform portability notes.
1556         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
1557         that always return ENOSYS.
1558         * doc/posix-functions/timer_delete.texi: Likewise.
1559         * doc/posix-functions/timer_gettime.texi: Likewise.
1560         * doc/posix-functions/timer_settime.texi: Likewise.
1561
1562 2012-03-13  Bruno Haible  <bruno@clisp.org>
1563
1564         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
1565         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
1566         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
1567         REPLACE_CBRTL to 1.
1568         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
1569
1570 2012-03-13  Bruno Haible  <bruno@clisp.org>
1571
1572         remainderl: Avoid compilation error on AIX >= 5.2.
1573         * lib/math.in.h (remainderl): Undefine macro from the system header.
1574
1575 2012-03-13  Bruno Haible  <bruno@clisp.org>
1576
1577         Avoid compilation errors with MSVC option -fp:strict.
1578         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
1579         * lib/cbrtf.c: Likewise.
1580         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
1581
1582 2012-03-12  Bruno Haible  <bruno@clisp.org>
1583
1584         uninorm: Don't crash in out-of-memory conditions.
1585         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
1586         gracefully.
1587         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
1588         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
1589
1590 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
1591
1592         quote: fix syntax-check
1593         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
1594         also exports quote_quoting_options.
1595
1596 2012-03-12  Simon Josefsson  <simon@josefsson.org>
1597
1598         Collapse list of copyright years to ranges.  See
1599         <https://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00051.html>.
1600         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
1601         build-aux/csharpexec.sh.in, build-aux/gnupload,
1602         build-aux/install-reloc, build-aux/javacomp.sh.in,
1603         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
1604         build-aux/move-if-change, build-aux/reloc-ldflags,
1605         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
1606
1607 2012-03-11  Bruno Haible  <bruno@clisp.org>
1608
1609         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
1610         * m4/log2f-ieee.m4: New file.
1611         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
1612         whether log2f works with a minus zero argument. Replace it if not.
1613         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
1614         (Depends-on): Add log2-ieee.
1615         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
1616         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
1617
1618         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
1619         * m4/log2-ieee.m4: New file.
1620         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
1621         whether log2 works with a minus zero argument. Replace it if not.
1622         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
1623         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
1624         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
1625
1626         Tests for module 'log2l-ieee'.
1627         * modules/log2l-ieee-tests: New file.
1628         * tests/test-log2l-ieee.c: New file.
1629
1630         New module 'log2l-ieee'.
1631         * modules/log2l-ieee: New file.
1632
1633         Tests for module 'log2-ieee'.
1634         * modules/log2-ieee-tests: New file.
1635         * tests/test-log2-ieee.c: New file.
1636
1637         New module 'log2-ieee'.
1638         * modules/log2-ieee: New file.
1639
1640         Tests for module 'log2f-ieee'.
1641         * modules/log2f-ieee-tests: New file.
1642         * tests/test-log2f-ieee.c: New file.
1643         * tests/test-log2-ieee.h: New file.
1644
1645         New module 'log2f-ieee'.
1646         * modules/log2f-ieee: New file.
1647
1648 2012-03-11  Bruno Haible  <bruno@clisp.org>
1649
1650         Tests for module 'log2l'.
1651         * modules/log2l-tests: New file.
1652         * tests/test-log2l.c: New file.
1653
1654         New module 'log2l'.
1655         * lib/math.in.h (log2l): New declaration.
1656         * lib/log2l.c: New file.
1657         * m4/log2l.m4: New file.
1658         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
1659         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
1660         REPLACE_LOG2L.
1661         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
1662         REPLACE_LOG2L.
1663         * modules/log2l: New file.
1664         * tests/test-math-c++.cc: Check the declaration of log2l.
1665         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
1666         and OSF/1 problems.
1667
1668 2012-03-11  Bruno Haible  <bruno@clisp.org>
1669
1670         Tests for module 'log2f'.
1671         * modules/log2f-tests: New file.
1672         * tests/test-log2f.c: New file.
1673
1674         New module 'log2f'.
1675         * lib/math.in.h (log2f): New declaration.
1676         * lib/log2f.c: New file.
1677         * m4/log2f.m4: New file.
1678         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
1679         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
1680         REPLACE_LOG2F.
1681         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
1682         REPLACE_LOG2F.
1683         * modules/log2f: New file.
1684         * tests/test-math-c++.cc: Check the declaration of log2f.
1685         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
1686         and OSF/1 and Cygwin problems.
1687
1688 2012-03-11  Bruno Haible  <bruno@clisp.org>
1689
1690         Tests for module 'log2'.
1691         * modules/log2-tests: New file.
1692         * tests/test-log2.c: New file.
1693         * tests/test-log2.h: New file.
1694
1695         New module 'log2'.
1696         * lib/math.in.h (log2): New declaration.
1697         * lib/log2.c: New file.
1698         * m4/log2.m4: New file.
1699         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
1700         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
1701         REPLACE_LOG2.
1702         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
1703         REPLACE_LOG2.
1704         * modules/log2: New file.
1705         * tests/test-math-c++.cc: Check the declaration of log2.
1706         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
1707         and OSF/1 and Cygwin problems.
1708
1709 2012-03-11  Bruno Haible  <bruno@clisp.org>
1710
1711         exp2* tests: More tests.
1712         * tests/test-exp2.h (test_function): Test all integral arguments that
1713         don't need to overflow or denormalized numbers.
1714         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
1715         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
1716         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
1717
1718 2012-03-10  Bruno Haible  <bruno@clisp.org>
1719
1720         log1pl-ieee: Work around test failure on AIX 7.1.
1721         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
1722
1723         log1pl-ieee: Work around test failure on IRIX 6.5.
1724         * m4/log1pl-ieee.m4: New file.
1725         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
1726         test whether log1pl works with a minus zero argument. Replace it if
1727         not.
1728         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
1729         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
1730         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
1731         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
1732         (Depends-on): Update conditions.
1733         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
1734         m4/signbit.m4.
1735         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
1736         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
1737
1738         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
1739         * m4/log1pf-ieee.m4: New file.
1740         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
1741         test whether log1pf works with a minus zero argument. Replace it if
1742         not.
1743         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
1744         m4/signbit.m4.
1745         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
1746         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
1747
1748         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
1749         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
1750         (configure.ac): Require gl_FUNC_LOG1PF.
1751
1752         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
1753         * m4/log1p-ieee.m4: New file.
1754         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
1755         whether log1p works with a minus zero argument. Replace it if not.
1756         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
1757         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
1758         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
1759         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
1760         (Depends-on): Update conditions.
1761         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
1762         m4/signbit.m4.
1763         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
1764         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
1765
1766         Tests for module 'log1pl-ieee'.
1767         * modules/log1pl-ieee-tests: New file.
1768         * tests/test-log1pl-ieee.c: New file.
1769
1770         New module 'log1pl-ieee'.
1771         * modules/log1pl-ieee: New file.
1772
1773         Tests for module 'log1p-ieee'.
1774         * modules/log1p-ieee-tests: New file.
1775         * tests/test-log1p-ieee.c: New file.
1776
1777         New module 'log1p-ieee'.
1778         * modules/log1p-ieee: New file.
1779
1780         Tests for module 'log1pf-ieee'.
1781         * modules/log1pf-ieee-tests: New file.
1782         * tests/test-log1pf-ieee.c: New file.
1783         * tests/test-log1p-ieee.h: New file.
1784
1785         New module 'log1pf-ieee'.
1786         * modules/log1pf-ieee: New file.
1787
1788 2012-03-10  Bruno Haible  <bruno@clisp.org>
1789
1790         Tests for module 'log1pl'.
1791         * modules/log1pl-tests: New file.
1792         * tests/test-log1pl.c: New file.
1793
1794         New module 'log1pl'.
1795         * lib/math.in.h (log1pl): New declaration.
1796         * lib/log1pl.c: New file.
1797         * m4/log1pl.m4: New file.
1798         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
1799         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
1800         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
1801         * modules/log1pl: New file.
1802         * tests/test-math-c++.cc: Check the declaration of log1pl.
1803         * doc/posix-functions/log1pl.texi: Mention the new module.
1804
1805 2012-03-10  Bruno Haible  <bruno@clisp.org>
1806
1807         Tests for module 'log1pf'.
1808         * modules/log1pf-tests: New file.
1809         * tests/test-log1pf.c: New file.
1810
1811         New module 'log1pf'.
1812         * lib/math.in.h (log1pf): New declaration.
1813         * lib/log1pf.c: New file.
1814         * m4/log1pf.m4: New file.
1815         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
1816         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
1817         REPLACE_LOG1PF.
1818         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
1819         REPLACE_LOG1PF.
1820         * modules/log1pf: New file.
1821         * tests/test-math-c++.cc: Check the declaration of log1pf.
1822         * doc/posix-functions/log1pf.texi: Mention the new module.
1823
1824 2012-03-10  Bruno Haible  <bruno@clisp.org>
1825
1826         log1p tests: More tests.
1827         * tests/test-log1p.h: New file.
1828         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
1829         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
1830         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
1831         (main): Invoke test_function.
1832
1833         log1p: Provide replacement for Minix and MSVC.
1834         * lib/math.in.h (log1p): New declaration.
1835         * lib/log1p.c: New file.
1836         * m4/log1p.m4: New file.
1837         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
1838         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
1839         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
1840         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
1841         (Depends-on): Add math, isnand, log, round.
1842         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
1843         HAVE_LOG1P is 0.
1844         * tests/test-math-c++.cc: Check the declaration of log1p.
1845         * doc/posix-functions/log1p.texi: Mention the replacement.
1846
1847 2012-03-10  Bruno Haible  <bruno@clisp.org>
1848
1849         math tests: Small simplification.
1850         * tests/test-exp.h (test_function): Use the same err_bound for
1851         'double' on platforms with sizeof (long double) == sizeof (double)
1852         than on platforms with sizeof (long double) > sizeof (double).
1853         * tests/test-exp2.h (test_function): Likewise.
1854         * tests/test-expm1.h (test_function): Likewise.
1855         * tests/test-log.h (test_function): Likewise.
1856
1857 2012-03-10  Bruno Haible  <bruno@clisp.org>
1858
1859         Fix some comments.
1860         * lib/expl.c: Fix an ambiguous comment.
1861         * lib/expm1.c: Likewise.
1862         * lib/expm1l.c: Likewise.
1863         * lib/exp2.c: Likewise.
1864         * lib/exp2l.c: Likewise.
1865
1866 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
1867
1868         regex: allow inclusion of <regex.h> before <limits.h>
1869         Without this patch, portable programs had to include <limits.h> before
1870         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
1871         I ran into this problem with a test version of GNU grep on Solaris 8.
1872         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
1873         This is done conditionally so that this change can be merged
1874         back to glibc.
1875         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
1876         using the included regex.
1877
1878         fts: depend on fdopendir
1879         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
1880         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
1881         problem was introduced when fdopendir was split out.
1882
1883 2012-03-10  Bruno Haible  <bruno@clisp.org>
1884
1885         Remove unused variables.
1886         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
1887         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
1888
1889 2012-03-10  Bruno Haible  <bruno@clisp.org>
1890
1891         isnanf-nolibm: Fix last commit.
1892         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
1893
1894         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
1895         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
1896
1897 2012-03-10  Bruno Haible  <bruno@clisp.org>
1898
1899         logf-ieee: Work around test failure on NetBSD 5.1.
1900         * m4/logf-ieee.m4: New file.
1901         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
1902         whether logf works with a negative argument. Replace it if not.
1903         * lib/logf.c (logf): For negative arguments, return NaN.
1904         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
1905         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
1906         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
1907
1908         logf-ieee: Work around test failure on Solaris 9.
1909         * modules/logf-ieee (Depends-on): Add log-ieee.
1910         (configure.ac): Require gl_FUNC_LOGF.
1911
1912         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
1913         * m4/log-ieee.m4: New file.
1914         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
1915         log works with a negative argument. Replace it if not.
1916         * lib/log.c (log): For negative arguments, return NaN.
1917         * modules/log-ieee (Files): Add m4/log-ieee.m4.
1918         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
1919         * doc/posix-functions/log.texi: Mention the log-ieee module.
1920
1921         Tests for module 'logl-ieee'.
1922         * modules/logl-ieee-tests: New file.
1923         * tests/test-logl-ieee.c: New file.
1924
1925         New module 'logl-ieee'.
1926         * modules/logl-ieee: New file.
1927
1928         Tests for module 'log-ieee'.
1929         * modules/log-ieee-tests: New file.
1930         * tests/test-log-ieee.c: New file.
1931
1932         New module 'log-ieee'.
1933         * modules/log-ieee: New file.
1934
1935         Tests for module 'logf-ieee'.
1936         * modules/logf-ieee-tests: New file.
1937         * tests/test-logf-ieee.c: New file.
1938         * tests/test-log-ieee.h: New file.
1939
1940         New module 'logf-ieee'.
1941         * modules/logf-ieee: New file.
1942
1943 2012-03-10  Bruno Haible  <bruno@clisp.org>
1944
1945         log: Fix bug introduced on 2012-03-09.
1946         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
1947
1948 2012-03-10  Pádraig Brady  <P@draigBrady.com>
1949
1950         timer-time: link explicitly with pthreads on glibc
1951         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
1952         to support static linking, when newer glibc is
1953         detected, as that contains pthread emulation of
1954         POSIX timer functions where required.
1955         * modules/timer-time: Depend on threadlib to
1956         pull in the appropriate library to link.
1957
1958 2012-03-10  Bruno Haible  <bruno@clisp.org>
1959
1960         log* tests: More tests.
1961         * tests/test-log.h: New file.
1962         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
1963         (main): Invoke test_function.
1964         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
1965         (main): Invoke test_function.
1966         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
1967         (main): Invoke test_function.
1968         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
1969         tests/randomd.c.
1970         (Makefile.am): Add randomd.c to test_log_SOURCES.
1971         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
1972         tests/randomf.c.
1973         (Makefile.am): Add randomf.c to test_logf_SOURCES.
1974         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
1975         tests/randoml.c.
1976         (Depends-on): Add 'float'.
1977         (Makefile.am): Add randoml.c to test_logl_SOURCES.
1978
1979 2012-03-09  Bruno Haible  <bruno@clisp.org>
1980
1981         logl: Work around OSF/1 5.1 bug.
1982         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
1983         * lib/logl.c (logl): If logl exists, use it and provide just the
1984         workaround.
1985         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
1986         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
1987         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
1988         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
1989         * modules/logl (configure.ac): Consider REPLACE_LOGL.
1990         (Depends-on): Update conditions.
1991         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
1992
1993 2012-03-09  Bruno Haible  <bruno@clisp.org>
1994
1995         logf: Work around OSF/1 5.1 bug.
1996         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
1997         * lib/logf.c (logf): If logf exists, use it and provide just the
1998         workaround.
1999         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
2000         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
2001         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
2002         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
2003         * modules/logf (configure.ac): Consider REPLACE_LOGF.
2004         (Depends-on): Update conditions.
2005         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
2006
2007 2012-03-09  Bruno Haible  <bruno@clisp.org>
2008
2009         log: Work around OSF/1 5.1 bug.
2010         * lib/math.in.h (log): New declaration.
2011         * lib/log.c: New file.
2012         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
2013         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
2014         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
2015         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
2016         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
2017         * modules/log (Files): Add lib/log.c.
2018         (Depends-on): Add math.
2019         (configure.ac): If REPLACE_LOG is 1, compile an override.
2020         * tests/test-math-c++.cc: Check the declaration of log.
2021         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
2022
2023 2012-03-09  Jim Meyering  <meyering@redhat.com>
2024
2025         readtokens.c: adjust wording in a comment
2026         * lib/readtokens.c: Insert omitted "that" in a comment.
2027
2028 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
2029
2030         modechange: add notations +40, 00440, etc.
2031         * lib/modechange.c (mode_compile): Support new notations
2032         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
2033
2034 2012-03-08  Bruno Haible  <bruno@clisp.org>
2035
2036         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
2037         * m4/exp2l-ieee.m4: New file.
2038         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
2039         test whether exp2l works with a NaN argument and with a negative
2040         infinity argument. Replace it if not.
2041         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
2042         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
2043         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
2044         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
2045         (Depends-on): Update conditions.
2046         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
2047         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
2048         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
2049
2050         Tests for module 'exp2l-ieee'.
2051         * modules/exp2l-ieee-tests: New file.
2052         * tests/test-exp2l-ieee.c: New file.
2053
2054         New module 'exp2l-ieee'.
2055         * modules/exp2l-ieee: New file.
2056
2057         Tests for module 'exp2-ieee'.
2058         * modules/exp2-ieee-tests: New file.
2059         * tests/test-exp2-ieee.c: New file.
2060
2061         New module 'exp2-ieee'.
2062         * modules/exp2-ieee: New file.
2063
2064         Tests for module 'exp2f-ieee'.
2065         * modules/exp2f-ieee-tests: New file.
2066         * tests/test-exp2f-ieee.c: New file.
2067         * tests/test-exp2-ieee.h: New file.
2068
2069         New module 'exp2f-ieee'.
2070         * modules/exp2f-ieee: New file.
2071
2072 2012-03-08  Bruno Haible  <bruno@clisp.org>
2073
2074         Tests for module 'exp2l'.
2075         * modules/exp2l-tests: New file.
2076         * tests/test-exp2l.c: New file.
2077
2078         New module 'exp2l'.
2079         * lib/math.in.h (exp2l): New declaration.
2080         * lib/exp2l.c: New file.
2081         * lib/expl-table.c: New file, extracted from lib/expl.c.
2082         * lib/expl.c (gl_expl_table): New declaration.
2083         (expl): Remove expl_table. Update reference.
2084         * m4/exp2l.m4: New file.
2085         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
2086         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
2087         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
2088         * modules/exp2l: New file.
2089         * modules/expl (Files): Add lib/expl-table.c.
2090         (configure.ac): Compile also expl-table.c.
2091         * tests/test-math-c++.cc: Check the declaration of exp2l.
2092         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
2093         problem.
2094
2095 2012-03-08  Bruno Haible  <bruno@clisp.org>
2096
2097         Tests for module 'exp2f'.
2098         * modules/exp2f-tests: New file.
2099         * tests/test-exp2f.c: New file.
2100
2101         New module 'exp2f'.
2102         * lib/math.in.h (exp2f): New declaration.
2103         * lib/exp2f.c: New file.
2104         * m4/exp2f.m4: New file.
2105         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
2106         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
2107         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
2108         * modules/exp2f: New file.
2109         * tests/test-math-c++.cc: Check the declaration of exp2f.
2110         * doc/posix-functions/exp2f.texi: Mention the new module and the
2111         IRIX problem.
2112
2113 2012-03-08  Bruno Haible  <bruno@clisp.org>
2114
2115         Tests for module 'exp2'.
2116         * modules/exp2-tests: New file.
2117         * tests/test-exp2.c: New file.
2118         * tests/test-exp2.h: New file.
2119
2120         New module 'exp2'.
2121         * lib/math.in.h (exp2): New declaration.
2122         * lib/exp2.c: New file.
2123         * m4/exp2.m4: New file.
2124         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
2125         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
2126         REPLACE_EXP2.
2127         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
2128         REPLACE_EXP2.
2129         * modules/exp2: New file.
2130         * tests/test-math-c++.cc: Check the declaration of exp2.
2131         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
2132         and OpenBSD problems.
2133
2134 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
2135
2136         savedir: fix comment typo
2137         * lib/savedir.c (savedirstream): Fix typo in comment.
2138
2139 2012-03-08  Bruno Haible  <bruno@clisp.org>
2140
2141         test-readtokens.c: use const; remove unwarranted cast
2142         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
2143
2144 2012-03-08  Bruno Haible  <bruno@clisp.org>
2145
2146         fmal: Avoid compilation error on AIX.
2147         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
2148         AIX 5.2..7.1.
2149
2150 2012-03-08  Bruno Haible  <bruno@clisp.org>
2151
2152         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
2153         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
2154         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
2155         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
2156         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
2157         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
2158         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
2159
2160 2012-03-08  Bruno Haible  <bruno@clisp.org>
2161
2162         remainderf: Override buggy system function on IRIX 6.5.
2163         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
2164         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
2165         when it exists.
2166         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
2167
2168 2012-03-08  Jim Meyering  <meyering@redhat.com>
2169
2170         test-readtokens.c: avoid const-related compilation warnings
2171         * tests/test-readtokens.c: Avoid const-related compilation warnings.
2172
2173 2012-03-07  Jim Meyering  <meyering@redhat.com>
2174             Bruno Haible  <bruno@clisp.org>
2175
2176         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
2177         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
2178         tests/randomd.c.
2179         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
2180         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
2181         tests/randoml.c.
2182         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
2183
2184 2012-03-07  Bruno Haible  <bruno@clisp.org>
2185
2186         expm1l: Avoid compilation error on AIX.
2187         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
2188         AIX 5.2..7.1.
2189
2190 2012-03-07  Bruno Haible  <bruno@clisp.org>
2191
2192         expm1l: Don't override undeclared system function on IRIX 6.5.
2193         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
2194         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
2195         it exists. Set HAVE_DECL_EXPM1L.
2196         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
2197         HAVE_EXPM1L.
2198         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
2199         HAVE_EXPM1L.
2200         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
2201
2202 2012-03-07  Bruno Haible  <bruno@clisp.org>
2203
2204         remainderl: Don't override undeclared system function on IRIX 6.5.
2205         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
2206         HAVE_REMAINDERL.
2207         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
2208         declared when it exists. Set HAVE_DECL_REMAINDERL.
2209         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
2210         not HAVE_REMAINDERL.
2211         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
2212         HAVE_REMAINDERL.
2213         * doc/posix-functions/remainderl.texi: Mention missing declaration
2214         problem.
2215
2216 2012-03-07  Bruno Haible  <bruno@clisp.org>
2217
2218         rintf: Don't override undeclared system function on IRIX 6.5.
2219         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
2220         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
2221         exists. Set HAVE_DECL_RINTF.
2222         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
2223         HAVE_RINTF.
2224         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
2225         HAVE_RINTF.
2226         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
2227
2228 2012-03-07  Bruno Haible  <bruno@clisp.org>
2229
2230         roundl: Avoid compilation error on AIX.
2231         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
2232         AIX 5.2..7.1.
2233
2234 2012-03-07  Bruno Haible  <bruno@clisp.org>
2235
2236         roundl: Don't override undeclared system function on IRIX 6.5.
2237         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
2238         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
2239         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
2240         * modules/roundl (configure.ac): For replacement code, test
2241         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
2242         (Depends-on): Update conditions.
2243         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
2244
2245 2012-03-07  Bruno Haible  <bruno@clisp.org>
2246
2247         roundf: Don't override undeclared system function on IRIX 6.5.
2248         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
2249         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
2250         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
2251         * modules/roundf (configure.ac): For replacement code, test
2252         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
2253         (Depends-on): Update conditions.
2254         * modules/roundf-ieee (Depends-on): Update conditions.
2255         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
2256
2257 2012-03-07  Bruno Haible  <bruno@clisp.org>
2258
2259         round: Don't override undeclared system function on IRIX 6.5.
2260         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
2261         argument.
2262         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
2263         also when it is not declared. Set HAVE_ROUND. For replacement code,
2264         test HAVE_ROUND, not HAVE_DECL_ROUND.
2265         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
2266         not HAVE_DECL_ROUND.
2267         (Depends-on): Update conditions.
2268         * modules/round-ieee (Depends-on): Update conditions.
2269         * doc/posix-functions/round.texi: Mention the IRIX problem.
2270
2271 2012-03-07  Bruno Haible  <bruno@clisp.org>
2272
2273         copysignf: Don't override undeclared system function on IRIX 6.5.
2274         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
2275         HAVE_COPYSIGNF.
2276         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
2277         declared when it exists. Set HAVE_DECL_COPYSIGNF.
2278         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
2279         not HAVE_COPYSIGNF.
2280         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
2281         HAVE_COPYSIGNF.
2282         * doc/posix-functions/copysignf.texi: Mention missing declaration
2283         problem.
2284
2285 2012-03-07  Jim Meyering  <meyering@redhat.com>
2286
2287         readtokens: add tests
2288         * modules/readtokens-tests: New file.
2289         * tests/test-readtokens.c: New file.
2290
2291 2012-03-07  Jim Meyering  <meyering@redhat.com>
2292
2293         quotearg: the module must now include quote.h
2294         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
2295         So must the module.
2296         * modules/quotearg (Files): Add quote.h.
2297
2298 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
2299
2300         readtokens: avoid core dumps with unusual calling patterns
2301         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
2302         * lib/readtokens.c: Include limits.h.
2303         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
2304         (readtoken): Don't cache the delimiters; the cache code was buggy
2305         if !delim && saved_delim, or if the new n_delim differs from the old.
2306         Also, it wasn't thread-safe.
2307
2308 2012-03-07  Bruno Haible  <bruno@clisp.org>
2309
2310         quote: Adhere to common module description layout.
2311         * modules/quote (Makefile.am): Add back empty section.
2312
2313 2012-03-06  Akim Demaille  <demaille@gostai.com>
2314
2315         quote: fuse into quotearg
2316         This patch is made for the benefit of Bison.
2317         quote does not leave the choice of the quoting style to the user.
2318         quoting_style provides poor customizability, yet quoting_options,
2319         which is very rich, is hidden inside quotearg.c.  So in order to
2320         allow quote customization, move its implementation to quotearg.c.
2321         * lib/quote.c: Remove.
2322         * modules/quote: Adjust.
2323         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
2324         warning: provide all the members of literal structs.
2325         (quote_quoting_options): New.
2326         (quote, quote_n): Import implementation from quote.c.
2327         * lib/quote.h: Import the comments from quote.c.
2328         (quote_quoting_options): New.
2329
2330 2012-03-06  Bruno Haible  <bruno@clisp.org>
2331
2332         Tests for module 'expm1l-ieee'.
2333         * modules/expm1l-ieee-tests: New file.
2334         * tests/test-expm1l-ieee.c: New file.
2335
2336         New module 'expm1l-ieee'.
2337         * modules/expm1l-ieee: New file.
2338
2339         Tests for module 'expm1f-ieee'.
2340         * modules/expm1f-ieee-tests: New file.
2341         * tests/test-expm1f-ieee.c: New file.
2342
2343         New module 'expm1f-ieee'.
2344         * modules/expm1f-ieee: New file.
2345
2346         Tests for module 'expm1-ieee'.
2347         * modules/expm1-ieee-tests: New file.
2348         * tests/test-expm1-ieee.c: New file.
2349         * tests/test-expm1-ieee.h: New file.
2350
2351         New module 'expm1-ieee'.
2352         * modules/expm1-ieee: New file.
2353         * m4/expm1-ieee.m4: New file.
2354         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
2355         whether expm1 works with a minus zero argument. Replace it if not.
2356         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
2357         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
2358         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
2359         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
2360         (Depends-on): Update conditions.
2361         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
2362         AIX problem.
2363
2364 2012-03-06  Bruno Haible  <bruno@clisp.org>
2365
2366         Work around expm1f bug on IRIX 6.5.
2367         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
2368         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
2369         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
2370         not work.
2371         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
2372         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
2373         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
2374         (Depends-on): Update conditions.
2375         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
2376
2377 2012-03-06  Bruno Haible  <bruno@clisp.org>
2378
2379         Tests for module 'expm1l'.
2380         * modules/expm1l-tests: New file.
2381         * tests/test-expm1l.c: New file.
2382
2383         New module 'expm1l'.
2384         * lib/math.in.h (expm1l): New declaration.
2385         * lib/expm1l.c: New file.
2386         * m4/expm1l.m4: New file.
2387         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
2388         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
2389         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
2390         * modules/expm1l: New file.
2391         * tests/test-math-c++.cc: Check the declaration of expm1l.
2392         * doc/posix-functions/expm1l.texi: Mention the new module.
2393
2394 2012-03-06  Bruno Haible  <bruno@clisp.org>
2395
2396         Tests for module 'expm1f'.
2397         * modules/expm1f-tests: New file.
2398         * tests/test-expm1f.c: New file.
2399
2400         New module 'expm1f'.
2401         * lib/math.in.h (expm1f): New declaration.
2402         * lib/expm1f.c: New file.
2403         * m4/expm1f.m4: New file.
2404         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
2405         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
2406         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
2407         * modules/expm1f: New file.
2408         * tests/test-math-c++.cc: Check the declaration of expm1f.
2409         * doc/posix-functions/expm1f.texi: Mention the new module.
2410
2411 2012-03-06  Bruno Haible  <bruno@clisp.org>
2412
2413         Tests for module 'expm1'.
2414         * modules/expm1-tests: New file.
2415         * tests/test-expm1.c: New file.
2416         * tests/test-expm1.h: New file.
2417
2418         New module 'expm1'.
2419         * lib/math.in.h (expm1): New declaration.
2420         * lib/expm1.c: New file.
2421         * m4/expm1.m4: New file.
2422         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
2423         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
2424         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
2425         * modules/expm1: New file.
2426         * tests/test-math-c++.cc: Check the declaration of expm1.
2427         * doc/posix-functions/expm1.texi: Mention the new module.
2428
2429 2012-03-06  Bruno Haible  <bruno@clisp.org>
2430
2431         math: Ensure declarations of math functions.
2432         * modules/acosf (Depends-on): Add 'extensions'.
2433         * modules/asinf (Depends-on): Likewise.
2434         * modules/atan2f (Depends-on): Likewise.
2435         * modules/atanf (Depends-on): Likewise.
2436         * modules/cbrt (Depends-on): Likewise.
2437         * modules/cbrtf (Depends-on): Likewise.
2438         * modules/cbrtl (Depends-on): Likewise.
2439         * modules/copysignf (Depends-on): Likewise.
2440         * modules/copysignl (Depends-on): Likewise.
2441         * modules/cosf (Depends-on): Likewise.
2442         * modules/coshf (Depends-on): Likewise.
2443         * modules/expf (Depends-on): Likewise.
2444         * modules/fabsf (Depends-on): Likewise.
2445         * modules/fabsl (Depends-on): Likewise.
2446         * modules/fmaf (Depends-on): Likewise.
2447         * modules/fmal (Depends-on): Likewise.
2448         * modules/fmodf (Depends-on): Likewise.
2449         * modules/fmodl (Depends-on): Likewise.
2450         * modules/frexpf (Depends-on): Likewise.
2451         * modules/frexpl (Depends-on): Likewise.
2452         * modules/hypot (Depends-on): Likewise.
2453         * modules/hypotf (Depends-on): Likewise.
2454         * modules/hypotl (Depends-on): Likewise.
2455         * modules/ldexpf (Depends-on): Likewise.
2456         * modules/ldexpl (Depends-on): Likewise.
2457         * modules/log10f (Depends-on): Likewise.
2458         * modules/log10l (Depends-on): Likewise.
2459         * modules/log1p (Depends-on): Likewise.
2460         * modules/logb (Depends-on): Likewise.
2461         * modules/logf (Depends-on): Likewise.
2462         * modules/modff (Depends-on): Likewise.
2463         * modules/modfl (Depends-on): Likewise.
2464         * modules/powf (Depends-on): Likewise.
2465         * modules/remainderf (Depends-on): Likewise.
2466         * modules/remainderl (Depends-on): Likewise.
2467         * modules/rintf (Depends-on): Likewise.
2468         * modules/rintl (Depends-on): Likewise.
2469         * modules/sinf (Depends-on): Likewise.
2470         * modules/sinhf (Depends-on): Likewise.
2471         * modules/sqrtf (Depends-on): Likewise.
2472         * modules/tanf (Depends-on): Likewise.
2473         * modules/tanhf (Depends-on): Likewise.
2474         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
2475         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
2476         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
2477         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
2478         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
2479         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
2480         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
2481         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
2482         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
2483         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
2484         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
2485         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
2486         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
2487         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
2488         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
2489         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
2490         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
2491         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
2492         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
2493         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
2494         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
2495         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
2496         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
2497         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
2498         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
2499         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
2500         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
2501         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
2502         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
2503         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
2504         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
2505         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
2506         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
2507         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
2508         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
2509         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
2510         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
2511         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
2512         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
2513         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
2514         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
2515
2516 2012-03-06  Bruno Haible  <bruno@clisp.org>
2517
2518         math: Update module names in warnings.
2519         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
2520         tanl): Use specific module name in warn-on-use warning.
2521
2522 2012-03-06  Bruno Haible  <bruno@clisp.org>
2523
2524         expl: Simplify computation.
2525         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
2526
2527 2012-03-05  Bruno Haible  <bruno@clisp.org>
2528
2529         exp* tests: More tests.
2530         * tests/test-exp.h: New file.
2531         * tests/test-exp.c: Include <float.h> and test-exp.h.
2532         (main): Invoke test_function.
2533         * tests/test-expf.c: Include <float.h> and test-exp.h.
2534         (main): Invoke test_function.
2535         * tests/test-expl.c: Include <float.h> and test-exp.h.
2536         (main): Invoke test_function.
2537         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
2538         (Makefile.am): Add randomd.c to test_exp_SOURCES.
2539         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
2540         (Makefile.am): Add randomf.c to test_expf_SOURCES.
2541         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
2542         (Depends-on): Add 'float'.
2543         (Makefile.am): Add randoml.c to test_expl_SOURCES.
2544
2545         expl: Fix precision of computed result.
2546         * lib/expl.c: Completely rewritten.
2547         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
2548         (Maintainer): Add me.
2549         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
2550
2551 2012-03-05  Bruno Haible  <bruno@clisp.org>
2552
2553         cbrt* tests: More tests.
2554         * tests/test-cbrt.h: New file.
2555         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
2556         (main): Invoke test_function.
2557         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
2558         (main): Invoke test_function.
2559         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
2560         (main): Invoke test_function.
2561         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
2562         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
2563         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
2564         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
2565         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
2566         (Depends-on): Add 'float'.
2567         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
2568
2569 2012-03-05  Bruno Haible  <bruno@clisp.org>
2570
2571         hypot* tests: More tests.
2572         * tests/test-hypot.h: New file, partially extracted from
2573         tests/test-hypotl.c.
2574         * tests/test-hypot.c: Include test-hypot.h.
2575         (main): Invoke test_function.
2576         * tests/test-hypotf.c: Include test-hypot.h.
2577         (main): Invoke test_function.
2578         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
2579         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
2580         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
2581         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
2582         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
2583         tests/randomf.c.
2584         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
2585         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
2586         tests/randoml.c.
2587         (Depends-on): Add 'fpucw', 'float'.
2588         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
2589
2590 2012-03-05  Bruno Haible  <bruno@clisp.org>
2591
2592         fpucw: Doc about FreeBSD.
2593         * lib/fpucw.h: Mention FreeBSD in comments.
2594
2595 2012-03-04  Bruno Haible  <bruno@clisp.org>
2596
2597         sqrt* tests: More tests.
2598         * tests/test-sqrt.h: New file.
2599         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
2600         (main): Invoke test_function.
2601         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
2602         (main): Invoke test_function.
2603         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
2604         (main): Invoke test_function.
2605         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
2606         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
2607         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
2608         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
2609         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
2610         (Depends-on): Add 'float'.
2611         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
2612
2613 2012-03-04  Bruno Haible  <bruno@clisp.org>
2614
2615         remainder* tests: More tests.
2616         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
2617         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
2618         (main): Invoke test_function.
2619         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
2620         (main): Invoke test_function.
2621         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
2622         (main): Invoke test_function.
2623         * modules/remainder-tests (Files): Add tests/test-remainder.h,
2624         tests/randomd.c.
2625         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
2626         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
2627         tests/randomf.c.
2628         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
2629         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
2630         tests/randoml.c.
2631         (Depends-on): Add 'float'.
2632         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
2633
2634 2012-03-04  Bruno Haible  <bruno@clisp.org>
2635
2636         remainder, remainderf, remainderl: Fix computation for large quotients.
2637         * lib/remainder.c: Completely rewritten.
2638         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
2639         USE_FLOAT.
2640         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
2641         USE_LONG_DOUBLE.
2642         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
2643         isnand, isinf. Remove round, fma.
2644         * modules/remainderf (Files): Add lib/remainder.c.
2645         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
2646         Remove roundf, fmaf.
2647         * modules/remainderl (Files): Add lib/remainder.c.
2648         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
2649         isinf. Remove roundl, fmal.
2650         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
2651         REMAINDER_LIBM.
2652         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
2653         REMAINDERF_LIBM.
2654         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
2655         REMAINDERL_LIBM.
2656
2657 2012-03-04  Bruno Haible  <bruno@clisp.org>
2658
2659         fmod* tests: More tests.
2660         * tests/test-fmod.h (my_ldexp): New function.
2661         (test_function): Reduce amount of random numbers to test. Add tests
2662         of very large quotients x / y.
2663         * tests/test-fmod.c (MAX_EXP): New macro.
2664         * tests/test-fmodf.c (MAX_EXP): Likewise.
2665         * tests/test-fmodl.c (MAX_EXP): Likewise.
2666
2667 2012-03-04  Bruno Haible  <bruno@clisp.org>
2668
2669         fmod, fmodl: Fix computation for large quotients x / y.
2670         * lib/fmod.c: Completely rewritten.
2671         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
2672         USE_LONG_DOUBLE.
2673         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
2674         isnand. Remove fma.
2675         * modules/fmodl (Files): Add lib/fmod.c.
2676         (Depends-on): Add float, isfinite, signbit, fabsl,
2677         frexpl, ldexpl, isnanl. Remove fma.
2678         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
2679         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
2680
2681 2012-03-03  Bruno Haible  <bruno@clisp.org>
2682
2683         fmod* tests: More tests.
2684         * tests/test-fmod.h: New file.
2685         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
2686         (main): Invoke test_function.
2687         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
2688         (main): Invoke test_function.
2689         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
2690         (main): Invoke test_function.
2691         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
2692         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
2693         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
2694         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
2695         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
2696         (Depends-on): Add 'float'.
2697         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
2698
2699 2012-03-03  Bruno Haible  <bruno@clisp.org>
2700
2701         rint* tests: More tests.
2702         * tests/test-rint.h: New file, partially extracted from
2703         tests/test-rintl.c.
2704         * tests/test-rint.c: Include test-rint.h.
2705         (main): Invoke test_function.
2706         * tests/test-rintf.c: Include test-rint.h.
2707         (main): Invoke test_function.
2708         * tests/test-rintl.c: Include test-rint.h.
2709         (main): Invoke test_function.
2710         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
2711         (Makefile.am): Add randomd.c to test_rint_SOURCES.
2712         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
2713         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
2714         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
2715         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
2716
2717 2012-03-03  Bruno Haible  <bruno@clisp.org>
2718
2719         modf* tests: More tests.
2720         * tests/test-modf.h: New file.
2721         * tests/test-modf.c: Include <float.h> and test-modf.h.
2722         (main): Invoke test_function.
2723         * tests/test-modff.c: Include <float.h> and test-modf.h.
2724         (main): Invoke test_function.
2725         * tests/test-modfl.c: Include <float.h> and test-modf.h.
2726         (main): Invoke test_function.
2727         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
2728         (Makefile.am): Add randomd.c to test_modf_SOURCES.
2729         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
2730         (Makefile.am): Add randomf.c to test_modff_SOURCES.
2731         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
2732         (Depends-on): Add 'float'.
2733         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
2734
2735 2012-03-03  Bruno Haible  <bruno@clisp.org>
2736
2737         fabs* tests: More tests.
2738         * tests/test-fabs.h: New file, partially extracted from
2739         tests/test-fabsl.c.
2740         * tests/test-fabs.c (RANDOM): New macro.
2741         * tests/test-fabsf.c (RANDOM): New macro.
2742         * tests/test-fabsl.c (RANDOM): New macro.
2743         * modules/fabs-tests (Files): Add tests/randomd.c.
2744         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
2745         * modules/fabsf-tests (Files): Add tests/randomf.c.
2746         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
2747         * modules/fabsl-tests (Files): Add tests/randoml.c.
2748         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
2749
2750 2012-03-03  Bruno Haible  <bruno@clisp.org>
2751
2752         ldexp* tests: More tests.
2753         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
2754         * tests/test-ldexp.c (RANDOM): New macro.
2755         * tests/test-ldexpf.c (RANDOM): New macro.
2756         * tests/test-ldexpl.c (RANDOM): New macro.
2757         * modules/ldexp-tests (Files): Add tests/randomd.c.
2758         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
2759         * modules/ldexpf-tests (Files): Add tests/randomf.c.
2760         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
2761         * modules/ldexpl-tests (Files): Add tests/randoml.c.
2762         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
2763
2764 2012-03-03  Bruno Haible  <bruno@clisp.org>
2765
2766         frexp* tests: More tests.
2767         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
2768         * tests/test-frexp.c (RANDOM): New macro.
2769         * tests/test-frexpf.c (RANDOM): New macro.
2770         * tests/test-frexpl.c (RANDOM): New macro.
2771         * modules/frexp-tests (Files): Add tests/randomd.c.
2772         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
2773         * modules/frexpf-tests (Files): Add tests/randomf.c.
2774         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
2775         * modules/frexpl-tests (Files): Add tests/randoml.c.
2776         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
2777
2778 2012-03-03  Bruno Haible  <bruno@clisp.org>
2779
2780         Support for pseudo-random numbers in tests.
2781         * tests/randomf.c: New file.
2782         * tests/randomd.c: New file.
2783         * tests/randoml.c: New file.
2784         * tests/macros.h (randomf, randomd, randoml): New declarations.
2785
2786 2012-03-03  Bruno Haible  <bruno@clisp.org>
2787
2788         frexp* tests: Refactor.
2789         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
2790         * tests/test-frexp.c: Include and use it.
2791         * tests/test-frexpf.c: Likewise.
2792         * tests/test-frexpl.c: Likewise.
2793         * modules/frexp-tests (Files): Add tests/test-frexp.h.
2794         * modules/frexpf-tests (Files): Likewise.
2795         * modules/frexpl-tests (Files): Likewise.
2796
2797 2012-03-02  Jim Meyering  <meyering@redhat.com>
2798
2799         maint: don't specify XZ_OPT=-9ev in dist-related rule
2800         Using xz's -9 option is warranted only if you have a very large
2801         tarball (see xz's documentation for the sizes vs. presets), and
2802         requires 64MiB of memory at decompression time.
2803         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
2804         Automake's default of just "-e" is fine.  Override on a
2805         per-package basis by setting XZ_OPT e.g., in cfg.mk.
2806
2807 2012-03-01  Eric Blake  <eblake@redhat.com>
2808
2809         maint.mk: allow announcement for non-gnulib project
2810         * maint.mk (announcement): Skip gnulib version if not used.
2811
2812 2012-03-01  Jim Meyering  <meyering@redhat.com>
2813
2814         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
2815         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
2816         envvar settings cannot interfere.  Otherwise, setting envvars like
2817         prohibit=foo require=bar, etc. would cause spurious test failures.
2818
2819 2012-03-01  Eric Blake  <eblake@redhat.com>
2820
2821         maint.mk: add per-line exclusions to prohibitions
2822         * maint.mk (_sc_search_regexp): Add $exclude parameter.
2823         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
2824         (sc_const_long_option): Use it.
2825
2826 2012-03-01  Bruno Haible  <bruno@clisp.org>
2827
2828         Tests for module 'expl-ieee'.
2829         * modules/expl-ieee-tests: New file.
2830         * tests/test-expl-ieee.c: New file.
2831
2832         New module 'expl-ieee'.
2833         * modules/expl-ieee: New file.
2834
2835         Tests for module 'exp-ieee'.
2836         * modules/exp-ieee-tests: New file.
2837         * tests/test-exp-ieee.c: New file.
2838
2839         New module 'exp-ieee'.
2840         * modules/exp-ieee: New file.
2841
2842         Tests for module 'expf-ieee'.
2843         * modules/expf-ieee-tests: New file.
2844         * tests/test-expf-ieee.c: New file.
2845         * tests/test-exp-ieee.h: New file.
2846
2847         New module 'expf-ieee'.
2848         * modules/expf-ieee: New file.
2849
2850 2012-02-29  Bruno Haible  <bruno@clisp.org>
2851
2852         cbrtl-ieee: Work around test failure on IRIX 6.5.
2853         * m4/cbrtl-ieee.m4: New file.
2854         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
2855         test whether cbrtl works with a minus zero argument. Replace it if not.
2856         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
2857         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
2858         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
2859         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
2860         (Depends-on): Update conditions.
2861         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
2862         m4/signbit.m4.
2863         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
2864         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
2865         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
2866
2867         Tests for module 'cbrtl-ieee'.
2868         * modules/cbrtl-ieee-tests: New file.
2869         * tests/test-cbrtl-ieee.c: New file.
2870
2871         New module 'cbrtl-ieee'.
2872         * modules/cbrtl-ieee: New file.
2873
2874         Tests for module 'cbrt-ieee'.
2875         * modules/cbrt-ieee-tests: New file.
2876         * tests/test-cbrt-ieee.c: New file.
2877
2878         New module 'cbrt-ieee'.
2879         * modules/cbrt-ieee: New file.
2880
2881         Tests for module 'cbrtf-ieee'.
2882         * modules/cbrtf-ieee-tests: New file.
2883         * tests/test-cbrtf-ieee.c: New file.
2884         * tests/test-cbrt-ieee.h: New file.
2885
2886         New module 'cbrtf-ieee'.
2887         * modules/cbrtf-ieee: New file.
2888
2889 2012-02-29  Bruno Haible  <bruno@clisp.org>
2890
2891         cbrtf: Work around bug in IRIX 6.5 system function.
2892         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
2893         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
2894         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
2895         work.
2896         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
2897         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
2898         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
2899         (Depends-on): Update conditions.
2900         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
2901
2902 2012-02-29  Bruno Haible  <bruno@clisp.org>
2903
2904         Tests for module 'cbrtl'.
2905         * modules/cbrtl-tests: New file.
2906         * tests/test-cbrtl.c: New file.
2907
2908         New module 'cbrtl'.
2909         * lib/math.in.h (cbrtl): New declaration.
2910         * lib/cbrtl.c: New file.
2911         * m4/cbrtl.m4: New file.
2912         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
2913         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
2914         HAVE_DECL_CBRTL.
2915         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
2916         HAVE_DECL_CBRTL.
2917         * modules/cbrtl: New file.
2918         * tests/test-math-c++.cc: Check the declaration of cbrtl.
2919         * doc/posix-functions/cbrtl.texi: Mention the new module.
2920
2921 2012-02-29  Bruno Haible  <bruno@clisp.org>
2922
2923         Tests for module 'cbrtf'.
2924         * modules/cbrtf-tests: New file.
2925         * tests/test-cbrtf.c: New file.
2926
2927         New module 'cbrtf'.
2928         * lib/math.in.h (cbrtf): New declaration.
2929         * lib/cbrtf.c: New file.
2930         * m4/cbrtf.m4: New file.
2931         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
2932         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
2933         HAVE_DECL_CBRTF.
2934         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
2935         HAVE_DECL_CBRTF.
2936         * modules/cbrtf: New file.
2937         * tests/test-math-c++.cc: Check the declaration of cbrtf.
2938         * doc/posix-functions/cbrtf.texi: Mention the new module.
2939
2940 2012-02-29  Bruno Haible  <bruno@clisp.org>
2941
2942         cbrt: Provide replacement on MSVC and Minix.
2943         * lib/math.in.h (cbrt): New declaration.
2944         * lib/cbrt.c: New file.
2945         * m4/cbrt.m4: New file.
2946         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
2947         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
2948         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
2949         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
2950         (Depends-on): Add dependencies.
2951         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
2952         * tests/test-math-c++.cc: Check the declaration of cbrt.
2953         * doc/posix-functions/cbrt.texi: Mention that the module provides a
2954         replacement.
2955
2956 2012-02-29  Bruno Haible  <bruno@clisp.org>
2957
2958         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
2959         * m4/hypotl-ieee.m4: New file.
2960         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
2961         test whether hypotl works with mixed NaN and Infinity arguments.
2962         Replace it if not.
2963         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
2964         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
2965         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
2966         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
2967         (Depends-on): Update conditions.
2968         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
2969         (Depends-on): Add hypot-ieee.
2970         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
2971         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
2972
2973         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
2974         * m4/hypotf-ieee.m4: New file.
2975         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
2976         test whether hypotf works with mixed NaN and Infinity arguments.
2977         Replace it if not.
2978         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
2979         (Depends-on): Add hypot-ieee.
2980         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
2981         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
2982
2983         hypot-ieee: Work around test failure on OSF/1 and native Windows.
2984         * lib/math.in.h (hypot): New declaration.
2985         * lib/hypot.c: New file.
2986         * m4/hypot-ieee.m4: New file.
2987         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
2988         whether hypot works with mixed NaN and Infinity arguments. Replace it
2989         if not.
2990         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
2991         REPLACE_HYPOT.
2992         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
2993         * modules/hypot (Files): Add lib/hypot.c.
2994         (Depends-on): Add dependencies.
2995         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
2996         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
2997         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
2998         * tests/test-math-c++.cc: Check the declaration of hypot.
2999         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
3000
3001         Tests for module 'hypotl-ieee'.
3002         * modules/hypotl-ieee-tests: New file.
3003         * tests/test-hypotl-ieee.c: New file.
3004
3005         New module 'hypotl-ieee'.
3006         * modules/hypotl-ieee: New file.
3007
3008         Tests for module 'hypot-ieee'.
3009         * modules/hypot-ieee-tests: New file.
3010         * tests/test-hypot-ieee.c: New file.
3011
3012         New module 'hypot-ieee'.
3013         * modules/hypot-ieee: New file.
3014
3015         Tests for module 'hypotf-ieee'.
3016         * modules/hypotf-ieee-tests: New file.
3017         * tests/test-hypotf-ieee.c: New file.
3018         * tests/test-hypot-ieee.h: New file.
3019
3020         New module 'hypotf-ieee'.
3021         * modules/hypotf-ieee: New file.
3022
3023 2012-02-29  Bruno Haible  <bruno@clisp.org>
3024
3025         Remove unused variables.
3026         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
3027         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
3028         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
3029         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
3030
3031 2012-02-29  Eric Blake  <eblake@redhat.com>
3032
3033         termios: fix pid_t always, not just for tcgetsid
3034         * doc/posix-headers/termios.texi (termios.h): Mention problem.
3035         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
3036         just when building tcgetsid.
3037
3038 2012-02-29  Bruno Haible  <bruno@clisp.org>
3039
3040         Tests for module 'hypotl'.
3041         * modules/hypotl-tests: New file.
3042         * tests/test-hypotl.c: New file.
3043
3044         New module 'hypotl'.
3045         * lib/math.in.h (hypotl): New declaration.
3046         * lib/hypotl.c: New file.
3047         * m4/hypotl.m4: New file.
3048         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
3049         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
3050         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
3051         * modules/hypotl: New file.
3052         * tests/test-math-c++.cc: Check the hypotl declaration.
3053         * doc/posix-functions/hypotl.texi: Mention the new module.
3054
3055 2012-02-29  Eric Blake  <eblake@redhat.com>
3056
3057         tcgetsid: fix cygwin header bug
3058         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
3059
3060         docs: update cygwin progress
3061         * doc/posix-functions/llround.texi (llround): Added in cygwin
3062         1.7.8.
3063         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
3064         * doc/glibc-functions/program_invocation_name.texi
3065         (program_invocation_name): Likewise.
3066         * doc/glibc-functions/program_invocation_short_name.texi
3067         (program_invocation_short_name): Likewise.
3068         * doc/glibc-functions/madvise.texi (madvise): Likewise.
3069         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
3070         Likewise.
3071         * doc/posix-functions/pthread_spin_destroy.texi
3072         (pthread_spin_destroy): Added in cygwin 1.7.10.
3073         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
3074         Likewise.
3075         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
3076         Likewise.
3077         * doc/posix-functions/pthread_spin_trylock.texi
3078         (pthread_spin_trylock): Likewise.
3079         * doc/posix-functions/pthread_spin_unlock.texi
3080         (pthread_spin_unlock): Likewise.
3081         * doc/posix-functions/pthread_setschedprio.texi
3082         (pthread_setschedprio): Likewise.
3083         * doc/posix-functions/pthread_attr_getstack.texi
3084         (pthread_attr_getstack): Likewise.
3085         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
3086         (pthread_attr_getstackaddr): Likewise.
3087         * doc/glibc-functions/pthread_getattr_np.texi
3088         (pthread_getattr_np): Likewise.
3089         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
3090         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
3091         * doc/posix-functions/clock_settime.texi (clock_settime):
3092         Likewise.
3093         * doc/posix-functions/pthread_attr_getguardsize.texi
3094         (pthread_attr_getguardsize): Likewise.
3095         * doc/posix-functions/pthread_attr_setguardsize.texi
3096         (pthread_attr_setguardsize): Likewise.
3097         * doc/posix-functions/pthread_attr_setstack.texi
3098         (pthread_attr_setstack): Likewise.
3099         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
3100         (pthread_attr_setstackaddr): Likewise.
3101         * doc/posix-functions/clock_getcpuclockid.texi
3102         (clock_getcpuclockid): Likewise.
3103         * doc/posix-functions/pthread_getcpuclockid.texi
3104         (pthread_getcpuclockid): Likewise.
3105         * doc/glibc-functions/error.texi (error): Likewise.
3106         * doc/glibc-functions/error_at_line.texi (error_at_line):
3107         Likewise.
3108         * doc/glibc-functions/error_message_count.texi
3109         (error_message_count): Likewise.
3110         * doc/glibc-functions/error_one_per_line.texi
3111         (error_one_per_line): Likewise.
3112         * doc/glibc-functions/error_print_progname.texi
3113         (error_print_progname): Likewise.
3114         * doc/posix-functions/pthread_condattr_getclock.texi
3115         (pthread_condattr_getclock): Likewise.
3116         * doc/posix-functions/pthread_condattr_setclock.texi
3117         (pthread_condattr_setclock): Likewise.
3118         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
3119         Likewise.
3120         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
3121         * doc/glibc-functions/getpt.texi (getpt): Likewise.
3122         * doc/glibc-functions/get_current_dir_name.texi
3123         (get_current_dir_name): Likewise.
3124         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
3125         Likewise.
3126         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
3127         wrong return type.
3128         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
3129         1.7.11.
3130
3131 2012-02-29  Bruno Haible  <bruno@clisp.org>
3132
3133         Tests for module 'hypotf'.
3134         * modules/hypotf-tests: New file.
3135         * tests/test-hypotf.c: New file.
3136
3137         New module 'hypotf'.
3138         * lib/math.in.h (hypotf): New declaration.
3139         * lib/hypotf.c: New file.
3140         * m4/hypotf.m4: New file.
3141         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
3142         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
3143         REPLACE_HYPOTF.
3144         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
3145         REPLACE_HYPOTF.
3146         * modules/hypotf: New file.
3147         * tests/test-math-c++.cc: Check the hypotf declaration.
3148         * doc/posix-functions/hypotf.texi: Mention the new module.
3149
3150         hypot: Prepare for hypotf module.
3151         * m4/hypot.m4: New file.
3152         * modules/hypot (Files): Add m4/hypot.m4.
3153         (configure.ac): Invoke gl_FUNC_HYPOT.
3154
3155 2012-02-29  Bruno Haible  <bruno@clisp.org>
3156
3157         hypot tests: More tests.
3158         * tests/test-hypot.c: Include <float.h>.
3159         (main): Add tests about overflow and underflow.
3160
3161 2012-02-29  Bruno Haible  <bruno@clisp.org>
3162
3163         math code: Add comments.
3164         * lib/acosl.c: Add comment about related glibc source files.
3165         * lib/asinl.c: Likewise.
3166         * lib/atanl.c: Likewise.
3167         * lib/expl.c: Likewise.
3168         * lib/logl.c: Likewise.
3169         * lib/sincosl.c: Likewise.
3170         * lib/sinl.c: Likewise.
3171         * lib/tanl.c: Likewise.
3172         * lib/trigl.c: Likewise.
3173         * lib/cosl.c: Likewise. Fix comments.
3174
3175 2012-02-28  Bruno Haible  <bruno@clisp.org>
3176
3177         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
3178         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
3179         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
3180         HUGE_VALL are defined.
3181         (numeric_equald): Renamed from numeric_equal.
3182         (numeric_equalf, numeric_equall): New functions.
3183         (main): Check also HUGE_VALF, HUGE_VALL.
3184         * modules/math-tests (Files): Add tests/macros.h.
3185         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
3186         HUGE_VALL.
3187
3188 2012-02-28  Bruno Haible  <bruno@clisp.org>
3189
3190         doc: Move ISO C11 feature notes into POSIX chapters.
3191         * doc/posix-functions/aligned_alloc.texi: Renamed from
3192         doc/glibc-functions/aligned_alloc.texi.
3193         * doc/posix-functions/quick_exit.texi: Renamed from
3194         doc/glibc-functions/quick_exit.texi.
3195         * doc/posix-headers/uchar.texi: Renamed from
3196         doc/glibc-headers/uchar.texi.
3197         * doc/posix-functions/c16rtomb.texi: Renamed from
3198         doc/glibc-functions/c16rtomb.texi.
3199         * doc/posix-functions/c32rtomb.texi: Renamed from
3200         doc/glibc-functions/c32rtomb.texi.
3201         * doc/posix-functions/mbrtoc16.texi: Renamed from
3202         doc/glibc-functions/mbrtoc16.texi.
3203         * doc/posix-functions/mbrtoc32.texi: Renamed from
3204         doc/glibc-functions/mbrtoc32.texi.
3205         * doc/gnulib.texi: Update.
3206         (Glibc uchar.h): Remove section.
3207         Suggested by Eric Blake.
3208
3209 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
3210
3211         stdnoreturn: port to MSVC better
3212         MSVC standard headers use __declspec(noreturn), so #define noreturn
3213         to empty on that platform.  Reported by Bruno Haible in
3214         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
3215         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
3216         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
3217
3218 2012-02-28  Bruno Haible  <bruno@clisp.org>
3219
3220         doc: Mention new glibc headers and functions.
3221         * doc/glibc-headers/uchar.texi: New file.
3222         * doc/glibc-functions/aligned_alloc.texi: New file.
3223         * doc/glibc-functions/c16rtomb.texi: New file.
3224         * doc/glibc-functions/c32rtomb.texi: New file.
3225         * doc/glibc-functions/clock_adjtime.texi: New file.
3226         * doc/glibc-functions/fanotify_init.texi: New file.
3227         * doc/glibc-functions/fanotify_mark.texi: New file.
3228         * doc/glibc-functions/inet6_opt_append.texi: New file.
3229         * doc/glibc-functions/inet6_opt_find.texi: New file.
3230         * doc/glibc-functions/inet6_opt_finish.texi: New file.
3231         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
3232         * doc/glibc-functions/inet6_opt_init.texi: New file.
3233         * doc/glibc-functions/inet6_opt_next.texi: New file.
3234         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
3235         * doc/glibc-functions/inet6_rth_add.texi: New file.
3236         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
3237         * doc/glibc-functions/inet6_rth_init.texi: New file.
3238         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
3239         * doc/glibc-functions/inet6_rth_segments.texi: New file.
3240         * doc/glibc-functions/inet6_rth_space.texi: New file.
3241         * doc/glibc-functions/login.texi: New file.
3242         * doc/glibc-functions/mbrtoc16.texi: New file.
3243         * doc/glibc-functions/mbrtoc32.texi: New file.
3244         * doc/glibc-functions/name_to_handle_at.texi: New file.
3245         * doc/glibc-functions/ntp_gettimex.texi: New file.
3246         * doc/glibc-functions/open_by_handle_at.texi: New file.
3247         * doc/glibc-functions/prlimit.texi: New file.
3248         * doc/glibc-functions/process_vm_readv.texi: New file.
3249         * doc/glibc-functions/process_vm_writev.texi: New file.
3250         * doc/glibc-functions/recvmmsg.texi: New file.
3251         * doc/glibc-functions/scandirat.texi: New file.
3252         * doc/glibc-functions/sendmmsg.texi: New file.
3253         * doc/glibc-functions/setns.texi: New file.
3254         * doc/glibc-functions/timespec_get.texi: New file.
3255         * doc/gnulib.texi: Include them.
3256         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
3257         sections.
3258         Reported by Eric Blake.
3259
3260 2012-02-28  Bruno Haible  <bruno@clisp.org>
3261
3262         Avoid compilation errors with MSVC option -fp:strict.
3263         * lib/floor.c: Use MSVC specific pragma fenv_access.
3264         * lib/ceil.c: Likewise.
3265         * lib/trunc.c: Likewise.
3266         * lib/round.c: Likewise.
3267         * lib/rint.c: Likewise.
3268         * lib/fma.c: Likewise.
3269         * lib/integer_length.c: Likewise.
3270         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
3271         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
3272         * tests/test-floor2.c: Likewise.
3273         * tests/test-floorf2.c: Likewise.
3274         * tests/test-ceil2.c: Likewise.
3275         * tests/test-ceilf2.c: Likewise.
3276         * tests/test-trunc2.c: Likewise.
3277         * tests/test-truncf2.c: Likewise.
3278         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
3279
3280 2012-02-27  Bruno Haible  <bruno@clisp.org>
3281
3282         Tests for module 'sqrtl-ieee'.
3283         * modules/sqrtl-ieee-tests: New file.
3284         * tests/test-sqrtl-ieee.c: New file.
3285
3286         New module 'sqrtl-ieee'.
3287         * modules/sqrtl-ieee: New file.
3288
3289         Tests for module 'sqrt-ieee'.
3290         * modules/sqrt-ieee-tests: New file.
3291         * tests/test-sqrt-ieee.c: New file.
3292
3293         New module 'sqrt-ieee'.
3294         * modules/sqrt-ieee: New file.
3295
3296         Tests for module 'sqrtf-ieee'.
3297         * modules/sqrtf-ieee-tests: New file.
3298         * tests/test-sqrtf-ieee.c: New file.
3299         * tests/test-sqrt-ieee.h: New file.
3300
3301         New module 'sqrtf-ieee'.
3302         * modules/sqrtf-ieee: New file.
3303
3304 2012-02-27  Bruno Haible  <bruno@clisp.org>
3305
3306         remainderl-ieee: Work around test failure on OSF/1.
3307         * m4/remainderl-ieee.m4: New file.
3308         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
3309         present, test whether remainderl works with a zero second argument.
3310         Replace it if not.
3311         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
3312         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
3313         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
3314         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
3315         (Depends-on): Update conditions.
3316         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
3317         (Depends-on): Add remainder-ieee.
3318         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
3319         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
3320         module.
3321
3322         remainderf-ieee: Work around test failure on OSF/1.
3323         * m4/remainderf-ieee.m4: New file.
3324         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
3325         present, test whether remainderf works with a zero second argument.
3326         Replace it if not.
3327         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
3328         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
3329         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
3330         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
3331         (Depends-on): Update conditions.
3332         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
3333         (Depends-on): Add remainder-ieee.
3334         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
3335         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
3336         module.
3337
3338         remainder-ieee: Work around test failure on OSF/1.
3339         * m4/remainder-ieee.m4: New file.
3340         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
3341         present, test whether remainder works with a zero second argument.
3342         Replace it if not.
3343         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
3344         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
3345         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
3346         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
3347         (Depends-on): Update dependencies.
3348         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
3349         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
3350         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
3351
3352         Tests for module 'remainderl-ieee'.
3353         * modules/remainderl-ieee-tests: New file.
3354         * tests/test-remainderl-ieee.c: New file.
3355
3356         New module 'remainderl-ieee'.
3357         * modules/remainderl-ieee: New file.
3358
3359         Tests for module 'remainder-ieee'.
3360         * modules/remainder-ieee-tests: New file.
3361         * tests/test-remainder-ieee.c: New file.
3362
3363         New module 'remainder-ieee'.
3364         * modules/remainder-ieee: New file.
3365
3366         Tests for module 'remainderf-ieee'.
3367         * modules/remainderf-ieee-tests: New file.
3368         * tests/test-remainderf-ieee.c: New file.
3369         * tests/test-remainder-ieee.h: New file.
3370
3371         New module 'remainderf-ieee'.
3372         * modules/remainderf-ieee: New file.
3373
3374 2012-02-27  Bruno Haible  <bruno@clisp.org>
3375
3376         modff, modfl: Fix configure syntax error.
3377         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
3378         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
3379
3380 2012-02-27  Bruno Haible  <bruno@clisp.org>
3381
3382         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
3383         * m4/fmodl-ieee.m4: New file.
3384         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
3385         whether fmodl works with zero arguments. Replace it if not.
3386         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
3387         (Depends-on): Add fmod-ieee.
3388         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
3389         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
3390
3391         fmodf-ieee: Work around test failure on OSF/1.
3392         * m4/fmodf-ieee.m4: New file.
3393         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
3394         whether fmodf works with zero arguments. Replace it if not.
3395         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
3396         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
3397         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
3398         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
3399         (Depends-on): Update dependencies.
3400         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
3401         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
3402         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
3403
3404         fmodf-ieee: Work around test failure on MSVC 9.
3405         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
3406         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
3407
3408         fmod-ieee: Work around test failures on OSF/1, mingw.
3409         * m4/fmod-ieee.m4: New file.
3410         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
3411         whether fmod works with zero arguments. Replace it if not.
3412         * lib/math.in.h (fmod): New declaration.
3413         * lib/fmod.c: New file.
3414         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
3415         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
3416         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
3417         * modules/fmod (Files): Add lib/fmod.c.
3418         (Depends-on): Add math, isinf, trunc, fma.
3419         (configure.ac): Arrange to compile lib/fmod.c if needed.
3420         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
3421         m4/signbit.m4.
3422         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
3423         * tests/test-math-c++.cc: Check the declaration of fmod.
3424         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
3425
3426         fmodl-ieee: Fix test failures.
3427         * lib/fmodl.c (fmodl): Treat Inf specially.
3428         * modules/fmodl (Depends-on): Add isinf.
3429
3430         Tests for module 'fmodl-ieee'.
3431         * modules/fmodl-ieee-tests: New file.
3432         * tests/test-fmodl-ieee.c: New file.
3433
3434         New module 'fmodl-ieee'.
3435         * modules/fmodl-ieee: New file.
3436
3437         Tests for module 'fmod-ieee'.
3438         * modules/fmod-ieee-tests: New file.
3439         * tests/test-fmod-ieee.c: New file.
3440
3441         New module 'fmod-ieee'.
3442         * modules/fmod-ieee: New file.
3443
3444         Tests for module 'fmodf-ieee'.
3445         * modules/fmodf-ieee-tests: New file.
3446         * tests/test-fmodf-ieee.c: New file.
3447         * tests/test-fmod-ieee.h: New file.
3448
3449         New module 'fmodf-ieee'.
3450         * modules/fmodf-ieee: New file.
3451
3452 2012-02-27  Bruno Haible  <bruno@clisp.org>
3453
3454         Tests for module 'rintl-ieee'.
3455         * modules/rintl-ieee-tests: New file.
3456         * tests/test-rintl-ieee.c: New file.
3457
3458         New module 'rintl-ieee'.
3459         * modules/rintl-ieee: New file.
3460
3461         Tests for module 'rint-ieee'.
3462         * modules/rint-ieee-tests: New file.
3463         * tests/test-rint-ieee.c: New file.
3464
3465         New module 'rint-ieee'.
3466         * modules/rint-ieee: New file.
3467
3468         Tests for module 'rintf-ieee'.
3469         * modules/rintf-ieee-tests: New file.
3470         * tests/test-rintf-ieee.c: New file.
3471         * tests/test-rint-ieee.h: New file.
3472
3473         New module 'rintf-ieee'.
3474         * modules/rintf-ieee: New file.
3475
3476 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
3477
3478         regex: re_search etc. should return -2 when memory exhausted
3479         This bug was uncovered when testing 'grep'.  Without the fix,
3480         re_search and friends return -1 when memory is exhausted, but -1
3481         means no match, and this causes grep to falsely report no-match
3482         instead of memory-exhaustion.  See
3483         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
3484         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
3485         trouble; this can occur if re_search_internal ran out of memory.
3486
3487 2012-02-26  Bruno Haible  <bruno@clisp.org>
3488
3489         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
3490         * m4/modfl-ieee.m4: New file.
3491         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
3492         whether modfl works with Inf. Replace it if not.
3493         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
3494         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
3495         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
3496         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
3497         (Depends-on): Update dependencies.
3498         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
3499         m4/signbit.m4.
3500         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
3501         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
3502
3503         modfl-ieee: Fix dependencies.
3504         * modules/modfl-ieee (Depends-on): Add modf-ieee.
3505
3506         modfl-ieee: Fix test failures.
3507         * lib/modfl.c (modfl): Treat NaN and Inf specially.
3508         * modules/modfl (Depends-on): Add isfinite, isinf.
3509
3510         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
3511         * m4/modff-ieee.m4: New file.
3512         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
3513         whether modff works with NaN and Inf. Replace it if not.
3514         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
3515         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
3516         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
3517         * modules/modff (configure.ac): Consider REPLACE_MODFF.
3518         (Depends-on): Update dependencies.
3519         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
3520         m4/signbit.m4.
3521         (Depends-on): Add modf-ieee.
3522         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
3523         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
3524
3525         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
3526         * m4/modf-ieee.m4: New file.
3527         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
3528         whether modf works with NaN and Inf. Replace it if not.
3529         * lib/math.in.h (modf): New declaration.
3530         * lib/modf.c: New file.
3531         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
3532         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
3533         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
3534         * modules/modf (Files): Add lib/modf.c.
3535         (Depends-on): Add math, isfinite, trunc, isinf.
3536         (configure.ac): Addrange to compile lib/modf.c if needed.
3537         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
3538         m4/signbit.m4.
3539         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
3540         * tests/test-math-c++.cc: Check the declaration of modf.
3541         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
3542
3543         Tests for module 'modfl-ieee'.
3544         * modules/modfl-ieee-tests: New file.
3545         * tests/test-modfl-ieee.c: New file.
3546
3547         New module 'modfl-ieee'.
3548         * modules/modfl-ieee: New file.
3549
3550         Tests for module 'modf-ieee'.
3551         * modules/modf-ieee-tests: New file.
3552         * tests/test-modf-ieee.c: New file.
3553
3554         New module 'modf-ieee'.
3555         * modules/modf-ieee: New file.
3556
3557         Tests for module 'modff-ieee'.
3558         * modules/modff-ieee-tests: New file.
3559         * tests/test-modff-ieee.c: New file.
3560         * tests/test-modf-ieee.h: New file.
3561
3562         New module 'modff-ieee'.
3563         * modules/modff-ieee: New file.
3564
3565 2012-02-26  Bruno Haible  <bruno@clisp.org>
3566
3567         Tests for module 'fabsl-ieee'.
3568         * modules/fabsl-ieee-tests: New file.
3569         * tests/test-fabsl-ieee.c: New file.
3570
3571         New module 'fabsl-ieee'.
3572         * modules/fabsl-ieee: New file.
3573
3574         Tests for module 'fabs-ieee'.
3575         * modules/fabs-ieee-tests: New file.
3576         * tests/test-fabs-ieee.c: New file.
3577
3578         New module 'fabs-ieee'.
3579         * modules/fabs-ieee: New file.
3580
3581         Tests for module 'fabsf-ieee'.
3582         * modules/fabsf-ieee-tests: New file.
3583         * tests/test-fabsf-ieee.c: New file.
3584         * tests/test-fabs-ieee.h: New file.
3585
3586         New module 'fabsf-ieee'.
3587         * modules/fabsf-ieee: New file.
3588
3589 2012-02-26  Bruno Haible  <bruno@clisp.org>
3590
3591         Tests for module 'fmal-ieee'.
3592         * modules/fmal-ieee-tests: New file.
3593         * tests/test-fmal-ieee.c: New file.
3594
3595         New module 'fmal-ieee'.
3596         * modules/fmal-ieee: New file.
3597
3598         Tests for module 'fma-ieee'.
3599         * modules/fma-ieee-tests: New file.
3600         * tests/test-fma-ieee.c: New file.
3601
3602         New module 'fma-ieee'.
3603         * modules/fma-ieee: New file.
3604
3605         Tests for module 'fmaf-ieee'.
3606         * modules/fmaf-ieee-tests: New file.
3607         * tests/test-fmaf-ieee.c: New file.
3608         * tests/test-fma-ieee.h: New file.
3609
3610         New module 'fmaf-ieee'.
3611         * modules/fmaf-ieee: New file.
3612
3613 2012-02-26  Bruno Haible  <bruno@clisp.org>
3614
3615         Tests for module 'ldexpl-ieee'.
3616         * modules/ldexpl-ieee-tests: New file.
3617         * tests/test-ldexpl-ieee.c: New file.
3618
3619         New module 'ldexpl-ieee'.
3620         * modules/ldexpl-ieee: New file.
3621
3622         Tests for module 'ldexp-ieee'.
3623         * modules/ldexp-ieee-tests: New file.
3624         * tests/test-ldexp-ieee.c: New file.
3625
3626         New module 'ldexp-ieee'.
3627         * modules/ldexp-ieee: New file.
3628
3629         Tests for module 'ldexpf-ieee'.
3630         * modules/ldexpf-ieee-tests: New file.
3631         * tests/test-ldexpf-ieee.c: New file.
3632         * tests/test-ldexp-ieee.h: New file.
3633
3634         New module 'ldexpf-ieee'.
3635         * modules/ldexpf-ieee: New file.
3636
3637 2012-02-26  Bruno Haible  <bruno@clisp.org>
3638
3639         Refactor frexp*-ieee tests.
3640         * tests/test-frexp-ieee.h: New file.
3641         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
3642         (main): Just call test_function.
3643         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
3644         (main): Just call test_function.
3645         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
3646         (main): Just call test_function.
3647         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
3648         * modules/frexp-ieee-tests (Files): Likewise.
3649         * modules/frexpl-ieee-tests (Files): Likewise.
3650
3651         Tests for module 'frexpl-ieee'.
3652         * modules/frexpl-ieee-tests: New file.
3653         * tests/test-frexpl-ieee.c: New file.
3654
3655         New module 'frexpl-ieee'.
3656         * modules/frexpl-ieee: New file.
3657
3658         Tests for module 'frexp-ieee'.
3659         * modules/frexp-ieee-tests: New file.
3660         * tests/test-frexp-ieee.c: New file.
3661
3662         New module 'frexp-ieee'.
3663         * modules/frexp-ieee: New file.
3664
3665         Tests for module 'frexpf-ieee'.
3666         * modules/frexpf-ieee-tests: New file.
3667         * tests/test-frexpf-ieee.c: New file.
3668
3669         New module 'frexpf-ieee'.
3670         * modules/frexpf-ieee: New file.
3671
3672 2012-02-26  Bruno Haible  <bruno@clisp.org>
3673
3674         roundl-ieee tests: More tests.
3675         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
3676         (main): Add tests for [MX] shaded specification in POSIX.
3677         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3678         (Depends-on): Add isnanl-nolibm.
3679
3680         round-ieee tests: More tests.
3681         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
3682         (main): Add tests for [MX] shaded specification in POSIX.
3683         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3684         (Depends-on): Add isnand-nolibm.
3685
3686         roundf-ieee tests: More tests.
3687         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
3688         (main): Add tests for [MX] shaded specification in POSIX.
3689         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3690         (Depends-on): Add isnanf-nolibm.
3691
3692         truncl-ieee tests: More tests.
3693         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
3694         (main): Add tests for [MX] shaded specification in POSIX.
3695         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3696         (Depends-on): Add isnanl-nolibm.
3697
3698         trunc-ieee tests: More tests.
3699         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
3700         (main): Add tests for [MX] shaded specification in POSIX.
3701         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3702         (Depends-on): Add isnand-nolibm.
3703
3704         truncf-ieee tests: More tests.
3705         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
3706         (main): Add tests for [MX] shaded specification in POSIX.
3707         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3708         (Depends-on): Add isnanf-nolibm.
3709
3710         ceill-ieee tests: More tests.
3711         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
3712         (main): Add tests for [MX] shaded specification in POSIX.
3713         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3714         (Depends-on): Add isnanl-nolibm.
3715
3716         ceil-ieee tests: More tests.
3717         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
3718         (main): Add tests for [MX] shaded specification in POSIX.
3719         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3720         (Depends-on): Add isnand-nolibm.
3721
3722         ceilf-ieee tests: More tests.
3723         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
3724         (main): Add tests for [MX] shaded specification in POSIX.
3725         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3726         (Depends-on): Add isnanf-nolibm.
3727
3728         floorl-ieee tests: More tests.
3729         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
3730         (main): Add tests for [MX] shaded specification in POSIX.
3731         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3732         (Depends-on): Add isnanl-nolibm.
3733
3734         floor-ieee tests: More tests.
3735         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
3736         (main): Add tests for [MX] shaded specification in POSIX.
3737         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3738         (Depends-on): Add isnand-nolibm.
3739
3740         floorf-ieee tests: More tests.
3741         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
3742         (main): Add tests for [MX] shaded specification in POSIX.
3743         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3744         (Depends-on): Add isnanf-nolibm.
3745
3746 2012-02-26  Bruno Haible  <bruno@clisp.org>
3747
3748         fpieee: More comments.
3749         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
3750
3751 2012-02-25  Bruno Haible  <bruno@clisp.org>
3752
3753         Tests for module 'log10l'.
3754         * modules/log10l-tests: New file.
3755         * tests/test-log10l.c: New file.
3756         * tests/test-math-c++.cc: Check the declaration of log10l.
3757
3758         New module 'log10l'.
3759         * lib/math.in.h (log10l): New declaration.
3760         * lib/log10l.c: New file.
3761         * m4/log10l.m4: New file.
3762         * modules/log10l: New file.
3763         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
3764         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
3765         HAVE_DECL_LOG10L.
3766         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
3767         HAVE_DECL_LOG10L.
3768         * doc/posix-functions/log10l.texi: Mention the new module.
3769
3770 2012-02-25  Bruno Haible  <bruno@clisp.org>
3771
3772         fmodl, remainder*: Avoid wrong results due to rounding errors.
3773         * lib/fmodl.c (fmodl): Correct the result if it is not within the
3774         expected bounds.
3775         * lib/remainderf.c (remainderf): Likewise.
3776         * lib/remainder.c (remainder): Likewise.
3777         * lib/remainderl.c (remainderl): Likewise.
3778
3779 2012-02-25  Bruno Haible  <bruno@clisp.org>
3780
3781         Tests for module 'remainderl'.
3782         * modules/remainderl-tests: New file.
3783         * tests/test-remainderl.c: New file.
3784         * tests/test-math-c++.cc: Check the declaration of remainderl.
3785
3786         New module 'remainderl'.
3787         * lib/math.in.h (remainderl): New declaration.
3788         * lib/remainderl.c: New file.
3789         * m4/remainderl.m4: New file.
3790         * modules/remainderl: New file.
3791         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
3792         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
3793         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
3794         HAVE_REMAINDERL.
3795         * doc/posix-functions/remainderl.texi: Mention the new module.
3796
3797 2012-02-25  Bruno Haible  <bruno@clisp.org>
3798
3799         Tests for module 'remainderf'.
3800         * modules/remainderf-tests: New file.
3801         * tests/test-remainderf.c: New file.
3802         * tests/test-math-c++.cc: Check the declaration of remainderf.
3803
3804         New module 'remainderf'.
3805         * lib/math.in.h (remainderf): New declaration.
3806         * lib/remainderf.c: New file.
3807         * m4/remainderf.m4: New file.
3808         * modules/remainderf: New file.
3809         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
3810         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
3811         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
3812         HAVE_REMAINDERF.
3813         * doc/posix-functions/remainderf.texi: Mention the new module.
3814
3815 2012-02-25  Bruno Haible  <bruno@clisp.org>
3816
3817         remainder: Support for MSVC.
3818         * lib/math.in.h (remainder): New declaration.
3819         * lib/remainder.c: New file.
3820         * m4/remainder.m4: New file.
3821         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
3822         (Depends-on): Add math, round, fma.
3823         (configure.ac): Use results of gl_FUNC_REMAINDER.
3824         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
3825         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
3826         HAVE_DECL_REMAINDER.
3827         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
3828         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
3829         * tests/test-math-c++.cc: Check the declaration of remainder.
3830         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
3831         problems are fixed.
3832
3833 2012-02-25  Bruno Haible  <bruno@clisp.org>
3834
3835         Tests for module 'fmodl'.
3836         * modules/fmodl-tests: New file.
3837         * tests/test-fmodl.c: New file.
3838         * tests/test-math-c++.cc: Check the declaration of fmodl.
3839
3840         New module 'fmodl'.
3841         * lib/math.in.h (fmodl): New declaration.
3842         * lib/fmodl.c: New file.
3843         * m4/fmodl.m4: New file.
3844         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
3845         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
3846         REPLACE_FMODL.
3847         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
3848         REPLACE_FMODL.
3849         * modules/fmodl: New file.
3850         * doc/posix-functions/fmodl.texi: Mention the new module.
3851
3852 2012-02-25  Bruno Haible  <bruno@clisp.org>
3853
3854         Tests for module 'modfl'.
3855         * modules/modfl-tests: New file.
3856         * tests/test-modfl.c: New file.
3857         * tests/test-math-c++.cc: Check the declaration of modfl.
3858
3859         New module 'modfl'.
3860         * lib/math.in.h (modfl): New declaration.
3861         * lib/modfl.c: New file.
3862         * m4/modfl.m4: New file.
3863         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
3864         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
3865         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
3866         * modules/modfl: New file.
3867         * doc/posix-functions/modfl.texi: Mention the new module.
3868
3869 2012-02-25  Bruno Haible  <bruno@clisp.org>
3870
3871         Tests for module 'fabsl'.
3872         * modules/fabsl-tests: New file.
3873         * tests/test-fabsl.c: New file.
3874         * tests/test-math-c++.cc: Check the declaration of fabsl.
3875
3876         New module 'fabsl'.
3877         * lib/math.in.h (fabsl): New declaration.
3878         * lib/fabsl.c: New file.
3879         * m4/fabsl.m4: New file.
3880         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
3881         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
3882         REPLACE_FABSL.
3883         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
3884         REPLACE_FABSL.
3885         * modules/fabsl: New file.
3886         * doc/posix-functions/fabsl.texi: Mention the new module.
3887
3888 2012-02-25  Bruno Haible  <bruno@clisp.org>
3889
3890         fabs tests: More tests.
3891         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
3892         (zero): New variable.
3893         (main): Add tests for signed zero.
3894         * modules/fabs-tests (Files): Add tests/minus-zero.h.
3895
3896         fabsf tests: More tests.
3897         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
3898         (zero): New variable.
3899         (main): Add tests for signed zero.
3900         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
3901
3902 2012-02-24  Bruno Haible  <bruno@clisp.org>
3903
3904         atanl: Provide function definition on MSVC.
3905         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
3906         function pointer.
3907         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
3908
3909 2012-02-24  Bruno Haible  <bruno@clisp.org>
3910
3911         acosl: Provide function definition on MSVC.
3912         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
3913         function pointer.
3914         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
3915
3916 2012-02-24  Bruno Haible  <bruno@clisp.org>
3917
3918         asinl: Provide function definition on MSVC.
3919         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
3920         function pointer.
3921         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
3922
3923 2012-02-24  Bruno Haible  <bruno@clisp.org>
3924
3925         tanl: Provide function definition on MSVC.
3926         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
3927         function pointer.
3928         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
3929
3930 2012-02-24  Bruno Haible  <bruno@clisp.org>
3931
3932         cosl: Provide function definition on MSVC.
3933         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
3934         function pointer.
3935         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
3936
3937 2012-02-24  Bruno Haible  <bruno@clisp.org>
3938
3939         sinl: Provide function definition on MSVC.
3940         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
3941         function pointer.
3942         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
3943
3944 2012-02-24  Bruno Haible  <bruno@clisp.org>
3945
3946         logl: Provide function definition on MSVC.
3947         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
3948         function pointer.
3949         * lib/math.in.h (logl): Undefine if it does not exist as a function.
3950
3951 2012-02-24  Bruno Haible  <bruno@clisp.org>
3952
3953         expl: Provide function definition on MSVC.
3954         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
3955         function pointer.
3956         * lib/math.in.h (expl): Undefine if it does not exist as a function.
3957
3958 2012-02-24  Bruno Haible  <bruno@clisp.org>
3959
3960         sqrtl: Provide function definition on MSVC.
3961         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
3962         a function pointer.
3963         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
3964
3965 2012-02-24  Bruno Haible  <bruno@clisp.org>
3966
3967         ceill: Provide function definition on MSVC.
3968         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
3969         used as a function pointer.
3970         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
3971
3972 2012-02-24  Bruno Haible  <bruno@clisp.org>
3973
3974         floorl: Provide function definition on MSVC.
3975         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
3976         used as a function pointer.
3977         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
3978
3979 2012-02-24  Bruno Haible  <bruno@clisp.org>
3980
3981         ceilf: Provide function definition on MSVC.
3982         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
3983         used as a function pointer.
3984         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
3985
3986 2012-02-24  Bruno Haible  <bruno@clisp.org>
3987
3988         floorf: Provide function definition on MSVC.
3989         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
3990         used as a function pointer.
3991         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
3992
3993 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
3994
3995         stdnoreturn: new module
3996         This implements a replacement for C11's <stdnoreturn.h>.
3997         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
3998         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
3999         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
4000         * tests/test-stdnoreturn.c: New files.
4001
4002 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
4003
4004         regex: fix false multibyte matches in some regular expressions
4005         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
4006         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
4007         * lib/regex_internal.c (re_string_skip_chars):
4008         Fix miscomputation of remain_len that may cause incomplete
4009         multi-byte character and false match.
4010
4011 2012-02-24  Jim Meyering  <meyering@redhat.com>
4012
4013         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
4014         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
4015         uses with "==" *before* the call, e.g., 0 == strcmp (...)
4016         Remove now-unnecessary str''cmp obfuscation.
4017         Suggested by Akim Demaille.
4018
4019 2012-02-24  Bruno Haible  <bruno@clisp.org>
4020
4021         streq: Rename macro.
4022         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
4023         * NEWS: Mention the change.
4024         * lib/mbrtowc.c (mbrtowc): Update.
4025         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
4026         * lib/wcwidth.c (wcwidth): Update.
4027         Suggested by Akim Demaille and Jim Meyering.
4028
4029 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
4030
4031         regex: fix typo in definition of MIN
4032         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
4033         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
4034
4035 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
4036             Bruno Haible  <bruno@clisp.org>
4037
4038         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
4039         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
4040         entries into a stack-allocated buffer directly.
4041         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
4042
4043 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
4044             Bruno Haible  <bruno@clisp.org>
4045
4046         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
4047
4048          - There were several instances of this pattern:
4049
4050              for (;;) {
4051                n = acl (f, GETACLCNT, 0, NULL);
4052                [ allocate an array A of size N ]
4053                if (acl (f, GETACL, n, a) == n)
4054                  break;
4055              }
4056
4057            This loop might never terminate if some other process is constantly
4058            manipulating the file's ACL.  The loop should be rewritten to
4059            terminate.
4060
4061          - The acl (... GETACLNT ...) call is merely an optimization; its value
4062            is merely a hint as to how big to make the array.  A better
4063            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
4064            and just guess a reasonably-big size, growing the size and trying
4065            again if it's not large enough.  This guarantees termination, and
4066            saves a system call.
4067
4068         * lib/acl-internal.h: Include <limits.h>.
4069         (MIN, SIZE_MAX): New macros.
4070         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
4071         a stack-allocated buffer, and use malloc if it does not fit. Don't
4072         use GETACLCNT.
4073         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
4074
4075 2012-02-19  Bruno Haible  <bruno@clisp.org>
4076
4077         acl: Fix endless loop on Solaris with vxfs.
4078         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
4079         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
4080         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
4081         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
4082         * tests/test-sameacls.c (main)[Solaris]: Likewise.
4083         Reported by Bill Jones in
4084         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
4085
4086 2012-02-19  Bruno Haible  <bruno@clisp.org>
4087
4088         acl: Fix copy-acl test failure on Solaris 11 2011-11.
4089         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
4090         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
4091         that this function returns 0 in some more cases.
4092
4093 2012-02-19  Bruno Haible  <bruno@clisp.org>
4094
4095         acl: Update doc references.
4096         * doc/acl-resources.txt: Update links to Solaris documentation.
4097
4098 2012-02-19  Bruno Haible  <bruno@clisp.org>
4099
4100         Fix test failure in many locales on Solaris 11.
4101         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
4102         'tr' arguments.
4103         * tests/test-pipe-filter-ii1.c (main): Likewise.
4104         * build-aux/bootstrap (check_versions): Run 'tr' command with range
4105         expressions in the C locale.
4106         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
4107         * m4/host-os.m4 (gl_HOST_OS): Likewise.
4108
4109 2012-02-19  Bruno Haible  <bruno@clisp.org>
4110
4111         gnulib-tool: Improve usage message.
4112         * gnulib-tool (func_usage): Move doc of --help and --version to the
4113         section "Operation modes".
4114
4115 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
4116
4117         README-release: make it easier to execute commands
4118         * top/README-release: break commands out on to separate lines.
4119
4120 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
4121
4122         GNUmakefile: simplify detection of unconfigured trees
4123         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
4124         whether the tree make is being run from is already configured or
4125         not.  Related simplifications.
4126
4127 2012-02-13  Simon Josefsson  <simon@josefsson.org>
4128
4129         * gnulib-tool (func_usage): Document --help and --version.
4130
4131 2012-02-11  Jim Meyering  <meyering@redhat.com>
4132
4133         bootstrap: don't exit 0 upon gnulib-tool failure
4134         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
4135         its exit status, not 0.
4136
4137 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
4138
4139         README-release: various improvements
4140         * top/README-release: Give a command to push changes for the
4141         release.  Add "distcheck" to list of other pre-release checks.
4142         Fix instance of "make stable" which should be "make TYPE".
4143
4144 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
4145
4146         maint: replace FSF snail-mail addresses with URLs
4147         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
4148         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
4149         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
4150         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
4151         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
4152         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
4153         * lib/check-version.c, lib/check-version.h, lib/config.charset:
4154         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
4155         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
4156         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
4157         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
4158         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
4159         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
4160         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
4161         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
4162         * lib/glthread/thread.c, lib/glthread/thread.h:
4163         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
4164         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
4165         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
4166         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
4167         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
4168         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
4169         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
4170         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
4171         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
4172         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
4173         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
4174         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
4175         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
4176         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
4177         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
4178         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
4179         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
4180         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
4181         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
4182         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
4183         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
4184         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
4185         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
4186         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
4187         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
4188         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
4189         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
4190         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
4191         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
4192         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
4193         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
4194         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
4195         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
4196         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
4197         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
4198         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
4199         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
4200         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
4201         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
4202         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
4203         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
4204         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
4205         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
4206         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
4207         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
4208         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
4209         * tests/test-poll.c, tests/test-quotearg-simple.c:
4210         * tests/test-quotearg.c, tests/test-quotearg.h:
4211         * tests/test-round-ieee.c, tests/test-round1.c:
4212         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
4213         * tests/test-roundl-ieee.c, tests/test-roundl.c:
4214         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
4215         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
4216         * tests/test-strerror.c, tests/test-strerror_r.c:
4217         * tests/test-strsignal.c, tests/test-strverscmp.c:
4218         * tests/test-xmemdup0.c:
4219         Replace FSF snail mail addresses with URLs, as per GNU coding
4220         standards.  See glibc bug
4221         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
4222
4223 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
4224
4225         README-release: capitalize a word and split a line
4226         * top/README-release: Fix punctuation and spacing.
4227
4228 2012-02-08  Akim Demaille  <demaille@gostai.com>
4229
4230         fatal-signal: use C prototypes (with explicit void).
4231         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
4232         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
4233
4234 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
4235
4236         regex: spelling fix
4237         * lib/regexec.c: spelling fix
4238
4239         regex: rely on stdint.h for SIZE_MAX
4240         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
4241
4242 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
4243
4244         regex: merge glibc changes
4245
4246         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
4247         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
4248         (init_word_char): Work even if bitset words are not exactly 32 or
4249         64 bits wide.  Don't assume there are no padding bits.
4250         * lib/regex.c [_LIBC]: Do not include <config.h>.
4251         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
4252         and -Wtype-limits.
4253         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
4254         needless disagreement with glibc.  All uses changed.  Define it to
4255         1 only if _GNU_SOURCE, to match glibc.
4256         (_REG_RM_NAME): Remove; no longer needed, since the names in
4257         question are now all protected by __USE_GNU.
4258         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
4259         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
4260         * lib/regex_internal.h (MIN): New macro.
4261
4262         2012-01-03 Ulrich Drepper <drepper@gmail.com>
4263         * lib/regcomp.c (init_word_char): Optimize regex a bit.
4264
4265         2011-12-30 Jakub Jelinek <jakub@redhat.com>
4266         * lib/regex_internal.c (re_string_fetch_byte_case):
4267         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
4268         is miscompiled, and it turns out it is because of an incorrect
4269         attribute on re_string_fetch_byte_case.  Unlike
4270         re_string_peek_byte_case, this one is really not pure, it modifies
4271         memory (increments pstr->cur_idx), and with the pure attribute GCC
4272         assumed it doesn't and it cached the presumed value of
4273         regexp->cur_idx in a variable across the
4274          for (;; ++i)
4275            {
4276              if (i >= BRACKET_NAME_BUF_SIZE)
4277                return REG_EBRACK;
4278              if (token->type == OP_OPEN_CHAR_CLASS)
4279                ch = re_string_fetch_byte_case (regexp);
4280              else
4281                ch = re_string_fetch_byte (regexp);
4282              if (re_string_eoi(regexp))
4283                return REG_EBRACK;
4284              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
4285                break;
4286              elem->opr.name[i] = ch;
4287            }
4288
4289         2011-11-29 Andreas Schwab <schwab@redhat.com>
4290         * lib/regcomp.c (build_equiv_class):
4291         Fix access after end of search string in regex matcher.
4292
4293         2011-11-12 Ulrich Drepper <drepper@redhat.com>
4294         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
4295
4296         2011-10-12 Ulrich Drepper <drepper@redhat.com>
4297         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
4298
4299         2011-10-11 Ulrich Drepper <drepper@redhat.com>
4300         * lib/regcomp.c (parse_branch, parse_sub_exp):
4301         More regex memory leak fixes and tests.
4302         (parse_sub_exp, parse_bracket_exp):
4303         Fix memory leak for some invalid regular expressions.
4304
4305         2011-05-28 Ulrich Drepper <drepper@gmail.com>
4306         * lib/regex_internal.c, lib/regexec.c:
4307         Fix unnecessary overallocation due to incomplete character.  When
4308         incomplete characters are found at the end of a string the code
4309         ran amok and allocated lots of memory.  Stricter limits are now in
4310         place.
4311
4312         2011-05-20 Reuben Thomas <rrt@sc3d.org>
4313         * lib/regex.h: Update documentation.
4314
4315         2011-05-16 Aharon Robbins <arnold@skeeve.com>
4316         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
4317
4318         2010-05-05 Andreas Schwab <schwab@redhat.com>
4319         * lib/regexec.c (find_collation_sequence_value):
4320         Fix lookup of collation sequence value during regexp matching.
4321
4322         2010-01-22 Ulrich Drepper <drepper@redhat.com>
4323         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
4324
4325         2008-01-16 Ulrich Drepper <drepper@redhat.com>
4326         * lib/regex.h: Cleanup namespace.
4327
4328         2007-11-26 Ulrich Drepper <drepper@redhat.com>
4329         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
4330
4331         2007-08-26 Ulrich Drepper <drepper@redhat.com>
4332         * lib/regex_internal.h: Prevent some declarations and definitions
4333         to be seen when used in tests.
4334
4335         2005-05-06 Ulrich Drepper <drepper@redhat.com>
4336         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
4337         __libc_lock_* macros if not _LIBC.
4338         (struct re_dfa_t): Add lock.
4339
4340 2012-02-07  Eric Blake  <eblake@redhat.com>
4341
4342         maint.mk: also prohibit lower-case @var@
4343         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
4344         lower case, like @top_srcdir@.
4345
4346 2012-02-04  Eric Blake  <eblake@redhat.com>
4347
4348         canonicalize: avoid uninitialized memory use
4349         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
4350         random '/' left in dest.
4351         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
4352
4353 2012-02-04  Bruno Haible  <bruno@clisp.org>
4354
4355         isatty: Fix test failure of ptsname_r on native Windows.
4356         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
4357         and don't set errno.
4358         (isatty): Test first whether fd is valid. Set errno when returning 0.
4359
4360 2012-02-04  Bruno Haible  <bruno@clisp.org>
4361
4362         spawn-pipe tests: Fix a NULL program name in a diagnostic.
4363         * tests/test-spawn-pipe-main.c: Include progname.h.
4364         (main): Invoke set_program_name.
4365         * modules/spawn-pipe-tests (Depends-on): Add progname.
4366
4367         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
4368         * tests/test-nonblocking-socket-main.c: Include progname.h.
4369         (main): Invoke set_program_name.
4370         * modules/nonblocking-socket-tests (Depends-on): Add progname.
4371
4372         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
4373         * tests/test-nonblocking-pipe-main.c: Include progname.h.
4374         (main): Invoke set_program_name.
4375         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
4376
4377 2012-02-04  Eric Blake  <eblake@redhat.com>
4378
4379         canonicalize-lgpl: fix // handling
4380         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
4381
4382         canonicalize: fix // handling
4383         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
4384         /// to //, since only // is special.
4385
4386 2012-02-04  Bruno Haible  <bruno@clisp.org>
4387
4388         ioctl: Fix test failure on native Windows.
4389         * lib/ioctl.c: Include msvc-nothrow.h.
4390         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
4391
4392 2012-02-04  Bruno Haible  <bruno@clisp.org>
4393
4394         fsync: Avoid test failure on native Windows.
4395         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
4396         read-only.
4397
4398 2012-02-04  Bruno Haible  <bruno@clisp.org>
4399
4400         sys_select: Avoid syntax error on OpenBSD 5.0.
4401         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
4402         currently being included, just include the system's <sys/select.h>.
4403
4404 2012-02-04  Bruno Haible  <bruno@clisp.org>
4405
4406         sys_select: Avoid syntax error on OpenBSD 5.0.
4407         * lib/sys_select.in.h: Include <signal.h> only after the include_next
4408         <sys/select.h>, not before.
4409         Reported by Jiri B <jirib@devio.us>.
4410
4411 2012-02-04  Bruno Haible  <bruno@clisp.org>
4412
4413         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
4414         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
4415         global variables.
4416         * tests/test-get-rusage-data.c (main): Likewise.
4417         Reported by Jim Meyering.
4418
4419 2012-02-04  Bruno Haible  <bruno@clisp.org>
4420
4421         stdioext: Fix last commit.
4422         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
4423
4424 2012-02-03  Bruno Haible  <bruno@clisp.org>
4425
4426         stdioext: Add tentative support for Plan9.
4427         * lib/stdio-impl.h: Include <errno.h>.
4428         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
4429         * lib/freadable.c (freadable): Likewise.
4430         * lib/fwritable.c (fwritable): Likewise.
4431         * lib/fbufmode.c (fbufmode): Likewise.
4432         * lib/freading.c (freading): Likewise.
4433         * lib/fwriting.c (fwriting): Likewise.
4434         * lib/freadptr.c (freadptr): Likewise.
4435         * lib/freadseek.c (freadptrinc): Likewise.
4436         * lib/freadahead.c (freadahead): Likewise.
4437         * lib/fpurge.c (fpurge): Likewise.
4438         * lib/fseeko.c (rpl_fseeko): Likewise.
4439         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
4440         Reported by Jens Staal <staal1978@gmail.com>.
4441
4442 2012-02-02  Jim Meyering  <meyering@redhat.com>
4443
4444         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
4445         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
4446         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
4447         not even to try to add the attribute.  Instead, add a pragma to suppress
4448         the suggestion/warning.
4449
4450 2012-01-31  Karl Berry  <karl@gnu.org>
4451
4452         setstate doc: typo.
4453         * doc/posix-functions/setstate.texi (setstate): { not (.
4454
4455 2012-01-31  Bruno Haible  <bruno@clisp.org>
4456
4457         popen: Make more robust on Windows.
4458         * lib/popen.c: On native Windows, use the _popen based code even if
4459         HAVE_POPEN is set.
4460         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
4461         environment variable on native Windows.
4462
4463 2012-01-30  Bruno Haible  <bruno@clisp.org>
4464
4465         pclose: Fix typo.
4466         * lib/stdio.in.h (pclose): Fix typo in warning message.
4467
4468 2012-01-30  Bruno Haible  <bruno@clisp.org>
4469
4470         doc about getlogin_r, setstate.
4471         * doc/posix-functions/getlogin_r.texi: List the incompatible
4472         declaration problem under "not fixed by gnulib".
4473         * doc/posix-functions/setstate.texi: Mention incompatible declaration
4474         problem on Solaris 11 and other platforms.
4475
4476 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
4477             Bruno Haible  <bruno@clisp.org>
4478
4479         poll tests: Make test more robust.
4480         * tests/test-poll.c: Include macros.h.
4481         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
4482         return value of various I/O operations.
4483         * modules/poll-tests (Files): Add tests/macros.h.
4484
4485 2012-01-30  Bruno Haible  <bruno@clisp.org>
4486
4487         sys_stat: Fix support for mingw64 and MSVC.
4488         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
4489         header files already do it.
4490         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
4491         stat itself.
4492         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
4493
4494 2012-01-30  Bruno Haible  <bruno@clisp.org>
4495
4496         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
4497         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
4498         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
4499
4500 2012-01-29  Bruno Haible  <bruno@clisp.org>
4501
4502         quotearg: Fix test failure on MacOS X 10.5.
4503         * tests/test-quotearg-simple.c: Include localcharset.h.
4504         (main): If the locale encoding is not ASCII, bypass the tests of
4505         locale_quoting_style and clocale_quoting_style.
4506         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
4507
4508 2012-01-29  Jim Meyering  <meyering@redhat.com>
4509
4510         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
4511         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
4512         detect uses of canonicalize_file_name.
4513
4514 2012-01-28  Bruno Haible  <bruno@clisp.org>
4515
4516         test-framework-sh: Fix test failure with AIX 7.1 diff.
4517         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
4518         in column 1, like 'diff -c' does.
4519         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
4520         whether 'diff -u' is used. Instead, test whether the output contains
4521         some '@' character.
4522
4523 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
4524
4525         strtoimax: eliminate need for stdint.h, inttypes.h checks
4526         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
4527         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
4528         the prerequisites for a recently-introduced strtoimax test.
4529         I guess this might cause strtoimax to be replaced when not
4530         strictly necessary on older hosts, but this shouldn't introduce
4531         any bugs and it should make Emacs 'configure' faster on typical
4532         modern hosts.  Problem discovered when importing the latest gnulib
4533         to an Emacs test version.
4534         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
4535
4536 2012-01-28  Bruno Haible  <bruno@clisp.org>
4537
4538         sys_time: Override 'struct timeval' on some native Windows platforms.
4539         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
4540         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
4541         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
4542         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
4543         needs to be overridden.
4544         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
4545         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
4546         * tests/test-sys_select.c: Check that the tv_sec member has the same
4547         size as a 'time_t'.
4548         * tests/test-sys_time.c: Likewise.
4549         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
4550         is set, set also REPLACE_GETTIMEOFDAY.
4551         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
4552         convert the resulting 'struct timeval' before returning.
4553         * lib/select.c: Include <sys/time.h>.
4554         (select, timeval): Undefine at the right place.
4555         * modules/select (Depends-on): Add sys_time.
4556         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
4557         some Windows platforms.
4558         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
4559
4560 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
4561
4562         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
4563         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
4564         an integer.
4565         * lib/fcntl.c (dupfd): Likewise.
4566         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
4567
4568 2012-01-28  Bruno Haible  <bruno@clisp.org>
4569
4570         fcntl: Avoid compilation error on native Windows.
4571         * modules/fcntl (Depends-on): Add 'close'.
4572
4573 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
4574
4575         select, poll, isatty: Avoid warnings on x86_64 mingw64.
4576         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
4577         pointer to an integer.
4578         * lib/poll.c (IsConsoleHandle): Likewise.
4579         * lib/isatty.c (IsConsoleHandle): Likewise.
4580
4581 2012-01-28  Jim Meyering  <meyering@redhat.com>
4582
4583         doc: clarify README-release
4584         * top/README-release: Clarify: you should make a point to have
4585         the latest stable versions of build tools in your PATH, and the
4586         reference to buildreq is solely for its list of tool names, not
4587         for its minimal-functional version numbers.
4588         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
4589
4590         maint.mk: use more readable (yet functionally equivalent) quoting
4591         It is common to quote a single quote in a single quoted string like
4592         this:  '...'\''...'.  Unless you know the idiom, that looks like
4593         gibberish, so prefer to double-quote the string when possible.
4594         Then you can use a more readable, lone single quote: "...'..."
4595         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
4596         "don't" is more readable than the equivalent 'don'\''t'.
4597         (sc_cast_of_x_alloc_return_value): Likewise.
4598         (sc_cast_of_alloca_return_value): Likewise.
4599         (sc_makefile_path_separator_check): Similar: use ":" in '...',
4600         rather than '\'':'\''.
4601
4602 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
4603
4604         stdalign: relax _Alignof and tighten _Alignas test
4605         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
4606         as it was too strict: alignof must divide offsetof, but it need
4607         not equal offsetof.  Inspired by Joseph S. Myers's comment
4608         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
4609         Conversely, tighten the _Alignas test a bit, as the resulting
4610         alignment must be exactly 8.
4611
4612 2012-01-27  Bruno Haible  <bruno@clisp.org>
4613
4614         stdalign: Document the last change.
4615         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
4616
4617 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
4618
4619         stdalign: check that alignof and offsetof are consistent
4620         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
4621         Problem reported for gnulib by Richard W.M. Jones in
4622         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
4623
4624 2012-01-27  Jim Meyering  <meyering@redhat.com>
4625
4626         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
4627         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
4628         convert a sequence with gaps to the minimal containing range.
4629         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
4630         * tests/test-update-copyright.sh: Test for this.
4631         The FSF confirmed it is ok to do this, assuming there is at
4632         least one significant change per year in the affected range:
4633         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
4634
4635 2012-01-26  Bruno Haible  <bruno@clisp.org>
4636
4637         pipe2: refine doc about thread-safety
4638         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
4639         multithread-safety problem.
4640         * doc/glibc-functions/accept4.texi: Likewise.
4641
4642 2012-01-26  Bruno Haible  <bruno@clisp.org>
4643
4644         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
4645         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
4646         In the test program, include <fcntl.h>, for O_RDONLY.
4647
4648 2012-01-26  Eric Blake  <eblake@redhat.com>
4649
4650         pipe2: document lack of thread-safety in replacement
4651         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
4652         issue in replacement.
4653         * doc/glibc-functions/accept4.texi (accept4): Likewise.
4654         Based on a report by Eric Wong.
4655
4656 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
4657             Bruno Haible  <bruno@clisp.org>
4658
4659         malloca: Avoid warnings on x86_64 mingw64.
4660         * lib/malloca.c: Include <stdint.h>.
4661         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
4662         * modules/malloca (Depends-on): Add stdint.
4663         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
4664
4665 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
4666
4667         obstack: remove __STDC__ conditionals
4668         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
4669         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
4670         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
4671         m4/include_next.m4 as the only gnulib-maintained places that still
4672         refer to __STDC__.
4673
4674 2012-01-24  Bruno Haible  <bruno@clisp.org>
4675
4676         havelib: Modern quoting.
4677         * build-aux/config.rpath: Quote 'like this', not `like this', as per
4678         the recent change to the GNU coding standards.
4679
4680 2012-01-24  Bruno Haible  <bruno@clisp.org>
4681
4682         stdint: Improve support for Android.
4683         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
4684         Reported by Simon Josefsson <simon@josefsson.org>.
4685
4686 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
4687
4688         doc: omit trailing empty lines from INSTALL etc.
4689         * doc/Makefile (INSTALL): Omit trailing empty lines.
4690         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
4691         omit trailing empty lines.  This simplifies the build procedure.
4692
4693 2012-01-23  Jim Meyering  <meyering@redhat.com>
4694
4695         tests: avoid spurious warnings about gl_sockets_startup
4696         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
4697         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
4698         reporting a "statement with no effect".
4699         * tests/test-accept.c (main): Mark as "(void)".
4700         * tests/test-accept4.c (main): Likewise.
4701         * tests/test-bind.c (main): Likewise.
4702         * tests/test-connect.c (main): Likewise.
4703         * tests/test-getpeername.c (main): Likewise.
4704         * tests/test-getsockname.c (main): Likewise.
4705         * tests/test-getsockopt.c (main): Likewise.
4706         * tests/test-listen.c (main): Likewise.
4707         * tests/test-recv.c (main): Likewise.
4708         * tests/test-recvfrom.c (main): Likewise.
4709         * tests/test-send.c (main): Likewise.
4710         * tests/test-sendto.c (main): Likewise.
4711         * tests/test-setsockopt.c (main): Likewise.
4712         * tests/test-shutdown.c (main): Likewise.
4713
4714 2012-01-21  Bruno Haible  <bruno@clisp.org>
4715
4716         locale-fr.m4: Fix for Android.
4717         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
4718         failure of the test program on Bionic libc.
4719
4720 2012-01-21  Jim Meyering  <meyering@redhat.com>
4721
4722         bootstrap: fail when bootstrap_post_import_hook fails
4723         Otherwise, it's far too easy to miss diagnostics emitted
4724         between gnulib-tool's output and that of running configure.
4725         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
4726
4727 2012-01-17  Jim Meyering  <meyering@redhat.com>
4728
4729         maint: enable sc_trailing_blank
4730         * build-aux/pmccabe.css: Remove trailing blanks.
4731         * doc/acl-cygwin.txt: Likewise.
4732         * doc/gnu-oids.texi: Likewise
4733         * cfg.mk: Enable sc_trailing_blank.
4734         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
4735
4736 2012-01-17  Jim Meyering  <meyering@redhat.com>
4737
4738         maint: enable sc_prohibit_openat_without_use
4739         * cfg.mk: Enable sc_prohibit_openat_without_use.
4740         Exempt lib/selinux-at.c.
4741
4742 2012-01-17  Jim Meyering  <meyering@redhat.com>
4743
4744         maint: enable sc_prohibit_cloexec_without_use
4745         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
4746         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
4747
4748 2012-01-17  Jim Meyering  <meyering@redhat.com>
4749
4750         maint: enable sc_prohibit_intprops_without_use
4751         * cfg.mk: Enable sc_prohibit_intprops_without_use
4752         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
4753
4754 2012-01-17  Jim Meyering  <meyering@redhat.com>
4755
4756         maint: enable sc_prohibit_hash_pjw_without_use
4757         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
4758         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
4759         to match any use of \<hash_pjw\>, i.e., not necessarily with a
4760         following " (".
4761
4762 2012-01-17  Jim Meyering  <meyering@redhat.com>
4763
4764         maint: enable double-word-prohibiting rule
4765         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
4766         Exempt three files.
4767
4768 2012-01-17  Jim Meyering  <meyering@redhat.com>
4769
4770         maint: remove empty lines at EOF, but excluding modules/*
4771         Apply syntax rules at home as well as abroad.  Most changes
4772         were induced by running this:
4773           make srcdir=. _build-aux=build-aux -f top/maint.mk \
4774             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
4775             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
4776         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
4777         Exempt modules/* and two binary files.
4778         Also exempt doc/INSTALL*, per request from Bruno Haible.
4779         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
4780         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
4781         * doc/Copyright/request-assign.future: Likewise.
4782         * doc/Copyright/request-disclaim.changes: Likewise.
4783         * doc/INSTALL: Likewise.
4784         * doc/INSTALL.ISO: Likewise.
4785         * doc/INSTALL.UTF-8: Likewise.
4786         * doc/acl-cygwin.txt: Likewise.
4787         * doc/acl-resources.txt: Likewise.
4788         * doc/fdl-1.2.texi: Likewise.
4789         * doc/fdl-1.3.texi: Likewise.
4790         * doc/fdl.texi: Likewise.
4791         * lib/argp-pin.c: Likewise.
4792         * lib/round.c: Likewise.
4793         * lib/unicase/u16-totitle.c: Likewise.
4794         * lib/unictype/block_test.c: Likewise.
4795         * lib/uninorm/canonical-decomposition.c: Likewise.
4796         * m4/README: Likewise.
4797         * m4/relocatable-lib.m4: Likewise.
4798         * tests/test-isnand-nolibm.c: Likewise.
4799         * tests/test-isnand.c: Likewise.
4800         * tests/uninorm/NormalizationTest.txt: Likewise.
4801
4802 2012-01-17  Jim Meyering  <meyering@redhat.com>
4803
4804         maint: add framework to run syntax-check rules against gnulib sources
4805         * cfg.mk: New file, to disable all currently-failing tests.
4806         We'll enable them one by one, as they are made to pass.
4807         * Makefile (sc_maint): New rule.
4808
4809 2012-01-21  Bruno Haible  <bruno@clisp.org>
4810
4811         stdint: Add support for Android.
4812         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
4813         include the system's <stdint.h>.
4814         Reported by Simon Josefsson <simon@josefsson.org>.
4815
4816 2012-01-19  Jim Meyering  <meyering@redhat.com>
4817
4818         bootstrap: add bootstrap_post_import_hook
4819         Bison does still need something like the gnulib_mk_hook whose
4820         invocation I had to remove along with slurp in commit 767ccd40.
4821         Technically, we could get along without it, but doing so would
4822         have required living with a warning and a mandatory post-bootstrap
4823         automake rerun.
4824         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
4825         (bootstrap_post_import_hook): New function.
4826         Invoke it after gnulib-tool --import and before autoreconf.
4827
4828 2012-01-18  Jim Meyering  <meyering@redhat.com>
4829
4830         gitlog-to-changelog: don't use "no_"-prefixed variable name
4831         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
4832         to enable both --cluster and --no-cluster.  Change variable name,
4833         s/\$no_cluster/$cluster/, and reverse usage to match.
4834
4835         gitlog-to-changelog: use "||", not "or" in expressions
4836         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
4837         expressions.
4838
4839 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
4840
4841         gitlog-to-changelog: new option --no-cluster
4842         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
4843         clustering of adjacent commit messages.
4844
4845 2012-01-17  Jim Meyering  <meyering@redhat.com>
4846
4847         maint: spell file systems with two words, not one
4848         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
4849         two words, not one.
4850
4851 2012-01-16  Jim Meyering  <meyering@redhat.com>
4852
4853         bootstrap: add a FIXME comment to ensure we eventually remove the hack
4854         * build-aux/bootstrap (gnulib_tool_options): Add comment.
4855
4856 2012-01-16  Eric Blake  <eblake@redhat.com>
4857
4858         bootstrap: cater to autoconf 2.59
4859         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
4860         is not available.
4861
4862         bootstrap: properly check for libtool
4863         * build-aux/bootstrap (libtoolize): Also run libtool when older
4864         usage is detected.
4865
4866 2012-01-15  Bruno Haible  <bruno@clisp.org>
4867
4868         Improve support for MSVC 9.
4869         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
4870         clashes on MSVC.
4871         * lib/fcntl.in.h: Likewise.
4872         * lib/stdlib.in.h: Likewise.
4873         * lib/sys_stat.in.h: Likewise.
4874
4875 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
4876
4877         gnupload: we hold the master copy of this script now
4878         For motivation and more information, see:
4879         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
4880         * build-aux/gnupload: Make it clear in the heading comments that the
4881         master copy of this file is maintained by gnulib.  Since we are at
4882         it, bump its copyright year and ...
4883         ($scriptversion): ... the date in its version.
4884         ($usage): Patches and bug reports should be sent to the gnulib list,
4885         not the automake one.
4886         * config/srclist.txt: Don't try to sync 'gnupload' from automake
4887         anymore.
4888
4889 2012-01-15  Bruno Haible  <bruno@clisp.org>
4890
4891         Fix module 'random'.
4892         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
4893         initstate, setstate are declared.
4894
4895 2012-01-14  Bruno Haible  <bruno@clisp.org>
4896
4897         Tests for module 'random'.
4898         * modules/random-tests: New file.
4899         * tests/test-random.c: New file, based on tests/test-random_r.c.
4900
4901         New module 'random'.
4902         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
4903         declarations.
4904         * lib/random.c: New file, based on glibc/stdlib/random.c.
4905         * m4/random.m4: New file.
4906         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
4907         HAVE_RANDOM.
4908         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
4909         * modules/random: New file.
4910         * config/srclist.txt: Add an entry for random.c.
4911         * doc/posix-functions/random.texi: Mention the 'random' module.
4912         * doc/posix-functions/initstate.texi: Likewise.
4913         * doc/posix-functions/setstate.texi: Likewise.
4914         * doc/posix-functions/srandom.texi: Likewise.
4915
4916 2012-01-12  Bruno Haible  <bruno@clisp.org>
4917
4918         random_r: Use common idioms.
4919         * lib/random_r.c: Include <stdlib.h> first.
4920
4921         random_r: Override incompatible API on AIX, OSF/1.
4922         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
4923         Override the system function if REPLACE_RANDOM_R is 1.
4924         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
4925         and OSF/1, set REPLACE_RANDOM_R.
4926         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
4927         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
4928         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
4929         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
4930         * doc/glibc-functions/random_r.texi: Likewise.
4931         * doc/glibc-functions/setstate_r.texi: Likewise.
4932
4933         random_r: Support for MSVC 9.
4934         * lib/random_r.c: Include stdint.h, not inttypes.h.
4935
4936 2012-01-12  Eric Blake  <eblake@redhat.com>
4937
4938         inet_ntop: guard extra work by IF_LINT
4939         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
4940         better code generation when not checking for warnings.
4941         Suggested by Paul Eggert and Jim Meyering.
4942
4943         strptime: fix regression on mingw
4944         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
4945         Fix regression.  Reported by Bruno Haible.
4946
4947 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
4948             Bruno Haible  <bruno@clisp.org>
4949
4950         copy-file: add error-code-returning variant.
4951         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
4952         (qcopy_file_preserving): New declaration.
4953         * lib/copy-file.c (qcopy_file_preserving): Renamed from
4954         copy_file_preserving. Change return type to 'int'. Don't emit an error
4955         message here.
4956         (copy_file_preserving): New function.
4957         * tests/test-copy-file.c: Include <stdlib.h>.
4958         (main): Test qcopy_file_preserving if the environment variable
4959         NO_STDERR_OUTPUT is set.
4960         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
4961         with NO_STDERR_OUTPUT
4962         * tests/test-copy-file-2.sh: Likewise.
4963
4964 2012-01-10  Bruno Haible  <bruno@clisp.org>
4965
4966         copy-file: Use 'quote' module consistently.
4967         * lib/copy-file.c (copy_file_preserving): Use quote().
4968
4969         copy-file: Refactor.
4970         * lib/copy-file.c: Include quote.h.
4971         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
4972         message here.
4973         * modules/copy-file (Depends-on): Add quote.
4974
4975         acl: Export qcopy_acl.
4976         * lib/acl.h (qcopy_acl): New declaration.
4977         * lib/copy-acl.c (qcopy_acl): Make non-static.
4978
4979         acl: Rename a local variable.
4980         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
4981
4982         acl: Align return values of copy_acl and qcopy_acl.
4983         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
4984         maybe < -1.
4985
4986 2012-01-11  Eric Blake  <eblake@redhat.com>
4987
4988         strptime: silence gcc warnings
4989         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
4990         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
4991         Reported by Daniel P. Berrange.
4992
4993         inet_ntop: silence gcc warning
4994         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
4995         Reported by Daniel P. Berrange.
4996
4997 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
4998
4999         getloadavg test: skip the test on GNU/Linux without /proc mounted
5000         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
5001         file.  When /proc is not mounted, it always fails with ENOENT.
5002         * tests/test-getloadavg.c (main): Treat ENOENT return code from
5003         getloadavg(3) the same way as ENOSYS and ENOTSUP.
5004
5005 2012-01-10  Bruno Haible  <bruno@clisp.org>
5006
5007         regex: Avoid link error on MSVC 9.
5008         * modules/regex (Depends-on): Add wctype.
5009
5010 2012-01-10  Bruno Haible  <bruno@clisp.org>
5011
5012         doc: Mention --with-tests option.
5013         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
5014         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
5015         --with-tests.
5016         Reported by Reuben Thomas.
5017
5018 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
5019
5020         users.txt: order package names lexicographically.
5021         * users.txt: Order package names lexicographically.
5022
5023 2012-01-10  Jim Meyering  <meyering@redhat.com>
5024
5025         maint.mk: fix description in comment
5026         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
5027
5028         ignore-value: remove deprecated ignore_ptr function
5029         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
5030         * NEWS: Note this.
5031
5032 2012-01-09  Jim Meyering  <meyering@redhat.com>
5033
5034         test-init.sh: avoid a subshell
5035         * tests/test-init.sh: Remove protective subshell.
5036         Suggested by Bernhard Voelker.  While a subshell is normally
5037         required to protect against older shells (Solaris, FreeBSD) that
5038         warn about a missing program before performing redirection, the
5039         shell-selection tests performed by init.sh probably exclude any
5040         offending shell.
5041
5042 2012-01-08  Bruno Haible  <bruno@clisp.org>
5043
5044         setlocale tests: Avoid test failure on Solaris 11 2011-11.
5045         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
5046         variable.
5047
5048 2012-01-08  Bruno Haible  <bruno@clisp.org>
5049
5050         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
5051         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
5052         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
5053         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
5054         macro.
5055         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
5056         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
5057         * lib/spawn_faction_addopen.c: Add workaround implementation if
5058         HAVE_WORKING_POSIX_SPAWN.
5059         * modules/spawn (Makefile): Substitute
5060         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
5061         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
5062         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
5063         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
5064         (Depends-on): Update conditions.
5065         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
5066         the Solaris 11 bug.
5067
5068 2012-01-08  Bruno Haible  <bruno@clisp.org>
5069
5070         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
5071         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
5072         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
5073         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
5074         macro.
5075         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
5076         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
5077         * lib/spawn_faction_adddup2.c: Add workaround implementation if
5078         HAVE_WORKING_POSIX_SPAWN.
5079         * modules/spawn (Makefile): Substitute
5080         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
5081         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
5082         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
5083         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
5084         (Depends-on): Update conditions.
5085         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
5086         the Solaris 11 bug.
5087
5088 2012-01-08  Bruno Haible  <bruno@clisp.org>
5089
5090         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
5091         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
5092         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
5093         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
5094         HAVE_WORKING_POSIX_SPAWN.
5095         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
5096         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
5097         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
5098         * lib/spawn_faction_addclose.c: Add workaround implementation if
5099         HAVE_WORKING_POSIX_SPAWN.
5100         * modules/spawn (Makefile): Substitute
5101         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
5102         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
5103         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
5104         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
5105         (Depends-on): Update conditions.
5106         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
5107         the Solaris 11 bug.
5108
5109 2012-01-08  Bruno Haible  <bruno@clisp.org>
5110
5111         doc: Update for Solaris 11 2011-11.
5112         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
5113         * m4/printf.m4: Update comments.
5114
5115 2012-01-08  Bruno Haible  <bruno@clisp.org>
5116
5117         mktime: Avoid compilation error on Solaris 11.
5118         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
5119
5120 2012-01-08  Bruno Haible  <bruno@clisp.org>
5121
5122         doc: Small fix.
5123         * doc/posix-headers/nl_types.texi: Correct platforms list.
5124
5125 2012-01-08  Simon Josefsson  <simon@josefsson.org>
5126
5127         Add lgpl-3.0 module.
5128         * MODULES.html.sh (Support for building documentation): Add
5129         lgpl-3.0.
5130         * modules/lgpl-3.0: New file.
5131
5132 2012-01-08  Jim Meyering  <meyering@redhat.com>
5133
5134         select.c: indent with spaces, not TABs
5135         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
5136
5137 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
5138
5139         quotearg: do not use grave accent for left quote
5140         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
5141         locale_quoting_style.
5142         (quotearg_buffer_restyled): Fix example.
5143         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
5144
5145 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
5146
5147         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
5148         Most programs do not have translation catalogs for English and much
5149         less separate catalogs for British and American English.  Drop the
5150         suggestion to translators about these two, and provide it
5151         automatically for Unicode locales.  Like most programs, even those
5152         using American English, we use single quotation marks.  This conflicts
5153         with the American typographic convention, but works better when you
5154         cite the entire error message within double quotes.  It also tries not
5155         to clash with established practice and with what non-gnulib programs
5156         will usually do.
5157         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
5158         using an UTF-8 or GB-18030 locale.  The list of other locales with
5159         quotes was provided by Bruno Haible.
5160         (quotearg_buffer_restyled): Adjust instructions to translators.
5161         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
5162         text, since this would be wrong when using Unicode.
5163         * modules/quotearg: Depend on c-strcaseeq.
5164
5165 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
5166
5167         quotearg: fix Wikipedia link
5168         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
5169
5170 2012-01-07  Simon Josefsson  <simon@josefsson.org>
5171
5172         Fix for mingw with MSVC9.
5173         * m4/ld-version-script.m4: Check that compiler rejects version
5174         scripts with syntax errors.  Reported by Bruno Haible
5175         <bruno@clisp.org>.
5176
5177 2012-01-06  Bruno Haible  <bruno@clisp.org>
5178
5179         Talk about "native Windows API", not "Woe32".
5180         * lib/accept4.c: Update comments to mention native Windows.
5181         * lib/execute.c: Likewise.
5182         * lib/fatal-signal.c: Likewise.
5183         * lib/localcharset.c: Likewise.
5184         * lib/nanosleep.c: Likewise.
5185         * lib/nl_langinfo.c: Likewise.
5186         * lib/pclose.c: Likewise.
5187         * lib/pipe-filter-gi.c: Likewise.
5188         * lib/pipe-filter-ii.c: Likewise.
5189         * lib/pipe.c: Likewise.
5190         * lib/pipe2.c: Likewise.
5191         * lib/popen.c: Likewise.
5192         * lib/progreloc.c: Likewise.
5193         * lib/relocatable.c: Likewise.
5194         * lib/sigaction.c: Likewise.
5195         * lib/sigprocmask.c: Likewise.
5196         * lib/spawn-pipe.h: Likewise.
5197         * lib/spawn-pipe.c: Likewise.
5198         * lib/spawni.c: Likewise.
5199         * lib/stat-time.h: Likewise.
5200         * lib/w32spawn.h: Likewise.
5201         * tests/test-isatty.c: Likewise.
5202         * lib/config.charset: More comments.
5203         * doc/gnulib-intro.texi: Mention native Windows.
5204         * doc/posix-functions/_Exit_C99.texi: Likewise.
5205         * doc/posix-headers/fcntl.texi: Likewise.
5206
5207 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
5208
5209         argp: Avoid crash if translator uses % characters in a translation.
5210         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
5211         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
5212
5213 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
5214
5215         doc: C11 and C++11 are now official
5216         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
5217         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
5218         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
5219         * modules/stdalign:
5220         Replace references to draft C1X to C11, and to draft C++0X to C++11.
5221
5222 2012-01-06  Bruno Haible  <bruno@clisp.org>
5223
5224         uc-is-grapheme-break tests: Tweak.
5225         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
5226         message.
5227
5228 2012-01-06  Bruno Haible  <bruno@clisp.org>
5229
5230         test-init.sh: correct the test for diff -u
5231         * tests/test-init.sh: Also redirect stdout to /dev/null.
5232
5233 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
5234
5235         Use ', not `, for quoting output.
5236         * build-aux/announce-gen (usage, sizes, print_news_deltas)
5237         (print_changelog_deltas, get_tool_versions, main program):
5238         * build-aux/git-version-gen:
5239         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
5240         * build-aux/move-if-change (help):
5241         * build-aux/useless-if-before-free (usage, main program):
5242         * check-module (parse_module_file, usage)
5243         (find_included_lib_files, check_module):
5244         * lib/argmatch.c (main) [TEST]:
5245         * lib/argp-help.c (_help):
5246         * lib/getopt1.c (main) [TEST]:
5247         * lib/git-merge-changelog.c (usage):
5248         * lib/xstrtol-error.c (xstrtol_error):
5249         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
5250         * m4/argz.m4 (gl_FUNC_ARGZ):
5251         * m4/bison.m4 (gl_BISON):
5252         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
5253         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
5254         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
5255         * m4/fpending.m4 (gl_PREREQ_FPENDING):
5256         * m4/gc-random.m4 (gl_GC_RANDOM):
5257         * m4/intl.m4 (gt_CHECK_DECL):
5258         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
5259         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
5260         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
5261         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
5262         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
5263         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
5264         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
5265         * tests/test-dirname.c (main):
5266         * tests/test-getpass.c (main):
5267         * tests/test-iconvme.c (main):
5268         * tests/test-parse-datetime.c (LOG):
5269         * tests/test-xstrtoimax.sh:
5270         * tests/test-xstrtol.sh:
5271         * tests/test-xstrtoll.sh:
5272         * tests/test-xstrtoumax.sh:
5273         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
5274         * top/GNUmakefile (abort-due-to-no-makefile):
5275         Quote 'like this', not `like this', as per the recent change to
5276         the GNU coding standards.
5277
5278 2012-01-05  Bruno Haible  <bruno@clisp.org>
5279
5280         strtoimax: Don't force a replacement on systems where intmax_t is int.
5281         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
5282         'intmax_t' is not larger than 'int'.
5283         Reported by Pádraig Brady <P@draigBrady.com>.
5284
5285 2012-01-05  Bruno Haible  <bruno@clisp.org>
5286
5287         doc: Mention NetBSD bugs.
5288         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
5289         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
5290
5291 2012-01-05  Bruno Haible  <bruno@clisp.org>
5292
5293         strtoumax tests: Enhance tests.
5294         * tests/test-strtoumax.c (main): Add tests for large values.
5295
5296 2012-01-05  Bruno Haible  <bruno@clisp.org>
5297
5298         strtoimax: Work around AIX 5.1 bug.
5299         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
5300         definition.
5301         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
5302         Set HAVE_STRTOIMAX.
5303         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
5304         REPLACE_STRTOIMAX.
5305         * modules/inttypes-incomplete (Makefile.am): Substitute
5306         REPLACE_STRTOIMAX.
5307         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
5308         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
5309         (Depends-on): Update conditions.
5310         * tests/test-strtoimax.c (main): Add tests for large values.
5311         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
5312
5313 2012-01-05  Bruno Haible  <bruno@clisp.org>
5314
5315         inttypes: Modernize.
5316         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
5317         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
5318         (Makefile.am): Update inttypes.h rule.
5319
5320 2012-01-05  Jim Meyering  <meyering@redhat.com>
5321
5322         init.sh: don't waste a subshell just to redirect stderr
5323         * tests/init.sh: In testing for diff -u and diff -c, use a
5324         stderr-redirecting exec inside `...` rather than a subshell.
5325
5326         test-init.sh: avoid failure on HP-UX 11.00
5327         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
5328         resolves to diff -c or cmp.  Reported by Bruno Haible.
5329
5330 2012-01-05  Bruno Haible  <bruno@clisp.org>
5331
5332         Tests for module 'strtoull'.
5333         * modules/strtoull-tests: New file.
5334         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
5335
5336 2012-01-05  Bruno Haible  <bruno@clisp.org>
5337
5338         Tests for module 'strtoll'.
5339         * modules/strtoll-tests: New file.
5340         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
5341
5342 2012-01-05  Bruno Haible  <bruno@clisp.org>
5343
5344         Tests for module 'strtoul'.
5345         * modules/strtoul-tests: New file.
5346         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
5347
5348 2012-01-05  Bruno Haible  <bruno@clisp.org>
5349
5350         Tests for module 'strtol'.
5351         * modules/strtol-tests: New file.
5352         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
5353
5354 2012-01-04  Jim Meyering  <meyering@redhat.com>
5355
5356         test-init.sh: accommodate Solaris 5.10's different diff -u output
5357         * tests/test-init.sh: Also exempt @@ lines from the comparison
5358         of diff output, since Solaris 5.10 and GNU diff formats differ.
5359         Reported by Stefano Lattarini.
5360
5361 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
5362
5363         test-posixtm: don't assume signed integer wraparound
5364         * tests/test-posixtm.c (main): Don't assume wraparound semantics
5365         after signed integer overflow.  Inspired by (though it may not
5366         fix) Bruno Haible's bug report in
5367         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
5368
5369         Spell out "Windows 9x" and "Windows XP".
5370         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
5371         "Windows 9x" and "WinXP" with "Windows XP".
5372
5373 2012-01-04  Jim Meyering  <meyering@redhat.com>
5374
5375         test-vc-list-files-cvs.sh: remove obsolete comment
5376         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
5377         double exit.  Now that's all encapsulated via skip_ and Exit.
5378
5379 2012-01-04  Bruno Haible  <bruno@clisp.org>
5380
5381         Talk about "native Windows API", not "Win32".
5382         * lib/classpath.c: Update comments to mention native Windows.
5383         * lib/csharpexec.c: Likewise.
5384         * lib/dup2.c: Likewise.
5385         * lib/error.c: Likewise.
5386         * lib/fcntl.c: Likewise.
5387         * lib/filename.h: Likewise.
5388         * lib/findprog.c: Likewise.
5389         * lib/get-rusage-as.c: Likewise.
5390         * lib/get-rusage-data.c: Likewise.
5391         * lib/getpagesize.c: Likewise.
5392         * lib/javaexec.c: Likewise.
5393         * lib/msvc-inval.c: Likewise.
5394         * lib/msvc-nothrow.c: Likewise.
5395         * lib/nanosleep.c: Likewise.
5396         * lib/nonblocking.c: Likewise.
5397         * lib/printf-parse.c: Likewise.
5398         * lib/setlocale.c: Likewise.
5399         * lib/sigaction.c: Likewise.
5400         * lib/strerror_r.c: Likewise.
5401         * lib/tmpdir.c: Likewise.
5402         * lib/vasnprintf.c: Likewise.
5403         * lib/w32spawn.h: Likewise.
5404         * lib/waitpid.c: Likewise.
5405         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
5406         * m4/locale-ar.m4: Likewise.
5407         * m4/locale-fr.m4: Likewise.
5408         * m4/locale-ja.m4: Likewise.
5409         * m4/locale-tr.m4: Likewise.
5410         * m4/locale-zh.m4: Likewise.
5411         * m4/printf.m4: Likewise.
5412         * tests/test-cloexec.c: Likewise.
5413         * tests/test-copy-acl.sh: Likewise.
5414         * tests/test-copy-file.sh: Likewise.
5415         * tests/test-file-has-acl.sh: Likewise.
5416         * tests/test-set-mode-acl.sh: Likewise.
5417         * tests/test-dup-safer.c: Likewise.
5418         * tests/test-dup2.c: Likewise.
5419         * tests/test-dup3.c: Likewise.
5420         * tests/test-fcntl.c: Likewise.
5421         * tests/test-nonblocking-pipe.h: Likewise.
5422         * tests/test-nonblocking-socket.h: Likewise.
5423         * tests/test-pipe.c: Likewise.
5424         * tests/test-pipe2.c: Likewise.
5425         * tests/test-spawn-pipe-child.c: Likewise.
5426         * doc/acl-resources.txt: Likewise.
5427         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
5428         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
5429         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
5430         * lib/localcharset.c: Update comments to mention native Windows.
5431         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
5432         * lib/localename.c: Likewise.
5433         * lib/progreloc.c: Likewise.
5434         * lib/relocatable.c: Likewise.
5435         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
5436         (windows_compute_revents): Renamed from win32_compute_revents.
5437         (windows_compute_revents_socket): Renamed from
5438         win32_compute_revents_socket.
5439         * lib/select.c: Update comments to mention native Windows.
5440         (windows_poll_handle): Renamed from win32_poll_handle.
5441         * m4/threadlib.m4: Update comments to mention native Windows.
5442         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
5443         --enable-threads=windows instead of --enable-threads=win32. Set
5444         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
5445         * lib/glthread/lock.h: Update comments to mention native Windows.
5446         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
5447         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
5448         USE_WIN32_THREADS.
5449         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
5450         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
5451         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
5452         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
5453         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
5454         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
5455         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
5456         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
5457         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
5458         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
5459         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
5460         * tests/test-tls.c: Likewise.
5461         Rationale:
5462         Microsoft renamed the "Win32 API" to "Windows API", as it is available
5463         on both 32-bit and 64-bit Windows systems.
5464         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
5465         line of distinction is between "native Windows" on one side and Unix/
5466         POSIX systems on the other side. More details in
5467         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
5468         Suggested by Paul Eggert.
5469
5470 2012-01-03  Bruno Haible  <bruno@clisp.org>
5471
5472         isatty: Support for MSVC 9.
5473         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
5474         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
5475         (_isatty_nothrow): New function.
5476         (isatty): Use it instead of _isatty.
5477         (IsConsoleHandle): Add comment, from Paolo Bonzini.
5478         * lib/poll.c (IsConsoleHandle): Likewise.
5479         * lib/select.c (IsConsoleHandle): Likewise.
5480         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
5481         (gl_PREREQ_ISATTY): New macro.
5482         * modules/isatty (Depends-on): Add msvc-inval.
5483         (configure.ac): Invoke gl_PREREQ_ISATTY.
5484
5485 2012-01-03  Jim Meyering  <meyering@redhat.com>
5486
5487         maint.mk: remove temporary transition aid from over 1.5 years ago
5488         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
5489         purpose was to aid in the transition (avoiding silent malfunction)
5490         from that old name to the new _sc_search_regexp.  This shim was
5491         added by commit 219c504b.
5492
5493         init.sh: do not try to accommodate compare arguments starting with "-"
5494         * tests/init.sh (compare_dev_null_): Do not try to accommodate
5495         compare arguments that start with "-".  Besides, we do not worry
5496         about this when invoking diff or cmp; why start now with sed?
5497         Using "--" to separate options from argument would trigger sed
5498         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
5499         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
5500
5501 2012-01-02  Bruno Haible  <bruno@clisp.org>
5502
5503         Enhance tests for module 'isatty'.
5504         * modules/isatty-tests (Depends-on): Add pipe-posix.
5505         * tests/test-isatty.c: Include <fcntl.h>.
5506         (DEV_NULL): New macro.
5507         (main): Test the resut of isatty() also on regular files, pipes, and
5508         /dev/null.
5509
5510         New module 'isatty'.
5511         * lib/unistd.in.h (isatty): New declaration.
5512         * lib/isatty.c: New file, based on an idea of
5513         Bastien Roucariès <roucaries.bastien@gmail.com>.
5514         * m4/isatty.m4: New file.
5515         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
5516         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
5517         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
5518         REPLACE_ISATTY.
5519         * modules/isatty: New file.
5520         * doc/posix-functions/isatty.texi: Mention the new module.
5521         Suggested by Paolo Bonzini.
5522
5523 2012-01-02  Bruno Haible  <bruno@clisp.org>
5524
5525         canonicalize: Tweak 2011-12-29 commit.
5526         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
5527         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
5528
5529 2012-01-02  Jim Meyering  <meyering@redhat.com>
5530
5531         gitlog-to-changelog: describe input syntax in --help output
5532         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
5533
5534         gitlog-to-changelog: fix typo in --help: show backslash before email @
5535         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
5536         in sources, but not in actual output.
5537
5538 2011-12-30  Jim Meyering  <meyering@redhat.com>
5539
5540         gitlog-to-changelog: don't malfunction when name contains %-directive
5541         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
5542         in a name string cause trouble.  E.g., with a user name of "%s",
5543         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
5544
5545 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
5546
5547         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
5548         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
5549         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
5550         the "  (tiny change)" notation that is appended to the standard
5551         ChangeLog "date  name  email" header line.
5552
5553 2012-01-01  Jim Meyering  <meyering@redhat.com>
5554
5555         test-framework-sh: init.sh: fix "make dist" failure
5556         When using gnulib-tool's --with-tests option and any module that
5557         depends on test-framework-sh, "make dist" would fail due to the
5558         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
5559         in the gltests directory, and not in the gllib/ directory.
5560         One way to work around that is to move the EXTRA_DIST += init.sh
5561         from the primary module to the -tests one:
5562         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
5563         * modules/test-framework-sh (Makefile.am): ...not here.
5564         Reported by Tom G. Christensen in
5565         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
5566
5567         version-etc: update copyright year reported by --version
5568         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
5569
5570 2011-12-31  Pádraig Brady  <P@draigBrady.com>
5571
5572         canonicalize: only stat() if required
5573         * lib/canonicalize.c (canonicalize_filename_mode):
5574         Avoid calling l?stat() when both CAN_MISSING,
5575         and CAN_NOLINKS are set, as we neither need
5576         to resolve symlinks or test component existence.
5577
5578 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
5579
5580         doc: cover st_ino issues once; add OpenVMS etc.
5581         * doc/posix-functions/stat.texi (stat):
5582         * doc/posix-functions/lstat.texi (lstat):
5583         * doc/posix-functions/fstatat.texi (fstatat):
5584         * doc/posix-functions/fstat.texi (fstat):
5585         Move general 'struct stat' stuff to sys_stat.texi,
5586         leaving behind a pointer.
5587         * doc/posix-headers/sys_stat.texi (sys/stat.h):
5588         Merge duplicate info about 'struct stat' problems into here.
5589         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
5590         and suggest partial workarounds.
5591
5592         same-inode: port to OpenVMS
5593         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
5594         three st_ino values.
5595
5596 2011-12-30  Pádraig Brady  <P@draigBrady.com>
5597
5598         canonicalize: fix references to stat() and lstat()
5599         * lib/canonicalize.c (canonicalize_filename_mode):
5600         Ensure references always resolve to a replacement
5601         function if required (even via a macro).
5602
5603 2011-12-30  Jim Meyering  <meyering@redhat.com>
5604
5605         gitlog-to-changelog: remove a little duplication
5606         * build-aux/gitlog-to-changelog (main): Grep @lines once,
5607         rather than twice.
5608
5609 2011-12-29  Pádraig Brady  <P@draigBrady.com>
5610
5611         canonicalize: add support for not resolving symlinks
5612         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
5613         indicate we don't want to follow symlinks.  Also
5614         provide CAN_MODE_MASK to aid setting these existing
5615         mutually exclusive values.
5616         * lib/canonicalize.c (canonicalize_filename_mode):
5617         Extract the flags from can_mode parameter, which
5618         are currently just used to select between stat()
5619         and lstat().  Also ensure that mutually exclusive
5620         values are flagged immediately as invalid.
5621         * tests/test-canonicalize.c: Verify symlinks are
5622         not followed, and that invalid flag combinations
5623         are diagnosed.
5624
5625 2011-12-25  Jim Meyering  <meyering@redhat.com>
5626
5627         gitlog-to-changelog: do not clump multi-paragraph entries
5628         Identical header lines (date,name,email+coauthors) are suppressed,
5629         thus putting all entries with those same characteristics under
5630         a single header.  However, when a log entry consists of two or
5631         more paragraphs, it may not be clear where it starts and ends.
5632         This change makes it so that such an entry is always separated
5633         from others by a header line, even when that header would
5634         otherwise be suppressed.
5635         * build-aux/gitlog-to-changelog: Implement the above.
5636         Inspired by a related request from Stefano Lattarini in
5637         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
5638
5639 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
5640
5641         announce-gen: fix `cmd' typo in diagnostic
5642         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
5643         diagnostic: a missing '$' meant that the command was not output.
5644
5645 2011-12-23  Jim Meyering  <meyering@redhat.com>
5646
5647         test-framework-sh: distribute init.sh
5648         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
5649         Otherwise, "make -C gnulib-tests check" (at least in grep) would
5650         fail due to the lack of init.sh.
5651
5652         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
5653         * modules/atexit-tests: Rather than listing tests/init.sh,
5654         now that there's a module for it, simply depend on that new module.
5655         * modules/closein-tests: Likewise.
5656         * modules/exclude-tests: Likewise.
5657         * modules/getcwd-tests: Likewise.
5658         * modules/perror-tests: Likewise.
5659         * modules/pread-tests: Likewise.
5660         * modules/pwrite-tests: Likewise.
5661         * modules/vc-list-files-tests: Likewise.
5662         * modules/verify-tests: Likewise.
5663         * modules/xalloc-die-tests: Likewise.
5664         * modules/xstrtoimax-tests: Likewise.
5665         * modules/xstrtol-tests: Likewise.
5666         * modules/xstrtoll-tests: Likewise.
5667         * modules/xstrtoumax-tests: Likewise.
5668         * modules/yesno-tests: Likewise.
5669
5670 2011-12-22  Jim Meyering  <meyering@redhat.com>
5671
5672         test-framework-sh: add minimal tests of init.sh's compare function
5673         * modules/test-framework-sh-tests: New file.
5674         * tests/test-init.sh: New file.
5675
5676         test-framework-sh: new module
5677         * modules/test-framework-sh: New file.
5678         * MODULES.html.sh (Support for maintaining and releasing projects):
5679         List it.
5680
5681         init.sh: do not emit simulated diff output to stderr
5682         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
5683
5684 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
5685
5686         .gitignore: ignore gnulib.dvi and regex.info
5687         * doc/.gitignore:add gnulib.dvi and regex.info
5688
5689 2011-12-22  Jim Meyering  <meyering@redhat.com>
5690
5691         init.sh: correct previous change
5692         * tests/init.sh (compare): My previous change was wrong.
5693         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
5694
5695         init.sh: avoid unwarranted test failure when using "set -e"
5696         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
5697         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
5698         a use like "compare exp out" would get evoke an unconditional failure.
5699
5700 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
5701
5702         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
5703         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
5704         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
5705         autoreconf that did not.
5706         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
5707         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
5708
5709 2011-12-17  Jim Meyering  <meyering@redhat.com>
5710
5711         bootstrap: remove some now-unneeded code
5712         This script arose back when gnulib-tool was young.
5713         Since then, it has seen improvements that render much of this
5714         script unnecessary.  In particular, it can now make symlinks
5715         to the files it uses.  Also, I no longer see as much value in
5716         marking files as read-only via comments.
5717         If you relied on the symlink-creation feature of the preceding
5718         version of this script, you can get most of that functionality
5719         by adding the --symlink option to the definition of
5720         gnulib_tool_option_extras in your bootstrap.conf file.
5721         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
5722         Run autopoint and libtoolize *before* gnulib-tool.
5723         After it, run an abbreviated autoreconf, rather than a loop around
5724         all tools.
5725         (slirp, bt_mark_as_generated): Remove functions.
5726
5727 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
5728
5729         ftoastr: fix typo
5730         * lib/ftoastr.h: Fix misspelling in comment.
5731
5732 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
5733
5734         * top/README-release: fix punctuation.
5735
5736 2011-12-17  Jim Meyering  <meyering@redhat.com>
5737
5738         bootstrap: correct the recent buildreq change
5739         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
5740         had no effect.
5741         * build-aux/bootstrap (buildreq): Bracket each search term with
5742         "*...*", so that the shell "case" statement works as intended.
5743         Add comments.
5744
5745 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
5746
5747         build: let bootstrap resort to wget when downloading .po files
5748         * build-aux/bootstrap (download_po_files): Fallback to wget when
5749         downloading the .po files via rsync fails.  This is necessary to
5750         bootstrap from behind a strict firewall.
5751
5752 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
5753
5754         stdint: don't assume C++11 when compiling with g++
5755         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
5756         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
5757         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
5758         work also in C++ before C++11, as that improperly inhibits
5759         generating a substitute stdint.h for that case.
5760
5761 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
5762
5763         alloca: protect comment from gnulib-tool
5764         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
5765         that gnulib-tool doesn't think it's a license, and munge it to
5766         say "GCC version 3".
5767
5768 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
5769
5770         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
5771         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
5772         $(abs_top_builddir) instead of $(top_builddir).
5773
5774 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
5775
5776         strftime-tests: also test nanoseconds
5777         * tests/test-strftime.c (T): Add a test of %N.
5778
5779 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
5780
5781         inttypes, stdint: add C++11 support
5782         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
5783         when including inttypes.h and stdint.h.  Support this change to
5784         the standard.
5785         * doc/posix-headers/inttypes.texi (inttypes.h):
5786         * doc/posix-headers/stdint.texi (stdint.h): Document this.
5787         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
5788         Define if not defined already, for the benefit of pre-C++11 hosts.
5789         Define the standard format macros (e.g., PRId8) always.
5790         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
5791         Likewise, if __cpluspus.  Define the standard constant and limit
5792         macros (e.g., INT8_C, INT8_MAX) always.
5793         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
5794         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
5795         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
5796         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
5797         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
5798         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
5799         Likewise.
5800
5801 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
5802
5803         nonblocking tests: Fix test failure on Linux/PPC.
5804         Suggested by Prerna Saxena in
5805         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
5806         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
5807         Set to 1100000.
5808
5809 2011-12-12  Jim Meyering  <meyering@redhat.com>
5810
5811         argmatch: don't hard-code `' when listing valid option arguments
5812         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
5813         use the quote function to add quotes.  Use fputs rather than
5814         fprintf for the format string with no format directive.
5815
5816 2011-12-07  Eric Blake  <eblake@redhat.com>
5817
5818         bootstrap: detect tools required by gnulib-tool
5819         * build-aux/bootstrap (buildreq): Provide minimum implicit
5820         dependencies.
5821         * DEPENDENCIES: Mention patch as a prereq.
5822
5823 2011-12-04  Bruno Haible  <bruno@clisp.org>
5824
5825         sethostname: Port to Windows platforms.
5826         * lib/sethostname.c: Provide an alternate implementation for Windows
5827         platforms.
5828         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
5829         (main): Skip the test if sethostname() fails with EPERM. On Windows
5830         platforms, don't check the result of gethostname().
5831
5832 2011-12-04  Bruno Haible  <bruno@clisp.org>
5833             Jim Meyering  <meyering@redhat.com>
5834
5835         tests: Avoid spurious error message on platforms without mktemp program.
5836         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
5837
5838 2011-12-04  Bruno Haible  <bruno@clisp.org>
5839
5840         sethostname: Fix documentation.
5841         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
5842         "not fixed" section.
5843
5844 2011-12-03  Bruno Haible  <bruno@clisp.org>
5845
5846         gnulib-tool: Verify that the License field is present and non-empty.
5847         * gnulib-tool (func_get_license_raw): New function, extracted from
5848         func_get_license.
5849         (func_get_license): Use it. Warn if the module is not a test module and
5850         has no license.
5851         Suggested by Jim Meyering.
5852
5853 2011-12-03  Bruno Haible  <bruno@clisp.org>
5854
5855         sethostname tests: Fix link error on mingw.
5856         * tests/test-sethostname1.c: New file, extracted from
5857         tests/test-sethostname.c.
5858         * tests/test-sethostname2.c: New file, extracted from
5859         tests/test-sethostname.c.
5860         * tests/test-sethostname.c: Remove file.
5861         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
5862         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
5863         (Depends-on): Add gethostname.
5864         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
5865         Link the latter with $(GETHOSTNAME_LIB).
5866
5867         sethostname tests: Fix compilation error on mingw.
5868         * tests/test-sethostname.c: Don't include <sys/types.h>.
5869         (geteuid): Use a dummy value without uid_t.
5870         * modules/sethostname-tests (Depends-on): Remove sys_types.
5871
5872         sethostname tests: Avoid a gcc warning.
5873         * tests/test-sethostname.c (main): Remove an unused variable.
5874
5875         Tweak last commit.
5876         * modules/sethostname-tests (Files): Sort by decreasing importance.
5877         (configure.ac): Check for geteuid.
5878         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
5879         the test when there's nothing to test. Drop an unnecessary cast.
5880         Improve an error message. Verify that the final sethostname() call
5881         succeeds.
5882
5883 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
5884
5885         Add a test suite for the sethostname module.
5886         * modules/sethostname-tests: New file.  A test program
5887         for the sethostname module.
5888         * tests/test-sethostname.c: Likewise.
5889
5890 2011-12-03  Bruno Haible  <bruno@clisp.org>
5891
5892         Tweak last commit.
5893         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
5894         Fix preprocessor directives indentation. Fix typos.
5895         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
5896         * modules/unistd (Makefile): Likewise.
5897
5898 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
5899
5900         Integrate the sethostname module into unistd.
5901         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
5902         into the unistd.h header.
5903         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
5904         preprocessor directives.
5905         * modules/unistd: Setup the Makefile substitutions of the
5906         SETHOSTNAME preprocessor directives.
5907
5908 2011-12-03  Bruno Haible  <bruno@clisp.org>
5909
5910         Tweak last commit.
5911         * lib/sethostname.c: Don't include <string.h>.
5912         (sethostname): No need to copy the argument string to the stack. Don't
5913         call clearerr. Preserve errno when fprintf failed.
5914         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
5915         Don't invoke AC_REPLACE_FUNCS.
5916         * modules/sethostname (Link): Remove empty section.
5917         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
5918         failure problem.
5919
5920 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
5921
5922         New module 'sethostname'.
5923         * lib/sethostname.c (sethostname): New file.  Provide sethostname
5924         for systems that lack it.
5925         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
5926         sethostname declaration and function.
5927         * modules/sethostname: New file.  Define the sethostname module.
5928
5929 2011-12-03  Bruno Haible  <bruno@clisp.org>
5930
5931         Tweak last commit.
5932         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
5933
5934 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
5935
5936         Split the HOST_NAME_MAX detection into a separate m4 macro.
5937         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
5938         macro so it can be used by the pending sethostname module.
5939
5940 2011-12-03  Bruno Haible  <bruno@clisp.org>
5941
5942         Fix module descriptions syntax.
5943         * modules/argv-iter (License): Fix syntax.
5944         * modules/di-set (License): Likewise.
5945         * modules/ino-map (License): Likewise.
5946         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
5947
5948 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
5949
5950         stdalign: port to Clang 3.0
5951         Problem reported by Simon Josefsson in
5952         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
5953         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
5954         which has <stdalign.h> but which does not define alignof.
5955         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
5956
5957 2011-12-01  Eric Blake  <eblake@redhat.com>
5958
5959         mktempd: silence dd usage
5960         * build-aux/mktempd (rand_bytes): Silence dd.
5961
5962 2011-11-30  Simon Josefsson  <simon@josefsson.org>
5963
5964         manywarnings: Don't mention gcc version in docstring.
5965         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
5966         Jim Meyering <meyering@redhat.com>.
5967
5968 2011-11-30  Jim Meyering  <meyering@redhat.com>
5969
5970         hash: mark a few floating point constants with "f" suffix
5971         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
5972         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
5973         floating point constants with "f", since they're destined to be
5974         saved/used as "float"s.
5975
5976 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
5977
5978         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
5979         * tests/test-float.c (test_long_double): Correct and re-enable the
5980         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
5981
5982 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
5983
5984         Avoid subtracting two pointers that don't point into the same block.
5985         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
5986         only pointers into the same memory block are subtracted. We cannot
5987         assume that sizeof (ptrdiff_t) == sizeof (void *).
5988
5989 2011-11-29  Eric Blake  <eblake@redhat.com>
5990
5991         maint.mk: add syntax check for use of compare from init.sh
5992         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
5993         moved here from coreutils.
5994
5995         manywarnings: drop -Wunsuffixed-float-constants
5996         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
5997         '1.0D', which is the only way to silence this warning for 'double'.
5998
5999 2011-11-29  Jim Meyering  <meyering@redhat.com>
6000
6001         hash: mark compute_bucket_size with the pure attribute
6002         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
6003
6004         quotearg, propername: correct pragma guard expression
6005         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
6006         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
6007
6008 2011-11-28  Jim Meyering  <meyering@redhat.com>
6009
6010         propername: do not mark proper_name with the const attribute
6011         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
6012         since it examines data pointed to by its parameter.
6013         * lib/propername.c (proper_name): Instead, add a pragma to suppress
6014         the suggestion from -Wsuggest-attribute=const.
6015
6016         propername: mark one more function as const
6017         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
6018
6019 2011-11-27  Jim Meyering  <meyering@redhat.com>
6020
6021         mark functions with const and pure attributes
6022
6023         Mark functions per suggestions from gcc-4.6 when using these options:
6024         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
6025         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
6026         Follow these guidelines: when possible, apply the attribute to
6027         an extern declaration, not to its definition.  Apply it to the
6028         definition only when the definition is static.
6029         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
6030         * lib/argv-iter.h (argv_iter_n_args): Likewise.
6031         * lib/base64.h (isbase64): Likewise.
6032         * lib/basename-lgpl.c (last_component, base_len): Likewise.
6033         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
6034         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
6035         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
6036         (c_tolower, c_toupper): Likewise.
6037         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
6038         * lib/chdir-long.c (find_non_slash): Likewise.
6039         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
6040         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
6041         * lib/file-type.h (file_type): Likewise.
6042         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
6043         * lib/filevercmp.c (verrevcmp): Likewise.
6044         * lib/freadahead.h (freadahead): Likewise.
6045         * lib/fts.c (fts_maxarglen): Likewise.
6046         * lib/hash-pjw.h (hash_pjw): Likewise.
6047         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
6048         * lib/hash.c (is_prime, next_prime): Likewise.
6049         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
6050         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
6051         (hash_table_ok, hash_get_first, hash_string): Likewise.
6052         (compute_bucket_size): Likewise.
6053         * lib/i-ring.h (i_ring_empty): Likewise.
6054         * lib/isnan.c (isnanl): Likewise.
6055         * lib/math.h (isnanl, rpl_isnanl): Likewise.
6056         * lib/memcasecmp.h (memcasecmp): Likewise.
6057         * lib/memchr2.h (memchr2): Likewise.
6058         * lib/memcmp2.h (memcmp2): Likewise.
6059         * lib/parse-datetime.y (lookup_zone): Likewise.
6060         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
6061         [!WINDOWS_SOCKETS]: Likewise.
6062         * lib/strnlen1.h (strnlen1): Likewise.
6063         * lib/uniwidth.in.h (uc_width): Likewise.
6064         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
6065         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
6066         (quoting_options_from_style): Add a comment.
6067         * lib/propername.h (proper_name): Add a comment.
6068
6069 2011-11-27  Bruno Haible  <bruno@clisp.org>
6070
6071         Remove unused macros from !_LIBC code in glibc-borrowed files.
6072         * lib/fnmatch.c (STRCOLL): Remove macro.
6073         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
6074         * lib/glob.c (__stat, __readdir64): Remove macros.
6075         * lib/tempname.c (__open64, __xstat64): Remove macros.
6076         Suggested by Paul Eggert.
6077
6078 2011-11-27  Bruno Haible  <bruno@clisp.org>
6079
6080         getcwd: Fix link error on MSVC 9.
6081         * modules/getcwd (Depends-on): Add readdir, rewinddir.
6082
6083 2011-11-27  Bruno Haible  <bruno@clisp.org>
6084
6085         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
6086         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
6087         HAVE_OPENDIR is 0.
6088         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
6089         HAVE_CLOSEDIR is 0.
6090         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
6091         is 0.
6092         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
6093
6094 2011-11-27  Bruno Haible  <bruno@clisp.org>
6095
6096         getcwd: Fix bug from 2011-08-17.
6097         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
6098         platforms that need it.
6099         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
6100         code of 4 to be a failure, not a success. This ensures that
6101         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
6102
6103 2011-11-27  Bruno Haible  <bruno@clisp.org>
6104
6105         binary-io tests: Avoid test failure on mingw when libtool is used.
6106         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
6107         Don't verify the size of t-bin-out1.tmp here.
6108         * tests/test-binary-io.sh: Verify it here.
6109         Reported by Simon Josefsson.
6110
6111 2011-11-26  Bruno Haible  <bruno@clisp.org>
6112
6113         Fix conflict between two instantiations of module 'unistd'.
6114         * gnulib-tool (func_emit_autoconf_snippet): Substitute
6115         ${include_guard_prefix} also in the autoconf snippet.
6116         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
6117         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
6118         GNULIB_UNISTD_H_GETOPT.
6119         * modules/getopt-posix (configure.ac): Set the
6120         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
6121         * modules/getopt-gnu (configure.ac): Likewise.
6122         * modules/unistd (Makefile.am): Change the substitution value of
6123         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
6124         Reported by Simon Josefsson.
6125
6126 2011-11-25  Bruno Haible  <bruno@clisp.org>
6127
6128         pagealign_alloc: Doc and comments.
6129         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
6130         module.
6131         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
6132
6133 2011-11-25  Jim Meyering  <meyering@redhat.com>
6134
6135         test-update-copyright.sh: avoid false-positive failure
6136         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
6137         around false positive failure on Cygwin/Windows.  The latter was
6138         matching erroneously-created files with names like
6139         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
6140
6141 2011-11-25  Simon Josefsson  <simon@josefsson.org>
6142
6143         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
6144         * m4/valgrind-tests.m4: Check that the parameters that will be
6145         used works, not just a subset of them.  Reported by Bruno Haible
6146         <bruno@clisp.org>.
6147
6148 2011-11-24  Jim Meyering  <meyering@redhat.com>
6149
6150         test-stdalign.c: comment out long double tests
6151         * tests/test-stdalign.c: Don't try to reduce alignment of long double
6152         variables.  That provokes errors like this from gcc-4.7.0 20111124:
6153         error: '_Alignas' specifiers cannot reduce alignment of \
6154         'static_longdouble_alignas'.
6155
6156 2011-11-22  Jim Meyering  <meyering@redhat.com>
6157
6158         init.sh: make "compare /dev/null FILE" output more readable
6159         * tests/init.sh (compare_): Document the preferred order of arguments.
6160         (emit_diff_u_header_): New function.
6161         (compare_dev_null_): Emit a simulated diff, rather than just the
6162         contents of the unexpected file.  Suggestion from Bruno Haible.
6163
6164 2011-11-21  Jim Meyering  <meyering@redhat.com>
6165             Eric Blake  <eblake@redhat.com>
6166
6167         init.sh: work around OSF/1 5.1's mishandling of /dev/null
6168         * tests/init.sh: Make our compare function slightly more portable.
6169         Reported by Bruno Haible in
6170         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
6171
6172 2011-11-21  Simon Josefsson  <simon@josefsson.org>
6173
6174         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
6175         before using it, in code that ends up in config.h.
6176
6177 2011-11-20  Bruno Haible  <bruno@clisp.org>
6178
6179         getcwd: Work around getcwd bug on AIX 5..7.
6180         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
6181         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
6182         Use a different value for gl_cv_func_getcwd_path_max. Move the
6183         definition of HAVE_PARTLY_WORKING_GETCWD from here...
6184         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
6185         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
6186         Define HAVE_MINIMALLY_WORKING_GETCWD.
6187         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
6188         where it is not even minimally working, that is, on AIX.
6189         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
6190         m4/getcwd-path-max.m4.
6191         (main): Update exit code computation.
6192         * doc/posix-functions/getcwd.texi: Mention list of platforms where
6193         getcwd does not handle long file names.
6194
6195 2011-11-20  Bruno Haible  <bruno@clisp.org>
6196
6197         getcwd: Fix bug from 2009-09-10.
6198         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
6199         like "no".
6200
6201 2011-11-20  Simon Josefsson  <simon@josefsson.org>
6202
6203         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
6204
6205 2011-11-20  Bruno Haible  <bruno@clisp.org>
6206
6207         fma tests: Avoid shadowing local variables.
6208         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
6209         expected.
6210
6211 2011-11-20  Bruno Haible  <bruno@clisp.org>
6212
6213         copysignf tests: Fix.
6214         * tests/test-copysignf.c: Fix signature check.
6215
6216 2011-11-20  Bruno Haible  <bruno@clisp.org>
6217
6218         fma: Remove unused code.
6219         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
6220         unused macros.
6221
6222 2011-11-20  Bruno Haible  <bruno@clisp.org>
6223
6224         sethostname: Fix doc about AIX.
6225         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
6226         sethostname; it has it.
6227
6228         sethostname: Mention more portability problems.
6229         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
6230         problem.
6231         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
6232
6233 2011-11-19  Bruno Haible  <bruno@clisp.org>
6234
6235         Depend on module fcntl-h when AT_FDCWD is used.
6236         * modules/utimens (Depends-on): Add fcntl-h.
6237         * modules/areadlinkat (Depends-on): Likewise.
6238         * modules/areadlinkat-with-size (Depends-on): Likewise.
6239         * modules/faccessat (Depends-on): Likewise.
6240         * modules/fchmodat (Depends-on): Likewise.
6241         * modules/fchownat (Depends-on): Likewise.
6242         * modules/getcwd (Depends-on): Likewise.
6243         * modules/mkdirat (Depends-on): Likewise.
6244         * modules/mkfifoat (Depends-on): Likewise.
6245         * modules/readlinkat (Depends-on): Likewise.
6246         * modules/symlinkat (Depends-on): Likewise.
6247         * modules/dup2-tests (Depends-on): Likewise.
6248         * modules/fdutimensat-tests (Depends-on): Likewise.
6249         * modules/futimens-tests (Depends-on): Likewise.
6250
6251 2011-11-19  Bruno Haible  <bruno@clisp.org>
6252
6253         euidaccess: Update a comment.
6254         * lib/euidaccess.c: Update comment about platforms with faccessat.
6255
6256 2011-11-19  Bruno Haible  <bruno@clisp.org>
6257
6258         openat: Fix file list.
6259         * modules/openat (Files): Remove lib/at-func.c.
6260
6261 2011-11-19  Bruno Haible  <bruno@clisp.org>
6262
6263         fstatat: Simplify.
6264         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
6265         gnulib should define rpl_fstatat, there is a
6266         "#define fstatat rpl_fstatat" in <sys/stat.h>.
6267
6268 2011-11-19  Bruno Haible  <bruno@clisp.org>
6269
6270         Ensure 'inline' can be used in tests/test-utimens-common.h.
6271         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
6272         * modules/futimens-tests (configure.ac): Likewise.
6273         * modules/utimens-tests (configure.ac): Likewise.
6274         * modules/utimensat-tests (configure.ac): Likewise.
6275
6276 2011-11-19  Simon Josefsson  <simon@josefsson.org>
6277
6278         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
6279         not hash_insert0.
6280         (hash_insert_if_absent): Doc fix.
6281
6282 2011-11-19  Simon Josefsson  <simon@josefsson.org>
6283
6284         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
6285
6286 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
6287
6288         test-getcwd: disambiguate exit status
6289         * tests/test-getcwd.c (test_long_name): Return 0..7.
6290         (main): Exit with an unambiguous exit status.  The old
6291         code yielded a mysterious mixture of two failure codes.
6292
6293         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
6294         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
6295         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
6296         rpl_fstatat or fstatat.  This should fix the other problem
6297         reported by Kai Habel in
6298         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
6299         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
6300         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
6301         and I reproduced it on a Solaris 8 host we still have in production.
6302
6303 2011-11-18  Jim Meyering  <meyering@redhat.com>
6304
6305         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
6306         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
6307         Add a sentence to the comment.
6308         (hash_insert0): New function that simply calls hash_insert_if_absent.
6309         * lib/hash.h (hash_insert_if_absent): Declare it.
6310         (hash_insert0): Add deprecation attribute.
6311         (_GL_ATTRIBUTE_DEPRECATED): Define.
6312         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
6313         not hash_insert0.
6314         * NEWS: Mention it, even though it's not really an incompatible change.
6315
6316 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
6317
6318         openat: avoid compilation failure due to lack of <errno.h> inclusion
6319         * lib/openat.c: Include <errno.h>.
6320
6321 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
6322
6323         * modules/getcwd (Depends-on): Add fdopendir.
6324         This fixes one of the two problems reported by Kai Habel in
6325         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
6326
6327         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
6328         stdalign problem reported by Ian Beckwith in
6329         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
6330         * modules/crypto/gc-arcfour (Depends-on):
6331         Depend conditionally on crypto/arcfour.
6332         * modules/crypto/gc-arctwo (Depends-on):
6333         Depend conditionally on crypto/arctwo.
6334         * modules/crypto/gc-des (Depends-on):
6335         Depend conditionally on crypto/des.
6336         * modules/crypto/gc-hmac-md5 (Depends-on):
6337         Depend conditionally on crypto/hmac-md5.
6338         * modules/crypto/gc-hmac-sha1 (Depends-on):
6339         Depend conditionally on crypto/hmac-sha1.
6340         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
6341         * modules/crypto/gc-md4 (Depends-on):
6342         Depend conditionally on crypto/md4.
6343         * modules/crypto/gc-md5 (Depends-on):
6344         Depend conditionally on crypto/md5.
6345         * modules/crypto/gc-rijndael (Depends-on):
6346         Depend conditionally on crypto/rijndael.
6347         * modules/crypto/gc-sha1 (Depends-on):
6348         Depend conditionally on crypto/sha1.
6349         * modules/crypto/gc-arcfour:
6350         * modules/crypto/gc-arctwo:
6351         * modules/crypto/gc-des:
6352         * modules/crypto/gc-hmac-md5:
6353         * modules/crypto/gc-hmac-sha1:
6354         * modules/crypto/gc-md2:
6355         * modules/crypto/gc-md4:
6356         * modules/crypto/gc-md5:
6357         * modules/crypto/gc-rijndael:
6358         * modules/crypto/gc-sha1:
6359         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
6360         now that the conditional dependencies do the work for us.
6361
6362 2011-11-17  Jim Meyering  <meyering@redhat.com>
6363
6364         tests: factor st_ctime-comparison out of two headers
6365         * tests/test-utimens-common.h (ctime_compare): Define.
6366         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
6367         * tests/test-lutimens.h (test_lutimens): Likewise.
6368         * tests/test-utimens.h (test_utimens): Likewise.
6369
6370         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
6371         Invoke the test program via an init.sh-using wrapper.
6372         * tests/test-getcwd.sh: New file.
6373         * modules/getcwd-tests (Files): Add it.
6374         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
6375
6376 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
6377
6378         gitlog-to-changelog: support multi-author commits.
6379         The FSF cares about keeping track of all authors of patches to its
6380         projects, but Git doesn't provide obvious support for multi-author
6381         changesets. Consensus seems to be forming around the use of extra
6382         Signed-off-by inspired lines in the log message formatted as
6383         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
6384         multi-author commits between version control systems.
6385         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
6386         log message and output in standard ChangeLog multi-author format.
6387         Reported by Peter Rosin <peda@lysator.liu.se>
6388
6389 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
6390             Bruno Haible  <bruno@clisp.org>
6391
6392         Fix some modules' file list.
6393         * modules/fstatat (Files): Add m4/lstat.m4.
6394         * modules/openat (Files): Likewise.
6395         * modules/unlinkat (Files): Likewise.
6396
6397 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
6398
6399         maint.mk: fix tight-scope.mk generation in VPATH builds.
6400         * top/maint.mk (tight-scope.mk): Make sure to prefix file
6401         reference with $(srcdir) so that the file is found correctly even
6402         when running `make syntax-check' in a VPATH build.
6403
6404 2011-11-13  Bruno Haible  <bruno@clisp.org>
6405             Jim Meyering  <meyering@redhat.com>
6406
6407         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
6408         * tests/init.sh (compare): Remove "No differences encountered" or
6409         synonymous output from the 'diff' program.
6410
6411 2011-11-13  Bruno Haible  <bruno@clisp.org>
6412
6413         Makefile: Tweak indentation.
6414         * Makefile: Use tab as first character in every line that contains rule
6415         commands.
6416
6417 2011-11-13  Bruno Haible  <bruno@clisp.org>
6418
6419         Syntax check for copyright statements.
6420         * check-copyright: New file.
6421         * Makefile (sc_check_copyright): New rule.
6422
6423 2011-11-13  Simon Josefsson  <simon@josefsson.org>
6424
6425         * build-aux/git-version-gen: Add --prefix to configure the tag
6426         match string.
6427
6428 2011-11-13  Simon Josefsson  <simon@josefsson.org>
6429
6430         * build-aux/git-version-gen: Add --help and --version.
6431
6432 2011-11-12  Jim Meyering  <meyering@redhat.com>
6433
6434         revamp the other test-exclude?.sh scripts to use init.sh, too
6435         * tests/test-exclude1.sh: Use init.sh.
6436         * tests/test-exclude2.sh: Likewise.
6437         * tests/test-exclude3.sh: Likewise.
6438         * tests/test-exclude4.sh: Likewise.
6439         * tests/test-exclude5.sh: Likewise.
6440         * tests/test-exclude6.sh: Likewise.
6441         * tests/test-exclude7.sh: Likewise.
6442         * tests/test-exclude8.sh: Likewise.
6443         * modules/exclude-tests (Files): List init.sh.
6444
6445         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
6446         These shell scripts ignored failure of the binary test-exclude,
6447         so making the latter return 77 didn't cause them to be skipped.
6448         * tests/test-exclude5.sh: Exit with test-exclude's error status
6449         when that program fails.  Revamp to use init.sh.
6450         * tests/test-exclude2.sh: Likewise.
6451
6452         test-exclude: fix a typo
6453         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
6454
6455 2011-11-11  Bruno Haible  <bruno@clisp.org>
6456
6457         obstack: Fix compilation error on MSVC 9.
6458         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
6459
6460 2011-11-11  Jim Meyering  <meyering@redhat.com>
6461
6462         test-exclude: skip tests rather than failing on deficient systems
6463         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
6464         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
6465         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
6466         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
6467
6468 2011-11-10  Bruno Haible  <bruno@clisp.org>
6469
6470         ptsname_r test: Avoid gcc warning on glibc systems.
6471         * tests/test-ptsname_r.c (null_ptr): New function.
6472         (test_errors): Use it.
6473
6474 2011-11-10  Bruno Haible  <bruno@clisp.org>
6475
6476         ptsname_r: Avoid compilation error on OSF/1 5.1.
6477         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
6478         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
6479         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
6480         function is not declared or incompatibly declared.
6481         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
6482         * modules/ptsname_r (Depends-on, configure.ac): Update.
6483         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
6484
6485 2011-11-10  Bruno Haible  <bruno@clisp.org>
6486
6487         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
6488         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
6489         When cross-compiling, guess yes on all platforms except AIX.
6490         Reported by Ludovic Courtès <ludo@gnu.org>.
6491
6492 2011-11-09  Bruno Haible  <bruno@clisp.org>
6493
6494         ptsname_r tests: Fix bugs.
6495         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
6496         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
6497
6498 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
6499
6500         fstatat: work with cross-compilation
6501         Problem reported by Ludovic Courtès in
6502         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
6503         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
6504         "cross-compiling" and assume the bug is present.  Replace
6505         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
6506         an inverted sense, to be more conservative about our assumptions.
6507         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
6508
6509 2011-11-09  Bruno Haible  <bruno@clisp.org>
6510
6511         Improve MODULES.html output.
6512         * modules/mkfifoat (Description): Use the word "function".
6513         * modules/readlinkat (Description): Likewise.
6514         * modules/symlinkat (Description): Likewise.
6515
6516 2011-11-09  Eric Blake  <eblake@redhat.com>
6517
6518         ptsname_r-tests: new test module
6519         * modules/ptsname_r-tests: New module.
6520         * tests/test-ptsname_r.c: New file.
6521
6522         ptsname_r: new module
6523         * modules/ptsname_r: New module.
6524         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
6525         * lib/ptsname.c (__ptsname_r): Split...
6526         * lib/ptsname_r.c: ...into new file.
6527         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
6528         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
6529         * modules/stdlib (Makefile.am): Substitute witnesses.
6530         * lib/stdlib.in.h (ptsname_r): Declare it.
6531         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
6532         * MODULES.html.sh (Misc): Likewise.
6533         * modules/ptsname (Depends-on): Alter dependency.
6534         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
6535
6536 2011-11-09  Jim Meyering  <meyering@redhat.com>
6537
6538         announce-gen: be more concise when there's only one URL+tarball
6539         * build-aux/announce-gen (get_tool_versions): When you distribute
6540         only one type of tarball, combine the first two "Here are..."
6541         sections and make the key-checking grammar independent of
6542         how many tarballs there are.
6543
6544 2011-11-09  Eric Blake  <eblake@redhat.com>
6545
6546         openpty: provide a stub on mingw
6547         * lib/pty.in.h (includes): Provide forward declarations.
6548         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
6549
6550         raise: fix mingw handling of SIGPIPE
6551         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
6552
6553 2011-11-08  Bruno Haible  <bruno@clisp.org>
6554
6555         More conditional dependencies.
6556         * modules/faccessat (Depends-on): Add conditions.
6557         * modules/fchmodat (Depends-on): Likewise.
6558         * modules/fchownat (Depends-on): Likewise.
6559         * modules/fstatat (Depends-on): Likewise.
6560         * modules/mkfifoat (Depends-on): Likewise.
6561         * modules/readlinkat (Depends-on): Likewise.
6562         * modules/symlinkat (Depends-on): Likewise.
6563         * modules/unlinkat (Depends-on): Likewise.
6564         * modules/utimensat (Depends-on): Likewise.
6565         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
6566         * modules/linkat (Depends-on): Refine the conditions.
6567         * modules/renameat (Depends-on): Likewise.
6568
6569 2011-11-08  Bruno Haible  <bruno@clisp.org>
6570
6571         faccessat: Move AC_LIBOBJ invocation to module description.
6572         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
6573         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
6574         invocation from here...
6575         * modules/faccessat (configure.ac): ... to here. Invoke
6576         gl_PREREQ_FACCESSAT.
6577
6578 2011-11-08  Bruno Haible  <bruno@clisp.org>
6579
6580         faccessat: Simplify autoconf macro.
6581         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
6582         gl_FUNC_EUIDACCESS.
6583
6584 2011-11-08  Bruno Haible  <bruno@clisp.org>
6585
6586         renameat: Fix dependencies.
6587         * modules/renameat (Depends-on): Add stdbool.
6588
6589 2011-11-08  Bruno Haible  <bruno@clisp.org>
6590
6591         mkfifoat: Fix module description.
6592         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
6593         not gl_UNISTD_MODULE_INDICATOR.
6594
6595 2011-11-08  Bruno Haible  <bruno@clisp.org>
6596
6597         fstatat: Remove unused dependency.
6598         * modules/fstatat (Depends-on): Remove fstat.
6599
6600 2011-11-08  Simon Josefsson  <simon@josefsson.org>
6601
6602         GNUmakefile: behave when Makefile is missing.
6603         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
6604
6605 2011-11-08  Bruno Haible  <bruno@clisp.org>
6606
6607         openat: Conditionalize dependencies.
6608         * lib/openat.c: Reduce the scope of some #includes.
6609         * modules/openat (Depends-on): Add conditions.
6610
6611 2011-11-07  Jim Meyering  <meyering@redhat.com>
6612
6613         maint.mk: extract GPG key ID without using a temporary file
6614         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
6615         without using a temporary file.  Based on a suggestion from Werner Koch
6616         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
6617
6618 2011-11-07  Eric Blake  <eblake@redhat.com>
6619
6620         grantpt: fix typo
6621         * lib/stdlib.in.h (grantpt): Check correct function.
6622
6623         maint.mk: silence new syntax check
6624         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
6625
6626 2011-11-06  Bruno Haible  <bruno@clisp.org>
6627
6628         Doc about floating-point and math API.
6629         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
6630         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
6631
6632 2011-11-06  Bruno Haible  <bruno@clisp.org>
6633
6634         stdalign tests: Skip the test when compiled by Sun C.
6635         * tests/test-stdalign.c (main): Skip the test on Sun C.
6636
6637 2011-11-06  Bruno Haible  <bruno@clisp.org>
6638
6639         ansi-c++-opt: Complete the 2011-06-05 change.
6640         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
6641         does not support namespaces, set the variable to "no", not to ":".
6642
6643 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
6644
6645         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
6646
6647 2011-11-06  Bruno Haible  <bruno@clisp.org>
6648
6649         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
6650         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
6651         (minus_zerol) [HP-UX]: New macro.
6652         (unary_minus) [HP-UX]: New function.
6653         (copysignl) [HP-UX]: Use unary_minus function.
6654
6655 2011-11-06  Bruno Haible  <bruno@clisp.org>
6656
6657         ldexp, ldexpf, ldexpl: Enhance tests.
6658         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
6659         and tests/test-ldexpl.c.
6660         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
6661         LDEXP, MIN_EXP, MAX_EXP): New macros.
6662         Include test-ldexp.h.
6663         (main): Just call test_function.
6664         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
6665         infinity.h, nan.h.
6666         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
6667         MAX_EXP): New macros.
6668         Include test-ldexp.h.
6669         (x, y): Remove variables.
6670         (main): Just call test_function.
6671         * tests/test-ldexpf.c: Include float.h, isnanf-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         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
6679         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
6680         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
6681         (Depends-on): Add isnand-nolibm, signbit, float.
6682         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
6683         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
6684         (Depends-on): Add isnanf-nolibm, signbit, float.
6685
6686 2011-11-06  Bruno Haible  <bruno@clisp.org>
6687
6688         math tests: Cosmetics.
6689         * tests/test-math-c++.cc: Reorder declarations.
6690
6691 2011-11-05  Bruno Haible  <bruno@clisp.org>
6692
6693         fma*: Simplify test.
6694         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
6695         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
6696
6697         Tests for module 'fmal'.
6698         * modules/fmal-tests: New file.
6699         * tests/test-fmal1.c: New file.
6700         * tests/test-fmal2.c: New file.
6701
6702         New module 'fmal'.
6703         * lib/math.in.h (fmal): New declaration.
6704         * lib/fmal.c: New file.
6705         * m4/fmal.m4: New file.
6706         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
6707         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
6708         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
6709         REPLACE_FMAL.
6710         * modules/fmal: New file.
6711         * doc/posix-functions/fmal.texi: Mention the new module and the various
6712         bugs.
6713
6714         Tests for module 'fmaf'.
6715         * modules/fmaf-tests: New file.
6716         * tests/test-fmaf1.c: New file.
6717         * tests/test-fmaf2.c: New file.
6718
6719         New module 'fmaf'.
6720         * lib/math.in.h (fmaf): New declaration.
6721         * lib/fmaf.c: New file.
6722         * m4/fmaf.m4: New file.
6723         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
6724         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
6725         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
6726         REPLACE_FMAF.
6727         * modules/fmaf: New file.
6728         * doc/posix-functions/fmaf.texi: Mention the new module and the various
6729         bugs.
6730
6731         Tests for module 'fma'.
6732         * modules/fma-tests: New file.
6733         * tests/test-fma1.c: New file.
6734         * tests/test-fma1.h: New file.
6735         * tests/test-fma2.c: New file.
6736         * tests/test-fma2.h: New file.
6737
6738         New module 'fma'.
6739         * lib/math.in.h (fma): New declaration.
6740         * lib/fma.c: New file.
6741         * m4/fma.m4: New file.
6742         * m4/fegetround.m4: New file.
6743         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
6744         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
6745         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
6746         REPLACE_FMA.
6747         * modules/fma: New file.
6748         * doc/posix-functions/fma.texi: Mention the new module and the various
6749         bugs.
6750
6751         Extend gl_MATHFUNC.
6752         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
6753         Support 'void' as argument type.
6754         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
6755
6756 2011-11-05  Jim Meyering  <meyering@redhat.com>
6757
6758         maint.mk: also prohibit inclusion of dirent.h without use
6759         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
6760
6761 2011-11-05  Bruno Haible  <bruno@clisp.org>
6762
6763         ldexpl tests: Avoid test failure on MSVC 9.
6764         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
6765         value. Needed in order to enforce the conversion from a value greater
6766         than LDBL_MAX to Infinity.
6767
6768 2011-11-05  Bruno Haible  <bruno@clisp.org>
6769
6770         New modules 'at-internal', 'openat-h', split off from module 'openat'.
6771         * modules/at-internal: New file, extracted from modules/openat.
6772         * modules/openat-h: New file.
6773         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
6774         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
6775         * modules/openat (Description): Add reference to POSIX function.
6776         (Files): Remove lib/openat.h, lib/openat-proc.c.
6777         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
6778         intprops, unistd.
6779         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
6780         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
6781         gl_FCNTL_MODULE_INDICATOR.
6782         (Include): Remove unistd.h, openat.h.
6783         * modules/areadlinkat (Files): Add lib/at-func.c.
6784         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
6785         openat-die, openat-h, save-cwd.
6786         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
6787         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
6788         openat-die, openat-h, save-cwd, unistd.
6789         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
6790         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
6791         openat-h, save-cwd. Remove fcntl-h, openat.
6792         * modules/fchmodat (Files): Remove lib/openat.h.
6793         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
6794         openat, stdbool, unistd.
6795         * modules/fchownat (Files): Remove lib/openat.h.
6796         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
6797         openat, stdbool, sys_stat.
6798         * modules/fdopendir (Files): Remove lib/openat-priv.h,
6799         lib/openat-proc.c.
6800         (Depends-on): Add at-internal.
6801         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
6802         * modules/fstatat (Files): Remove lib/openat.h.
6803         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
6804         stdbool, unistd.
6805         * modules/fts (Depends-on): Add openat-h.
6806         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
6807         openat.
6808         * modules/mkdirat (Files): Remove lib/openat.h.
6809         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
6810         openat, stdbool, sys_stat.
6811         * modules/mkfifoat (Files): Add lib/at-func.c.
6812         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
6813         openat-h, save-cwd. Remove fcntl-h, openat.
6814         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
6815         * modules/readlinkat (Files): Add lib/at-func.c.
6816         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
6817         openat-h, save-cwd. Remove fcntl-h, openat.
6818         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
6819         openat.
6820         * modules/selinux-at (Files): Add lib/at-func.c.
6821         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
6822         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
6823         * modules/symlinkat (Files): Add lib/at-func.c.
6824         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
6825         openat-h, save-cwd. Remove fcntl-h, openat.
6826         * modules/unlinkat (Files): Remove lib/openat.h.
6827         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
6828         stdbool.
6829         * modules/utimensat (Files): Add lib/at-func.c.
6830         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
6831         openat-die, openat-h, save-cwd.
6832         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
6833         * modules/fdutimensat-tests (Depends-on): Add openat.
6834         * modules/fstatat-tests (Depends-on): Add openat-h.
6835         * modules/readlinkat-tests (Depends-on): Add openat.
6836         * modules/symlinkat-tests (Depends-on): Add openat.
6837
6838 2011-11-05  Bruno Haible  <bruno@clisp.org>
6839
6840         openat: Include <stdbool.h>.
6841         * lib/openat.c: Include <stdbool.h>.
6842
6843 2011-11-04  Bruno Haible  <bruno@clisp.org>
6844
6845         fchownat, renameat, unlinkat: Fix dependencies.
6846         * modules/fchownat (Depends-on): Add fstatat.
6847         * modules/renameat (Depends-on): Likewise.
6848         * modules/unlinkat (Depends-on): Likewise.
6849
6850 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
6851
6852         openat: remove direct dependency on dirent
6853         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
6854         and hasn't been needed ever since fdopendir was split into its own
6855         module on 2009-08-31.
6856         * modules/openat (Depends-on): Remove dirent.
6857
6858 2011-11-04  Bruno Haible  <bruno@clisp.org>
6859
6860         renameat: Optimize code size.
6861         * modules/renameat (configure.ac): Don't compile at-func2.c if
6862         REPLACE_RENAMEAT is 1.
6863
6864 2011-11-04  Bruno Haible  <bruno@clisp.org>
6865
6866         openat tests: Fix file list.
6867         * modules/openat-tests (Files): Add tests/test-open.h.
6868
6869 2011-11-04  Bruno Haible  <bruno@clisp.org>
6870
6871         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
6872         * modules/fchmodat (Depends-on): Add openat-die.
6873         * modules/fchownat (Depends-on): Likewise.
6874         * modules/linkat (Depends-on): Likewise.
6875         * modules/renameat (Depends-on): Likewise.
6876         * modules/openat (Depends-on): Add dirent.
6877
6878 2011-11-04  Jim Meyering  <meyering@redhat.com>
6879
6880         at-func*.c: fix comments
6881         * lib/at-func2.c: Correct/improve first-line comment.
6882         * lib/at-func.c: Correct grammar in first-line comment.
6883
6884 2011-11-04  Bruno Haible  <bruno@clisp.org>
6885
6886         New module 'mkdirat', split off from module 'openat'.
6887         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
6888         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
6889         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
6890         * modules/mkdirat: New file, extracted from modules/openat.
6891         * modules/openat (Files): Remove lib/mkdirat.c.
6892         (Depends-on): Remove mkdir.
6893         (configure.ac): Remove AC_LIBOBJ of mkdirat.
6894         (Include): Remove <sys/stat.h>.
6895         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
6896         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
6897         tests/test-mkdir.h.
6898         (Depends-on): Remove ignore-value.
6899         (Makefile.am): Remove rules for test-mkdirat.
6900         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
6901         of module 'openat'.
6902         * NEWS: Mention the change.
6903
6904 2011-11-04  Bruno Haible  <bruno@clisp.org>
6905
6906         closedir: Avoid warning on mingw.
6907         * lib/closedir.c: Include <unistd.h>.
6908
6909 2011-11-04  Bruno Haible  <bruno@clisp.org>
6910
6911         New module 'fstatat', split off from module 'openat'.
6912         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
6913         defined.
6914         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
6915         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
6916         gl_FUNC_FSTATAT.
6917         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
6918         * modules/fstatat: New file, extracted from modules/openat.
6919         * modules/openat (Files): Remove lib/fstatat.c.
6920         (Depends-on): Remove lstat.
6921         (configure.ac): Remove AC_LIBOBJ of fstatat.
6922         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
6923         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
6924         tests/test-lstat.h, tests/test-stat.h.
6925         (Depends-on): Remove getcwd-lgpl.
6926         (Makefile.am): Remove rules for test-fstatat.
6927         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
6928         of module 'openat'.
6929         * NEWS: Mention the change.
6930         * modules/getcwd (Depends-on): Add fstatat.
6931         * modules/linkat (Depends-on): Likewise.
6932         * modules/mkfifoat-tests (Depends-on): Likewise.
6933         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
6934
6935 2011-11-03  Bruno Haible  <bruno@clisp.org>
6936
6937         New module 'unlinkat', split off from module 'openat'.
6938         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
6939         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
6940         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
6941         * modules/unlinkat: New file, extracted from modules/openat. Correct
6942         the dependency conditions.
6943         * modules/openat (Files): Remove lib/unlinkat.c.
6944         (Depends-on): Remove rmdir, unlink.
6945         (configure.ac): Remove AC_LIBOBJ of unlinkat.
6946         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
6947         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
6948         tests/test-rmdir.h, tests/test-unlink.h.
6949         (Depends-on): Remove unlinkdir.
6950         (Makefile.am): Remove rules for test-unlinkat.
6951         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
6952         of module 'openat'.
6953         * NEWS: Mention the change.
6954         * modules/linkat-tests (Depends-on): Add unlinkat.
6955         * modules/mkfifoat-tests (Depends-on): Likewise.
6956         * modules/readlinkat-tests (Depends-on): Likewise.
6957
6958 2011-11-02  Bruno Haible  <bruno@clisp.org>
6959
6960         New module 'fchmodat', split off from module 'openat'.
6961         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
6962         defined.
6963         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
6964         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
6965         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
6966         * modules/fchmodat: New file, extracted from modules/openat.
6967         * modules/openat (Files): Remove lib/fchmodat.c.
6968         (configure.ac): Remove AC_LIBOBJ of fchmodat.
6969         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
6970         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
6971         (Makefile.am): Remove rules for test-fchmodat.
6972         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
6973         of module 'openat'.
6974         * NEWS: Mention the change.
6975
6976 2011-11-02  Jim Meyering  <meyering@redhat.com>
6977
6978         putenv: indent #definition of "environ" to placate cppi
6979         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
6980
6981         gitlog-to-changelog: provide a ChangeLog-repair mechanism
6982         Git logs are often treated as immutable, because editing them
6983         changes the SHA1 checksums of all descendants.  Thus, errors in
6984         git logs tend to stay there forever.  However, when we generate
6985         a ChangeLog file -- typically for distribution -- from that git log,
6986         we can actually make corrections in the generated file.  The key
6987         lies in recording in machine-readable/applicable form the desired
6988         corrections.  See --help for description and an example.
6989         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
6990         (usage): Describe it; alphabetize option descriptions.
6991         (main): Honor the new option, carefully.
6992
6993 2011-11-01  Jim Meyering  <meyering@redhat.com>
6994
6995         gitlog-to-changelog: avoid an infloop
6996         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
6997         that ends up being empty.
6998
6999 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
7000
7001         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
7002         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
7003         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
7004         contains (possibly-quoted) backslashes.  This should avoid
7005         all-too-common shell bugs if COMPLICATED contains backslashes in
7006         the "wrong" places.  Reported by David Evans in
7007         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
7008         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
7009         because we want ASCII ranges.  Is there some reason we don't use
7010         the C locale everywhere in this script?
7011         (func_module, top level): Avoid unwanted pathname expansion when
7012         $repo_url_prefix or $repo_url_suffix_repl contain shell
7013         metacharacters like '?' and '*'.
7014
7015 2011-11-01  Bruno Haible  <bruno@clisp.org>
7016
7017         fchownat: Improve description.
7018         * modules/fchownat (Description): Add link to function.
7019
7020 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
7021
7022         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
7023         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
7024         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
7025         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
7026
7027 2011-11-01  Bruno Haible  <bruno@clisp.org>
7028
7029         alignof: Avoid collision with stdalign module.
7030         * lib/alignof.h (alignof): Remove macro.
7031         * NEWS: Mention the change.
7032         Reported by Paul Eggert.
7033
7034 2011-11-01  Bruno Haible  <bruno@clisp.org>
7035
7036         New module 'fchownat', split off from module 'openat'.
7037         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
7038         defined.
7039         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
7040         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
7041         invoke gl_FUNC_FCHOWNAT.
7042         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
7043         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
7044         * modules/fchownat: New file, extracted from modules/openat.
7045         * modules/openat (Files): Remove lib/fchownat.c.
7046         (Depends-on): Remove lchown.
7047         (configure.ac): Remove AC_LIBOBJ of fchownat.
7048         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
7049         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
7050         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
7051         (Depends-on): Remove mgetgroups, usleep, stat-time.
7052         (configure.ac): Remove test for getegid.
7053         (Makefile.am): Remove rules for test-fchownat.
7054         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
7055         of module 'openat'.
7056         * NEWS: Mention the change.
7057
7058 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
7059
7060         stdalign: port better to MSVC and to Sun C 5.11
7061         This fixes some of the problems reported by Bruno Haible in
7062         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
7063         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
7064         shortcomings of MSVC and of Sun C 5.11.
7065         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
7066         around __declspec arg.
7067         * modules/stdalign-tests (Files): Add tests/macros.h.
7068         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
7069         Include macros.h, for ASSERT.
7070         (DECLARE_ALIGNED): Remove.
7071         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
7072         to catch bug), and to 1 if not (simplifies the rest of the code).
7073         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
7074         (CHECK_AUTO): Remove.
7075         (CHECK_ALIGNED): Check only the alignment of the static vars,
7076         since auto var alignment isn't supported by Sun C 5.11.
7077         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
7078         ASSERT failures are easier to diagnose.
7079
7080 2011-10-31  Bruno Haible  <bruno@clisp.org>
7081
7082         doc about some IRIX 5.3 problems.
7083         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
7084         on IRIX 5.3.
7085         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
7086         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
7087         5.3.
7088         * doc/posix-functions/grantpt.texi: Likewise.
7089         * doc/posix-functions/unlockpt.texi: Likewise.
7090         * doc/posix-functions/lgamma.texi: Likewise.
7091         * doc/posix-functions/nextafter.texi: Likewise.
7092         * doc/posix-functions/remainder.texi: Likewise.
7093         * doc/posix-functions/select.texi: Mention misplaced declaration on
7094         IRIX 5.3.
7095         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7096
7097 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
7098
7099         gitlog-to-changelog: fix git-log invocation.
7100         git-log mishandles date strings before 1970-01-01 UTC, and there is
7101         no use to specify --since=1970-01-01 by default anyway.
7102         * build-aux/gitlog-to-changelog: By default, when no --since option
7103         was given, do not specify explicit --since option to git-log.
7104
7105 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
7106
7107         gitlog-to-changelog: new option --append-dot.
7108         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
7109         first non-blank line of each commit message terminated with a dot.
7110
7111 2011-10-30  Bruno Haible  <bruno@clisp.org>
7112
7113         ffsl, ffsll: Avoid compilation error due to 'restrict'.
7114         * lib/ffsl.h: Include <config.h>.
7115         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
7116
7117 2011-10-30  Jim Meyering  <meyering@redhat.com>
7118
7119         GNUmakefile: reenable "make syntax-check" for most projects
7120         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
7121         build-aux variable", "syntax-check" would do nothing but succeed with
7122         the "No version control files detected..." diagnostic (unless you
7123         happened to override _build-aux via cfg.mk).
7124         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
7125         to precede inclusion of maint.mk.  Otherwise, these variables would
7126         be used undefined in any project that does not override the default.
7127
7128 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
7129
7130         gitlog-to-changelog: treat a message with only blank lines as empty.
7131         * build-aux/gitlog-to-changelog: Move the code that removes leading and
7132         trailing blank lines before the code that issues a warning about an
7133         empty commit message.
7134
7135 2011-10-30  Jim Meyering  <meyering@redhat.com>
7136
7137         test-parse-datetime.c: avoid new DST-related false positive test failure
7138         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
7139         based on the time/date we'll convert, not the current time.
7140         Otherwise, the moment we cross a DST boundary like today's in
7141         Europe, (CEST to CET), that offset ends up being one hour off.
7142
7143 2011-10-27  Bruno Haible  <bruno@clisp.org>
7144
7145         fstat: Tweak documentation.
7146         * modules/fstat (Description): More precise description.
7147
7148 2011-10-27  Bruno Haible  <bruno@clisp.org>
7149
7150         Update documentation regarding 'largefile' module.
7151         * doc/posix-functions/fstat.texi: Tweak wording.
7152         * doc/posix-functions/opendir.texi: Mention that the module fixes the
7153         problems with huge directories and/or small ino_t types.
7154         * doc/posix-functions/readdir.texi: Likewise.
7155         * doc/posix-functions/rewinddir.texi: Likewise.
7156
7157 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
7158
7159         maint.mk: don't maintain a second build-aux variable.
7160         * maint.mk (build_aux): Removed.  The maintainer-makefile module
7161         depends on GNUmakefile, which already maintains a cfg.mk
7162         overridable $(_build-aux) for projects with a non-standard
7163         build-aux directory location, although without the $(srcdir)
7164         prefix.  Use that variable consistently instead of introducing a
7165         second one.  Adjust all call sites.
7166
7167 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
7168
7169         Add stdalign module and use it in other modules.
7170         This is based on a previous proposal by Bruno Haible
7171         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
7172
7173         stdalign: new module
7174         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
7175         * modules/stdalign: New files.
7176         * MODULES.html.sh (c1x_core_properties): Add stdalign.
7177         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
7178
7179         stdalign-tests: new module
7180         * modules/stdalign-tests, tests/test-stdalign.c: New files.
7181
7182         argp: use stdalign
7183         * lib/argp-parse.c: Include <stdalign.h>.
7184         (alignof): Remove.
7185         * modules/argp (Depends-on): Add stdalign.
7186
7187         crypto libraries: use stdalign
7188         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
7189         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
7190         Do not include <stdlib.h> twice, in md4.c.
7191         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
7192         because we are accessing a pointer's bit-pattern, not a size.
7193         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
7194         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
7195         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
7196         * modules/crypto/sha512: Likewise.
7197
7198         sys_socket: use stdalign, not alignof
7199         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
7200         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
7201
7202 2011-10-27  Bruno Haible  <bruno@clisp.org>
7203
7204         raise test: Avoid a test failure on Linux/MIPS.
7205         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
7206         because 99 is a valid signal on Linux/MIPS.
7207
7208 2011-10-27  Bruno Haible  <bruno@clisp.org>
7209
7210         nonblocking tests: Fix test failure on Linux/MIPS.
7211         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
7212         Set to 270000.
7213
7214 2011-10-27  Bruno Haible  <bruno@clisp.org>
7215
7216         utimensat: Work around problem on Linux/hppa.
7217         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
7218         values.
7219         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
7220
7221 2011-10-25  Jim Meyering  <meyering@redhat.com>
7222
7223         maint.mk: fix a bug in sc_prohibit_stddef_without_use
7224         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
7225         after symbols like NULL, size_t, etc.
7226         Reported by Alfred M. Szmidt.
7227
7228         maint.mk: exempt ENODATA from a syntax-check rule
7229         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
7230         from the sc_prohibit_always-defined_macros syntax-check rule.
7231         Add a comment.  See this for more details:
7232         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
7233
7234 2011-10-23  Jim Meyering  <meyering@redhat.com>
7235
7236         fts: close parent dir FD before returning from post-traversal fts_read
7237         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
7238         unlink A, even though an FD open on A remained.  This is suboptimal
7239         (holding a file descriptor open longer than needed), but otherwise not
7240         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
7241         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
7242         that represents a real problem: it causes the removal of A to fail
7243         with e.g., "rm: cannot remove `A': Device or resource busy"
7244
7245         fts visits each directory twice and keeps a cache (fts_fd_ring) of
7246         directory file descriptors.  After completing the final, FTS_DP,
7247         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
7248         cache, but then proceeded to add a new FD to it via the subsequent
7249         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
7250         final file descriptor would be closed only via fts_close's call to
7251         fd_ring_clear.  Now, it is usually closed earlier, via the final
7252         FTS_DP-returning fts_read call.
7253         * lib/fts.c (restore_initial_cwd): New function, converted from
7254         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
7255         Update callers.
7256         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
7257         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
7258
7259 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
7260             Bruno Haible  <bruno@clisp.org>
7261             Jim Meyering  <jim@meyering.net>
7262
7263         readme-release: improve safety of release prep instructions.
7264         * README-release: Don't git pull all branches when only master
7265         is needed for the release process.
7266         Run make maintainer-clean before changing trees and merging.
7267         Don't try to run ./configure right after git pull in case files
7268         that influence the bootstrap process have changed, move the
7269         ./configure step to after running ./bootstrap.
7270         Don't bootstrap "one last time"... it's the first time!
7271
7272 2011-10-22  Bruno Haible  <bruno@clisp.org>
7273
7274         errno, strerror-override: Support for MSVC 10.
7275         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
7276         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
7277         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
7278         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
7279         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
7280         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
7281         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
7282         Assign values compatible with MSVC 10.
7283         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
7284         New macros.
7285         (GNULIB_defined_EWINSOCK): New macro.
7286         * lib/strerror-override.c (strerror_override): Update accordingly.
7287         * lib/strerror-override.h: Likewise.
7288         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
7289         longer equal to the corresponding errno value.
7290         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
7291
7292 2011-10-22  Bruno Haible  <bruno@clisp.org>
7293
7294         perror: Recognize when test program crashes.
7295         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
7296         strerror, set gl_cv_func_perror_works to no.
7297         Reported by Daniel Richard G. <skunk@iskunk.org>.
7298
7299         perror: Fix indentation.
7300         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
7301
7302 2011-10-22  Bruno Haible  <bruno@clisp.org>
7303
7304         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
7305         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
7306         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
7307         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
7308         functions, not as a macro.
7309         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
7310         macros.
7311         (isfinite, isinf, isnan, signbit): Check overloaded functions and
7312         absence of macro.
7313         Suggested by Eric Blake.
7314         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
7315
7316 2011-10-21  Bruno Haible  <bruno@clisp.org>
7317
7318         relocatable-prog-wrapper: Don't leave object files behind.
7319         * build-aux/install-reloc: Re-synchronize list of .o files to be
7320         removed with list of compilation units.
7321
7322 2011-10-20  Bruno Haible  <bruno@clisp.org>
7323
7324         openpty, posix_openpt: Remove code duplication.
7325         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
7326         * lib/openpty.c: Include <stdlib.h>.
7327         (openpty): Use posix_openpt on all platforms except IRIX.
7328         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
7329
7330 2011-10-20  Bruno Haible  <bruno@clisp.org>
7331
7332         unlockpt: Detect invalid argument.
7333         * lib/unlockpt.c: Include <fcntl.h>.
7334         (unlockpt): Check whether fd is valid, using fcntl().
7335         * modules/unlockpt (Depends-on): Add fcntl-h.
7336
7337 2011-10-20  Bruno Haible  <bruno@clisp.org>
7338
7339         openpty: Avoid compilation error on AIX 6.1.
7340         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
7341
7342 2011-10-20  Bruno Haible  <bruno@clisp.org>
7343
7344         posix_openpt: Support for OpenBSD.
7345         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
7346         (posix_openpt) [OpenBSD]: New code.
7347         * lib/grantpt.c: Include <fcntl.h>.
7348         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
7349         * modules/grantpt (Depends-on): Add fcntl-h.
7350
7351 2011-10-20  Bruno Haible  <bruno@clisp.org>
7352
7353         posix_openpt test: Coding style.
7354         * tests/test-posix_openpt.c: Use GNU coding style.
7355
7356 2011-10-20  Bruno Haible  <bruno@clisp.org>
7357
7358         grantpt: Support --avoid=pt_chown.
7359         * modules/grantpt (Files): Add lib/pty-private.h.
7360
7361 2011-10-20  Bruno Haible  <bruno@clisp.org>
7362
7363         posix_openpt: Fix autoconf macro.
7364         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
7365         unneeded check for _getpty.
7366
7367 2011-10-20  Bruno Haible  <bruno@clisp.org>
7368
7369         openpty: Update comments.
7370         * lib/openpty.c: Add comments about Minix.
7371
7372 2011-10-19  Eric Blake  <eblake@redhat.com>
7373
7374         openpty: relax license
7375         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
7376
7377         pt_chown: use configmake to simplify build
7378         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
7379
7380         ptsname and others: relax license
7381         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
7382         * modules/unlockpt (License): Likewise.
7383         * modules/pt_chown (License): Likewise.
7384         * modules/ptsname (License): Likewise.
7385         * modules/ttyname_r (License): Likewise.
7386
7387 2011-10-19  Jim Meyering  <meyering@redhat.com>
7388
7389         posix_openpt: remove spurious #endif
7390         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
7391
7392 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
7393
7394         maint.mk: Respect $(build_aux) in web-manual rule.
7395         * top/maint.mk (web-manual): Find gen-announce script in user's
7396         $(build_aux) directory instead of hard-coding 'build-aux'.
7397
7398 2011-10-19  Bruno Haible  <bruno@clisp.org>
7399
7400         posix_openpt: Fix compilation error.
7401         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
7402         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
7403         Mention the openpty module as an alternative.
7404
7405 2011-10-19  Bruno Haible  <bruno@clisp.org>
7406
7407         Support for old NeXTstep 3.3 frexp().
7408         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
7409         execution time of the test to 5 seconds.
7410         Reported by Daniel Richard G. <skunk@iskunk.org>.
7411
7412 2011-10-19  Bruno Haible  <bruno@clisp.org>
7413
7414         Support for old NeXTstep 3.3 sed.
7415         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
7416         part, use /.../, not \|...|. Escape periods in the header file name.
7417         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
7418         Reported by Daniel Richard G. <skunk@iskunk.org>.
7419
7420 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
7421
7422         Support for old NeXTstep 3.3 gcc.
7423         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
7424         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
7425         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
7426         * lib/spawn.in.h (_Restrict_arr_): Likewise.
7427         * lib/regex.h (_Restrict_arr_): Likewise.
7428         * lib/regex_internal.h (re_token_t): Likewise.
7429         * lib/regexec.c (check_node_accept_bytes): Likewise.
7430         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
7431
7432 2011-10-18  Eric Blake  <eblake@redhat.com>
7433
7434         posix_openpt: new module
7435         * modules/posix_openpt: New module.
7436         * m4/posix_openpt.m4: New file.
7437         * lib/posix_openpt.c: Likewise.
7438         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
7439         (gl_STDLIB_H_DEFAULTS): Set defaults.
7440         * modules/stdlib (Makefile.am): Substitute macros.
7441         * lib/stdlib.in.h (posix_openpt): Declare.
7442         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
7443         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
7444         * modules/posix_openpt-tests: New test module.
7445         * tests/test-posix_openpt.c: New test.
7446
7447 2011-10-15  Bruno Haible  <bruno@clisp.org>
7448
7449         xstrtoll: Fix compilation failure.
7450         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
7451         from lib/strtol.c.
7452         * doc/posix-headers/limits.texi: Mention missing numerical limits on
7453         some platforms.
7454         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7455
7456 2011-10-15  Bruno Haible  <bruno@clisp.org>
7457
7458         vasnprintf: Optimize bit search operation.
7459         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
7460         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
7461         gl_DOUBLE_EXPONENT_LOCATION.
7462         * modules/vasnprintf (Files): Add m4/exponentd.m4.
7463         * modules/unistdio/u8-vasnprintf (Files): Likewise.
7464         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
7465         * modules/unistdio/u16-vasnprintf (Files): Likewise.
7466         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
7467         * modules/unistdio/u32-vasnprintf (Files): Likewise.
7468         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
7469         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
7470         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
7471
7472 2011-10-15  Bruno Haible  <bruno@clisp.org>
7473
7474         vasnprintf: Fix comments.
7475         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
7476
7477 2011-10-14  Bruno Haible  <bruno@clisp.org>
7478
7479         Tests for module 'integer_length_ll'.
7480         * modules/integer_length_ll-tests: New file.
7481         * tests/test-integer_length_ll.c: New file.
7482
7483         New module 'integer_length_ll'.
7484         * lib/integer_length_ll.c: New file.
7485         * modules/integer_length_ll: New file.
7486
7487 2011-10-14  Bruno Haible  <bruno@clisp.org>
7488
7489         Tests for module 'integer_length_l'.
7490         * modules/integer_length_l-tests: New file.
7491         * tests/test-integer_length_l.c: New file.
7492
7493         New module 'integer_length_l'.
7494         * lib/integer_length_l.c: New file.
7495         * modules/integer_length_l: New file.
7496
7497 2011-10-14  Bruno Haible  <bruno@clisp.org>
7498
7499         Tests for module 'integer_length'.
7500         * modules/integer_length-tests: New file.
7501         * tests/test-integer_length.c: New file.
7502
7503         New module 'integer_length'.
7504         * lib/integer_length.h: New file.
7505         * lib/integer_length.c: New file.
7506         * modules/integer_length: New file.
7507
7508 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
7509
7510         popen: Fix dependency conditions.
7511         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
7512
7513 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
7514
7515         perror: Fix autoconf test.
7516         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
7517         <stdlib.h> and <string.h>.
7518
7519 2011-10-14  Bruno Haible  <bruno@clisp.org>
7520
7521         ffsl: Optimize on 64-bit platforms.
7522         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
7523         unrolling.
7524
7525 2011-10-13  Bruno Haible  <bruno@clisp.org>
7526
7527         ffsl: Optimize on 32-bit platforms.
7528         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
7529         use ffs() without a loop.
7530
7531         ffsl, ffsll: Optimize for GCC.
7532         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
7533         * lib/ffsl.c (GCC_BUILTIN): New macro.
7534         * lib/ffsll.c (GCC_BUILTIN): Likewise.
7535
7536 2011-10-13  Bruno Haible  <bruno@clisp.org>
7537
7538         ffs, bcopy, memset: Support symbol renaming via config.h.
7539         * lib/ffs.c: Include <config.h>.
7540         * lib/bcopy.c: Likewise.
7541         * lib/memset.c: Likewise.
7542
7543 2011-10-10  Bruno Haible  <bruno@clisp.org>
7544
7545         atanl: Simplify for platforms where 'long double' == 'double'.
7546         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7547         alternative implementation.
7548         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7549         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7550         * modules/atanl (Depends-on): Add atan. Update conditions.
7551
7552 2011-10-10  Bruno Haible  <bruno@clisp.org>
7553
7554         acosl: Simplify for platforms where 'long double' == 'double'.
7555         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7556         alternative implementation.
7557         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7558         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7559         * modules/acosl (Depends-on): Add acos. Update conditions.
7560
7561 2011-10-10  Bruno Haible  <bruno@clisp.org>
7562
7563         asinl: Simplify for platforms where 'long double' == 'double'.
7564         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7565         alternative implementation.
7566         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7567         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7568         * modules/asinl (Depends-on): Add asin. Update conditions.
7569
7570 2011-10-10  Bruno Haible  <bruno@clisp.org>
7571
7572         tanl: Simplify for platforms where 'long double' == 'double'.
7573         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
7574         implementation.
7575         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7576         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7577         * modules/tanl (Depends-on): Add tan. Update conditions.
7578         (configure.ac): Don't compile trigl.c if
7579         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7580
7581 2011-10-10  Bruno Haible  <bruno@clisp.org>
7582
7583         cosl: Simplify for platforms where 'long double' == 'double'.
7584         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
7585         implementation.
7586         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7587         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7588         * modules/cosl (Depends-on): Add cos. Update conditions.
7589         (configure.ac): Don't compile sincosl.c and trigl.c if
7590         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7591
7592 2011-10-10  Bruno Haible  <bruno@clisp.org>
7593
7594         sinl: Simplify for platforms where 'long double' == 'double'.
7595         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
7596         implementation.
7597         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7598         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7599         * modules/sinl (Depends-on): Add sin. Update conditions.
7600         (configure.ac): Don't compile sincosl.c and trigl.c if
7601         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7602
7603 2011-10-10  Bruno Haible  <bruno@clisp.org>
7604
7605         logl: Simplify for platforms where 'long double' == 'double'.
7606         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
7607         implementation.
7608         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7609         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7610         * modules/logl (Depends-on): Add log. Update conditions.
7611
7612 2011-10-10  Bruno Haible  <bruno@clisp.org>
7613
7614         expl: Simplify for platforms where 'long double' == 'double'.
7615         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
7616         implementation.
7617         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7618         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7619         * modules/expl (Depends-on): Add exp. Update conditions.
7620
7621 2011-10-10  Bruno Haible  <bruno@clisp.org>
7622
7623         sqrtl: Simplify for platforms where 'long double' == 'double'.
7624         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7625         alternative implementation.
7626         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7627         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7628         * modules/sqrtl (Depends-on): Update conditions.
7629
7630 2011-10-10  Bruno Haible  <bruno@clisp.org>
7631
7632         ldexpl: Simplify for platforms where 'long double' == 'double'.
7633         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7634         alternative implementation.
7635         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7636         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7637         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
7638
7639 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
7640
7641         ffsll: set correct witness
7642         * modules/ffsll (configure.ac): Fix typo.
7643
7644 2011-10-10  Bruno Haible  <bruno@clisp.org>
7645
7646         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
7647         * lib/printf-frexpl.c: Include <config.h>.
7648         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7649         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
7650         second time.
7651         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
7652         gl_LONG_DOUBLE_VS_DOUBLE.
7653         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
7654         conditions.
7655
7656 2011-10-10  Bruno Haible  <bruno@clisp.org>
7657
7658         frexpl: Simplify for platforms where 'long double' == 'double'.
7659         * lib/frexpl.c: Include <config.h>.
7660         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7661         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7662         time.
7663         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7664         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7665         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
7666         * modules/frexpl (Depends-on): Add frexp. Update conditions.
7667         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
7668         conditions.
7669
7670 2011-10-10  Jim Meyering  <meyering@redhat.com>
7671
7672         test-renameat: don't leave behind a temporary file
7673         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
7674           ERROR: files left in build directory after distclean:
7675           ./gltests/test-renameat.too
7676           make[1]: *** [distcleancheck] Error 1
7677         Reported by Tom G. Christensen.
7678
7679 2011-10-09  Bruno Haible  <bruno@clisp.org>
7680
7681         rint: Determine RINT_LIBM correctly on AIX 7.
7682         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
7683         directly, not only through a function pointer. Also accept an optional
7684         4th argument with extra code.
7685         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
7686         rintf() call by gcc when optimizing.
7687
7688         mathfunc.m4: Refactor.
7689         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
7690         m4 variable.
7691
7692 2011-10-09  Bruno Haible  <bruno@clisp.org>
7693
7694         rintl: Simplify for platforms where 'long double' == 'double'.
7695         * lib/rintl.c: Include <config.h>.
7696         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7697         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7698         time.
7699         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7700         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7701         * modules/rintl (Depends-on): Add rint. Update conditions.
7702
7703 2011-10-09  Bruno Haible  <bruno@clisp.org>
7704
7705         roundl: Simplify for platforms where 'long double' == 'double'.
7706         * lib/roundl.c: Include <config.h>.
7707         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7708         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7709         time.
7710         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7711         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7712         * modules/roundl (Depends-on): Add round. Update conditions.
7713
7714 2011-10-09  Bruno Haible  <bruno@clisp.org>
7715
7716         truncl: Simplify for platforms where 'long double' == 'double'.
7717         * lib/truncl.c: Include <config.h>.
7718         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7719         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7720         time.
7721         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7722         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7723         * modules/truncl (Depends-on): Add trunc. Update conditions.
7724
7725 2011-10-09  Bruno Haible  <bruno@clisp.org>
7726
7727         ceill: Simplify for platforms where 'long double' == 'double'.
7728         * lib/ceill.c: Include <config.h>.
7729         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7730         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7731         time.
7732         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7733         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7734         * modules/ceill (Depends-on): Add ceil. Update conditions.
7735
7736 2011-10-09  Bruno Haible  <bruno@clisp.org>
7737
7738         floorl: Simplify for platforms where 'long double' == 'double'.
7739         * lib/floorl.c: Include <config.h>.
7740         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7741         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7742         time.
7743         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7744         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7745         * modules/floorl (Depends-on): Add floor. Update conditions.
7746
7747 2011-10-09  Bruno Haible  <bruno@clisp.org>
7748
7749         rint: Fix ordering constraints.
7750         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
7751         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
7752         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
7753
7754 2011-10-09  Bruno Haible  <bruno@clisp.org>
7755
7756         copysignl: Simplify for platforms where 'long double' == 'double'.
7757         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7758         alternative.
7759         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7760         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7761         * modules/copysignl (Depends-on): Add copysign. Update conditions.
7762
7763 2011-10-09  Bruno Haible  <bruno@clisp.org>
7764
7765         Tests for module 'rintl'.
7766         * modules/rintl-tests: New file.
7767         * tests/test-rintl.c: New file.
7768
7769         New module 'rintl'.
7770         * lib/math.in.h (rintl): New declaration.
7771         * lib/rintl.c: New file.
7772         * m4/rintl.m4: New file.
7773         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
7774         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
7775         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
7776         * modules/rintl: New file.
7777         * tests/test-math-c++.cc: Check the declaration of rintl.
7778         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
7779         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
7780         * doc/posix-functions/rintl.texi: Mention the new module.
7781
7782 2011-10-09  Bruno Haible  <bruno@clisp.org>
7783
7784         Tests for module 'rintf'.
7785         * modules/rintf-tests: New file.
7786         * tests/test-rintf.c: New file.
7787
7788         New module 'rintf'.
7789         * lib/math.in.h (rintf): New declaration.
7790         * lib/rintf.c: New file.
7791         * m4/rintf.m4: New file.
7792         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
7793         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
7794         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
7795         * modules/rintf: New file.
7796         * tests/test-math-c++.cc: Check the declaration of rintf.
7797         * doc/posix-functions/rintf.texi: Mention the new module.
7798
7799 2011-10-09  Bruno Haible  <bruno@clisp.org>
7800
7801         rint: Support for MSVC.
7802         * lib/math.in.h (rint): New declaration.
7803         * lib/rint.c: New file.
7804         * m4/rint.m4: New file.
7805         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
7806         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
7807         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
7808         * modules/rint (Description): Fix.
7809         (Files): Add lib/rint.c, m4/rint.m4.
7810         (Depends-on): Add math.
7811         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
7812         gl_MATH_MODULE_INDICATOR.
7813         * tests/test-math-c++.cc: Check the declaration of rint.
7814         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
7815         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
7816         * doc/posix-functions/rint.texi: Mention the replacement provided by
7817         the module.
7818
7819         rint tests: More tests.
7820         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
7821         minus-zero.h, infinity.h, nan.h.
7822         (main): Skip the test if the current rounding mode is not standard. Add
7823         tests for negative numbers, minus zero, infinity, NaN.
7824         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
7825         tests/nan.h.
7826         (Depends-on): Add isnand-nolibm.
7827
7828 2011-10-09  Bruno Haible  <bruno@clisp.org>
7829
7830         Tests for module 'copysignl'.
7831         * modules/copysignl-tests: New file.
7832         * tests/test-copysignl.c: New file.
7833
7834         New module 'copysignl'.
7835         * lib/math.in.h (copysignl): New declaration.
7836         * lib/copysignl.c: New file.
7837         * m4/copysignl.m4: New file.
7838         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
7839         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
7840         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
7841         HAVE_COPYSIGNL.
7842         * modules/copysignl: New file.
7843         * tests/test-math-c++.cc: Check the declaration of copysignl.
7844         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
7845         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
7846         * doc/posix-functions/copysignl.texi: Mention the new module.
7847
7848 2011-10-09  Bruno Haible  <bruno@clisp.org>
7849
7850         Tests for module 'copysignf'.
7851         * modules/copysignf-tests: New file.
7852         * tests/test-copysignf.c: New file.
7853
7854         New module 'copysignf'.
7855         * lib/math.in.h (copysignf): New declaration.
7856         * lib/copysignf.c: New file.
7857         * m4/copysignf.m4: New file.
7858         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
7859         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
7860         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
7861         HAVE_COPYSIGNF.
7862         * modules/copysignf: New file.
7863         * tests/test-math-c++.cc: Check the declaration of copysignf.
7864         * doc/posix-functions/copysignf.texi: Mention the new module.
7865
7866 2011-10-09  Bruno Haible  <bruno@clisp.org>
7867
7868         Ensure that HAVE_* variables are set to 1 before they are set to 0.
7869         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
7870         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
7871         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
7872         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
7873         gl_SIGNAL_H_DEFAULTS.
7874
7875 2011-10-09  Bruno Haible  <bruno@clisp.org>
7876
7877         poll: Make macro safer.
7878         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
7879         ac_cv_header_poll_h is not set.
7880
7881 2011-10-09  Bruno Haible  <bruno@clisp.org>
7882
7883         copysign: Provide replacement.
7884         * lib/math.in.h (copysign): New declaration.
7885         * lib/copysign.c: New file.
7886         * m4/copysign.m4: New file.
7887         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
7888         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
7889         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
7890         HAVE_COPYSIGN.
7891         * modules/copysign (Description): Clarify.
7892         (Files): Add lib/copysign.c, m4/copysign.m4.
7893         (Depends-on): Add math, signbit.
7894         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
7895         gl_MATH_MODULE_INDICATOR.
7896         * tests/test-math-c++.cc: Check the declaration of copysign.
7897         * doc/posix-functions/copysign.texi: Mention the effects of the module
7898         on Minix and MSVC.
7899
7900 2011-10-09  Bruno Haible  <bruno@clisp.org>
7901
7902         isinf: Ensure macro on AIX 5.1.
7903         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
7904         macro.
7905         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
7906
7907 2011-10-09  Bruno Haible  <bruno@clisp.org>
7908
7909         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
7910         * modules/snprintf-posix-tests (configure.ac): Require
7911         gl_LONG_DOUBLE_VS_DOUBLE.
7912         * modules/sprintf-posix-tests (configure.ac): Likewise.
7913         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
7914         * modules/vasprintf-posix-tests (configure.ac): Likewise.
7915         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
7916         * modules/vsprintf-posix-tests (configure.ac): Likewise.
7917         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
7918         tests on platforms where 'long double' is the same as 'double'.
7919         * tests/test-sprintf-posix.h (test_function): Likewise.
7920         * tests/test-vasnprintf-posix.c (test_function): Likewise.
7921         * tests/test-vasprintf-posix.c (test_function): Likewise.
7922
7923         *printf: Fix for platforms where 'long double' == 'double'.
7924         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
7925         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
7926         * modules/dprintf-posix (Files): Add m4/math_h.m4.
7927         * modules/fprintf-posix (Files): Likewise.
7928         * modules/obstack-printf-posix (Files): Likewise.
7929         * modules/snprintf-posix (Files): Likewise.
7930         * modules/sprintf-posix (Files): Likewise.
7931         * modules/vasnprintf (Files): Likewise.
7932         * modules/vasnprintf-posix (Files): Likewise.
7933         * modules/vasprintf-posix (Files): Likewise.
7934         * modules/vdprintf-posix (Files): Likewise.
7935         * modules/vfprintf-posix (Files): Likewise.
7936         * modules/vsnprintf-posix (Files): Likewise.
7937         * modules/vsprintf-posix (Files): Likewise.
7938         * modules/unistdio/u8-vasnprintf (Files): Likewise.
7939         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
7940         * modules/unistdio/u16-vasnprintf (Files): Likewise.
7941         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
7942         * modules/unistdio/u32-vasnprintf (Files): Likewise.
7943         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
7944         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
7945
7946         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
7947         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
7948         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7949         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
7950         'long double'.
7951         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
7952
7953         isinf: Fix for platforms where 'long double' == 'double'.
7954         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
7955         Don't blindly assume 80-bit 'long double'.
7956
7957         isfinite: Fix for platforms where 'long double' == 'double'.
7958         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
7959         Don't blindly assume 80-bit 'long double'.
7960
7961         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
7962         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
7963         * modules/isfinite-tests (configure.ac): Require
7964         gl_LONG_DOUBLE_VS_DOUBLE.
7965         * modules/isinf-tests (configure.ac): Likewise.
7966         * modules/isnan-tests (configure.ac): Likewise.
7967         * modules/isnanl-tests (configure.ac): Likewise.
7968         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
7969         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
7970         tests on platforms where 'long double' is the same as 'double'.
7971         * tests/test-isinf.c (test_isinfl): Likewise.
7972         * tests/test-isnan.c (test_long_double): Likewise.
7973         * tests/test-isnanl.h (main): Likewise.
7974
7975 2011-10-08  Bruno Haible  <bruno@clisp.org>
7976
7977         Tests for module 'tanhf'.
7978         * modules/tanhf-tests: New file.
7979         * tests/test-tanhf.c: New file.
7980
7981         New module 'tanhf'.
7982         * lib/math.in.h (tanhf): New declaration.
7983         * lib/tanhf.c: New file.
7984         * m4/tanhf.m4: New file.
7985         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
7986         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
7987         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
7988         * modules/tanhf: New file.
7989         * tests/test-math-c++.cc: Check the declaration of tanhf.
7990         * doc/posix-functions/tanhf.texi: Mention the new module.
7991
7992         tanh: Use a .m4 file.
7993         * m4/tanh.m4: New file.
7994         * modules/tanh (Files): Add it.
7995         (configure.ac): Just invoke gl_FUNC_TANH.
7996
7997 2011-10-08  Bruno Haible  <bruno@clisp.org>
7998
7999         Tests for module 'coshf'.
8000         * modules/coshf-tests: New file.
8001         * tests/test-coshf.c: New file.
8002
8003         New module 'coshf'.
8004         * lib/math.in.h (coshf): New declaration.
8005         * lib/coshf.c: New file.
8006         * m4/coshf.m4: New file.
8007         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
8008         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
8009         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
8010         * modules/coshf: New file.
8011         * tests/test-math-c++.cc: Check the declaration of coshf.
8012         * doc/posix-functions/coshf.texi: Mention the new module.
8013
8014         cosh: Use a .m4 file.
8015         * m4/cosh.m4: New file.
8016         * modules/cosh (Files): Add it.
8017         (configure.ac): Just invoke gl_FUNC_COSH.
8018
8019 2011-10-08  Bruno Haible  <bruno@clisp.org>
8020
8021         Tests for module 'sinhf'.
8022         * modules/sinhf-tests: New file.
8023         * tests/test-sinhf.c: New file.
8024
8025         New module 'sinhf'.
8026         * lib/math.in.h (sinhf): New declaration.
8027         * lib/sinhf.c: New file.
8028         * m4/sinhf.m4: New file.
8029         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
8030         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
8031         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
8032         * modules/sinhf: New file.
8033         * tests/test-math-c++.cc: Check the declaration of sinhf.
8034         * doc/posix-functions/sinhf.texi: Mention the new module.
8035
8036         sinh: Use a .m4 file.
8037         * m4/sinh.m4: New file.
8038         * modules/sinh (Files): Add it.
8039         (configure.ac): Just invoke gl_FUNC_SINH.
8040
8041 2011-10-08  Bruno Haible  <bruno@clisp.org>
8042
8043         Tests for module 'atan2f'.
8044         * modules/atan2f-tests: New file.
8045         * tests/test-atan2f.c: New file.
8046
8047         New module 'atan2f'.
8048         * lib/math.in.h (atan2f): New declaration.
8049         * lib/atan2f.c: New file.
8050         * m4/atan2f.m4: New file.
8051         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
8052         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
8053         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
8054         * modules/atan2f: New file.
8055         * tests/test-math-c++.cc: Check the declaration of atan2f.
8056         * doc/posix-functions/atan2f.texi: Mention the new module.
8057
8058         atan2: Use a .m4 file.
8059         * m4/atan2.m4: New file.
8060         * modules/atan2 (Files): Add it.
8061         (configure.ac): Just invoke gl_FUNC_ATAN2.
8062
8063 2011-10-08  Bruno Haible  <bruno@clisp.org>
8064
8065         Tests for module 'atanf'.
8066         * modules/atanf-tests: New file.
8067         * tests/test-atanf.c: New file.
8068
8069         New module 'atanf'.
8070         * lib/math.in.h (atanf): New declaration.
8071         * lib/atanf.c: New file.
8072         * m4/atanf.m4: New file.
8073         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
8074         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
8075         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
8076         * modules/atanf: New file.
8077         * tests/test-math-c++.cc: Check the declaration of atanf.
8078         * doc/posix-functions/atanf.texi: Mention the new module.
8079
8080         atan: Use a .m4 file.
8081         * m4/atan.m4: New file.
8082         * modules/atan (Files): Add it.
8083         (configure.ac): Just invoke gl_FUNC_ATAN.
8084
8085 2011-10-08  Bruno Haible  <bruno@clisp.org>
8086
8087         Tests for module 'acosf'.
8088         * modules/acosf-tests: New file.
8089         * tests/test-acosf.c: New file.
8090
8091         New module 'acosf'.
8092         * lib/math.in.h (acosf): New declaration.
8093         * lib/acosf.c: New file.
8094         * m4/acosf.m4: New file.
8095         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
8096         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
8097         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
8098         * modules/acosf: New file.
8099         * tests/test-math-c++.cc: Check the declaration of acosf.
8100         * doc/posix-functions/acosf.texi: Mention the new module.
8101
8102         acos: Use a .m4 file.
8103         * m4/acos.m4: New file.
8104         * modules/acos (Files): Add it.
8105         (configure.ac): Just invoke gl_FUNC_ACOS.
8106
8107 2011-10-08  Bruno Haible  <bruno@clisp.org>
8108
8109         Tests for module 'asinf'.
8110         * modules/asinf-tests: New file.
8111         * tests/test-asinf.c: New file.
8112
8113         New module 'asinf'.
8114         * lib/math.in.h (asinf): New declaration.
8115         * lib/asinf.c: New file.
8116         * m4/asinf.m4: New file.
8117         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
8118         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
8119         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
8120         * modules/asinf: New file.
8121         * tests/test-math-c++.cc: Check the declaration of asinf.
8122         * doc/posix-functions/asinf.texi: Mention the new module.
8123
8124         asin: Use a .m4 file.
8125         * m4/asin.m4: New file.
8126         * modules/asin (Files): Add it.
8127         (configure.ac): Just invoke gl_FUNC_ASIN.
8128
8129 2011-10-08  Bruno Haible  <bruno@clisp.org>
8130
8131         Tests for module 'tanf'.
8132         * modules/tanf-tests: New file.
8133         * tests/test-tanf.c: New file.
8134
8135         New module 'tanf'.
8136         * lib/math.in.h (tanf): New declaration.
8137         * lib/tanf.c: New file.
8138         * m4/tanf.m4: New file.
8139         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
8140         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
8141         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
8142         * modules/tanf: New file.
8143         * tests/test-math-c++.cc: Check the declaration of tanf.
8144         * doc/posix-functions/tanf.texi: Mention the new module.
8145
8146         tan: Use a .m4 file.
8147         * m4/tan.m4: New file.
8148         * modules/tan (Files): Add it.
8149         (configure.ac): Just invoke gl_FUNC_TAN.
8150
8151 2011-10-08  Bruno Haible  <bruno@clisp.org>
8152
8153         Tests for module 'cosf'.
8154         * modules/cosf-tests: New file.
8155         * tests/test-cosf.c: New file.
8156
8157         New module 'cosf'.
8158         * lib/math.in.h (cosf): New declaration.
8159         * lib/cosf.c: New file.
8160         * m4/cosf.m4: New file.
8161         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
8162         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
8163         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
8164         * modules/cosf: New file.
8165         * tests/test-math-c++.cc: Check the declaration of cosf.
8166         * doc/posix-functions/cosf.texi: Mention the new module.
8167
8168         cos: Use a .m4 file.
8169         * m4/cos.m4: New file.
8170         * modules/cos (Files): Add it.
8171         (configure.ac): Just invoke gl_FUNC_COS.
8172
8173 2011-10-08  Bruno Haible  <bruno@clisp.org>
8174
8175         Tests for module 'sinf'.
8176         * modules/sinf-tests: New file.
8177         * tests/test-sinf.c: New file.
8178
8179         New module 'sinf'.
8180         * lib/math.in.h (sinf): New declaration.
8181         * lib/sinf.c: New file.
8182         * m4/sinf.m4: New file.
8183         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
8184         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
8185         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
8186         * modules/sinf: New file.
8187         * tests/test-math-c++.cc: Check the declaration of sinf.
8188         * doc/posix-functions/sinf.texi: Mention the new module.
8189
8190         sin: Use a .m4 file.
8191         * m4/sin.m4: New file.
8192         * modules/sin (Files): Add it.
8193         (configure.ac): Just invoke gl_FUNC_SIN.
8194
8195 2011-10-08  Bruno Haible  <bruno@clisp.org>
8196
8197         Tests for module 'powf'.
8198         * modules/powf-tests: New file.
8199         * tests/test-powf.c: New file.
8200
8201         New module 'powf'.
8202         * lib/math.in.h (powf): New declaration.
8203         * lib/powf.c: New file.
8204         * m4/powf.m4: New file.
8205         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
8206         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
8207         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
8208         * modules/powf: New file.
8209         * tests/test-math-c++.cc: Check the declaration of powf.
8210         * doc/posix-functions/powf.texi: Mention the new module.
8211
8212         pow: Use a .m4 file.
8213         * m4/pow.m4: New file.
8214         * modules/pow (Files): Add it.
8215         (configure.ac): Just invoke gl_FUNC_POW.
8216
8217 2011-10-08  Bruno Haible  <bruno@clisp.org>
8218
8219         Tests for module 'log10f'.
8220         * modules/log10f-tests: New file.
8221         * tests/test-log10f.c: New file.
8222
8223         New module 'log10f'.
8224         * lib/math.in.h (log10f): New declaration.
8225         * lib/log10f.c: New file.
8226         * m4/log10f.m4: New file.
8227         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
8228         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
8229         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
8230         * modules/log10f: New file.
8231         * tests/test-math-c++.cc: Check the declaration of log10f.
8232         * doc/posix-functions/log10f.texi: Mention the new module.
8233
8234         log10: Use a .m4 file.
8235         * m4/log10.m4: New file.
8236         * modules/log10 (Files): Add it.
8237         (configure.ac): Just invoke gl_FUNC_LOG10.
8238
8239 2011-10-08  Bruno Haible  <bruno@clisp.org>
8240
8241         Tests for module 'logf'.
8242         * modules/logf-tests: New file.
8243         * tests/test-logf.c: New file.
8244
8245         New module 'logf'.
8246         * lib/math.in.h (logf): New declaration.
8247         * lib/logf.c: New file.
8248         * m4/logf.m4: New file.
8249         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
8250         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
8251         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
8252         * modules/logf: New file.
8253         * tests/test-math-c++.cc: Check the declaration of logf.
8254         * doc/posix-functions/logf.texi: Mention the new module.
8255
8256         log: Use a .m4 file.
8257         * m4/log.m4: New file.
8258         * modules/log (Files): Add it.
8259         (configure.ac): Just invoke gl_FUNC_LOG.
8260
8261 2011-10-08  Bruno Haible  <bruno@clisp.org>
8262
8263         Tests for module 'expf'.
8264         * modules/expf-tests: New file.
8265         * tests/test-expf.c: New file.
8266
8267         New module 'expf'.
8268         * lib/math.in.h (expf): New declaration.
8269         * lib/expf.c: New file.
8270         * m4/expf.m4: New file.
8271         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
8272         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
8273         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
8274         * modules/expf: New file.
8275         * tests/test-math-c++.cc: Check the declaration of expf.
8276         * doc/posix-functions/expf.texi: Mention the new module.
8277
8278         exp: Use a .m4 file.
8279         * m4/exp.m4: New file.
8280         * modules/exp (Files): Add it.
8281         (configure.ac): Just invoke gl_FUNC_EXP.
8282
8283 2011-10-08  Bruno Haible  <bruno@clisp.org>
8284
8285         Tests for module 'sqrtf'.
8286         * modules/sqrtf-tests: New file.
8287         * tests/test-sqrtf.c: New file.
8288
8289         New module 'sqrtf'.
8290         * lib/math.in.h (sqrtf): New declaration.
8291         * lib/sqrtf.c: New file.
8292         * m4/sqrtf.m4: New file.
8293         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
8294         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
8295         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
8296         * modules/sqrtf: New file.
8297         * tests/test-math-c++.cc: Check the declaration of sqrtf.
8298         * doc/posix-functions/sqrtf.texi: Mention the new module.
8299
8300 2011-10-08  Bruno Haible  <bruno@clisp.org>
8301
8302         Tests: Avoid link failures w.r.t. libintl.
8303         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
8304         $(LIBINTL).
8305         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
8306         $(LIBINTL).
8307         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
8308         against $(LIBINTL).
8309         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
8310         $(LIBINTL).
8311         * modules/openat-tests (Makefile.am): Link test-fchmodat against
8312         $(LIBINTL).
8313         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
8314
8315 2011-10-08  Bruno Haible  <bruno@clisp.org>
8316
8317         pow tests: Defeat compiler optimizations.
8318         * tests/test-pow.c (main): Assign arguments to x and y before use.
8319
8320 2011-10-08  Bruno Haible  <bruno@clisp.org>
8321
8322         gnulib-tool: Improve last commit.
8323         * gnulib-tool (func_modules_transitive_closure): Simplify code.
8324         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
8325         ignore dependencies that are not among the modules list.
8326
8327 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
8328
8329         gnulib-tool: don't follow dependencies to avoided modules
8330         This fixes a bug that is related to the previous one.
8331         * gnulib-tool (func_modules_transitive_closure)
8332         (func_emit_autoconf_snippets):
8333         Check whether a dependency is acceptable before using it.
8334         (--extract-dependencies): Report an error if --avoid is also used,
8335         since this combination of options is not yet supported.
8336
8337         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
8338         Problem reported by Peter Dyballa in
8339         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
8340         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
8341         when echoing "$condition".
8342
8343 2011-10-07  Bruno Haible  <bruno@clisp.org>
8344
8345         Fix documentation about math functions on MacOS X.
8346         * doc/posix-functions/exp2.texi: Don't say the function is missing on
8347         MacOS X 10.5.
8348         * doc/posix-functions/fdim.texi: Likewise.
8349         * doc/posix-functions/feclearexcept.texi: Likewise.
8350         * doc/posix-functions/fegetenv.texi: Likewise.
8351         * doc/posix-functions/fegetround.texi: Likewise.
8352         * doc/posix-functions/feholdexcept.texi: Likewise.
8353         * doc/posix-functions/feraiseexcept.texi: Likewise.
8354         * doc/posix-functions/fesetenv.texi: Likewise.
8355         * doc/posix-functions/fesetround.texi: Likewise.
8356         * doc/posix-functions/fetestexcept.texi: Likewise.
8357         * doc/posix-functions/feupdateenv.texi: Likewise.
8358         * doc/posix-functions/fmax.texi: Likewise.
8359         * doc/posix-functions/fmin.texi: Likewise.
8360         * doc/posix-functions/log2.texi: Likewise.
8361         * doc/posix-functions/modff.texi: Likewise.
8362         * doc/posix-functions/nan.texi: Likewise.
8363         * doc/posix-functions/nanf.texi: Likewise.
8364         * doc/posix-functions/nextafterf.texi: Likewise.
8365         * doc/posix-functions/remquo.texi: Likewise.
8366
8367 2011-10-07  Bruno Haible  <bruno@clisp.org>
8368
8369         modff: Drop assumption about library that defines modff.
8370         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
8371         AC_CHECK_FUNCS.
8372         * modules/modff (Files): Add m4/mathfunc.m4.
8373
8374 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
8375
8376         raise tests: Avoid a GCC warning.
8377         * tests/test-raise.c (handler): Use _Noreturn.
8378
8379 2011-10-07  Bruno Haible  <bruno@clisp.org>
8380
8381         Tests for module 'ldexpf'.
8382         * modules/ldexpf-tests: New file.
8383         * tests/test-ldexpf.c: New file.
8384
8385         New module 'ldexpf'.
8386         * lib/math.in.h (ldexpf): New declaration.
8387         * lib/ldexpf.c: New file.
8388         * m4/ldexpf.m4: New file.
8389         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
8390         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
8391         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
8392         * modules/ldexpf: New file.
8393         * tests/test-math-c++.cc: Check the declaration of ldexpf.
8394         * doc/posix-functions/ldexpf.texi: Mention the new module.
8395
8396 2011-10-06  Bruno Haible  <bruno@clisp.org>
8397
8398         frexpf: Work around problems on IRIX and mingw.
8399         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
8400         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
8401         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
8402         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
8403         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
8404         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
8405         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
8406
8407 2011-10-06  Bruno Haible  <bruno@clisp.org>
8408
8409         fabsf: Drop assumption about library that defines fabsf.
8410         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
8411         AC_CHECK_FUNCS.
8412         * modules/fabsf (Files): Add m4/mathfunc.m4.
8413
8414 2011-10-06  Bruno Haible  <bruno@clisp.org>
8415
8416         frexpf: Drop assumption about library that defines frexpf.
8417         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
8418         'int *', 'float *', 'long double *', 'float', 'long double'.
8419         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
8420         AC_CHECK_FUNCS.
8421         * modules/frexpf (Files): Add m4/mathfunc.m4.
8422
8423         Tests for module 'frexpf'.
8424         * modules/frexpf-tests: New file.
8425         * tests/test-frexpf.c: New file.
8426
8427         New module 'frexpf'.
8428         * lib/math.in.h (frexpf): New declaration.
8429         * lib/frexpf.c: New file.
8430         * m4/frexpf.m4: New file.
8431         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
8432         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
8433         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
8434         * modules/frexpf: New file.
8435         * tests/test-math-c++.cc: Check the declaration of frexpf.
8436         * doc/posix-functions/frexpf.texi: Mention the new module.
8437
8438 2011-10-06  Bruno Haible  <bruno@clisp.org>
8439
8440         math: Sort function declarations of math.in.h.
8441         * lib/math.in.h (frexp, logb): Move declarations.
8442
8443 2011-10-05  Bruno Haible  <bruno@clisp.org>
8444
8445         Tests for module 'modff'.
8446         * modules/modff-tests: New file.
8447         * tests/test-modff.c: New file.
8448
8449         New module 'modff'.
8450         * lib/math.in.h (modff): New declaration.
8451         * lib/modff.c: New file.
8452         * m4/modff.m4: New file.
8453         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
8454         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
8455         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
8456         * modules/modff: New file.
8457         * tests/test-math-c++.cc: Check the declaration of modff.
8458         * doc/posix-functions/modff.texi: Mention the new module.
8459
8460         modf tests: Make test sharper.
8461         * tests/test-modf.c (main): Strengthen upper bound.
8462
8463         modf: Use a .m4 file.
8464         * m4/modf.m4: New file.
8465         * modules/modf (Files): Add it.
8466         (configure.ac): Just invoke gl_FUNC_MODF.
8467
8468 2011-10-05  Bruno Haible  <bruno@clisp.org>
8469
8470         Tests for module 'fmodf'.
8471         * modules/fmodf-tests: New file.
8472         * tests/test-fmodf.c: New file.
8473
8474         New module 'fmodf'.
8475         * lib/math.in.h (fmodf): New declaration.
8476         * lib/fmodf.c: New file.
8477         * m4/fmodf.m4: New file.
8478         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
8479         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
8480         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
8481         * modules/fmodf: New file.
8482         * tests/test-math-c++.cc: Check the declaration of fmodf.
8483         * doc/posix-functions/fmodf.texi: Mention the new module.
8484
8485         fmod: Use a .m4 file.
8486         * m4/fmod.m4: New file.
8487         * modules/fmod (Files): Add it.
8488         (configure.ac): Just invoke gl_FUNC_FMOD.
8489
8490 2011-10-05  Bruno Haible  <bruno@clisp.org>
8491
8492         Tests for module 'fabsf'.
8493         * modules/fabsf-tests: New file.
8494         * tests/test-fabsf.c: New file.
8495
8496         New module 'fabsf'.
8497         * lib/math.in.h (fabsf): New declaration.
8498         * lib/fabsf.c: New file.
8499         * m4/fabsf.m4: New file.
8500         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
8501         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
8502         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
8503         * modules/fabsf: New file.
8504         * tests/test-math-c++.cc: Check the declaration of fabsf.
8505         * doc/posix-functions/fabsf.texi: Mention the new module.
8506
8507         fabs: Use a .m4 file.
8508         * m4/fabs.m4: New file.
8509         * modules/fabs (Files): Add it.
8510         (configure.ac): Just invoke gl_FUNC_FABS.
8511
8512 2011-10-05  Jim Meyering  <meyering@redhat.com>
8513
8514         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
8515         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
8516         ls -lL regression introduced in coreutils-8.12, it does so at the
8517         cost of an additional stat call in the common case.  Besides, now
8518         that the kernel change that prompted commit 95f7c57f has been reverted
8519         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
8520         we have no use for commit 95f7c57f, "file-has-acl: use
8521         acl_extended_file_nofollow if available".
8522
8523 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
8524
8525         file-has-acl: revert unintended change in behavior of ls -L
8526         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
8527         derived from...
8528         (file_has_acl): ...code here.  Call it.
8529         This problem was introduced with 2011-07-22 commit 95f7c57f,
8530         "file-has-acl: use acl_extended_file_nofollow if available".
8531         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
8532
8533 2011-10-03  Bruno Haible  <bruno@clisp.org>
8534
8535         poll: Avoid link errors on MSVC.
8536         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
8537         * modules/poll (Depends-on): Add sockets.
8538         (Link): New section.
8539         * NEWS: Mention the change.
8540         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
8541         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
8542         $(LIB_POLL) instead of $(LIBSOCKET).
8543
8544 2011-10-03  Bruno Haible  <bruno@clisp.org>
8545
8546         sys_select tests: Fix link error on MSVC 9.
8547         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
8548         with $(LIB_SELECT) instead of $(LIBSOCKET).
8549
8550 2011-10-03  Bruno Haible  <bruno@clisp.org>
8551
8552         sys_select: Fix compilation error on mingw.
8553         * lib/sys_select.in.h: On native Windows, include <io.h>.
8554
8555 2011-10-03  Bruno Haible  <bruno@clisp.org>
8556
8557         wmemset: Support for MSVC.
8558         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
8559         whether wmemset() exists.
8560
8561 2011-10-03  Bruno Haible  <bruno@clisp.org>
8562
8563         wmemmove: Support for MSVC.
8564         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
8565         whether wmemmove() exists.
8566
8567 2011-10-03  Bruno Haible  <bruno@clisp.org>
8568
8569         wmemcpy: Support for MSVC.
8570         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
8571         whether wmemcpy() exists.
8572
8573 2011-10-03  Bruno Haible  <bruno@clisp.org>
8574
8575         wmemcmp: Support for MSVC.
8576         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
8577         whether wmemcmp() exists.
8578
8579 2011-10-03  Bruno Haible  <bruno@clisp.org>
8580
8581         wmemchr: Support for MSVC.
8582         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
8583         whether wmemchr() exists.
8584
8585 2011-10-03  Bruno Haible  <bruno@clisp.org>
8586
8587         glthread/*, strsignal: Support for MSVC.
8588         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
8589         including <winsock.h> on MSVC 9.
8590         * lib/glthread/lock.h: Likewise.
8591         * lib/glthread/thread.h: Likewise.
8592         * lib/glthread/tls.h: Likewise.
8593         * lib/glthread/yield.h: Likewise.
8594         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
8595         if HAVE_UNISTD_H is false.
8596         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
8597
8598 2011-10-03  Bruno Haible  <bruno@clisp.org>
8599
8600         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
8601         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
8602         Set to 100000.
8603
8604 2011-10-03  Bruno Haible  <bruno@clisp.org>
8605
8606         acl: Fix specification.
8607         * lib/file-has-acl.c (file_has_acl): Fix specification.
8608
8609 2011-10-03  Bruno Haible  <bruno@clisp.org>
8610
8611         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
8612         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
8613         (compute_curr_prefix, shared_library_fullname,
8614         find_shared_library_fullname, get_shared_library_fullname, relocate):
8615         Use it together with PIC && INSTALLDIR.
8616         Reported by <jojelino@gmail.com>
8617         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
8618
8619 2011-10-01  Jim Meyering  <meyering@redhat.com>
8620
8621         maint.mk: adjust a release-related rule not to require use of gzip
8622         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
8623         Instead, check each file in $(DIST_ARCHIVES).  This is better for
8624         projects that build only .tar.xz files.  Also fix an erroneous test.
8625
8626         test-linkat: don't leave behind a temporary file
8627         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
8628         Otherwise, coreutils' "make distcheck" would fail with this:
8629           Only in /c/cu/tests/torture/coreutils/test/\
8630             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
8631           make[2]: *** [my-distcheck] Error 1
8632
8633         float, math: add omitted file
8634         * lib/itold.c: Add file, required for yesterday's float change.
8635
8636 2011-10-01  Bruno Haible  <bruno@clisp.org>
8637
8638         isinf: Fix for OpenBSD/x86.
8639         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
8640         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
8641         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
8642
8643 2011-10-01  Bruno Haible  <bruno@clisp.org>
8644
8645         isfinite: Fix syntax error in configure test.
8646         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
8647
8648         isfinite: Fix typo.
8649         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
8650         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
8651
8652 2011-10-01  Bruno Haible  <bruno@clisp.org>
8653
8654         nonblocking tests: Fix test failure on Linux/IA-64.
8655         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
8656         Set to 270000.
8657
8658 2011-10-01  Bruno Haible  <bruno@clisp.org>
8659
8660         mkfifoat tests: Fix a test failure on mingw.
8661         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
8662         with error ENOSYS.
8663
8664 2011-09-30  Bruno Haible  <bruno@clisp.org>
8665
8666         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
8667         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
8668         'long double'. Set REPLACE_ITOLD.
8669         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
8670         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
8671         * lib/itold.c: New file.
8672         * modules/float (Files): Add lib/itold.c.
8673         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
8674         (Makefile.am): Substitute REPLACE_ITOLD.
8675         * modules/math (Depends-on): Add float.
8676         (Makefile.am): Substitute REPLACE_ITOLD.
8677         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
8678         * doc/posix-headers/math.texi: Likewise.
8679         * doc/posix-functions/logl.texi: Likewise.
8680
8681 2011-09-30  Bruno Haible  <bruno@clisp.org>
8682
8683         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
8684         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
8685         Set to 140000.
8686
8687 2011-09-30  Bruno Haible  <bruno@clisp.org>
8688
8689         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
8690         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
8691         invocation, say "right after AC_PROG_CC_STDC", not "right after
8692         AC_PROG_CC".
8693         Reported by Gary V. Vaughan <gary@gnu.org>.
8694
8695 2011-09-30  Bruno Haible  <bruno@clisp.org>
8696
8697         Centralize C99 requirement.
8698         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
8699         * modules/stdarg (configure.ac-early): Invoke it instead of
8700         AC_PROG_CC_STDC.
8701         Reported by Gary V. Vaughan and Paul Eggert.
8702
8703 2011-09-29  Bruno Haible  <bruno@clisp.org>
8704
8705         float: Fix LDBL_MAX value on Linux/PowerPC.
8706         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
8707         on Linux/PowerPC.
8708         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
8709         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
8710         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
8711         platform.
8712         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
8713
8714 2011-09-29  Bruno Haible  <bruno@clisp.org>
8715
8716         doc: Improve doc about gl_EARLY.
8717         * doc/gnulib-tool.texi (Initial import): Mention where to place an
8718         AC_PROG_CC_STDC invocation.
8719         Reported by Gary V. Vaughan <gary@gnu.org>.
8720
8721 2011-09-28  Bruno Haible  <bruno@clisp.org>
8722
8723         fgetc, fputc, fread, fwrite tests: Fix link error.
8724         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
8725         on non-MSVC platforms.
8726         * tests/test-fputc.c (main): Likewise.
8727         * tests/test-fread.c (main): Likewise.
8728         * tests/test-fwrite.c (main): Likewise.
8729         Reported by Jim Meyering.
8730
8731 2011-09-27  Bruno Haible  <bruno@clisp.org>
8732
8733         fputc, fwrite tests: Avoid test failure on MSVC.
8734         * tests/test-fgetc.c: Include msvc-inval.h.
8735         (main): Invoke gl_msvc_inval_ensure_handler.
8736         * tests/test-fputc.c: Include msvc-inval.h.
8737         (main): Invoke gl_msvc_inval_ensure_handler.
8738         * tests/test-fread.c: Include msvc-inval.h.
8739         (main): Invoke gl_msvc_inval_ensure_handler.
8740         * tests/test-fwrite.c: Include msvc-inval.h.
8741         (main): Invoke gl_msvc_inval_ensure_handler.
8742         * modules/fgetc-tests (Depends-on): Add msvc-inval.
8743         * modules/fputc-tests (Depends-on): Likewise.
8744         * modules/fread-tests (Depends-on): Likewise.
8745         * modules/fwrite-tests (Depends-on): Likewise.
8746
8747 2011-09-27  Bruno Haible  <bruno@clisp.org>
8748
8749         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
8750         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
8751         (raise): Remove older, duplicated declaration.
8752         (_gl_raise_SIGPIPE): New declaration.
8753         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
8754         (rpl_raise): Remove function.
8755         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
8756         a gnulib-defined SIGPIPE here.
8757         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
8758         'sigprocmask' has detected missing signal-blocking and the module
8759         'sigpipe' is enabled.
8760         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
8761
8762 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
8763
8764         base64-tests: avoid memory leak
8765         * tests/test-base64.c (main): Plug memory leak.
8766
8767         base32: new module
8768         * modules/base32: New module.
8769         * lib/base32.c: New file.
8770         * lib/base32.h: Likewise.
8771         * m4/base32.m4: Likewise.
8772         * modules/base32-tests: New test.
8773         * tests/test-base32.c: Likewise.
8774         * MODULES.html.sh (Misc): Mention it.
8775
8776 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
8777
8778         gnulib: use more-standard license notice wording
8779         * gnulib-tool (func_emit_copyright_notice): When emitting a
8780         license notice into a file, use the standard wording as suggested
8781         by the current information for GNU maintainers, except say "file"
8782         rather than "program".  The new wording gives a license version
8783         number, which addresses an issue raised by Glenn Morris in
8784         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
8785         * m4/onceonly.m4: Use that same wording here, too.
8786
8787         dup2: minor simplification
8788         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
8789         as lib/dup2.c no longer uses 'inline'.
8790
8791 2011-09-25  Bruno Haible  <bruno@clisp.org>
8792
8793         strings: Fix compilation error on MSVC.
8794         * lib/strings.in.h: Include <stddef.h> for size_t.
8795
8796 2011-09-25  Bruno Haible  <bruno@clisp.org>
8797
8798         fflush et al.: Document limitation on MSVC.
8799         * doc/posix-functions/fflush.texi: Document possible crash in handling
8800         mode other than DEFAULT_HANDLING.
8801         * doc/posix-functions/fgetc.texi: Likewise.
8802         * doc/posix-functions/fputc.texi: Likewise.
8803         * doc/posix-functions/fread.texi: Likewise.
8804         * doc/posix-functions/fwrite.texi: Likewise.
8805
8806 2011-09-25  Bruno Haible  <bruno@clisp.org>
8807
8808         msvc-inval: Allow three invalid parameter handling modes.
8809         * lib/msvc-inval.h: Don't include <stdlib.h> here.
8810         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
8811         macros.
8812         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
8813         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
8814         SANE_LIBRARY_HANDLING as a no-op.
8815         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
8816         <stdlib.h>.
8817         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
8818
8819 2011-09-25  Bruno Haible  <bruno@clisp.org>
8820
8821         msvc-inval: Make handler multithread-safe.
8822         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
8823         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
8824         declarations.
8825         (gl_msvc_inval_current): New declaration.
8826         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
8827         Operate on the structure returned by gl_msvc_inval_current().
8828         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
8829         Remove varaiables.
8830         (tls_index, tls_initialized): New variables.
8831         (not_per_thread): New variable.
8832         (gl_msvc_inval_current): New function.
8833         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
8834         returned by gl_msvc_inval_current().
8835
8836 2011-09-25  Bruno Haible  <bruno@clisp.org>
8837
8838         msvc-inval: Install handler globally.
8839         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
8840         !_MSC_VER.
8841         (gl_msvc_invalid_parameter_handler): Remove declaration.
8842         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
8843         declarations.
8844         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
8845         Install the handler globally, don't uninstall it.
8846         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
8847         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
8848         currently valid, call RaiseException instead.
8849         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
8850         for !_MSC_VER.
8851
8852 2011-09-25  Bruno Haible  <bruno@clisp.org>
8853
8854         strerror_r-posix: Fix for MSVC 9.
8855         * lib/strerror_r.c (local_snprintf): New function.
8856         (snprintf): Define to local_snprintf, not to _snprintf.
8857
8858 2011-09-25  Bruno Haible  <bruno@clisp.org>
8859
8860         ftruncate: Support for MSVC 9.
8861         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
8862         (chsize_nothrow): New function.
8863         (chsize): Redefine as a macro.
8864         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
8865         * modules/ftruncate (Depends-on): Add msvc-inval.
8866
8867 2011-09-25  Bruno Haible  <bruno@clisp.org>
8868
8869         New module 'fstat'.
8870         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
8871         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
8872         * lib/fchdir.c (rpl_fstat): Remove function.
8873         * m4/fstat.m4: New file.
8874         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
8875         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
8876         declared.
8877         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
8878         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
8879         * modules/fstat: New file.
8880         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
8881         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
8882         is set.
8883         * doc/posix-functions/fstat.texi: Mention the new module and the
8884         problem on MSVC.
8885         * NEWS: Mention the change.
8886         * modules/acl (Depends-on): Add fstat.
8887         * modules/chdir-safer (Depends-on): Likewise.
8888         * modules/chown (Depends-on): Likewise.
8889         * modules/copy-file (Depends-on): Likewise.
8890         * modules/fchdir (Depends-on): Likewise.
8891         * modules/fdopendir (Depends-on): Likewise.
8892         * modules/fopen (Depends-on): Likewise.
8893         * modules/fts (Depends-on): Likewise.
8894         * modules/getcwd (Depends-on): Likewise.
8895         * modules/isapipe (Depends-on): Likewise.
8896         * modules/linkat (Depends-on): Likewise.
8897         * modules/lseek (Depends-on): Likewise.
8898         * modules/mkdir-p (Depends-on): Likewise.
8899         * modules/open (Depends-on): Likewise.
8900         * modules/openat (Depends-on): Likewise.
8901         * modules/read-file (Depends-on): Likewise.
8902         * modules/renameat (Depends-on): Likewise.
8903         * modules/utimens (Depends-on): Likewise.
8904
8905 2011-09-25  Bruno Haible  <bruno@clisp.org>
8906
8907         linkat: Fix compilation on MSVC 9.
8908         * lib/linkat.c: Don't include <stdint.h>.
8909
8910 2011-09-25  Bruno Haible  <bruno@clisp.org>
8911
8912         fclose: Support for MSVC 9.
8913         * lib/fclose.c: Include msvc-inval.h.
8914         (fclose_nothrow): New function.
8915         (rpl_fclose): Use it.
8916         * modules/fclose (Depends-on): Add msvc-inval.
8917         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
8918
8919 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
8920
8921         dup2: minor simplifications
8922         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
8923         that it's a performance win.
8924         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
8925         ! defined __CYGWIN__)" to "ifdef F_GETFL".
8926
8927 2011-09-24  Jim Meyering  <meyering@redhat.com>
8928
8929         test-futimens: avoid a warning from gcc -Wshadow
8930         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
8931         to avoid a shadowing warning.
8932
8933 2011-09-24  Bruno Haible  <bruno@clisp.org>
8934
8935         fdopen: Support for MSVC 9.
8936         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
8937         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
8938         * lib/fdopen.c: Include msvc-inval.h.
8939         (fdopen_nothrow): New function.
8940         (rpl_fdopen): Use it.
8941         * modules/fdopen (Depends-on): Add msvc-inval.
8942         * modules/fclose-tests (Depends-on): Add fdopen.
8943         * modules/fflush-tests (Depends-on): Likewise.
8944         * modules/fgetc-tests (Depends-on): Likewise.
8945         * modules/fputc-tests (Depends-on): Likewise.
8946         * modules/fread-tests (Depends-on): Likewise.
8947         * modules/freopen-tests (Depends-on): Likewise.
8948         * modules/fseeko-tests (Depends-on): Likewise.
8949         * modules/ftello-tests (Depends-on): Likewise.
8950         * modules/fwrite-tests  (Depends-on): Likewise.
8951         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
8952
8953 2011-09-24  Bruno Haible  <bruno@clisp.org>
8954
8955         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
8956         * modules/fgetc-tests (Depends-on): Add unistd.
8957         * modules/fputc-tests (Depends-on): Likewise.
8958         * modules/fread-tests (Depends-on): Likewise.
8959         * modules/fwrite-tests (Depends-on): Likewise.
8960
8961 2011-09-24  Bruno Haible  <bruno@clisp.org>
8962
8963         dup: Simplify autoconf test.
8964         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
8965         on gl_MSVC_INVAL's result.
8966
8967 2011-09-24  Bruno Haible  <bruno@clisp.org>
8968
8969         Tests for function fwrite().
8970         * modules/fwrite-tests: New file.
8971         * tests/test-fwrite.c: New file.
8972         * modules/stdio-tests (Depends-on): Add fwrite-tests.
8973
8974         Tests for function fread().
8975         * modules/fread-tests: New file.
8976         * tests/test-fread.c: New file.
8977         * modules/stdio-tests (Depends-on): Add fread-tests.
8978
8979         Activate fputc tests.
8980         * modules/stdio-tests (Depends-on): Add fputc-tests.
8981
8982         Enhance fgetc, fputc tests.
8983         * tests/test-fgetc.c (main): Also test the stream's error indicator.
8984         * tests/test-fputc.c (main): Likewise.
8985
8986 2011-09-24  Bruno Haible  <bruno@clisp.org>
8987
8988         write: Support for MSVC 9.
8989         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
8990         is not 1.
8991         * lib/write.c (write_nothrow): New function.
8992         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
8993         not 1. Use write_nothrow.
8994         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
8995         invalid parameter handler.
8996         (gl_PREREQ_WRITE): New macro.
8997         * modules/write (Depends-on): Add msvc-inval.
8998         (configure.ac): Invoke gl_PREREQ_WRITE.
8999         * doc/posix-functions/write.texi: Mention the problem on MSVC.
9000
9001 2011-09-24  Bruno Haible  <bruno@clisp.org>
9002
9003         read: Fix last commit.
9004         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
9005
9006 2011-09-24  Bruno Haible  <bruno@clisp.org>
9007
9008         dup2: Fix last commit.
9009         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
9010         (rpl_dup2): Disable fcntl workaround on native Windows.
9011
9012         sigprocmask: Make code safer.
9013         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
9014         section that changes macro definitions for this compilation unit.
9015
9016 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
9017
9018         dup2: clarify by coalescing Windows-specific material
9019         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
9020         "msvc-nothrow.h"' to the Windows-specific section, so that the
9021         Emacs source need not contain these include files.
9022         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
9023         Windows-specific fixes into this function rather than just the
9024         nothrow fix, as this shortens and clarifies the code.  Always
9025         define as a function, as that's a bit cleaner than having it be
9026         sometimes a function and sometimes a macro.
9027         (rpl_dup2): Move the Windows-specific stuff out of here and into
9028         ms_windows_dup2.  Don't protect the Haiku-related fix with
9029         "#if !defined __linux__", as the same code also works around
9030         a Linux kernel bug, and it doesn't add any system calls on any
9031         platform.  Add comment about FreeBSD 6.1.
9032
9033         sigprocmask: move #include directive
9034         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
9035         Windows-specific section, so that the Emacs source need not
9036         contain msvc-inval.h.
9037
9038 2011-09-23  Bruno Haible  <bruno@clisp.org>
9039
9040         read: Support for MSVC 9.
9041         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
9042         is not 1.
9043         * lib/read.c (read_nothrow): New function.
9044         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
9045         read_nothrow.
9046         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
9047         invalid parameter handler.
9048         (gl_PREREQ_READ): New macro.
9049         * modules/read (Depends-on): Add msvc-inval.
9050         (configure.ac): Invoke gl_PREREQ_READ.
9051         * doc/posix-functions/read.texi: Mention the problem on MSVC.
9052
9053 2011-09-23  Bruno Haible  <bruno@clisp.org>
9054
9055         close: Support for MSVC 9.
9056         * lib/close.c: Include <errno.h>, msvc-inval.h.
9057         (close_nothrow): New function.
9058         (rpl_close): Use it.
9059         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
9060         invalid parameter handler.
9061         * modules/close (Depends-on): Add msvc-inval.
9062         * modules/dup2-tests (Depends-on): Add close.
9063         * modules/dup3-tests (Depends-on): Likewise.
9064         * modules/fcntl-tests (Depends-on): Likewise.
9065         * modules/spawn-pipe-tests (Depends-on): Likewise.
9066         * modules/unistd-safer-tests (Depends-on): Likewise.
9067         * doc/posix-functions/close.texi: Mention the problem on MSVC.
9068
9069 2011-09-23  Bruno Haible  <bruno@clisp.org>
9070
9071         New module 'dup'.
9072         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
9073         Allow replacement.
9074         * lib/dup.c: New file.
9075         * lib/fchdir.c (rpl_dup): Remove function.
9076         * m4/dup.m4: New file.
9077         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
9078         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
9079         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
9080         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
9081         * modules/dup: New file.
9082         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
9083         'dup' module is in use.
9084         * modules/fdopendir (Depends-on): Add dup.
9085         * modules/fdutimensat-tests (Depends-on): Likewise.
9086         * modules/fts (Depends-on): Likewise.
9087         * modules/futimens-tests (Depends-on): Likewise.
9088         * modules/posix_spawnp-tests (Depends-on): Likewise.
9089         * modules/unistd-safer-tests (Depends-on): Likewise.
9090         * modules/utimens-tests (Depends-on): Likewise.
9091         * doc/posix-functions/dup.texi: Mention the new module and the problem
9092         on MSVC.
9093
9094 2011-09-23  Bruno Haible  <bruno@clisp.org>
9095
9096         getdtablesize: Support for MSVC 9.
9097         * lib/getdtablesize.c: Include msvc-inval.h.
9098         (_setmaxstdio_nothrow): New function.
9099         (_setmaxstdio): Redefine it.
9100         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
9101         * modules/getdtablesize (Depends-on): Add msvc-inval.
9102         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
9103
9104 2011-09-23  Bruno Haible  <bruno@clisp.org>
9105
9106         signal-h: Rename from signal.
9107         * modules/signal-h: Renamed from modules/signal.
9108         * modules/pthread_sigmask (Depends-on): Update.
9109         * modules/raise (Depends-on): Likewise.
9110         * modules/sigaction (Depends-on): Likewise.
9111         * modules/sigpipe (Depends-on): Likewise.
9112         * modules/sigprocmask (Depends-on): Likewise.
9113         * modules/sys_select (Depends-on): Likewise.
9114         * modules/signal-h-tests: Renamed from modules/signal-tests.
9115         (Files, Depends-on, Makefile.am): Update.
9116         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
9117         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
9118         (Files, Makefile.am): Update.
9119         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
9120         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
9121         * modules/signal: New placeholder file.
9122         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
9123         * doc/posix-headers/signal.texi: Update.
9124         * NEWS: Mention the change.
9125
9126 2011-09-23  Bruno Haible  <bruno@clisp.org>
9127
9128         sigprocmask: Avoid crashes through signal() on MSVC 9.
9129         * lib/sigprocmask.c: Include msvc-inval.h.
9130         (signal_nothrow): New function.
9131         (signal): Redefine it.
9132         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
9133         * modules/sigprocmask (Depends-on): Add msvc-inval.
9134         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
9135
9136 2011-09-23  Bruno Haible  <bruno@clisp.org>
9137
9138         Tests for module 'raise'.
9139         * modules/raise-tests: New file.
9140         * tests/test-raise.c: New file.
9141
9142         raise: Support for MSVC.
9143         * lib/signal.in.h (raise): New declaration.
9144         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
9145         for native Windows platforms.
9146         * m4/raise.m4: New file.
9147         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
9148         HAVE_RAISE, REPLACE_RAISE.
9149         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
9150         REPLACE_RAISE.
9151         * modules/raise (Status, Notice): Remove fields.
9152         (Files): Add m4/raise.m4.
9153         (Depends-on): Add signal, msvc-inval.
9154         (configure.ac): Use the common idioms.
9155         (Maintainer): Add me.
9156         * tests/test-signal-c++.cc: Check the signature of raise.
9157         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
9158
9159 2011-09-23  Bruno Haible  <bruno@clisp.org>
9160
9161         pipe2: Fix compilation on pre-C99 compilers.
9162         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
9163
9164 2011-09-23  Bruno Haible  <bruno@clisp.org>
9165
9166         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
9167         * lib/msvc-nothrow.h: New file.
9168         * lib/msvc-nothrow.c: New file.
9169         * m4/msvc-nothrow.m4: New file.
9170         * modules/msvc-nothrow: New file.
9171         * lib/dup2.c: Include msvc-nothrow.h.
9172         (rpl_dup2): No need to protect _get_osfhandle call here.
9173         * lib/accept4.c: Include msvc-nothrow.h.
9174         * lib/error.c: Likewise.
9175         * lib/fcntl.c: Likewise.
9176         * lib/lseek.c: Likewise.
9177         * lib/nonblocking.c: Likewise.
9178         * lib/poll.c: Likewise.
9179         * lib/read.c: Likewise.
9180         * lib/select.c: Likewise.
9181         * lib/sockets.h: Likewise.
9182         * lib/sockets.c: Likewise.
9183         * lib/stdio-read.c: Likewise.
9184         * lib/stdio-write.c: Likewise.
9185         * lib/write.c: Likewise.
9186         * lib/w32sock.h: Likewise.
9187         * lib/w32spawn.h: Likewise.
9188         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
9189         * lib/fsync.c: Likewise.
9190         * lib/isapipe.c: Likewise.
9191         * modules/dup2 (Depends-on): Add msvc-nothrow.
9192         * modules/accept4 (Depends-on): Likewise.
9193         * modules/error (Depends-on): Likewise.
9194         * modules/fcntl (Depends-on): Likewise.
9195         * modules/lseek (Depends-on): Likewise.
9196         * modules/nonblocking (Depends-on): Likewise.
9197         * modules/poll (Depends-on): Likewise.
9198         * modules/read (Depends-on): Likewise.
9199         * modules/select (Depends-on): Likewise.
9200         * modules/sockets (Depends-on): Likewise.
9201         * modules/sigpipe (Depends-on): Likewise.
9202         * modules/write (Depends-on): Likewise.
9203         * modules/accept (Depends-on): Likewise.
9204         * modules/bind (Depends-on): Likewise.
9205         * modules/connect (Depends-on): Likewise.
9206         * modules/gethostname (Depends-on): Likewise.
9207         * modules/getpeername (Depends-on): Likewise.
9208         * modules/getsockname (Depends-on): Likewise.
9209         * modules/getsockopt (Depends-on): Likewise.
9210         * modules/ioctl (Depends-on): Likewise.
9211         * modules/listen (Depends-on): Likewise.
9212         * modules/recv (Depends-on): Likewise.
9213         * modules/recvfrom (Depends-on): Likewise.
9214         * modules/send (Depends-on): Likewise.
9215         * modules/sendto (Depends-on): Likewise.
9216         * modules/setsockopt (Depends-on): Likewise.
9217         * modules/shutdown (Depends-on): Likewise.
9218         * modules/socket (Depends-on): Likewise.
9219         * modules/execute (Depends-on): Likewise.
9220         * modules/spawn-pipe (Depends-on): Likewise.
9221         * modules/flock (Depends-on): Likewise.
9222         * modules/fsync (Depends-on): Likewise.
9223         * modules/isapipe (Depends-on): Likewise.
9224         * tests/test-cloexec.c: Include msvc-nothrow.h.
9225         * tests/test-dup-safer.c: Likewise.
9226         * tests/test-dup2.c: Likewise.
9227         * tests/test-dup3.c: Likewise.
9228         * tests/test-fcntl.c: Likewise.
9229         * tests/test-pipe.c: Likewise.
9230         * tests/test-pipe2.c: Likewise.
9231         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
9232         * modules/unistd-safer-tests (Depends-on): Likewise.
9233         * modules/dup2-tests (Depends-on): Likewise.
9234         * modules/dup3-tests (Depends-on): Likewise.
9235         * modules/fcntl-tests (Depends-on): Likewise.
9236         * modules/pipe-posix-tests (Depends-on): Likewise.
9237         * modules/pipe2-tests (Depends-on): Likewise.
9238
9239 2011-09-23  Bruno Haible  <bruno@clisp.org>
9240
9241         dup2: Make code more maintainable.
9242         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
9243         (rpl_dup2): Use it.
9244         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
9245         * modules/dup2 (configure.ac): Invoke it.
9246         Reported by Paul Eggert.
9247
9248 2011-09-23  Bruno Haible  <bruno@clisp.org>
9249
9250         msvc-inval: Fix compilation error.
9251         * lib/msvc-inval.h: Include <excpt.h>.
9252
9253 2011-09-23  Bruno Haible  <bruno@clisp.org>
9254
9255         mkdir: Tweak for MSVC 9.
9256         * lib/sys_stat.in.h: Update comments.
9257         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
9258
9259         Tests for module 'chdir'.
9260         * modules/chdir-tests: New file.
9261         * tests/test-chdir.c: New file.
9262
9263         New module 'chdir'.
9264         * modules/chdir: New file.
9265         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
9266         (chdir): New declaration.
9267         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
9268         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
9269         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
9270         * tests/test-unistd-c++.cc: Check signature of chdir.
9271         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
9272         * modules/chdir-long (Depends-on): Add chdir.
9273         * modules/fchdir (Depends-on): Likewise.
9274         * modules/rename (Depends-on): Likewise.
9275         * modules/savewd (Depends-on): Likewise.
9276
9277         rmdir: Support for mingw, MSVC 9.
9278         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
9279         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
9280
9281         getcwd: Tweak for MSVC 9.
9282         * lib/unistd.in.h: Update comments.
9283         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
9284
9285 2011-09-22  Bruno Haible  <bruno@clisp.org>
9286
9287         strerror_r-posix: Avoid a link error on MSVC.
9288         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
9289         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
9290
9291 2011-09-22  Bruno Haible  <bruno@clisp.org>
9292
9293         select: Avoid link errors on MSVC.
9294         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
9295         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
9296         * modules/pselect (Link): Likewise.
9297         * NEWS: Mention the change.
9298         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
9299         test-select-stdin against $(LIB_SELECT).
9300         * modules/pselect-tests (Makefile.am): Link test-pselect against
9301         $(LIB_SELECT).
9302
9303 2011-09-22  Bruno Haible  <bruno@clisp.org>
9304
9305         select: Avoid compilation error on MSVC.
9306         * lib/select.c: Don't include <stdbool.h>.
9307
9308 2011-09-21  Bruno Haible  <bruno@clisp.org>
9309
9310         Consolidate all uses of PATH_MAX in *.m4 files.
9311         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
9312         macros.
9313         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
9314         and gl_PATHMAX_SNIPPET.
9315         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
9316         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
9317         * modules/chdir-long (Files): Add m4/pathmax.m4.
9318         * modules/getcwd (Files): Likewise.
9319
9320 2011-09-21  Bruno Haible  <bruno@clisp.org>
9321
9322         ftruncate: Un-deprecate, concentrate on Win32 support.
9323         * modules/ftruncate (Status, Notice): Remove sections.
9324         (Depends-on): Add largefile.
9325         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
9326         non-mingw platforms.
9327         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
9328         include <io.h>.
9329         * modules/perror-tests (Depends-on): Add ftruncate.
9330         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
9331         'ftruncate' module.
9332
9333 2011-09-21  Bruno Haible  <bruno@clisp.org>
9334
9335         Add dependencies to new dirent related modules.
9336         * modules/opendir (Depends-on): Add closedir.
9337         * modules/getcwd (Depends-on): Add opendir, closedir.
9338         * modules/dirent-safer-tests (Depends-on): Likewise.
9339         * modules/fdopendir-tests (Depends-on): Likewise.
9340         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
9341         * modules/renameat-tests (Depends-on): Likewise.
9342
9343 2011-09-21  Bruno Haible  <bruno@clisp.org>
9344
9345         opendir: Avoid compilation error on mingw.
9346         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
9347         * modules/opendir (Depends-on): Add unistd.
9348
9349 2011-09-21  Bruno Haible  <bruno@clisp.org>
9350
9351         ftruncate tests: Avoid a test failure on mingw.
9352         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
9353
9354 2011-09-21  Bruno Haible  <bruno@clisp.org>
9355
9356         select tests: Avoid test failures on OSF/1 5.1 and mingw.
9357         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
9358         native Windows.
9359
9360 2011-09-21  Bruno Haible  <bruno@clisp.org>
9361
9362         New module 'fdopen'.
9363         * lib/stdio.in.h (fdopen): New declaration.
9364         * lib/fdopen.c: New file.
9365         * m4/fdopen.m4: New file.
9366         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
9367         REPLACE_FDOPEN.
9368         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
9369         REPLACE_FDOPEN.
9370         * modules/fdopen: New file.
9371         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
9372         * tests/test-stdio-c++.cc: Check signature of fdopen.
9373         * doc/posix-functions/fdopen.texi: Mention the new module.
9374
9375 2011-09-21  Bruno Haible  <bruno@clisp.org>
9376
9377         unlockpt tests: Avoid test failure on NetBSD 5.1.
9378         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
9379         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
9380
9381 2011-09-21  Bruno Haible  <bruno@clisp.org>
9382
9383         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
9384         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
9385         * tests/test-getlogin_r.c (main): Likewise.
9386
9387 2011-09-20  Bruno Haible  <bruno@clisp.org>
9388
9389         time tests: Don't require pid_t.
9390         * doc/posix-headers/time.texi: Revert last change.
9391         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
9392         * tests/test-time.c: Comment out the check for pid_t.
9393
9394 2011-09-20  Bruno Haible  <bruno@clisp.org>
9395
9396         fsync tests: Avoid a test failure on mingw.
9397         * tests/test-fsync.c (main): Allow a failure with EIO.
9398
9399 2011-09-20  Bruno Haible  <bruno@clisp.org>
9400
9401         euidaccess: Update comments.
9402         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
9403
9404 2011-09-20  Bruno Haible  <bruno@clisp.org>
9405
9406         Ensure EBADF returns for socket functions on mingw.
9407         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
9408         descriptor is invalid.
9409         * lib/bind.c (rpl_bind): Likewise.
9410         * lib/connect.c (rpl_connect): Likewise.
9411         * lib/getpeername.c (rpl_getpeername): Likewise.
9412         * lib/getsockname.c (rpl_getsockname): Likewise.
9413         * lib/getsockopt.c (rpl_getsockopt): Likewise.
9414         * lib/listen.c (rpl_listen): Likewise.
9415         * lib/recv.c (rpl_recv): Likewise.
9416         * lib/recvfrom.c (rpl_recvfrom): Likewise.
9417         * lib/send.c (rpl_send): Likewise.
9418         * lib/sendto.c (rpl_sendto): Likewise.
9419         * lib/setsockopt.c (rpl_setsockopt): Likewise.
9420         * lib/shutdown.c (rpl_shutdown): Likewise.
9421
9422 2011-09-20  Bruno Haible  <bruno@clisp.org>
9423
9424         select tests: EBADF tests.
9425         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
9426         test_bad_fd): New functions.
9427         (test_function): Invoke also test_bad_fd.
9428
9429 2011-09-20  Bruno Haible  <bruno@clisp.org>
9430
9431         Tests for module 'posix_spawn_file_actions_addopen.
9432         * modules/posix_spawn_file_actions_addopen-tests: New file.
9433         * tests/test-posix_spawn_file_actions_addopen.c: New file.
9434
9435         Tests for module 'posix_spawn_file_actions_adddup2'.
9436         * modules/posix_spawn_file_actions_adddup2-tests: New file.
9437         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
9438
9439         Tests for module 'posix_spawn_file_actions_addclose'.
9440         * modules/posix_spawn_file_actions_addclose-tests: New file.
9441         * tests/test-posix_spawn_file_actions_addclose.c: New file.
9442
9443 2011-09-20  Bruno Haible  <bruno@clisp.org>
9444
9445         Tests for module 'unlockpt'.
9446         * modules/unlockpt-tests: New file.
9447         * tests/test-unlockpt.c: New file.
9448         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
9449
9450         Tests for module 'grantpt'.
9451         * modules/grantpt-tests: New file.
9452         * tests/test-grantpt.c: New file.
9453         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
9454
9455 2011-09-20  Bruno Haible  <bruno@clisp.org>
9456
9457         freopen tests: EBADF tests.
9458         * tests/test-freopen.c: Include errno.h, unistd.h.
9459         (main): Add tests for EBADF, commented out for the moment.
9460
9461         fclose tests: EBADF tests.
9462         * tests/test-fclose.c (main): Add tests for EBADF.
9463
9464         fflush tests: EBADF tests.
9465         * tests/test-fflush.c: Include errno.h, macros.h.
9466         (main): Add tests for EBADF.
9467
9468         ftello tests: EBADF tests.
9469         * tests/test-ftello4.sh: New file.
9470         * tests/test-ftello4.c: New file.
9471         * modules/ftello-tests (Files): Add them.
9472         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
9473
9474         fseeko tests: EBADF tests.
9475         * tests/test-fseeko4.sh: New file.
9476         * tests/test-fseeko4.c: New file.
9477         * modules/fseeko-tests (Files): Add them.
9478         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
9479
9480         Tests for function fputc().
9481         * modules/fputc-tests: New file.
9482         * tests/test-fputc.c: New file.
9483         * modules/stdio-tests (Depends-on): Add fputc-tests.
9484
9485         Tests for function fgetc().
9486         * modules/fgetc-tests: New file.
9487         * tests/test-fgetc.c: New file.
9488         * modules/stdio-tests (Depends-on): Add fgetc-tests.
9489
9490         Tests for function fdopen().
9491         * modules/fdopen-tests: New file.
9492         * tests/test-fdopen.c: New file.
9493         * modules/stdio-tests (Depends-on): Add fdopen-tests.
9494
9495         Tests for module 'vdprintf'.
9496         * modules/vdprintf-tests: New file.
9497         * tests/test-vdprintf.c: New file.
9498
9499         Tests for module 'dprintf'.
9500         * modules/dprintf-tests: New file.
9501         * tests/test-dprintf.c: New file.
9502
9503 2011-09-20  Bruno Haible  <bruno@clisp.org>
9504
9505         Tests for module 'ioctl'.
9506         * modules/ioctl-tests: New file.
9507         * tests/test-ioctl.c: New file.
9508
9509 2011-09-20  Bruno Haible  <bruno@clisp.org>
9510
9511         fcntl tests: EBADF tests.
9512         * tests/test-fcntl.c (main): Add more tests for EBADF.
9513
9514 2011-09-20  Bruno Haible  <bruno@clisp.org>
9515
9516         utimensat tests: EBADF tests.
9517         * tests/test-utimensat.c (main): Add tests for EBADF.
9518
9519         renameat tests: EBADF tests.
9520         * tests/test-renameat.c (main): Add tests for EBADF.
9521
9522         mkfifoat tests: EBADF tests.
9523         * tests/test-mkfifoat.c (main): Add tests for EBADF.
9524
9525         readlinkat tests: EBADF tests.
9526         * tests/test-readlinkat.c (main): Add tests for EBADF.
9527
9528         symlinkat tests: EBADF tests.
9529         * tests/test-symlinkat.c (main): Add tests for EBADF.
9530
9531         linkat tests: EBADF tests.
9532         * tests/test-linkat.c (main): Add tests for EBADF.
9533
9534         Tests for module 'faccessat'.
9535         * modules/faccessat-tests: New file.
9536         * tests/test-faccessat.c: New file.
9537
9538         fdopendir tests: EBADF tests.
9539         * tests/test-fdopendir.c (main): Add more tests for EBADF.
9540
9541         openat tests: EBADF tests.
9542         * tests/test-fchownat.c (main): Add tests for EBADF.
9543         * tests/test-fstatat.c (main): Likewise.
9544         * tests/test-mkdirat.c (main): Likewise.
9545         * tests/test-openat.c (main): Likewise.
9546         * tests/test-unlinkat.c (main): Likewise.
9547         * tests/test-fchmodat.c: New file.
9548         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
9549         (Makefile.am): Also run 'test-fchmodat'.
9550
9551 2011-09-20  Bruno Haible  <bruno@clisp.org>
9552
9553         utimens, futimens, fdutimensat tests: EBADF tests.
9554         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
9555
9556         Tests for function fstat().
9557         * modules/fstat-tests: New file.
9558         * tests/test-fstat.c: New file.
9559         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
9560
9561 2011-09-20  Bruno Haible  <bruno@clisp.org>
9562
9563         test-ttyname_r tests: EBADF tests.
9564         * tests/test-ttyname_r.c (main): Add tests for EBADF.
9565
9566         Tests for module 'isatty'.
9567         * modules/isatty-tests: New file.
9568         * tests/test-isatty.c: New file.
9569
9570         Tests for module 'write'.
9571         * modules/write-tests: New file.
9572         * tests/test-write.c: New file.
9573
9574         Tests for module 'read'.
9575         * modules/read-tests: New file.
9576         * tests/test-read.c: New file.
9577
9578         pwrite tests: EBADF tests.
9579         * tests/test-pwrite.c (main): Add tests for EBADF.
9580
9581         pread tests: EBADF tests.
9582         * tests/test-pread.c (main): Add tests for EBADF.
9583
9584         lseek tests: EBADF tests.
9585         * tests/test-lseek.c (main): Add more tests for EBADF.
9586
9587         Tests for module 'ftruncate'.
9588         * modules/ftruncate-tests: New file.
9589         * tests/test-ftruncate.sh: New file.
9590         * tests/test-ftruncate.c: New file.
9591
9592         fsync tests: EBADF tests.
9593         * tests/test-fsync.c (main): Add more tests for EBADF.
9594
9595         fdatasync tests: EBADF tests.
9596         * tests/test-fdatasync.c (main): Add more tests for EBADF.
9597
9598         Tests for module 'fchown'.
9599         * modules/fchown-tests: New file.
9600         * tests/test-fchown.c: New file.
9601
9602         Tests for module 'fchmod'.
9603         * modules/fchmod-tests: New file.
9604         * tests/test-fchmod.c: New file.
9605
9606         fchdir tests: EBADF tests.
9607         * tests/test-fchdir.c (main): Add more tests for EBADF.
9608
9609         dup2 tests: EBADF tests.
9610         * tests/test-dup2.c (main): Add more tests for EBADF.
9611
9612         Tests for module 'dup'.
9613         * modules/dup-tests: New file.
9614         * tests/test-dup.c: New file.
9615
9616         Tests for module 'close'.
9617         * modules/close-tests: New file.
9618         * tests/test-close.c: New file.
9619
9620 2011-09-20  Bruno Haible  <bruno@clisp.org>
9621
9622         Tests for module 'shutdown'.
9623         * modules/shutdown-tests: New file.
9624         * tests/test-shutdown.c: New file.
9625
9626         Tests for module 'setsockopt'.
9627         * modules/setsockopt-tests: New file.
9628         * tests/test-setsockopt.c: New file.
9629
9630         Tests for module 'sendto'.
9631         * modules/sendto-tests: New file.
9632         * tests/test-sendto.c: New file.
9633
9634         Tests for module 'send'.
9635         * modules/send-tests: New file.
9636         * tests/test-send.c: New file.
9637
9638         Tests for module 'recvfrom'.
9639         * modules/recvfrom-tests: New file.
9640         * tests/test-recvfrom.c: New file.
9641
9642         Tests for module 'recv'.
9643         * modules/recv-tests: New file.
9644         * tests/test-recv.c: New file.
9645
9646         Tests for module 'listen'.
9647         * modules/listen-tests: New file.
9648         * tests/test-listen.c: New file.
9649
9650         Tests for module 'getsockopt'.
9651         * modules/getsockopt-tests: New file.
9652         * tests/test-getsockopt.c: New file.
9653
9654         Tests for module 'getsockname'.
9655         * modules/getsockname-tests: New file.
9656         * tests/test-getsockname.c: New file.
9657
9658         Tests for module 'getpeername'.
9659         * modules/getpeername-tests: New file.
9660         * tests/test-getpeername.c: New file.
9661
9662         Tests for module 'connect'.
9663         * modules/connect-tests: New file.
9664         * tests/test-connect.c: New file.
9665
9666         Tests for module 'bind'.
9667         * modules/bind-tests: New file.
9668         * tests/test-bind.c: New file.
9669
9670         accept4 tests: Fix for native Windows.
9671         * tests/test-accept4.c: Include sockets.h.
9672         (main): Invoke gl_sockets_startup.
9673         * modules/accept4-tests (Depends-on): Add sockets.
9674
9675         accept tests: Fix for native Windows.
9676         * tests/test-accept.c: Include sockets.h.
9677         (main): Invoke gl_sockets_startup.
9678         * modules/accept-tests (Depends-on): Add sockets.
9679
9680 2011-09-19  Bruno Haible  <bruno@clisp.org>
9681
9682         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
9683         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
9684         do...while(0).
9685         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
9686         Suggested by Paul Eggert.
9687
9688 2011-09-19  Bruno Haible  <bruno@clisp.org>
9689
9690         sched: Ensure pid_t is defined.
9691         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
9692         not define pid_t.
9693         * lib/sched.in.h: Include <sys/types.h>.
9694         * doc/posix-headers/sched.texi: Mention the pid_t problem.
9695         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9696
9697 2011-09-19  Bruno Haible  <bruno@clisp.org>
9698
9699         msvc-inval: Ensure the entire expansion is a single statement.
9700         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
9701         of braces.
9702
9703 2011-09-19  Jim Meyering  <meyering@redhat.com>
9704
9705         tests: use printf, not echo in init.sh's warn_ function
9706         * tests/init.sh (warn_): Use printf, not echo.  The latter would
9707         misbehave when given strings containing a backslash or starting
9708         with e.g., -n.  James Youngman suggested setting IFS.
9709
9710 2011-09-19  Eric Blake  <eblake@redhat.com>
9711
9712         futimens: enhance test
9713         * tests/test-futimens.h (test_futimens): Also check for EBADF on
9714         closed non-negative fd.
9715
9716         date: accept 'hence' as opposite of 'ago'
9717         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
9718         * tests/test-parse-datetime.c (main): Enhance test.
9719         Suggested by Jesse Wilson.
9720
9721 2011-09-19  Jim Meyering  <meyering@redhat.com>
9722
9723         getcwd: don't fail in a deep directory on a system without openat
9724         Before this change, getcwd would fail when called from a directory
9725         of depth PATH_MAX / 3 or greater.  That was due to the fact that
9726         the non-openat implementation used "..", "../..", "../../..", etc.
9727         to access ancestor directories.  With too many, that string would
9728         be longer than PATH_MAX.
9729         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
9730         using gnulib's openat replacement.
9731         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
9732         we're using the replacement function.
9733
9734 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
9735
9736         maint.mk: avoid warnings from perl about missing files
9737         * top/maint.mk (def_sym_regex): Ignore files listed in
9738         $(gl_other_headers_) that do not exist, say because a project
9739         does not use a corresponding module.
9740
9741 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
9742
9743         stat: use pathmax.h only if needed
9744         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
9745         This is better for Emacs, which does not have a mingw port and
9746         therefore can avoid the pathmax module.
9747
9748         utimens: remove dependency on dup2
9749         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
9750         to work around the Linux kernel bug.
9751         * modules/utimens (Depends-on): Remove dup2.
9752
9753 2011-09-18  Bruno Haible  <bruno@clisp.org>
9754
9755         inet_ntop, inet_pton: Look for it also in libresolv.
9756         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
9757         libnsl, search for it in libresolv.
9758         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
9759         Needed on Solaris 7.
9760
9761 2011-09-18  Bruno Haible  <bruno@clisp.org>
9762
9763         accept, accept4 tests: Avoid link error on Solaris.
9764         * modules/accept-tests (Makefile.am): Link test-accept against
9765         $(LIBSOCKET).
9766         * modules/accept4-tests (Makefile.am): Link test-accept4 against
9767         $(LIBSOCKET).
9768
9769         accept4: Avoid link error on Solaris.
9770         * modules/accept4 (Link): New section.
9771
9772         socket functions: Avoid link errors on Solaris.
9773         * modules/accept (Depends-on): Add socketlib.
9774         (Link): New section.
9775         * modules/bind (Depends-on): Add socketlib.
9776         (Link): New section.
9777         * modules/connect (Depends-on): Add socketlib.
9778         (Link): New section.
9779         * modules/getpeername (Depends-on): Add socketlib.
9780         (Link): New section.
9781         * modules/getsockname (Depends-on): Add socketlib.
9782         (Link): New section.
9783         * modules/getsockopt (Depends-on): Add socketlib.
9784         (Link): New section.
9785         * modules/listen (Depends-on): Add socketlib.
9786         (Link): New section.
9787         * modules/recv (Depends-on): Add socketlib.
9788         (Link): New section.
9789         * modules/recvfrom (Depends-on): Add socketlib.
9790         (Link): New section.
9791         * modules/send (Depends-on): Add socketlib.
9792         (Link): New section.
9793         * modules/sendto (Depends-on): Add socketlib.
9794         (Link): New section.
9795         * modules/setsockopt (Depends-on): Add socketlib.
9796         (Link): New section.
9797         * modules/shutdown (Depends-on): Add socketlib.
9798         (Link): New section.
9799         * modules/socket (Depends-on): Add socketlib.
9800         (Link): New section.
9801
9802 2011-09-18  Bruno Haible  <bruno@clisp.org>
9803
9804         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
9805         * tests/test-ptsname.c (main): Terminate the test if it takes longer
9806         than 5 seconds.
9807         * modules/ptsname-tests (configure.ac): Test for alarm.
9808
9809 2011-09-18  Bruno Haible  <bruno@clisp.org>
9810
9811         posix_spawn_file_actions_add*: Fix module dependencies.
9812         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
9813         posix_spawn_file_actions_init.
9814         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
9815         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
9816
9817 2011-09-18  Bruno Haible  <bruno@clisp.org>
9818
9819         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
9820         * tests/test-rename.h (test_rename): Allow error code EEXIST.
9821         * tests/test-renameat.c (main): Likewise.
9822
9823 2011-09-18  Bruno Haible  <bruno@clisp.org>
9824
9825         Tests for module 'accept4'.
9826         * modules/accept4-tests: New file.
9827         * tests/test-accept4.c: New file.
9828
9829 2011-09-18  Bruno Haible  <bruno@clisp.org>
9830
9831         Tests for module 'accept'.
9832         * modules/accept-tests: New file.
9833         * tests/test-accept.c: New file.
9834
9835 2011-09-18  Bruno Haible  <bruno@clisp.org>
9836
9837         dup2: Support for MSVC.
9838         * lib/dup2.c: Include msvc-inval.h.
9839         (rpl_dup2): Handle invalid parameter notifications during dup2 and
9840         _get_osfhandle calls.
9841         * modules/dup2 (Depends-on): Add msvc-inval.
9842         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
9843
9844         New module 'msvc-inval'.
9845         * lib/msvc-inval.h: New file.
9846         * lib/msvc-inval.c: New file.
9847         * m4/msvc-inval.m4: New file.
9848         * modules/msvc-inval: New file.
9849
9850 2011-09-17  Bruno Haible  <bruno@clisp.org>
9851
9852         Tests for module 'pclose'.
9853         * modules/pclose-tests: New file.
9854
9855         New module 'pclose'.
9856         * lib/stdio.in.h (pclose): New declaration.
9857         * lib/pclose.c: New file.
9858         * m4/pclose.m4: New file.
9859         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
9860         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
9861         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
9862         * modules/pclose: New file.
9863         * modules/popen-tests (Depends-on): Add pclose.
9864         * modules/popen-safer-tests (Depends-on): Likewise.
9865         * doc/posix-functions/pclose.texi: Mention the new module.
9866
9867 2011-09-17  Bruno Haible  <bruno@clisp.org>
9868
9869         popen: Support for MSVC.
9870         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
9871         * lib/popen.c (popen): Provide alternate definition for native Windows.
9872         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
9873         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
9874         * modules/popen (Depends-on, configure.ac): Update condition.
9875         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
9876         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
9877         fixed.
9878
9879 2011-09-17  Bruno Haible  <bruno@clisp.org>
9880
9881         isnanl, isnand, isnanf: Work around MSVC bug.
9882         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
9883
9884 2011-09-17  Bruno Haible  <bruno@clisp.org>
9885
9886         sys_socket tests: Fix recent mistake.
9887         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
9888
9889 2011-09-17  Bruno Haible  <bruno@clisp.org>
9890
9891         putenv: Support for MSVC.
9892         * modules/putenv (Depends-on): Add environ.
9893         * lib/putenv.c (environ): Disable declaration.
9894         * lib/unistd.in.h: Update comment.
9895
9896 2011-09-17  Bruno Haible  <bruno@clisp.org>
9897
9898         math: Avoid macro redefinition warnings on MSVC.
9899         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
9900         Undefine before redefining.
9901
9902 2011-09-17  Bruno Haible  <bruno@clisp.org>
9903
9904         doc: Mention functions which are declared as macros.
9905         * doc/posix-functions/*[fl].texi: Mention that some functions are
9906         defined as macros with arguments only.
9907
9908 2011-09-17  Bruno Haible  <bruno@clisp.org>
9909
9910         Add dependencies to new dirent related modules.
9911         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
9912         * modules/fts (Depends-on): Likewise.
9913         * modules/glob (Depends-on): Likewise.
9914         * modules/savedir (Depends-on): Likewise.
9915         * modules/scandir (Depends-on): Likewise.
9916         * modules/dirent-safer (Depends-on): Add opendir, closedir.
9917         * modules/fdopendir (Depends-on): Add opendir.
9918
9919 2011-09-17  Bruno Haible  <bruno@clisp.org>
9920
9921         inet_pton: Support for MSVC on Windows Vista or newer.
9922         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
9923         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
9924         HAVE_DECL_INET_PTON is defined.
9925         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
9926         On platforms with <winsock2.h>, test whether inet_pton is declared in
9927         <ws2tcpip.h>. If so, arrange to replace it.
9928         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
9929         REPLACE_INET_PTON.
9930         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
9931         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
9932         (Depends-on, configure.ac): Update condition.
9933         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
9934
9935 2011-09-17  Bruno Haible  <bruno@clisp.org>
9936
9937         inet_ntop: Support for MSVC on Windows Vista or newer.
9938         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
9939         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
9940         HAVE_DECL_INET_NTOP is defined.
9941         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
9942         On platforms with <winsock2.h>, test whether inet_ntop is declared in
9943         <ws2tcpip.h>. If so, arrange to replace it.
9944         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
9945         REPLACE_INET_NTOP.
9946         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
9947         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
9948         (Depends-on, configure.ac): Update condition.
9949         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
9950
9951 2011-09-16  Eric Blake  <eblake@redhat.com>
9952
9953         test-fsync: yet another enhancement
9954         * tests/test-fsync.c (main): Also test behavior on read-only text
9955         file.
9956
9957 2011-09-16  Bruno Haible  <bruno@clisp.org>
9958
9959         Enhance fsync, fdatasync tests.
9960         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
9961         * tests/test-fdatasync.c (main): Likewise.
9962
9963 2011-09-16  Bruno Haible  <bruno@clisp.org>
9964
9965         Support for MSVC compiler: Ensure mode_t gets defined.
9966         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
9967         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
9968         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
9969         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
9970         * tests/test-fcntl-h.c: Check that mode_t is defined.
9971         * tests/test-sys_stat.c: Likewise.
9972         * tests/test-sys_types.c: Likewise.
9973         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
9974         * doc/posix-headers/sys_stat.texi: Likewise.
9975         * doc/posix-headers/sys_types.texi: Likewise.
9976
9977 2011-09-16  Bruno Haible  <bruno@clisp.org>
9978
9979         sys_stat: Support for MSVC.
9980         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
9981         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
9982         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
9983         MSVC.
9984
9985 2011-09-16  Bruno Haible  <bruno@clisp.org>
9986
9987         Support for MSVC compiler: Ensure off_t gets defined.
9988         * lib/unistd.in.h: Include <sys/types.h>.
9989         * tests/test-fcntl-h.c: Check that off_t is defined.
9990         * tests/test-sys_stat.c: Likewise.
9991         * tests/test-sys_types.c: Likewise.
9992
9993 2011-09-16  Eric Blake  <eblake@redhat.com>
9994
9995         fdatasync: port to Solaris
9996         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
9997         * modules/fdatasync (Link): Document it.
9998         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
9999
10000         fdatasync: port to MacOS X 10.7
10001         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
10002         declared.
10003         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
10004         * modules/unistd (Makefile.am): Substitute it.
10005         * lib/unistd.in.h (fdatasync): Declare on MacOS.
10006         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
10007
10008         fdatasync: minor improvements
10009         * modules/fdatasync (Depends-on): Add condition for fsync.
10010         * lib/fdatasync.c (fdatasync): Add comment.
10011         * tests/test-unistd-c++.cc: Test fdatasync.
10012
10013         unistd: update refs to newer POSIX
10014         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
10015         Suggested by Bruno Haible.
10016
10017         fdatasync: new module
10018         * modules/fsync (Description): Document difference to fdatasync.
10019         * modules/fdatasync: New module.
10020         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
10021         * lib/fdatasync.c (fdatasync): Likewise.
10022         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
10023         defaults.
10024         * modules/unistd (Makefile.am): Set witnesses.
10025         * lib/unistd.in.h (fdatasync): Declare.
10026         * MODULES.html.sh: Document it.
10027         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
10028         * modules/fdatasync-tests: New test.
10029         * tests/test-fdatasync.c: Likewise.
10030
10031 2011-09-16  Eric Blake  <eblake@redhat.com>
10032
10033         test-fsync: enhance tests
10034         * modules/fsync-tests (Depends-on): Add errno, for mingw.
10035         * tests/test-fsync.c (main): Enhance test.
10036
10037 2011-09-15  Bruno Haible  <bruno@clisp.org>
10038
10039         Support for MSVC compiler: Ensure ssize_t gets defined.
10040         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
10041         * doc/posix-headers/stdio.texi: Likewise.
10042         * modules/stdio (Depends-on): Add ssize_t.
10043         * modules/sys_socket (Depends-on): Likewise.
10044         * modules/sys_types (Depends-on): Likewise.
10045         * modules/sys_uio (Depends-on): Likewise.
10046         * modules/unistd (Depends-on): Likewise.
10047         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
10048         * tests/test-sys_types.c: Check that ssize_t is defined.
10049
10050 2011-09-14  Bruno Haible  <bruno@clisp.org>
10051
10052         Avoid using #, the m4 comment starter character, near brackets.
10053         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
10054         delimiter character in sed expressions.
10055         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
10056         Suggested by Eric Blake.
10057
10058         Properly quote AC_CHECK_DECLS' 4th argument.
10059         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
10060         argument.
10061         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
10062         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
10063         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
10064         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
10065         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
10066         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
10067         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
10068         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
10069         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
10070         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
10071         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
10072         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
10073         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
10074         * m4/isinf.m4 (gl_ISINF): Likewise.
10075         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
10076         * m4/readutmp.m4 (gl_READUTMP): Likewise.
10077         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
10078         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
10079         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
10080         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
10081         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
10082         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
10083         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
10084         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
10085         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
10086         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
10087         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
10088         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
10089         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
10090         Reported by Eric Blake.
10091
10092         Properly quote AC_CHECK_DECL's 4th argument.
10093         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
10094         argument.
10095         * m4/argp.m4 (gl_ARGP): Likewise.
10096         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
10097         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
10098         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
10099         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
10100         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
10101         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
10102         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
10103         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
10104         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
10105         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
10106         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
10107         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
10108         Reported by Eric Blake.
10109
10110 2011-09-14  Eric Blake  <eblake@redhat.com>
10111
10112         opendir: avoid compile warning
10113         * lib/opendir.c (includes): Always include errno.h.
10114         Reported by Tatsuro MATSUOKA.
10115
10116 2011-09-14  Jim Meyering  <meyering@redhat.com>
10117
10118         maint.mk: sc_tight_scope: propagate failure from sub-make
10119         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
10120         Reported by Martin von Gagern.
10121
10122 2011-09-13  Bruno Haible  <bruno@clisp.org>
10123
10124         tempname: Support for MSVC.
10125         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
10126         MSVC.
10127         * modules/tempname (Depends-on): Add fcntl-h.
10128
10129 2011-09-13  Bruno Haible  <bruno@clisp.org>
10130
10131         sys_time: Support for MSVC.
10132         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
10133         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
10134         include <winsock2.h>.
10135         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
10136         function declarations that collide with POSIX.
10137         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
10138         (Makefile.am): Substitute HAVE_WINSOCK2_H.
10139
10140 2011-09-13  Bruno Haible  <bruno@clisp.org>
10141
10142         stat: Support for MSVC.
10143         * lib/stat.c: Include pathmax.h.
10144         * modules/stat (Depends-on): Add pathmax.
10145
10146         pathmax: Support for native Windows.
10147         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
10148
10149 2011-09-12  Bruno Haible  <bruno@clisp.org>
10150
10151         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
10152         * lib/dirent.in.h (struct dirent): New type.
10153         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
10154         DT_WHT): New macros.
10155         (DIR): New type.
10156         (opendir, closedir): Declare only if the module 'opendir' is enabled.
10157         (readdir, rewinddir): New declarations.
10158         * lib/dirent-private.h: New file.
10159         * lib/opendir.c: New file.
10160         * lib/readdir.c: New file.
10161         * lib/rewinddir.c: New file.
10162         * lib/closedir.c: New file.
10163         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
10164         * m4/opendir.m4: New file.
10165         * m4/readdir.m4: New file.
10166         * m4/rewinddir.m4: New file.
10167         * m4/closedir.m4: New file.
10168         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
10169         REPLACE_CLOSEDIR here.
10170         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
10171         readdir, rewinddir are declared.
10172         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
10173         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
10174         HAVE_REWINDDIR, HAVE_CLOSEDIR.
10175         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
10176         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
10177         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
10178         * modules/opendir: New file.
10179         * modules/readdir: New file.
10180         * modules/rewinddir: New file.
10181         * modules/closedir: New file.
10182         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
10183         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
10184         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
10185         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
10186         * NEWS: Mention the 'fchdir' change.
10187
10188 2011-09-11  Bruno Haible  <bruno@clisp.org>
10189
10190         asm-underscore.m4: Support for MSVC.
10191         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
10192         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
10193
10194 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
10195
10196         Doc about crypt functions.
10197         * doc/posix-functions/crypt.texi: Expand range of glibc versions
10198         needing for _GNU_SOURCE to get crypt.
10199         * doc/posix-functions/encrypt.texi: Likewise.
10200         * doc/posix-functions/setkey.texi: Likewise.
10201
10202 2011-09-11  Bruno Haible  <bruno@clisp.org>
10203
10204         doc: Update regarding MSVC 9.
10205         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
10206         tested".
10207         * doc/posix-functions/*.texi: Update with info about MSVC 9.
10208         * doc/posix-headers/*.texi: Likewise.
10209         * doc/pastposix-functions/*.texi: Likewise.
10210         * doc/glibc-functions/*.texi: Likewise.
10211         * doc/glibc-headers/*.texi: Likewise.
10212
10213 2011-09-11  Bruno Haible  <bruno@clisp.org>
10214
10215         unistd et al.: Don't assume <unistd.h> exists.
10216         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
10217         does not exist.
10218         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
10219         exist. But include <stdlib.h>.
10220         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
10221         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
10222         symlink() does not exist.
10223         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
10224         include <io.h> instead.
10225         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
10226         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
10227         include <direct.h> instead.
10228         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
10229         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
10230         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
10231         <io.h> instead.
10232         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
10233         correctly if the system does not have hard links.
10234         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
10235         <direct.h> instead.
10236         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
10237         it when looking for function declarations.
10238         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
10239         <direct.h> and <io.h> instead.
10240         * doc/posix-headers/unistd.texi: More details about MSVC problem.
10241
10242 2011-09-11  Bruno Haible  <bruno@clisp.org>
10243
10244         strcase: Support for MSVC.
10245         * modules/strcase (Status, Notice): Remove obsoletion mark.
10246         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
10247         * doc/posix-functions/strncasecmp.texi: Likewise.
10248
10249         strings: Don't assume <strings.h> exists.
10250         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
10251         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
10252         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
10253         * doc/posix-headers/strings.texi: Mention the MSVC problem.
10254
10255 2011-09-11  Bruno Haible  <bruno@clisp.org>
10256
10257         dirent: Don't assume <dirent.h> exists.
10258         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
10259         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
10260         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
10261         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
10262
10263 2011-09-11  Bruno Haible  <bruno@clisp.org>
10264
10265         Fix wint_t on MSVC.
10266         * lib/wchar.in.h (wint_t): On MSVC, override it.
10267         * lib/wctype.in.h (wint_t): Likewise.
10268         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
10269         MSVC.
10270         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
10271         * doc/posix-headers/wctype.texi: Likewise.
10272
10273 2011-09-11  Bruno Haible  <bruno@clisp.org>
10274
10275         sys_types: Fix typo.
10276         * lib/sys_types.in.h: Fix typo in comment.
10277         Reported by Paul Eggert.
10278
10279         Support for MSVC compiler: Ensure size_t gets defined.
10280         * modules/strings (Depends-on): Add 'sys_types'.
10281         * modules/sys_uio (Depends-on): Likewise.
10282         * lib/sys_uio.in.h: Update comment.
10283
10284         C++ tests for module 'sys_types'.
10285         * modules/sys_types-c++-tests: New file.
10286         * tests/test-sys_types-c++.cc: New file.
10287
10288         Tests for module 'sys_types'.
10289         * modules/sys_types-tests: New file.
10290         * tests/test-sys_types.c: New file.
10291
10292         New module 'sys_types'.
10293         * lib/sys_types.in.h: New file.
10294         * m4/sys_types_h.m4: New file.
10295         * modules/sys_types: New file.
10296         * doc/posix-headers/sys_types.texi: Mention the new module and the
10297         size_t problem on MSVC 9.
10298
10299 2011-09-11  Bruno Haible  <bruno@clisp.org>
10300
10301         Support for MSVC compiler: Avoid division by a literal 0.
10302         * lib/math.in.h (NAN): Define through a function call also on MSVC.
10303         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
10304         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
10305         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
10306         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
10307         * tests/infinity.h: New file.
10308         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
10309         on MSVC.
10310         * tests/test-ceilf1.c: Include infinity.h.
10311         (main): Use Infinityf.
10312         * tests/test-ceil1.c: Include infinity.h.
10313         (main): Use Infinityd.
10314         * tests/test-ceill.c: Include infinity.h.
10315         (main): Use Infinityl.
10316         * tests/test-dprintf-posix.c: Include infinity.h.
10317         (test_function): Use Infinityd.
10318         * tests/test-floorf1.c: Include infinity.h.
10319         (main): Use Infinityf.
10320         * tests/test-floor1.c: Include infinity.h.
10321         (main): Use Infinityd.
10322         * tests/test-floorl.c: Include infinity.h.
10323         (main): Use Infinityl.
10324         * tests/test-fprintf-posix.c: Include infinity.h.
10325         (test_function): Use Infinityd.
10326         * tests/test-frexp.c: Include infinity.h.
10327         (main): Use Infinityd.
10328         * tests/test-frexpl.c: Include infinity.h.
10329         (main): Use Infinityl.
10330         * tests/test-isfinite.c: Include infinity.h.
10331         (test_isfinitef): Use Infinityf.
10332         (test_isfinited): Use Infinityd.
10333         (test_isfinitel): Use Infinityl.
10334         * tests/test-isinf.c: Include infinity.h.
10335         (test_isinff): Use Infinityf.
10336         (test_isinfd): Use Infinityd.
10337         (test_isinfl): Use Infinityl.
10338         * tests/test-isnan.c: Include infinity.h.
10339         (test_float): Use Infinityf.
10340         (test_double): Use Infinityd.
10341         (test_long_double): Use Infinityl.
10342         * tests/test-isnanf.h: Include infinity.h.
10343         (main): Use Infinityf.
10344         * tests/test-isnand.h: Include infinity.h.
10345         (main): Use Infinityd.
10346         * tests/test-isnanl.h: Include infinity.h.
10347         (main): Use Infinityl.
10348         * tests/test-ldexpl.c: Include infinity.h.
10349         (main): Use Infinityl.
10350         * tests/test-printf-posix.h: Include infinity.h.
10351         (test_function): Use Infinityd.
10352         * tests/test-roundf1.c: Include infinity.h.
10353         (main): Use Infinityf.
10354         * tests/test-round1.c: Include infinity.h.
10355         (main): Use Infinityd.
10356         * tests/test-roundl.c: Include infinity.h.
10357         (main): Use Infinityl.
10358         * tests/test-signbit.c: Include infinity.h.
10359         (test_signbitf): Use Infinityf.
10360         (test_signbitd): Use Infinityd.
10361         (test_signbitl): Use Infinityl.
10362         * tests/test-snprintf-posix.h: Include infinity.h.
10363         (test_function): Use Infinityd, Infinityl.
10364         * tests/test-sprintf-posix.h: Include infinity.h.
10365         (test_function): Use Infinityd, Infinityl.
10366         * tests/test-truncf1.c: Include infinity.h.
10367         (main): Use Infinityf.
10368         * tests/test-trunc1.c: Include infinity.h.
10369         (main): Use Infinityd.
10370         * tests/test-truncl.c: Include infinity.h.
10371         (main): Use Infinityl.
10372         * tests/test-vasnprintf-posix.c: Include infinity.h.
10373         (test_function): Use Infinityd, Infinityl.
10374         * tests/test-vasprintf-posix.c: Include infinity.h.
10375         (test_function): Use Infinityd, Infinityl.
10376         * modules/ceilf-tests (Files): Add tests/infinity.h.
10377         * modules/ceil-tests (Files): Likewise.
10378         * modules/ceill-tests (Files): Likewise.
10379         * modules/dprintf-posix-tests (Files): Likewise.
10380         * modules/floorf-tests (Files): Likewise.
10381         * modules/floor-tests (Files): Likewise.
10382         * modules/floorl-tests (Files): Likewise.
10383         * modules/fprintf-posix-tests (Files): Likewise.
10384         * modules/frexp-tests (Files): Likewise.
10385         * modules/frexp-nolibm-tests (Files): Likewise.
10386         * modules/frexpl-tests (Files): Likewise.
10387         * modules/frexpl-nolibm-tests (Files): Likewise.
10388         * modules/isfinite-tests (Files): Likewise.
10389         * modules/isinf-tests (Files): Likewise.
10390         * modules/isnan-tests (Files): Likewise.
10391         * modules/isnanf-tests (Files): Likewise.
10392         * modules/isnanf-nolibm-tests (Files): Likewise.
10393         * modules/isnand-tests (Files): Likewise.
10394         * modules/isnand-nolibm-tests (Files): Likewise.
10395         * modules/isnanl-tests (Files): Likewise.
10396         * modules/isnanl-nolibm-tests (Files): Likewise.
10397         * modules/ldexpl-tests (Files): Likewise.
10398         * modules/printf-posix-tests (Files): Likewise.
10399         * modules/roundf-tests (Files): Likewise.
10400         * modules/round-tests (Files): Likewise.
10401         * modules/roundl-tests (Files): Likewise.
10402         * modules/signbit-tests (Files): Likewise.
10403         * modules/snprintf-posix-tests (Files): Likewise.
10404         * modules/sprintf-posix-tests (Files): Likewise.
10405         * modules/truncf-tests (Files): Likewise.
10406         * modules/trunc-tests (Files): Likewise.
10407         * modules/truncl-tests (Files): Likewise.
10408         * modules/vasnprintf-posix-tests (Files): Likewise.
10409         * modules/vasprintf-posix-tests (Files): Likewise.
10410         * modules/vdprintf-posix-tests (Files): Likewise.
10411         * modules/vfprintf-posix-tests (Files): Likewise.
10412         * modules/vprintf-posix-tests (Files): Likewise.
10413         * modules/vsnprintf-posix-tests (Files): Likewise.
10414         * modules/vsprintf-posix-tests (Files): Likewise.
10415         * modules/xprintf-posix-tests (Files): Likewise.
10416
10417 2011-09-11  Bruno Haible  <bruno@clisp.org>
10418
10419         Ensure pid_t gets defined.
10420         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
10421         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
10422         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
10423         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
10424         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
10425         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
10426         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
10427         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
10428         * tests/test-fcntl-h.c: Check that pid_t is defined.
10429         * tests/test-sched.c: Likewise.
10430         * tests/test-termios.c: Likewise.
10431         * tests/test-time.c: Likewise.
10432         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
10433         * doc/posix-headers/signal.texi: Likewise.
10434         * doc/posix-headers/sys_types.texi: Likewise.
10435         * doc/posix-headers/time.texi: Likewise.
10436
10437 2011-09-11  Bruno Haible  <bruno@clisp.org>
10438
10439         acl: Fix compilation on Solaris 10 (older version).
10440         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
10441         of ACE_EVERYONE.
10442         * lib/set-mode-acl.c (qset_acl): Likewise.
10443         Reported by Christian Jullien <eligis@orange.fr>.
10444
10445 2011-09-10  Bruno Haible  <bruno@clisp.org>
10446
10447         iconv, unsetenv: Add support for MSVC compiler.
10448         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
10449         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
10450
10451 2011-09-10  Bruno Haible  <bruno@clisp.org>
10452
10453         *printf: Add support for MSVC compiler.
10454         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
10455         handles the exception caused by the %n directive. When cross-compiling,
10456         guess no on native Windows.
10457         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
10458         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
10459         emulate it through vsnprintf.
10460         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
10461         * doc/posix-functions/dprintf.texi: Update documentation regarding
10462         MSVC 9.
10463         * doc/posix-functions/fprintf.texi: Likewise.
10464         * doc/posix-functions/printf.texi: Likewise.
10465         * doc/posix-functions/snprintf.texi: Likewise.
10466         * doc/posix-functions/sprintf.texi: Likewise.
10467         * doc/posix-functions/swprintf.texi: Likewise.
10468         * doc/posix-functions/vdprintf.texi: Likewise.
10469         * doc/posix-functions/vfprintf.texi: Likewise.
10470         * doc/posix-functions/vprintf.texi: Likewise.
10471         * doc/posix-functions/vsnprintf.texi: Likewise.
10472         * doc/posix-functions/vsprintf.texi: Likewise.
10473         * doc/glibc-functions/asprintf.texi: Likewise.
10474         * doc/glibc-functions/obstack_printf.texi: Likewise.
10475         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
10476         * doc/glibc-functions/vasprintf.texi: Likewise.
10477
10478 2011-09-10  Bruno Haible  <bruno@clisp.org>
10479
10480         nocrash: Add support for native Windows.
10481         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
10482
10483 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
10484             Bruno Haible  <bruno@clisp.org>
10485
10486         absolute-header, include-next: Add support for MSVC compiler.
10487         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
10488         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
10489         directory separator in #line directives.
10490         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
10491         recognize also backslash as directory separator in #line directives.
10492
10493 2011-09-08  Jim Meyering  <meyering@redhat.com>
10494
10495         maint.mk: mark the post-release commit log with "maint: " prefix
10496         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
10497         one-line commit-log summary.
10498
10499 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
10500             Bruno Haible  <bruno@clisp.org>
10501
10502         Doc about crypt functions.
10503         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
10504         systems.
10505         * doc/posix-functions/encrypt.texi: Likewise.
10506         * doc/posix-functions/setkey.texi: Likewise.
10507
10508 2011-09-08  Simon Josefsson  <simon@josefsson.org>
10509
10510         * lib/gc.h: Fix copyright header.
10511
10512 2011-09-07  Bruno Haible  <bruno@clisp.org>
10513
10514         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
10515         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
10516         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
10517
10518 2011-09-07  Bruno Haible  <bruno@clisp.org>
10519
10520         openat: Work around compilation error with OSF/1 5.1 DTK cc.
10521         * lib/fopen.c: Use different syntax for include of <stdio.h>.
10522         * lib/freopen.c: Likewise.
10523         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
10524         * lib/lstat.c: Likewise.
10525         * lib/stat.c: Likewise.
10526         * lib/open.c: Use different syntax for include of <fcntl.h>.
10527         * lib/openat.c: Include fcntl.h again, explicitly.
10528
10529 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
10530
10531         parse-datetime: document the newly accepted format
10532         * doc/parse-datetime.texi (Combined date and time of day items):
10533         New section.
10534
10535 2011-09-06  Bruno Haible  <bruno@clisp.org>
10536
10537         acl: Fix a test failure on newer Solaris 10 with ZFS.
10538         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
10539         ENOSYS as no ACL.
10540         Reported by Jim Meyering.
10541
10542 2011-09-06  Bruno Haible  <bruno@clisp.org>
10543
10544         acl: Update for AIX >= 5.3 with NFS.
10545         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
10546         ENOSYS as no ACL.
10547
10548         acl: Fix a test failure on AIX >= 5.3 with NFS.
10549         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
10550         as no ACL.
10551
10552 2011-09-06  Bruno Haible  <bruno@clisp.org>
10553
10554         acl: Fix a test failure on IRIX 6.5 with NFS.
10555         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
10556         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
10557         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
10558         * lib/copy-acl.c (qcopy_acl): Likewise.
10559
10560 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
10561
10562         openat: port to AIX 7.1 with large files
10563         AIX 7.1 does a "#define openat open64at" if large files are in use,
10564         so we can't simply #undef openat.  Use the orig_openat trick (similar
10565         to orig_open in lib/open.c) to work around the problem.  Problem
10566         reported by Kevin Brott for GNU tar, in the thread containing
10567         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
10568         * lib/openat.c (__need_system_fcntl_h): Define first.
10569         Include <fcntl.h> and <sys/types.h> before undefining.
10570         (orig_openat) [HAVE_OPENAT]: New inline function.
10571         (openat) [HAVE_OPENAT]: Do not undef.
10572         (rpl_openat): Use orig_openat, not openat.
10573
10574 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
10575             Bruno Haible  <bruno@clisp.org>
10576
10577         acl: Avoid errors on NonStop Kernel.
10578         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
10579         ENOTSUP errors.
10580
10581 2011-09-05  Bruno Haible  <bruno@clisp.org>
10582
10583         acl: Clean up Solaris code.
10584         * lib/acl-internal.h: Remove no-op #if.
10585         * lib/file-has-acl.c: Likewise.
10586         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
10587         * lib/copy-acl.c (qcopy_acl): Likewise.
10588
10589 2011-09-05  Bruno Haible  <bruno@clisp.org>
10590
10591         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
10592         binaries built on the original Solaris 10.
10593         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
10594         trivial.
10595
10596 2011-09-05  Bruno Haible  <bruno@clisp.org>
10597
10598         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
10599         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
10600         10.
10601         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
10602         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
10603         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
10604         instead of acl_get, facl_get, acl_set, facl_set.
10605
10606 2011-09-05  Bruno Haible  <bruno@clisp.org>
10607
10608         copy-file: Try unit tests on more file systems.
10609         * tests/test-copy-file-1.sh: New file.
10610         * tests/test-copy-file-2.sh: New file.
10611         * modules/copy-file-tests (Files): Add them.
10612         (Makefile.am): Add them to TESTS.
10613
10614         acl: Try unit tests on more file systems.
10615         * tests/test-file-has-acl-1.sh: New file.
10616         * tests/test-file-has-acl-2.sh: New file.
10617         * tests/test-set-mode-acl-1.sh: New file.
10618         * tests/test-set-mode-acl-2.sh: New file.
10619         * tests/test-copy-acl-1.sh: New file.
10620         * tests/test-copy-acl-2.sh: New file.
10621         * modules/acl-tests (Files): Add them.
10622         (Makefile.am): Add them to TESTS.
10623
10624 2011-09-04  Bruno Haible  <bruno@clisp.org>
10625
10626         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
10627         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
10628         10.
10629         (OLD_ALLOW, OLD_DENY): New macros.
10630         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
10631         ACE_ACCESS_ALLOWED_ACE_TYPE.
10632         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
10633         ACE_ACCESS_DENIED_ACE_TYPE.
10634         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
10635         (NEW_ACE_EXECUTE): Fix value.
10636         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
10637         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
10638         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
10639         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
10640         NEW_ACE_SYNCHRONIZE): New macros.
10641         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
10642         instead of acl_fromtext, acl_set, facl_set.
10643         Fixes a coreutils/tests/cp/perm failure.
10644
10645 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
10646
10647         openat: test for fstatat (..., 0) bug
10648         Further testing with tar suggests that fstatat (..., 0)
10649         does not work in general, on AIX 7.1; see
10650         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
10651         So, give up entirely on AIX 7.1's fstatat, and fall back on our
10652         replacement fstatat (which is what older AIX releases were using
10653         anyway).
10654         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
10655         use is now changed to orig_fstatat.  This was probably the right
10656         thing to do anyway.
10657         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
10658         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
10659         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
10660         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
10661         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
10662         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
10663         if the bug is found.
10664
10665         openat: test for fstatat (AT_FDCWD, ..., 0) bug
10666         This tests for another fstatat bug on AIX 7.1:
10667         fstatat (AT_FDCWD, ..., 0) does not work.  See
10668         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
10669         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
10670         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
10671         (rpl_fstatat): Adjust so that it works around either (or both)
10672         bugs if present.
10673         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
10674
10675 2011-09-03  Karl Berry  <karl@gnu.org>
10676
10677         * doc/regex.texi (Character Class Operators): Avoid literal ":"
10678         in index entries.
10679
10680 2011-09-02  Bruno Haible  <bruno@clisp.org>
10681
10682         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
10683         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
10684         values of AR, ARFLAGS, RANLIB.
10685         Reported by John W. Eaton <jwe@gnu.org> for Octave.
10686
10687 2011-09-02  Bruno Haible  <bruno@clisp.org>
10688
10689         Find 'ar' program that fits with --host argument.
10690         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
10691
10692 2011-09-02  Bruno Haible  <bruno@clisp.org>
10693
10694         tests: init.sh: Support any non-GNU diff.
10695         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
10696         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
10697         Solaris 8.
10698
10699 2011-09-02  Bruno Haible  <bruno@clisp.org>
10700
10701         tests: init.sh: work also with any non-GNU diff that supports -u
10702         * tests/init.sh: Relax check for diff -u support.
10703         Rather than checking for GNU diff via --version, simply check
10704         for support for -u itself.  Useful at least on OpenBSD 4.9,
10705         AIX 7.1, IRIX 6.5, and Solaris 10.
10706
10707 2011-09-01  Bruno Haible  <bruno@clisp.org>
10708
10709         strtoimax, strtoumax: Document problem on HP-UX 11.
10710         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
10711         * doc/posix-functions/strtoumax.texi: Likewise.
10712
10713 2011-09-01  Bruno Haible  <bruno@clisp.org>
10714
10715         strtoumax: Avoid link error on OSF/1 with DTK cc.
10716         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
10717         defined as a function.
10718         * modules/strtoumax (Depends-on, configure.ac): Test only whether
10719         strtoumax is defined, not whether it is declared.
10720
10721 2011-09-01  Bruno Haible  <bruno@clisp.org>
10722
10723         strtoimax: Avoid link error on OSF/1 with DTK cc.
10724         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
10725         defined as a function.
10726         * modules/strtoimax (Depends-on, configure.ac): Test only whether
10727         strtoimax is defined, not whether it is declared.
10728
10729 2011-09-01  Bruno Haible  <bruno@clisp.org>
10730
10731         imaxdiv: Avoid link error on OSF/1 with DTK cc.
10732         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
10733         as a function.
10734         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
10735         whether it is declared.
10736
10737 2011-09-01  Bruno Haible  <bruno@clisp.org>
10738
10739         imaxabs: Avoid link error on OSF/1 with DTK cc.
10740         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
10741         as a function.
10742         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
10743         whether it is declared.
10744
10745 2011-09-01  Bruno Haible  <bruno@clisp.org>
10746
10747         Tests for module 'strtoumax'.
10748         * modules/strtoumax-tests: New file.
10749         * tests/test-strtoumax.c: New file.
10750
10751         Tests for module 'strtoimax'.
10752         * modules/strtoimax-tests: New file.
10753         * tests/test-strtoimax.c: New file.
10754
10755         Tests for module 'imaxdiv'.
10756         * modules/imaxdiv-tests: New file.
10757         * tests/test-imaxdiv.c: New file.
10758
10759         Tests for module 'imaxabs'.
10760         * modules/imaxabs-tests: New file.
10761         * tests/test-imaxabs.c: New file.
10762
10763 2011-09-01  Bruno Haible  <bruno@clisp.org>
10764
10765         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
10766         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
10767         pthread_create.
10768
10769 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
10770
10771         openat: work around AIX 7.1 fstatat issue
10772         This should fix the problem that was not properly fixed
10773         in the previous change, dated 2011-08-30.
10774         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
10775         __need_system_stat_h defined.
10776         (orig_fstatat) [HAVE_FSTATAT]: New function.
10777         (rpl_fstatat): Go back to the old way of doing things,
10778         except call orig_fstatat instead of fstatat.
10779         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
10780         Remove unnecessary check whether fstatat fills in st_size etc.
10781
10782 2011-09-01  Bruno Haible  <bruno@clisp.org>
10783
10784         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
10785         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
10786         just include the system's header.
10787
10788 2011-08-31  Jim Meyering  <meyering@redhat.com>
10789
10790         tests: avoid spurious assertion failure in test-float.c on ppc64
10791         * tests/test-float.c (test_long_double): Comment out an assertion,
10792         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
10793         with gcc-4.4.4.
10794
10795         maint: indent with spaces, not TABs
10796         I need to get in the habit of running gnulib's "make check".
10797         Both of these would have been caught.
10798         * m4/largefile.m4: Indent with spaces, not TABs.
10799         * lib/parse-datetime.y (iso_8601_time): Likewise.
10800         Spotted by Pádraig Brady.
10801
10802         test-parse-datetime.c: accommodate a relatively strict gcc warning
10803         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
10804         to avoid a warning from gcc's -Werror=missing-declarations.
10805         Insert a few spaces-before-funcall-parenthesis.
10806
10807 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
10808
10809         parse-datetime: accept ISO 8601 date and time rep with "T" separator
10810         The parser now accepts ISO 8601 date-time strings with "T" as the
10811         separator.  It has long parsed dates like "2004-02-29 16:21:42"
10812         with a space between the date and time strings.  Now it also parses
10813         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
10814         variants like "2004-02-29T16:21:42.333-07:00"
10815         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
10816         of day representation using the 'T' separator character.
10817         * doc/parse-datetime.texi (General date syntax): replace use of
10818         deprecated --iso-8601 option with --rfc-3339 in example of date
10819         command output formats that can be parsed.
10820         * tests/test-parse-datetime.c (tm_diff): New function, taken from
10821         lib/parse-datetime.y.
10822         (gmt_offset): New function.
10823         (main): Add additional test cases to validate ISO8601 extended
10824         date and time of day parsing.
10825
10826 2011-08-31  Bruno Haible  <bruno@clisp.org>
10827
10828         freopen: Documentation.
10829         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
10830         name.
10831         Reported by Claudio Bley <claudio.bley@gmail.com>.
10832
10833 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
10834
10835         freopen: Don't crash if the filename argument is NULL.
10836         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
10837         NULL.
10838
10839 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
10840
10841         openat: work around AIX 7.1 fstatat bug
10842         Problem reported by Kevin Brott for GNU tar, in the thread containing
10843         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
10844         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
10845         FSTATAT_ST_SIZE_ETC_BROKEN.
10846         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
10847         rpl_fstatat.
10848         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
10849         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
10850         AC_CHECK_FUNCS_ONCE for fstatat.
10851         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
10852         fchmodat, mkdirat, openat and unlinkat.
10853
10854 2011-08-30  Bruno Haible  <bruno@clisp.org>
10855
10856         Avoid endless recursions if config.h includes some header files.
10857         * lib/fopen.c (__need_FILE): Define already before including config.h.
10858         * lib/freopen.c (__need_FILE): Likewise.
10859         * lib/open.c (__need_system_fcntl_h): Likewise.
10860         * lib/stat.c (__need_system_sys_stat_h): Likewise.
10861         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
10862         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
10863
10864 2011-08-25  Karl Berry  <karl@gnu.org>
10865
10866         * config/srclist.txt (ylwrap): new try.
10867         * build-aux/ylwrap: new file.
10868
10869 2011-08-23  Bruno Haible  <bruno@clisp.org>
10870
10871         tmpdir: Use a good default directory on native Windows.
10872         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
10873         (P_tmpdir): Default to _P_tmpdir on native Windows.
10874         (path_search): On native Windows, try the value returned by GetTempPath
10875         before trying P_tmpdir.
10876         * modules/tmpdir (Depends-on): Add pathmax.
10877         Suggested by John Darrington <john@darrington.wattle.id.au>.
10878
10879 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
10880
10881         doc: fix typo in README-release
10882         * top/README-release: Capitalize first word of a sentence.
10883
10884 2011-08-19  Jim Meyering  <meyering@redhat.com>
10885
10886         fts: do not exhaust memory when processing million-entry directories
10887         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
10888         directory would require about 256*N bytes of memory.  Thus, it was
10889         easy to construct a directory too large to be processed by any of
10890         those tools.  With this change, fts' maximum memory utilization is
10891         now limited to around 30MB.
10892         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
10893         (fts_read): When we've processed the final entry (i.e., when
10894         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
10895         using the parent entry to read any remaining entries.  Dispatch
10896         depending on what fts_build returns:
10897         - NULL+stop, aka failure: stop
10898         - NULL otherwise: move up in the dir hierarchy
10899         - non-NULL: handle this new entry
10900         (fts_build): Declare and use new local, continue_readdir.
10901         Prepare to be called from fts_read, when the entries
10902         from a partially-read directory have just been exhausted.
10903         In that case, we'll skip the opendir and instead use the parent's
10904         fts_dirp and derive dir_fd from that.
10905         Finally, in the readdir loop, if we read max_entries entries,
10906         exit the loop ensuring *not* to call closedir.  This is required
10907         so that fts_dirp can be reused on a subsequent call.
10908         Prompted by Ben England's report of memory exhaustion in find
10909         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
10910
10911         maint: fts: move decl of `dp' down into while loop; split a long line
10912         * lib/fts.c (fts_build): No semantic change.
10913
10914         fts: add/use new struct member, fts_dirp
10915         We are about to use this to manage any directory with
10916         too many entries to read all of them into memory at once.
10917         To do that, we'll need to save the DIR* pointer in each
10918         affected FTSENT struct.
10919         * lib/fts_.h: Include <dirent.h>.
10920         (struct FTSENT) [fts_dirp]: New member.
10921         * lib/fts.c (closedir_and_clear): Define.
10922         Use it in place of closedir so that we are sure to
10923         clear the new fts_dirp member when done with it.
10924         (fts_alloc): Initialize the new member.
10925         (fts_lfree): Free, if needed.
10926
10927         maint: fts: give __opendir2 a new parameter and rename
10928         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
10929         than surreptitiously using sole caller's "dir_fd".
10930         (fts_opendir): Rename from __opendir2.
10931
10932         maint: fts.c: remove __opendir2's now-unused parameter, oflag
10933         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
10934
10935         maint: fts.c: correct off-by-one indentation
10936         * lib/fts.c (fts_build): Correct indentation, change style
10937         of a couple of block comments, and bracing style.
10938
10939         maint: fts.c: move __opendir2 #define "up" out of function body
10940         * lib/fts.c (__opendir2): Move "up".  No semantic change.
10941
10942         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
10943         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
10944         out for a long time and besides was useful only on BSD systems.
10945
10946 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
10947
10948         regex: port to Stratus OpenVOS
10949         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
10950         define to empty, rather than attempting nonportable optimizations.
10951         Problem reported by Paul Green in:
10952         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
10953         and fix suggested by Eric Blake in:
10954         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
10955
10956 2011-08-17  Eric Blake  <eblake@redhat.com>
10957
10958         getcwd: fix test failures on mingw
10959         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
10960         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
10961         test if long directory cannot be created, and allow mingw errno.
10962
10963         getcwd-lgpl: fix m4 to match relaxed test for BSD
10964         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
10965         (gl_FUNC_GETCWD_SIGNATURE): New macro.
10966         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
10967         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
10968         signature problem.
10969
10970         getcwd: fix compilation on mingw64
10971         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
10972         getcwd.
10973         Reported by Marc-André Lureau.
10974
10975         pipe2: silence compiler warning
10976         * lib/pipe2.c (pipe2): Hide label if it is not used.
10977
10978 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
10979
10980         relocatable-prog: fix link error
10981         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
10982         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
10983         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
10984         into modules/relocatable-lib without noticing that
10985         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
10986         also needs to build relocatable.c.
10987
10988 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
10989
10990         getaddrinfo: fix sh typo in gai_strerrorA decl checking
10991         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
10992         shell code: it contained a 'break' that was not in a loop.
10993         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
10994         via a shell-language loop; this may have been true in old Autoconf
10995         versions, but it's not true in Autoconf 2.68.  I found this bug
10996         when testing coreutils git on Solaris 8, whose shell complains
10997         about the syntax error.
10998
10999 2011-08-12  Simon Josefsson  <simon@josefsson.org>
11000
11001         * lib/base64.c: Fix comment to reference RFC 4648.
11002         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
11003         <gvtulder@gmail.com>.
11004
11005 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
11006
11007         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
11008
11009         po/Makefile.in.in: fix make -q problem
11010         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
11011         rule, since there's no file named 'check-macro-version' and its
11012         use as a file breaks make -q.
11013         (all): Don't depend on check-macro-version.
11014         (CHECK_MACRO_VERSION): New macro.
11015         (stamp-po): Use it.
11016
11017         configmake: fix make -q problem
11018         * modules/configmake (configmake.h): Update configmake.h's time stamp
11019         even if the file does not change.  Otherwise, 'make -q' fails.
11020         Problem reported by Simon Josefsson in
11021         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
11022
11023 2011-08-11  Jim Meyering  <meyering@redhat.com>
11024
11025         git-version-gen: correct the advice in a comment
11026         * build-aux/git-version-gen: Correct comment.
11027         Don't recommend to list .tarball-version in .gitignore.
11028
11029 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
11030
11031         base64: fix off-by-one buffer size bug
11032         Problem and (trivial) fix reported by Gijs van Tulder in
11033         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
11034         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
11035         * tests/test-base64.c (main): Catch the bug.
11036
11037 2011-08-10  Eric Blake  <eblake@redhat.com>
11038
11039         closein: correct comments
11040         * lib/closein.c (close_stdin): Improve comments.
11041
11042 2011-08-09  Bruno Haible  <bruno@clisp.org>
11043
11044         More tests for 'fseeko'.
11045         * tests/test-fseeko3.c: New file, from Eric Blake.
11046         * tests/test-fseeko3.sh: New file.
11047         * modules/fseeko-tests (Files): Add them.
11048         (TESTS): Add test-fseeko3.sh.
11049         (check_PROGRAMS): Add test-fseeko3.
11050
11051 2011-08-09  Eric Blake  <eblake@redhat.com>
11052
11053         fseeko: remove unneeded hack
11054         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
11055
11056         fseeko: fix bug on glibc
11057         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
11058         Reported by John W. Eaton.
11059
11060 2011-08-08  Bruno Haible  <bruno@clisp.org>
11061
11062         unictype/base: Fix interoperability with preinstalled libunistring.
11063         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
11064         Reported by Simon Josefsson.
11065
11066 2011-08-08  Bruno Haible  <bruno@clisp.org>
11067
11068         iswblank: Detect declaration correctly.
11069         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
11070         AC_CHECK_DECLS invocation.
11071
11072 2011-08-08  Bruno Haible  <bruno@clisp.org>
11073
11074         tcgetsid: Detect declaration correctly.
11075         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
11076         AC_CHECK_DECLS invocation.
11077         Reported by Simon Josefsson.
11078
11079 2011-08-08  Eric Blake  <eblake@redhat.com>
11080
11081         largefile: fix typo that regressed large file support
11082         * modules/largefile (configure.ac-early): Fix section name.
11083
11084 2011-08-06  Karl Berry  <karl@gnu.org>
11085
11086         * MODULES.html.sh (func_all_files): _Noreturn is no longer
11087         a separate module.
11088
11089 2011-08-05  Simon Josefsson  <simon@josefsson.org>
11090
11091         openat: Fix warnings and commens when building unlinkat.c on Hurd.
11092         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
11093         get prototype for free.
11094
11095 2011-08-04  Bruno Haible  <bruno@clisp.org>
11096
11097         Tests for module 'pathmax'.
11098         * modules/pathmax-tests: New file.
11099         * tests/test-pathmax.c: New file.
11100
11101         canonicalize-lgpl: Support larger filenames on the Hurd.
11102         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
11103         Reported by Paul Eggert.
11104
11105         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
11106         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
11107         * lib/chdir-long.h: Include pathmax.h.
11108         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
11109         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
11110         (PATH_MAX): Remove code that is done by pathmax.h.
11111         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
11112         * lib/tmpfile.c: Add a comment.
11113         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
11114         * modules/chdir-long (Depends-on): Add pathmax.
11115         * modules/getcwd (Depends-on): Add pathmax.
11116         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
11117         is not defined.
11118         * doc/posix-headers/limits.texi: Mention the pathmax module.
11119         * NEWS: Mention the change.
11120
11121 2011-08-02  Bruno Haible  <bruno@clisp.org>
11122
11123         pthread_sigmask: Actually use results of gl_THREADLIB.
11124         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
11125         gl_THREADLIB, not gl_[]THREADLIB.
11126         Reported by Eric Blake.
11127
11128 2011-08-02  Jim Meyering  <meyering@redhat.com>
11129
11130         maint.mk: relax the default _gl_TS_function_match regexp
11131         * top/maint.mk (_gl_TS_function_match): Don't require at least one
11132         space between function name and "(" in an "extern" declaration.
11133         That would fail to match a decl with no space there: extern void foo();
11134
11135 2011-07-31  Iain Nicol  <iain@thenicols.net>
11136
11137         git-version-gen: document that EXTRA_DIST must include .version
11138         * build-aux/git-version-gen: In the how-to-use comment, document
11139         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
11140         will fail when run from an unpacked distribution tarball.
11141
11142 2011-08-01  Bruno Haible  <bruno@clisp.org>
11143
11144         wctype-h: Fix last change.
11145         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
11146         REPLACE_TOWLOWER to 0.
11147         Reported by Sam Steingold <sds@gnu.org>.
11148
11149 2011-07-31  Bruno Haible  <bruno@clisp.org>
11150
11151         frexpl: Update autoconf test.
11152         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
11153         according to changes of 2011-06-20.
11154
11155 2011-07-31  Bruno Haible  <bruno@clisp.org>
11156
11157         sys_utsname: Add support for Minix.
11158         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
11159         <sys/utsname.h>.
11160         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
11161         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
11162
11163 2011-07-31  Bruno Haible  <bruno@clisp.org>
11164
11165         strings: Add support for Minix.
11166         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
11167         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
11168         * doc/posix-headers/strings.texi: Document the Minix problem.
11169
11170 2011-07-31  Bruno Haible  <bruno@clisp.org>
11171
11172         wctype-h: Add support for Minix.
11173         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
11174         REPLACE_TOWLOWER.
11175         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
11176         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
11177         REPLACE_ISWCNTRL.
11178
11179 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
11180
11181         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
11182         This is a performance improvement for 64-bit hosts: it causes the
11183         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
11184
11185 2011-07-31  Bruno Haible  <bruno@clisp.org>
11186
11187         stdioext: Add support for Minix.
11188         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
11189         * lib/fpurge.c (fpurge): Likewise.
11190         * lib/freadahead.c (freadahead): Likewise.
11191         * lib/freadable.c (freadable): Likewise.
11192         * lib/freading.c (freading): Likewise.
11193         * lib/freadptr.c (freadptr): Likewise.
11194         * lib/freadseek.c (freadptrinc): Likewise.
11195         * lib/fseeko.c (rpl_fseeko): Likewise.
11196         * lib/fseterr.c (fseterr): Likewise.
11197         * lib/fwritable.c (fwritable): Likewise.
11198         * lib/fwriting.c (fwriting): Likewise.
11199         * lib/fflush.c (clear_ungetc_buffer): Update comment.
11200         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
11201
11202 2011-07-31  Bruno Haible  <bruno@clisp.org>
11203
11204         errno: Port to Minix.
11205         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
11206         ECONNABORTED are defined.
11207         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
11208         GNULIB_defined_ECONNABORTED): New macros.
11209         * lib/strerror-override.h (strerror_override): Test also
11210         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
11211         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
11212         ECONNABORTED.
11213         * doc/posix-headers/errno.texi: Mention the Minix problem.
11214
11215 2011-07-31  Bruno Haible  <bruno@clisp.org>
11216
11217         Work around declaration collisions on Minix.
11218         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
11219         defined, set REPLACE_MBSINIT.
11220         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
11221         defined, set REPLACE_MBRTOWC.
11222         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
11223         set REPLACE_MBRLEN.
11224         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
11225         defined, set REPLACE_MBSRTOWCS.
11226         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
11227         defined, set REPLACE_WCRTOMB.
11228         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
11229         defined, set REPLACE_WCSRTOMBS.
11230
11231 2011-07-31  Bruno Haible  <bruno@clisp.org>
11232
11233         Add support for Minix with ACK compiler.
11234         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
11235         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
11236         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
11237
11238 2011-07-31  Bruno Haible  <bruno@clisp.org>
11239
11240         Documentation about Minix.
11241         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
11242         * doc/glibc-headers/*.texi: Likewise.
11243         * doc/posix-functions/*.texi: Likewise.
11244         * doc/glibc-functions/*.texi: Likewise.
11245
11246 2011-07-31  Bruno Haible  <bruno@clisp.org>
11247
11248         snippet/warn-on-use: Fix indentation.
11249         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
11250
11251 2011-07-25  Jim Meyering  <meyering@redhat.com>
11252
11253         tests: test-update-copyright.sh: remove unnecessary "rm" commands
11254         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
11255         commands.
11256
11257 2011-07-27  Jim Meyering  <meyering@redhat.com>
11258
11259         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
11260         * top/maint.mk (gl_extract_significant_defines_): Now that
11261         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
11262         gnulib/lib/signal.in.h, and now that we recommend to
11263         define-if-undefined those two symbols in application code,
11264         we must filter them out of the "significant" list.
11265         This avoids a "make syntax-check" failure in coreutils.
11266
11267 2011-07-26  Eric Blake  <eblake@redhat.com>
11268
11269         warnings: add comments about previous patch
11270         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
11271         * m4/include_next.m4: Likewise.
11272         * m4/warn-on-use.m4: Likewise.
11273         * m4/warnings.m4: Likewise, and simplify use.
11274         Suggested by Stefano Lattarini.
11275
11276         include-next, warnings: support older autoconf
11277         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
11278         AS_VAR_PUSHDEF in a way that works with older autoconf.
11279         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
11280         Reported by Daniel P. Berrange.
11281
11282 2011-07-25  Bruno Haible  <bruno@clisp.org>
11283
11284         fseek, ftell: Fix doc.
11285         * doc/posix-functions/fseek.texi: Reword statement about
11286         AC_SYS_LARGEFILE.
11287         * doc/posix-functions/ftell.texi: Likewise.
11288
11289 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
11290             Bruno Haible  <bruno@clisp.org>
11291
11292         Add dependencies to the 'largefile' module.
11293         * modules/fopen (Depends-on): Add 'largefile'.
11294         * modules/freopen (Depends-on): Likewise.
11295         * modules/fseeko (Depends-on): Likewise.
11296         * modules/ftello (Depends-on): Likewise.
11297         * modules/glob (Depends-on): Likewise.
11298         * modules/lseek (Depends-on): Likewise.
11299         * modules/lstat (Depends-on): Likewise.
11300         * modules/mkostemp (Depends-on): Likewise.
11301         * modules/mkostemps (Depends-on): Likewise.
11302         * modules/mkstemp (Depends-on): Likewise.
11303         * modules/mkstemps (Depends-on): Likewise.
11304         * modules/open (Depends-on): Likewise.
11305         * modules/openat (Depends-on): Likewise.
11306         * modules/pread (Depends-on): Likewise.
11307         * modules/pwrite (Depends-on): Likewise.
11308         * modules/scandir (Depends-on): Likewise.
11309         * modules/stat (Depends-on): Likewise.
11310         * modules/tmpfile (Depends-on): Likewise.
11311         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
11312         since the containing module now depends on the largefile module.
11313         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
11314         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
11315         off_t is fixed by gnulib.
11316         * doc/posix-functions/freopen.texi: Likewise.
11317         * doc/posix-functions/fseeko.texi: Likewise.
11318         * doc/posix-functions/fstatat.texi: Likewise.
11319         * doc/posix-functions/ftello.texi: Likewise.
11320         * doc/posix-functions/glob.texi: Likewise.
11321         * doc/posix-functions/lseek.texi: Likewise.
11322         * doc/posix-functions/lstat.texi: Likewise.
11323         * doc/posix-functions/mkstemp.texi: Likewise.
11324         * doc/posix-functions/open.texi: Likewise.
11325         * doc/posix-functions/openat.texi: Likewise.
11326         * doc/posix-functions/pread.texi: Likewise.
11327         * doc/posix-functions/pwrite.texi: Likewise.
11328         * doc/posix-functions/scandir.texi: Likewise.
11329         * doc/posix-functions/stat.texi: Likewise.
11330         * doc/posix-functions/tmpfile.texi: Likewise.
11331         * doc/glibc-functions/mkostemp.texi: Likewise.
11332         * doc/glibc-functions/mkostemps.texi: Likewise.
11333         * doc/glibc-functions/mkstemps.texi: Likewise.
11334
11335 2011-07-25  Bruno Haible  <bruno@clisp.org>
11336
11337         fcntl: Move AC_LIBOBJ invocation to module description.
11338         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
11339         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
11340
11341         fcntl: Remove call-in from fchdir.m4.
11342         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
11343         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
11344
11345         dup3: Remove potential call-in from fchdir.m4.
11346         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
11347         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
11348
11349         dup2: Move AC_LIBOBJ invocation to module description.
11350         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
11351         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
11352         Don't invoke AC_LIBOBJ.
11353         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
11354
11355         dup2: Remove call-in from fchdir.m4.
11356         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
11357         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
11358
11359         fclose: Move AC_LIBOBJ invocation to module description.
11360         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
11361         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
11362         to 1.
11363         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
11364
11365         fclose: Remove call-in from close.m4.
11366         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
11367         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
11368
11369         close: Move AC_LIBOBJ invocation to module description.
11370         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
11371         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
11372         1.
11373         * modules/close (configure.ac): Invoke AC_LIBOBJ.
11374
11375         close: Remove call-in from fchdir.m4.
11376         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
11377         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
11378
11379         open: Move AC_LIBOBJ invocation to module description.
11380         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
11381         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
11382         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
11383
11384         open: Remove call-in from fchdir.m4.
11385         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
11386         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
11387
11388         fchdir: Start to remove gl_REPLACE_* idiom.
11389         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
11390         (gl_FUNC_FCHDIR): Invoke it.
11391
11392 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
11393
11394         * lib/ftell.c (ftell): Comment out cast.
11395
11396         close: use gl_REPLACE_FCLOSE only if defined
11397         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
11398         is defined.  The close module doesn't depend on the fclose module
11399         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
11400         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
11401         I reproduced the problem with "./gnulib-tool --test close sys_socket".
11402
11403 2011-07-24  Jim Meyering  <meyering@redhat.com>
11404
11405         test-select.h: avoid warning when using gcc's -Wmissing-declarations
11406         * tests/test-select.h (test_function): Declare as "static".
11407
11408 2011-07-24  Bruno Haible  <bruno@clisp.org>
11409
11410         doc: Mention the effects of AC_SYS_LARGEFILE.
11411         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
11412         on this function.
11413         * doc/posix-functions/aio_error.texi: Likewise.
11414         * doc/posix-functions/aio_fsync.texi: Likewise.
11415         * doc/posix-functions/aio_read.texi: Likewise.
11416         * doc/posix-functions/aio_return.texi: Likewise.
11417         * doc/posix-functions/aio_suspend.texi: Likewise.
11418         * doc/posix-functions/aio_write.texi: Likewise.
11419         * doc/posix-functions/fgetpos.texi: Likewise.
11420         * doc/posix-functions/fopen.texi: Likewise.
11421         * doc/posix-functions/freopen.texi: Likewise.
11422         * doc/posix-functions/fsetpos.texi: Likewise.
11423         * doc/posix-functions/fstatvfs.texi: Likewise.
11424         * doc/posix-functions/ftruncate.texi: Likewise.
11425         * doc/posix-functions/ftw.texi: Likewise.
11426         * doc/posix-functions/getrlimit.texi: Likewise.
11427         * doc/posix-functions/glob.texi: Likewise.
11428         * doc/posix-functions/lio_listio.texi: Likewise.
11429         * doc/posix-functions/lockf.texi: Likewise.
11430         * doc/posix-functions/mkstemp.texi: Likewise.
11431         * doc/posix-functions/mmap.texi: Likewise.
11432         * doc/posix-functions/nftw.texi: Likewise.
11433         * doc/posix-functions/openat.texi: Likewise.
11434         * doc/posix-functions/opendir.texi: Likewise.
11435         * doc/posix-functions/posix_fadvise.texi: Likewise.
11436         * doc/posix-functions/posix_fallocate.texi: Likewise.
11437         * doc/posix-functions/pread.texi: Likewise.
11438         * doc/posix-functions/pwrite.texi: Likewise.
11439         * doc/posix-functions/readdir.texi: Likewise.
11440         * doc/posix-functions/readdir_r.texi: Likewise.
11441         * doc/posix-functions/rewinddir.texi: Likewise.
11442         * doc/posix-functions/scandir.texi: Likewise.
11443         * doc/posix-functions/seekdir.texi: Likewise.
11444         * doc/posix-functions/setrlimit.texi: Likewise.
11445         * doc/posix-functions/statvfs.texi: Likewise.
11446         * doc/posix-functions/telldir.texi: Likewise.
11447         * doc/posix-functions/tmpfile.texi: Likewise.
11448         * doc/posix-functions/truncate.texi: Likewise.
11449         * doc/glibc-functions/fallocate.texi: Likewise.
11450         * doc/glibc-functions/fstatfs.texi: Likewise.
11451         * doc/glibc-functions/fts_children.texi: Likewise.
11452         * doc/glibc-functions/fts_read.texi: Likewise.
11453         * doc/glibc-functions/getdirentries.texi: Likewise.
11454         * doc/glibc-functions/mkostemp.texi: Likewise.
11455         * doc/glibc-functions/mkostemps.texi: Likewise.
11456         * doc/glibc-functions/mkstemps.texi: Likewise.
11457         * doc/glibc-functions/preadv.texi: Likewise.
11458         * doc/glibc-functions/pwritev.texi: Likewise.
11459         * doc/glibc-functions/sendfile.texi: Likewise.
11460         * doc/glibc-functions/statfs.texi: Likewise.
11461
11462 2011-07-24  Bruno Haible  <bruno@clisp.org>
11463
11464         doc: Fix typo.
11465         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
11466
11467 2011-07-24  Bruno Haible  <bruno@clisp.org>
11468
11469         doc: Mention fsusage.
11470         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
11471
11472 2011-07-24  Bruno Haible  <bruno@clisp.org>
11473
11474         doc: Mention new glibc headers and functions.
11475         * doc/glibc-headers/gshadow.texi: New file.
11476         * doc/glibc-functions/endsgent.texi: New file.
11477         * doc/glibc-functions/fgetsgent.texi: New file.
11478         * doc/glibc-functions/fgetsgent_r.texi: New file.
11479         * doc/glibc-functions/getsgent.texi: New file.
11480         * doc/glibc-functions/getsgent_r.texi: New file.
11481         * doc/glibc-functions/getsgnam.texi: New file.
11482         * doc/glibc-functions/getsgnam_r.texi: New file.
11483         * doc/glibc-functions/putsgent.texi: New file.
11484         * doc/glibc-functions/setsgent.texi: New file.
11485         * doc/glibc-functions/sgetsgent.texi: New file.
11486         * doc/glibc-functions/sgetsgent_r.texi: New file.
11487         * doc/glibc-functions/malloc_info.texi: New file.
11488         * doc/glibc-functions/preadv.texi: New file.
11489         * doc/glibc-functions/pwritev.texi: New file.
11490         * doc/glibc-functions/register_printf_modifier.texi: New file.
11491         * doc/glibc-functions/register_printf_specifier.texi: New file.
11492         * doc/glibc-functions/register_printf_type.texi: New file.
11493         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
11494         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
11495         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
11496         * doc/glibc-functions/pthread_getname_np.texi: New file.
11497         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
11498         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
11499         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
11500         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
11501         * doc/glibc-functions/pthread_setname_np.texi: New file.
11502         * doc/glibc-functions/pthread_sigqueue.texi: New file.
11503         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
11504         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
11505         * doc/glibc-functions/qsort_r.texi: New file.
11506         * doc/glibc-functions/quick_exit.texi: New file.
11507         * doc/glibc-functions/syncfs.texi: New file.
11508         * doc/gnulib.texi: Include them.
11509         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
11510         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
11511         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
11512         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
11513         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
11514         * doc/glibc-functions/execvpe.texi: Likewise.
11515
11516 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
11517
11518         ftell: don't include <unistd.h>
11519         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
11520         guaranteed to define off_t, and the ftell module depends on the
11521         stdio module.
11522
11523         ftell: do not assume wraparound signed arithmetic
11524         * lib/ftell.c: Include <limits.h>.
11525         (ftell): Don't assume wraparound signed arithmetic.
11526
11527 2011-07-24  Bruno Haible  <bruno@clisp.org>
11528
11529         close: No longer depend on module 'fclose'.
11530         * modules/close (Depends-on): Remove fclose.
11531         * NEWS: Mention the change.
11532         Suggested by Sam Steingold <sds@gnu.org>.
11533
11534 2011-07-24  Bruno Haible  <bruno@clisp.org>
11535
11536         fsusage: Enable large volume support on AIX >= 5.2.
11537         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
11538         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
11539         instead of STAT_STATVFS.
11540         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
11541
11542         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
11543         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
11544         f_blocks field only on MacOS X.
11545
11546         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
11547         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
11548         * modules/fsusage (Depends-on): Add largefile.
11549
11550 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
11551
11552         * README: Modernize discussion of signed integers.
11553         Assuming overflow wraparound is no longer safe.
11554         Mention ones' complement and signed magnitude.
11555
11556 2011-07-22  Bruno Haible  <bruno@clisp.org>
11557
11558         select tests, pselect tests: Refactor.
11559         * tests/test-select.h: New file, extracted from tests/test-select.c.
11560         (select_fn): New type.
11561         (test, do_select, do_select_nowait, do_select_wait, test_tty,
11562         test_connect_first, test_accept_first, test_pair, test_socket_pair,
11563         test_pipe): Add my_select argument.
11564         (test_function): Renamed from main. Add my_select argument.
11565         * tests/test-select.c: Move most code to tests/test-select.h. Include
11566         test-select.h.
11567         * modules/select-tests (Files): Add tests/test-select.h.
11568         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
11569         (my_select, main): New functions.
11570         * modules/pselect-tests (Files): Add tests/test-select.h,
11571         tests/macros.h, tests/signature.h.
11572         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
11573         (configure.ac): Check for <sys/wait.h>.
11574
11575 2011-07-22  Bruno Haible  <bruno@clisp.org>
11576
11577         sys_select tests: Check the signature of FD_*.
11578         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
11579         signature tests from here...
11580         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
11581         here.
11582         * modules/sys_select-tests (Files): Add tests/signature.h.
11583
11584 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
11585
11586         largefile: new module, replacing large-inode
11587         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
11588         * MODULES.html.sh: Add largefile, remove large-inode.
11589         * modules/largefile, m4/largefile.m4: New files.
11590         * modules/large-inode, m4/large-inode.m4: Remove.
11591
11592         fsusage: port to MacOS X 10.7 with 4 TiB file systems
11593         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
11594         implementations that use only 32 bits to count blocks.
11595         On typical hosts with 1024-byte blocks, this fails with file
11596         systems as small as 4 TiB.  Problem reported by Herb Wartens
11597         <http://debbugs.gnu.org/9140> and this should also fix a similar
11598         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
11599
11600         large-inode: New module
11601         * MODULES.html.sh: Add it.
11602         * modules/large-inode, m4/large-inode.m4: New files.
11603
11604         extensions: Enable extensions on MacOS X 10.5 and later.
11605         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
11606
11607 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
11608
11609         file-has-acl: use acl_extended_file_nofollow if available
11610         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
11611         (acl_extended_file): New macro.
11612         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
11613         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
11614
11615 2011-07-21  Bruno Haible  <bruno@clisp.org>
11616
11617         Declare system functions in a way that works with C++.
11618         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
11619         declare fdopendir as extern "C".
11620         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
11621         declare frexpl as extern "C".
11622         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
11623         declare gai_strerror as extern "C".
11624         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
11625         programs, declare gai_strerror as extern "C".
11626         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
11627         declare getlogin_r as extern "C".
11628         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
11629         as extern "C".
11630         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
11631         declare ldexpl as extern "C".
11632         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
11633         as extern "C".
11634         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
11635         program, declare getmntinfo as extern "C".
11636         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
11637         stpncpy as extern "C".
11638         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
11639         program, declare __xpg_strerror_r as extern "C".
11640         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
11641         strndup as extern "C".
11642         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
11643         declare memset and bzero as extern "C".
11644         Reported by Sam Steingold <sds@gnu.org>.
11645
11646 2011-07-12  Jim Meyering  <meyering@redhat.com>
11647
11648         maint.mk: prohibit inclusion of "verify.h" without use
11649         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
11650
11651 2011-07-19  Pádraig Brady  <P@draigBrady.com>
11652
11653         timer-time: A new module to check for timer_settime()
11654         * m4/timer_time.m4: Check for the posix function.
11655         * modules/timer-time: Add the new module.
11656         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
11657         Mention it.
11658
11659 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
11660             Bruno Haible  <bruno@clisp.org>
11661
11662         pthread_sigmask: assume POSIX threads if --avoid=threadlib
11663         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
11664         not defined, assume POSIX threads and look for pthread_sigmask in
11665         $LIBS, without changing $CPPFLAGS.
11666
11667 2011-07-19  Bruno Haible  <bruno@clisp.org>
11668
11669         strstr: Update cross-compilation guess.
11670         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
11671         CPUs, guess no, in view of glibc
11672         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
11673         Suggested by Eric Blake. Reported by Reuben Thomas.
11674
11675 2011-07-19  Pádraig Brady  <P@draigBrady.com>
11676
11677         getopt-gnu: suppress core dumps from detection code
11678         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
11679         to suppress core dumps that may well occur on glibc systems.
11680         * modules/getopt-gnu: Depend on nocrash.
11681
11682 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
11683
11684         pthread_sigmask: ensure usleep is declared
11685         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
11686         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
11687
11688 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
11689
11690         doc: Document NonStop portability issues.
11691         * doc/posix-functions/sigaction.texi (sigaction):
11692         * doc/posix-headers/signal.texi (signal.h):
11693         Document NonStop.  See Joachim Schmitz in
11694         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
11695
11696 2011-07-15  Bruno Haible  <bruno@clisp.org>
11697
11698         ffsl, ffsll: Avoid unportable behaviour.
11699         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
11700
11701 2011-07-15  Bruno Haible  <bruno@clisp.org>
11702
11703         ffs: More tests.
11704         * tests/test-ffs.c (NBITS): New macro.
11705         (main): Add more tests.
11706         * tests/test-ffsl.c (NBITS): New macro.
11707         (main): Add more tests.
11708         * tests/test-ffsll.c (NBITS): New macro.
11709         (main): Add more tests.
11710
11711 2011-07-15  Eric Blake  <eblake@redhat.com>
11712
11713         ffsl, ffsll: new modules
11714         * modules/ffsl: New file.
11715         * modules/ffsll: Likewise.
11716         * m4/ffsl.m4: Likewise.
11717         * m4/ffsll.m4: Likewise.
11718         * lib/ffsl.c: Likewise.
11719         * lib/ffsl.h: Likewise.
11720         * lib/ffsll.c: Likewise.
11721         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
11722         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
11723         * modules/string (Makefile.am): Substitute witnesses.
11724         * lib/strings.in.h (ffsl, ffsll): Declare.
11725         * modules/ffsl-tests: New test file.
11726         * modules/ffsll-tests: Likewise.
11727         * tests/test-ffsl.c: Likewise.
11728         * tests/test-ffsll.c: Likewise.
11729         * MODULES.html.sh (Integer arithmetic functions): Mention it.
11730         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
11731         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
11732
11733         ffs: fix m4 prerequisite
11734         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
11735
11736         ffs: avoid undefined behavior
11737         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
11738         * tests/test-ffs.c (naive, main): Avoid signed shifts.
11739         Reported by Bruno Haible.
11740
11741 2011-07-12  Bruno Haible  <bruno@clisp.org>
11742
11743         pthread_sigmask: Rely on module 'threadlib'.
11744         * modules/pthread_sigmask (Depends-on): Add threadlib.
11745         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
11746         is defined.
11747
11748 2011-07-12  Bruno Haible  <bruno@clisp.org>
11749
11750         regex: Depend on module 'strcase'.
11751         * modules/regex (Depends-on): Add strcase, for strcasecmp().
11752
11753 2011-07-12  Jim Meyering  <meyering@redhat.com>
11754
11755         warn-on-use: fix typo in file name
11756         * modules/snippet/warn-on-use (Files): Correct file name:
11757         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
11758
11759 2011-07-12  Bruno Haible  <bruno@clisp.org>
11760
11761         strings: Document module.
11762         * doc/posix-headers/strings.texi: Mention module 'strings'.
11763
11764 2011-07-12  Bruno Haible  <bruno@clisp.org>
11765
11766         Rename module '_Noreturn' to 'snippet/_Noreturn'.
11767         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
11768         (Files, Makefile.am): Update.
11769         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
11770         * modules/stdlib (Depends-on): Update.
11771
11772 2011-07-12  Bruno Haible  <bruno@clisp.org>
11773
11774         * NEWS: Mention the changes.
11775
11776         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
11777         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
11778         (Files, Makefile.am): Update.
11779         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
11780         * modules/arpa_inet (Depends-on): Update.
11781         * modules/ctype (Depends-on): Update.
11782         * modules/dirent (Depends-on): Update.
11783         * modules/fcntl-h (Depends-on): Update.
11784         * modules/glob (Depends-on): Update.
11785         * modules/iconv-h (Depends-on): Update.
11786         * modules/inttypes-incomplete (Depends-on): Update.
11787         * modules/langinfo (Depends-on): Update.
11788         * modules/locale (Depends-on): Update.
11789         * modules/math (Depends-on): Update.
11790         * modules/netdb (Depends-on): Update.
11791         * modules/poll-h (Depends-on): Update.
11792         * modules/pty (Depends-on): Update.
11793         * modules/search (Depends-on): Update.
11794         * modules/signal (Depends-on): Update.
11795         * modules/spawn (Depends-on): Update.
11796         * modules/stdio (Depends-on): Update.
11797         * modules/stdlib (Depends-on): Update.
11798         * modules/string (Depends-on): Update.
11799         * modules/strings (Depends-on): Update.
11800         * modules/sys_file (Depends-on): Update.
11801         * modules/sys_ioctl (Depends-on): Update.
11802         * modules/sys_select (Depends-on): Update.
11803         * modules/sys_socket (Depends-on): Update.
11804         * modules/sys_stat (Depends-on): Update.
11805         * modules/sys_time (Depends-on): Update.
11806         * modules/sys_times (Depends-on): Update.
11807         * modules/sys_utsname (Depends-on): Update.
11808         * modules/sys_wait (Depends-on): Update.
11809         * modules/termios (Depends-on): Update.
11810         * modules/time (Depends-on): Update.
11811         * modules/unistd (Depends-on): Update.
11812         * modules/wchar (Depends-on): Update.
11813         * modules/wctype-h (Depends-on): Update.
11814         * MODULES.html.sh (Support for building libraries and executables):
11815         Update.
11816
11817         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
11818         * modules/snippet/unused-parameter: Renamed from
11819         modules/unused-parameter.
11820         (Files, Makefile.am): Update.
11821         * build-aux/snippet/unused-parameter.h: Renamed from
11822         build-aux/unused-parameter.h.
11823         * modules/selinux-h (Depends-on): Update.
11824         * modules/unistr/base (Depends-on): Update.
11825         * MODULES.html.sh (Core language properties): Update.
11826
11827         Rename module 'link-warning' to 'snippet/link-warning'.
11828         * modules/snippet/link-warning: Renamed from modules/link-warning.
11829         (Files, Makefile.am): Update.
11830         * build-aux/snippet/link-warning.h: Renamed from
11831         build-aux/link-warning.h.
11832         * MODULES.html.sh (Support for building libraries and executables):
11833         Update.
11834
11835         Rename module 'c++defs' to 'snippet/c++defs'.
11836         * modules/snippet/c++defs: Renamed from modules/c++defs.
11837         (Files, Makefile.am): Update.
11838         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
11839         * modules/arpa_inet (Depends-on): Update.
11840         * modules/ctype (Depends-on): Update.
11841         * modules/dirent (Depends-on): Update.
11842         * modules/fcntl-h (Depends-on): Update.
11843         * modules/glob (Depends-on): Update.
11844         * modules/iconv-h (Depends-on): Update.
11845         * modules/langinfo (Depends-on): Update.
11846         * modules/locale (Depends-on): Update.
11847         * modules/math (Depends-on): Update.
11848         * modules/netdb (Depends-on): Update.
11849         * modules/poll-h (Depends-on): Update.
11850         * modules/pty (Depends-on): Update.
11851         * modules/search (Depends-on): Update.
11852         * modules/signal (Depends-on): Update.
11853         * modules/spawn (Depends-on): Update.
11854         * modules/stdio (Depends-on): Update.
11855         * modules/stdlib (Depends-on): Update.
11856         * modules/string (Depends-on): Update.
11857         * modules/strings (Depends-on): Update.
11858         * modules/sys_ioctl (Depends-on): Update.
11859         * modules/sys_select (Depends-on): Update.
11860         * modules/sys_socket (Depends-on): Update.
11861         * modules/sys_stat (Depends-on): Update.
11862         * modules/sys_time (Depends-on): Update.
11863         * modules/sys_wait (Depends-on): Update.
11864         * modules/termios (Depends-on): Update.
11865         * modules/time (Depends-on): Update.
11866         * modules/unistd (Depends-on): Update.
11867         * modules/wchar (Depends-on): Update.
11868         * modules/wctype-h (Depends-on): Update.
11869
11870         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
11871         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
11872         (Files, Makefile.am): Update.
11873         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
11874         * modules/argv-iter (Depends-on): Update.
11875         * modules/arpa_inet (Depends-on): Update.
11876         * modules/dirent (Depends-on): Update.
11877         * modules/fcntl-h (Depends-on): Update.
11878         * modules/fnmatch (Depends-on): Update.
11879         * modules/getopt-posix (Depends-on): Update.
11880         * modules/glob (Depends-on): Update.
11881         * modules/iconv-h (Depends-on): Update.
11882         * modules/inttypes-incomplete (Depends-on): Update.
11883         * modules/locale (Depends-on): Update.
11884         * modules/math (Depends-on): Update.
11885         * modules/netdb (Depends-on): Update.
11886         * modules/search (Depends-on): Update.
11887         * modules/signal (Depends-on): Update.
11888         * modules/spawn (Depends-on): Update.
11889         * modules/stdio (Depends-on): Update.
11890         * modules/stdlib (Depends-on): Update.
11891         * modules/string (Depends-on): Update.
11892         * modules/strings (Depends-on): Update.
11893         * modules/sys_socket (Depends-on): Update.
11894         * modules/sys_stat (Depends-on): Update.
11895         * modules/sys_time (Depends-on): Update.
11896         * modules/sys_times (Depends-on): Update.
11897         * modules/sys_utsname (Depends-on): Update.
11898         * modules/time (Depends-on): Update.
11899         * modules/unistd (Depends-on): Update.
11900         * modules/wchar (Depends-on): Update.
11901         * MODULES.html.sh (Support for building libraries and executables):
11902         Update.
11903
11904 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
11905
11906         Improvements on _Noreturn and related modules.
11907
11908         modules/_Exit-tests: test _Noreturn too
11909         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
11910         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
11911         (main): Use them.
11912
11913         stdnoreturn, stdnoreturn-tests: remove modules
11914         They're not needed here and a bit premature for use elsewhere.  See
11915         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
11916         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
11917         * tests/test-stdnoreturn.c: Remove files.
11918         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
11919         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
11920         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
11921         and using noreturn.
11922         * modules/openat, modules/sigpipe-die, modules/xalloc:
11923         * modules/xmemdup0, modules/xstrtol:
11924         Remove dependency on stdnoreturn.
11925
11926         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
11927         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
11928         Reparenthesize to avoid GCC warning.
11929         Support Microsoft's syntax.
11930         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
11931
11932         _Noreturn-tests: remove module
11933         * modules/_Noreturn-tests: Remove.
11934         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
11935         * tests/test-_Noreturn.c: Remove.
11936         * tests/test-stdnoreturn.c: Merge from the old
11937         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
11938
11939 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
11940
11941         _Noreturn, stdnoreturn, and related modules.
11942
11943         * top/maint.mk: Adjust to new noreturn support.
11944         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
11945         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
11946
11947         xalloc: use stdnoreturn.h
11948         * lib/xalloc.h: Include <stdnoreturn.h>.
11949         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11950         * modules/xalloc (Depends-on): Add stdnoreturn.
11951
11952         xstrtol: use stdnoreturn.h
11953         * lib/xstrtol.h: Include <stdnoreturn.h>.
11954         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11955         * modules/xstrtol (Depends-on): Add stdnoreturn.
11956
11957         xmemdup0: use stdnoreturn.h
11958         * lib/xmemdup0.h: Include <stdnoreturn.h>.
11959         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11960         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
11961
11962         sigpipe-die: use stdnoreturn.h
11963         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
11964         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11965         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
11966
11967         openat: use stdnoreturn.h
11968         * lib/openat.h: Include <stdnoreturn.h>.
11969         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11970         * modules/openat (Depends-on): Add stdnoreturn.
11971
11972         * lib/openat-die.c (openat_save_fail): Modernize comment.
11973
11974         * lib/xalloc-die.c (xalloc_die): Modernize comment.
11975
11976         * lib/glthread/thread.h: Modernize comment.
11977
11978         obstack: use _Noreturn
11979         * lib/obstack.c (__attribute__): Remove macro.
11980         (print_and_abort): Use _Noreturn.
11981
11982         c-stack: use _Noreturn
11983         * lib/c-stack.c (die, overflow_handler, segv_handler):
11984         Use _Noreturn rather than __attribute__((noreturn)).
11985
11986         argmatch-tests, exclude_tests: use _Noreturn
11987         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
11988         Remove.
11989         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
11990
11991         stdlib: use _Noreturn
11992         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
11993         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
11994         * modules/stdlib (Depends-on): Add _Noreturn.
11995         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
11996
11997         stdnoreturn-tests: new module
11998         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
11999
12000         stdnoreturn: new module
12001         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
12002         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
12003
12004         _Noreturn-tests: new module
12005         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
12006
12007         _Noreturn: new module
12008         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
12009         New section, mentioning it.
12010         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
12011
12012         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
12013
12014 2011-07-11  Eric Blake  <eblake@redhat.com>
12015
12016         ffs: new module
12017         * modules/ffs: New file.
12018         * m4/ffs.m4: Likewise.
12019         * lib/ffs.c: Likewise.
12020         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
12021         * modules/strings (Makefile.am): Substitute witness.
12022         (Depends-on): Add c++defs.
12023         * lib/strings.in.h (ffs): Declare.
12024         * modules/ffs-tests: New test file.
12025         * tests/test-ffs.c: Test new module.
12026         * MODULES.html.sh (Integer arithmetic functions): Mention it.
12027         * doc/posix-functions/ffs.texi (ffs): Likewise.
12028
12029         regex: avoid compiler warning
12030         * lib/regex.c (includes): Include <strings.h>, for use of
12031         strcasecmp in regcomp.c.
12032         Reported by Joachim Schmitz.
12033
12034 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
12035
12036         stdint: respect system's intmax_t if INTMAX_MAX
12037         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
12038         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
12039         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
12040         long but int64_t is long long, and where we will clash with the
12041         system intmax_t if we override it.  See
12042         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
12043         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
12044         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
12045         similarly for UINTMAX_C.
12046
12047 2011-07-08  Bruno Haible  <bruno@clisp.org>
12048
12049         pthread_sigmask tests: Avoid a compiler warning.
12050         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
12051         non-zero.
12052
12053         sigprocmask tests: A better way to avoid a compiler warning.
12054         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
12055         (main): Complain if system() returns non-zero.
12056         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
12057
12058 2011-07-08  Bruno Haible  <bruno@clisp.org>
12059
12060         pthread_sigmask: Work around IRIX bug.
12061         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
12062         bug.
12063         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
12064         there may be unblocked pending signals.
12065         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
12066
12067 2011-07-08  Bruno Haible  <bruno@clisp.org>
12068
12069         pthread_sigmask: Work around Cygwin bug.
12070         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
12071         bug.
12072         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
12073         the system's pthread_sigmask function.
12074         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
12075
12076 2011-07-08  Bruno Haible  <bruno@clisp.org>
12077
12078         pthread_sigmask: Work around bug in single-threaded implementation.
12079         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
12080         FreeBSD, HP-UX, Solaris bug.
12081         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
12082         * lib/pthread_sigmask.c: Include <stddef.h>.
12083         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
12084         the system's pthread_sigmask function.
12085         * modules/pthread_sigmask (configure.ac): Invoke
12086         gl_PREREQ_PTHREAD_SIGMASK.
12087         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
12088         HP-UX, Solaris.
12089
12090 2011-07-08  Eric Blake  <eblake@redhat.com>
12091
12092         test-sigprocmask: avoid compiler warning
12093         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
12094         * tests/test-sigprocmask.c (main): Use it to silence warning.
12095         Reported by Jim Meyering.
12096
12097         test-snprintf: avoid compiler warning
12098         * tests/test-snprintf.c (main): Avoid shadowed declaration.
12099         * tests/test-vsnprintf.c (main): Likewise.
12100         Reported by Jim Meyering.
12101
12102 2011-07-08  Bruno Haible  <bruno@clisp.org>
12103
12104         Tests for module 'pthread_sigmask'.
12105         * modules/pthread_sigmask-tests: New file.
12106         * tests/test-pthread_sigmask1.c: New file, based on
12107         tests/test-sigprocmask.c.
12108         * tests/test-pthread_sigmask2.c: New file.
12109
12110 2011-07-08  Jim Meyering  <meyering@redhat.com>
12111
12112         test-getopt.h: avoid warning about an unused variable
12113         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
12114
12115 2011-07-07  Jim Meyering  <meyering@redhat.com>
12116
12117         maint: reduce list of files exempt from sc_prohibit_leading_TABs
12118         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
12119         now that it no longer contains leading TABs.
12120         Remove unused "url=FIXME" statement.
12121
12122 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
12123
12124         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
12125         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
12126         When gl_THREADLIB is not in use, assume that the POSIX sematics
12127         are desired.  This is better for Emacs, which uses POSIX semantics
12128         on GNUish and/or POSIXish platforms, and does not use threads at
12129         all otherwise.
12130
12131         pthread_sigmask: fix typo when testing for libraries
12132         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
12133         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
12134
12135 2011-07-08  Eric Blake  <eblake@redhat.com>
12136
12137         fts: introduce FTS_NOATIME
12138         * lib/fts_.h (FTS_NOATIME): New bit flag.
12139         (FTS_OPTIONMASK): Adjust.
12140         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
12141         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
12142
12143 2011-07-08  Bruno Haible  <bruno@clisp.org>
12144
12145         Tests for module 'thread'.
12146         * modules/thread-tests: New file.
12147         * tests/test-thread_self.c: New file.
12148         * tests/test-thread_create.cc: New file.
12149
12150 2011-07-08  Bruno Haible  <bruno@clisp.org>
12151
12152         thread: Avoid gcc warnings when using gl_thread_self().
12153         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
12154         'void *'.
12155         (gl_thread_self_pointer): Update.
12156
12157 2011-07-07  Bruno Haible  <bruno@clisp.org>
12158
12159         signal-c++-tests: Check declaration of pthread_sigmask.
12160         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
12161         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
12162         $(LIB_PTHREAD_SIGMASK).
12163
12164 2011-07-07  Bruno Haible  <bruno@clisp.org>
12165
12166         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
12167         * lib/signal.in.h (pthread_sigmask): Override if
12168         REPLACE_PTHREAD_SIGMASK is 1.
12169         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
12170         REPLACE_PTHREAD_SIGMASK.
12171         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
12172         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
12173         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
12174         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
12175         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
12176
12177 2011-07-07  Bruno Haible  <bruno@clisp.org>
12178
12179         pthread_sigmask: Ensure declaration in <signal.h>.
12180         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
12181         include <pthread.h>.
12182         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
12183         problem.
12184
12185 2011-07-07  Bruno Haible  <bruno@clisp.org>
12186
12187         pthread_sigmask: Document the module.
12188         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
12189
12190 2011-07-07  Bruno Haible  <bruno@clisp.org>
12191
12192         pthread_sigmask: Follow gnulib conventions.
12193         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
12194         gl_PTHREAD_SIGMASK.
12195         * modules/pthread_sigmask (configure.ac): Update.
12196
12197 2011-07-07  Bruno Haible  <bruno@clisp.org>
12198
12199         pthread_sigmask: Make declaration C++ safe.
12200         * lib/signal.in.h: In two special conditions, just do an #include_next.
12201         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
12202         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
12203         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
12204         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
12205         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
12206         not REPLACE_PTHREAD_MASK.
12207         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
12208         not REPLACE_PTHREAD_MASK.
12209         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
12210
12211 2011-07-07  Bruno Haible  <bruno@clisp.org>
12212
12213         pthread_sigmask: Fix return value.
12214         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
12215         * lib/pthread_sigmask.c: New file.
12216         * modules/pthread_sigmask (Files): Add it.
12217         (configure.ac): Invoke AC_LIBOBJ.
12218
12219 2011-07-07  Eric Blake  <eblake@redhat.com>
12220
12221         getopt: more portable argv creation
12222         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
12223         const, use char arrays rather than strings.
12224         Suggested by Paul Eggert.
12225
12226 2011-07-07  Bruno Haible  <bruno@clisp.org>
12227
12228         Tests for module 'sigprocmask'.
12229         * modules/sigprocmask-tests: New file.
12230         * tests/test-sigprocmask.c: New file.
12231
12232 2011-07-07  Bruno Haible  <bruno@clisp.org>
12233
12234         float tests: Tweak.
12235         * tests/test-float.c (main): Tweak skip message.
12236
12237 2011-07-07  Eric Blake  <eblake@redhat.com>
12238
12239         getopt: avoid compiler warning during configure
12240         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
12241         assigning string literals to non-const pointer.
12242
12243         getopt-gnu: avoid crash in glibc getopt
12244         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
12245         * tests/test-getopt.h (test_getopt): Enhance test.
12246         * tests/test-getopt_long.h (test_getopt_long): Likewise.
12247         * doc/posix-functions/getopt.texi (getopt): Document it.
12248         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
12249         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
12250         Likewise.
12251
12252 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
12253
12254         getopt: handle W; without long options in getopt [BZ #12922]
12255         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
12256         but no long options are defined, just return 'W'.
12257
12258 2011-07-07  Bruno Haible  <bruno@clisp.org>
12259
12260         Avoid literal tabs.
12261         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
12262         variable containing a tab instead of a literal tab.
12263         Reported by Jim Meyering.
12264
12265 2011-07-07  Bruno Haible  <bruno@clisp.org>
12266
12267         Comments.
12268         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
12269
12270 2011-07-06  Bruno Haible  <bruno@clisp.org>
12271
12272         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
12273         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
12274         <winsock2.h>.
12275         (rpl_fd_isset, FD_ISSET): New definitions, copied from
12276         lib/sys_socket.in.h.
12277         (close, gethostname): Hide declarations from <winsock2.h>.
12278         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
12279         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
12280         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
12281         (select): Don't override if gnulib's <sys/select.h> was already
12282         included.
12283         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
12284         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
12285         setsockopt, shutdown, select): Tweak indentation.
12286
12287 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
12288
12289         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
12290         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
12291         in an application that does not use the sys_select module.
12292
12293 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
12294
12295         poll: do not return 0 on timeout=-1
12296         * lib/poll.c: Loop with yield if no events occured
12297
12298 2011-07-06  Eric Blake  <eblake@redhat.com>
12299
12300         pthread_sigmask: always replace when not using pthread
12301         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
12302         replacement when using some threading other than pthread.  Fix
12303         logic bug.
12304
12305 2011-07-06  Bruno Haible  <bruno@clisp.org>
12306
12307         Comments.
12308         * m4/printf.m4: Update comments about mingw.
12309
12310 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
12311
12312         sys_select: define sigset_t more portably
12313         * lib/sys_select.in.h: Always include <sys/types.h>, since
12314         we now need sigset_t and mingw defines it there.
12315         Include <signal.h> before split inclusion guard, to avoid
12316         mishaps on Solaris, whose <signal.h> eventually includes us.
12317         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
12318         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
12319         which come from ...
12320         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
12321         gl_CHECK_TYPE_SIGSET_T.
12322         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
12323         does the real work.
12324         * modules/sys_select (Depends-on): Add 'signal'.
12325
12326         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
12327         Suggested by Bruno Haible.
12328
12329         pselect: Use pthread_sigmask, not sigprocmask.
12330         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
12331         multithreaded apps better than sigprocmask does.
12332         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
12333         sigprocmask directly.
12334
12335 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
12336
12337         * lib/pselect.c (pselect): Use plain name, without "rpl_".
12338         Don't #undef,  since we don't need any underlying pselect.
12339         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
12340         (Depends-on): Add select.
12341         (Link): Add $(LIBSOCKET).
12342         These changes suggested by Bruno Haible.
12343
12344         pselect: document better
12345         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
12346         * doc/posix-functions/pselect.texi (pselect): Document new module.
12347
12348         pthread_sigmask: new module
12349         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
12350         * doc/posix-functions/pthread_sigmask.texi: Document new module.
12351         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
12352         This is done only as a macro; I don't know how well that'll
12353         work for C++.  Move <sys/types.h> include before the include_next,
12354         to avoid mishap on Solaris.
12355         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
12356         * modules/signal (Makefile.am): Substitute the check's results.
12357         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
12358
12359         test-pselect: new module
12360         * modules/pselect-tests, tests/test-pselect.c: New files.
12361         * tests/test-select.c, tests/test-sys_select-c++.cc:
12362         If TEST_PSELECT is defined, test pselect instead of testing select.
12363
12364         * tests/test-sys_select.c (sigset_t): Test for it, too.
12365         Suggested by Bruno Haible.
12366
12367 2011-07-05  Eric Blake  <eblake@redhat.com>
12368
12369         snprintf: guarantee %1$d, for libintl
12370         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
12371         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
12372         * doc/posix-functions/snprintf.texi (snprintf): Update.
12373         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
12374         * tests/test-snprintf.c (main): Enhance test.
12375         * tests/test-vsnprintf.c (main): Likewise.
12376
12377 2011-07-05  Jim Meyering  <meyering@redhat.com>
12378
12379         maint: exempt stdio-read.c and stdio-write.c from the cppi check
12380         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
12381         per Bruno's request, to accommodate this idiom (no space after "#")
12382         even when the function is inside an #if block:
12383         char *
12384         gets (char *s)
12385         #undef gets
12386         {
12387           ...
12388         }
12389
12390 2011-07-04  Jim Meyering  <meyering@redhat.com>
12391
12392         maint: indent with spaces, not TABs, and add a rule to check this
12393         * tests/test-userspec.c: Indent with spaces, not TABs.
12394         * tests/test-argp.c: Likewise.
12395         * tests/test-c-stack2.sh: Likewise.
12396         * tests/test-parse-duration.sh: Likewise
12397         * m4/strtod.m4: Likewise.
12398         * m4/alloca.m4: Likewise.
12399         * m4/pselect.m4: Likewise.
12400         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
12401
12402 2011-07-03  Jim Meyering  <meyering@redhat.com>
12403
12404         maint.mk: correct omissions in prohibit_argmatch_without_use check
12405         This rule would mistakenly report that argmatch.h is included without
12406         use even when both the argmatch and invalid_arg macro were used.
12407         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
12408         of argmatch and invalid_arg.
12409
12410 2011-07-03  Bruno Haible  <bruno@clisp.org>
12411
12412         Comments about EINTR.
12413         * lib/safe-read.h: Explain the purpose of this module.
12414         * lib/safe-write.h: Likewise.
12415         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
12416         module.
12417         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
12418         module.
12419         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12420
12421 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
12422
12423         xnanosleep: Rewrite to use new dtotimespec module.
12424         It has the conversion code that used to be in xnanosleep.
12425         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
12426         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
12427         (TIME_T_MAX): Remove.
12428         (xnanosleep): Rewrite in terms of dtotimespec.
12429         * modules/xnanosleep (Depends-on): Add dtotimespec.
12430         Remove intprops, stdbool.
12431
12432         timespec-add, timespec-sub: new modules
12433         * lib/timespec.h (timespec_add, timespec_sub): New decls.
12434         * lib/timespec-add.c, lib/timespec-sub.c:
12435         * modules/timespec-add, modules/timespec-sub: New files.
12436
12437         dtotimespec: new module
12438         * lib/timespec.h (dtotimespec): New decl.
12439         * lib/dtotimespec.c, modules/dtotimespec: New files.
12440
12441         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
12442
12443         pselect: new module
12444         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
12445         (pselect): New decls.
12446         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
12447         since the standard pselect decl uses 'restrict'.
12448         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
12449         HAVE_PSELECT, REPLACE_PSELECT.
12450         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
12451         HAVE_PSELECT, REPLACE_PSELECT.
12452         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
12453
12454         sys_select: don't depend on sys_socket
12455         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
12456         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
12457         This fix works on GNU and GNU-like platforms, but has not been tested
12458         on native Windows.
12459         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
12460         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
12461         gl_HEADER_SYS_SOCKET.
12462         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
12463         gl_PREREQ_SYS_H_WINSOCK2.
12464
12465 2011-06-29  Eric Blake  <eblake@redhat.com>
12466
12467         pipe2: fix C89 compile problem
12468         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
12469         Reported by Bruno Haible.
12470
12471         pipe, pipe2: don't corrupt fd on error
12472         * lib/pipe.c (pipe): Leave fd unchanged on error.
12473         * lib/pipe2.c (pipe2): Likewise.
12474         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
12475         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
12476
12477 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
12478
12479         mmap-anon: do not use regular expressions inadvertently
12480         * m4/mmap-anon.m4: Remove trailing period from strings sought
12481         in the output.
12482
12483 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
12484
12485         nanosleep: fix integer overflow problem
12486         * lib/nanosleep.c (my_usleep): Don't assume signed integer
12487         arithmetic wraps around on overflow.
12488
12489         nanosleep: simplify carrying
12490         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
12491         first call to the underyling nanosleep, not for the last one.
12492         This doesn't fix any bugs, but it simplifies the computation of
12493         the remaining delay.  Found while auditing integer overflow issues.
12494
12495         dup2: remove test for existence of fcntl
12496         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
12497         "#if HAVE_FCNTL", in the configure-time test program.
12498         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
12499         and therefore speeds up "configure" a bit.  Found while
12500         adding the dup2 module to Emacs.
12501
12502 2011-06-24  Eric Blake  <eblake@redhat.com>
12503
12504         maint.mk: enhance useless header checks
12505         * top/maint.mk (_sc_header_without_use): Check both include
12506         styles.
12507         (sc_prohibit_assert_without_use)
12508         (sc_prohibit_close_stream_without_use)
12509         (sc_prohibit_getopt_without_use)
12510         (sc_prohibit_quotearg_without_use)
12511         (sc_prohibit_quote_without_use)
12512         (sc_prohibit_long_options_without_use)
12513         (sc_prohibit_inttostr_without_use)
12514         (sc_prohibit_ignore_value_without_use)
12515         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
12516         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
12517         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
12518         (sc_prohibit_hash_pjw_without_use)
12519         (sc_prohibit_safe_read_without_use)
12520         (sc_prohibit_argmatch_without_use)
12521         (sc_prohibit_canonicalize_without_use)
12522         (sc_prohibit_root_dev_ino_without_use)
12523         (sc_prohibit_openat_without_use)
12524         (sc_prohibit_c_ctype_without_use)
12525         (sc_prohibit_signal_without_use)
12526         (sc_prohibit_stdio--_without_use)
12527         (sc_prohibit_stdio-safer_without_use)
12528         (sc_prohibit_strings_without_use)
12529         (sc_prohibit_intprops_without_use)
12530         (sc_prohibit_stddef_without_use)
12531         (sc_prohibit_xfreopen_without_use): Update clients.
12532
12533 2011-06-24  Jim Meyering  <meyering@redhat.com>
12534
12535         syntax-check: keep one maint.mk rule in sync with its header
12536         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
12537         of the bug Eric has just fixed, with today's commit 25e4c2ec.
12538         I prefer to avoid temporary files here, so use <(...), but that
12539         is not supported by /bin/sh, so...
12540         (SHELL): Define to /bin/bash.
12541
12542 2011-06-24  Eric Blake  <eblake@redhat.com>
12543
12544         maint.mk: update sc_prohibit_intprops_without_use
12545         * top/maint.mk (_intprops_names): Match recent changes.
12546
12547 2011-06-24  Bruno Haible  <bruno@clisp.org>
12548
12549         strerror-override: No-op tweak.
12550         * lib/strerror-override.h (strerror_override): Reorder conditions,
12551         for consistency with lib/strerror-override.c.
12552
12553 2011-06-23  Eric Blake  <eblake@redhat.com>
12554
12555         maint.mk: test further PATH_MAX issues
12556         * top/maint.mk (sc_prohibit_path_max_array): Rename...
12557         (sc_prohibit_path_max_allocation): ...and also test alloca.
12558         Suggested by Jim Meyering.
12559
12560 2011-06-22  Eric Blake  <eblake@redhat.com>
12561
12562         maint.mk: add syntax-check to avoid char[PATH_MAX]
12563         * top/maint.mk (sc_prohibit_path_max_array): New rule.
12564
12565         stat: be robust to PATH_MAX definition
12566         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
12567         * modules/stat (Depends-on): Add verify.
12568
12569         link: work around IRIX bug
12570         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
12571         * lib/link.c (rpl_link): Work around it.
12572         * tests/test-link.h (test_link): Enhance test.
12573         * doc/posix-functions/link.texi (link): Document the bug.
12574
12575         getopt: silence clang warning
12576         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
12577         dereference.
12578         Reported by Gustavo Martin Domato.
12579
12580 2011-06-22  Jim Meyering  <meyering@redhat.com>
12581
12582         bootstrap: do not insert a blank line into each .gitignore file
12583         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
12584
12585 2011-06-21  Eric Blake  <eblake@redhat.com>
12586
12587         perror: test for output mismatch
12588         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
12589         perror on IRIX.
12590
12591         strerror_r: fix OpenBSD behavior on out-of-range
12592         * lib/strerror_r.c (strerror_r): Always use maximal string.
12593         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
12594
12595         strerror_r: fix OpenBSD behavior on 0
12596         * lib/strerror-override.c (strerror_override): Also override 0
12597         when needed.
12598         * lib/strerror-override.h (strerror_override): Likewise.
12599         * lib/strerror.c (strerror): Simplify, now that 0 override is done
12600         earlier.
12601         * lib/strerror_r.c (strerror_r): Likewise.
12602         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
12603         behavior...
12604         (gl_FUNC_STRERROR_0): ...into new macro.
12605         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
12606         is overridden.
12607         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
12608         * modules/strerror-override (Files): Add strerror.m4.
12609         (configure.ac): Also provide override for 0 when needed.
12610         * doc/posix-functions/strerror.texi (strerror): Document this.
12611         * doc/posix-functions/perror.texi (perror): Likewise.
12612
12613         perror: adjust array size
12614         * modules/perror (Depends-on): Add strerror-override.
12615         * lib/perror.c (perror): Use it to avoid magic number.
12616
12617         strerror-override: reduce size
12618         * lib/strerror-override.c (strerror_override): Use fewer lines.
12619
12620 2011-06-20  Bruno Haible  <bruno@clisp.org>
12621
12622         pathmax: Ensure correct value for PATH_MAX on HP-UX.
12623         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
12624
12625 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
12626
12627         alloca: port to compilers that can optimize like GCC 4.6.0
12628         * lib/alloca.c (find_stack_direction): New signature, taken from
12629         Autoconf git.  This works with GCC 4.6.0.  This code should never
12630         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
12631         be used with other compilers that optimize as well as GCC 4.6.0 does.
12632         (alloca): Adjust to new signature.
12633         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
12634         New macro, which patches Autoconf in a similar way.
12635
12636         c-stack: stop worrying about stack direction
12637         * lib/c-stack.c (find_stack_direction): Remove.
12638         (segv_handler): Don't worry about stack direction growth, as it's
12639         too much of a pain to configure this correctly, given how compilers
12640         are optimizing-away our stack-growth detection code.  Instead, assume
12641         that any access to just before or just after the stack is OK.
12642         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
12643         Don't require AC_FUNC_ALLOCA; no longer needed.
12644
12645 2011-06-20  Eric Blake  <eblake@redhat.com>
12646
12647         test-stat: don't allocate PATH_MAX bytes
12648         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
12649         PATH_MAX-sized buffer.
12650         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
12651         * modules/stat-tests (Depends-on): Likewise.
12652         * tests/test-fstatat.c (includes): Drop pathmax.h.
12653         * tests/test-stat.c (includes): Likewise.
12654         Reported by Bruno Haible.
12655
12656 2011-06-20  Bruno Haible  <bruno@clisp.org>
12657
12658         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
12659         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
12660         * lib/float.c: New file.
12661         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
12662         REPLACE_FLOAT_LDBL.
12663         * modules/float (Files): Add lib/float.c.
12664         (configure.ac): Invoke AC_LIBOBJ.
12665         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
12666
12667 2011-06-20  Bruno Haible  <bruno@clisp.org>
12668
12669         Tests for module 'float'.
12670         * modules/float-tests: New file.
12671         * tests/test-float.c: New file.
12672
12673 2011-06-19  Bruno Haible  <bruno@clisp.org>
12674
12675         isinf: Coding style.
12676         * lib/isinf.c: Use GNU coding style.
12677
12678 2011-06-19  Bruno Haible  <bruno@clisp.org>
12679
12680         linkat test: Avoid test failure on AIX 7.1.
12681         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
12682         * tests/test-link.h (test_link): Likewise.
12683
12684 2011-06-19  Bruno Haible  <bruno@clisp.org>
12685
12686         pread test: Avoid test failure on OpenBSD 4.9.
12687         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
12688
12689 2011-06-19  Bruno Haible  <bruno@clisp.org>
12690
12691         sprintf-posix: Fix test failure on AIX 7.1.
12692         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
12693         * doc/posix-functions/dprintf.texi: Mention limited precision problem
12694         on AIX.
12695         * doc/posix-functions/fprintf.texi: Likewise.
12696         * doc/posix-functions/printf.texi: Likewise.
12697         * doc/posix-functions/snprintf.texi: Likewise.
12698         * doc/posix-functions/sprintf.texi: Likewise.
12699         * doc/posix-functions/vdprintf.texi: Likewise.
12700         * doc/posix-functions/vfprintf.texi: Likewise.
12701         * doc/posix-functions/vprintf.texi: Likewise.
12702         * doc/posix-functions/vsnprintf.texi: Likewise.
12703         * doc/posix-functions/vsprintf.texi: Likewise.
12704
12705 2011-06-19  Bruno Haible  <bruno@clisp.org>
12706
12707         roundl-ieee: Fix test failure on AIX 7.1.
12708         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
12709         * doc/posix-functions/roundl.texi: Mention problem with negative
12710         arguments.
12711
12712 2011-06-19  Bruno Haible  <bruno@clisp.org>
12713
12714         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
12715         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
12716         * doc/posix-functions/round.texi: Mention problem with negative
12717         arguments.
12718         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
12719
12720 2011-06-19  Bruno Haible  <bruno@clisp.org>
12721
12722         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
12723         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
12724         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
12725         * doc/posix-functions/roundf.texi: Mention problem with negative
12726         arguments.
12727         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
12728
12729 2011-06-19  Bruno Haible  <bruno@clisp.org>
12730
12731         ceilf-ieee: Work around bug on MacOS X 10.5.
12732         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
12733
12734         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
12735         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
12736         IEEE compliant, avoid compiler optimizations.
12737         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
12738         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
12739         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
12740         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
12741         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
12742         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
12743         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
12744         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
12745         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
12746         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
12747
12748 2011-06-19  Bruno Haible  <bruno@clisp.org>
12749
12750         ceilf-ieee: Work around bug on AIX 7.1.
12751         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
12752         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
12753
12754 2011-06-19  Bruno Haible  <bruno@clisp.org>
12755
12756         ceil-ieee: Work around bug on AIX 7.1.
12757         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
12758         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
12759
12760 2011-06-18  Bruno Haible  <bruno@clisp.org>
12761
12762         fsync test: Avoid test failure on MacOS X and AIX.
12763         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
12764         EINVAL.
12765
12766 2011-06-18  Bruno Haible  <bruno@clisp.org>
12767
12768         openat, fdopendir tests: Fix link errors.
12769         * modules/openat-tests (Depends-on): Add progname.
12770         * modules/fdopendir-tests (Depends-on): Likewise.
12771         * tests/test-fchownat.c: Include progname.h.
12772         (main): Call set_program_name.
12773         * tests/test-fstatat.c: Include progname.h.
12774         (main): Call set_program_name.
12775         * tests/test-mkdirat.c: Include progname.h.
12776         (main): Call set_program_name.
12777         * tests/test-openat.c: Include progname.h.
12778         (main): Call set_program_name.
12779         * tests/test-unlinkat.c: Include progname.h.
12780         (main): Call set_program_name.
12781         * tests/test-fdopendir.c: Include progname.h.
12782         (main): Call set_program_name.
12783
12784 2011-06-18  Bruno Haible  <bruno@clisp.org>
12785
12786         Doc update.
12787         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
12788         HP-UX.
12789         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
12790
12791 2011-06-18  Bruno Haible  <bruno@clisp.org>
12792
12793         getcwd tests: Avoid compilation error on HP-UX 11.31.
12794         * modules/getcwd-tests (Depends-on): Add pathmax.
12795         * tests/test-getcwd.c: Include pathmax.h.
12796
12797 2011-06-18  Bruno Haible  <bruno@clisp.org>
12798
12799         isfinite, isinf: Fix link error on AIX 6 and 7.
12800         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
12801         needed, also test the macro with a 'float' argument.
12802         * m4/isinf.m4 (gl_ISINF): Likewise.
12803
12804 2011-06-18  Bruno Haible  <bruno@clisp.org>
12805
12806         getloadavg: Don't clobber LIBS. Regression from previous commit.
12807         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
12808         AC_CHECK_LIB from here...
12809         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
12810         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
12811         gl_func_getloadavg_done.
12812         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12813
12814 2011-06-18  Bruno Haible  <bruno@clisp.org>
12815
12816         clean-temp: Improve documentation.
12817         * lib/clean-temp.h: Explain better how to use this module.
12818         Reported by John Darrington <john@darrington.wattle.id.au>.
12819
12820 2011-06-17  Bruno Haible  <bruno@clisp.org>
12821
12822         pread, pwrite: Avoid cc warning on AIX.
12823         * lib/unistd.in.h (pread): Undefine before defining as a macro.
12824         (pwrite): Likewise.
12825
12826 2011-06-17  Bruno Haible  <bruno@clisp.org>
12827
12828         spawn-pipe tests: Fix link error.
12829         * tests/test-spawn-pipe-child.c: Undefine fprintf.
12830         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12831
12832 2011-06-17  Bruno Haible  <bruno@clisp.org>
12833
12834         Tests: Remove unnecessary dependency.
12835         * modules/canonicalize-tests (Depends-on): Remove progname.
12836         * modules/chown-tests (Depends-on): Likewise.
12837         * modules/dirname-tests (Depends-on): Likewise.
12838         * modules/fdopendir-tests (Depends-on): Likewise.
12839         * modules/fdutimensat-tests (Depends-on): Likewise.
12840         * modules/hash-tests (Depends-on): Likewise.
12841         * modules/lchown-tests (Depends-on): Likewise.
12842         * modules/linkat-tests (Depends-on): Likewise.
12843         * modules/renameat-tests (Depends-on): Likewise.
12844         * modules/spawn-pipe-tests (Depends-on): Likewise.
12845         * modules/utimensat-tests (Depends-on): Likewise.
12846
12847 2011-06-17  Bruno Haible  <bruno@clisp.org>
12848
12849         spawn-pipe tests: Fix link error.
12850         * tests/test-spawn-pipe-child.c: Undefine fflush.
12851
12852 2011-06-17  Bruno Haible  <bruno@clisp.org>
12853
12854         Fix tests link errors.
12855         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
12856         * modules/chown-tests (Makefile.am): Don't link test-chown with
12857         LIBINTL.
12858         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
12859         LIBINTL.
12860         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
12861         LIBINTL.
12862         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
12863         LIBINTL.
12864
12865 2011-06-16  Bruno Haible  <bruno@clisp.org>
12866
12867         crypto/gc-sha1: Fix recent regression.
12868         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
12869         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
12870
12871         crypto/gc-md5: Fix recent regression.
12872         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
12873
12874         crypto/gc-md4: Fix recent regression.
12875         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
12876         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
12877
12878         crypto/gc-arctwo: Fix recent regression.
12879         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
12880         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
12881
12882         crypto/gc-rijndael: Fix recent regression.
12883         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
12884         (configure.ac): Invoke AC_LIBOBJ here.
12885         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
12886         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12887
12888         crypto/gc-hmac-sha1: Fix recent regression.
12889         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
12890         (configure.ac): Invoke AC_LIBOBJ here.
12891         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
12892         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12893
12894         crypto/gc-hmac-md5: Fix recent regression.
12895         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
12896         (configure.ac): Invoke AC_LIBOBJ here.
12897         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
12898         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12899
12900         crypto/gc-des: Fix recent regression.
12901         * modules/crypto/gc-des (Files): Remove m4/des.m4.
12902         (configure.ac): Invoke AC_LIBOBJ here.
12903         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
12904         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12905
12906         crypto/gc-arcfour: Fix recent regression.
12907         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
12908         (configure.ac): Invoke AC_LIBOBJ here.
12909         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
12910         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12911
12912 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
12913
12914         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
12915         After the 2011-05-21 change, this macro requires
12916         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
12917         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
12918
12919 2011-06-16  Bruno Haible  <bruno@clisp.org>
12920
12921         fprintftime: Move AC_LIBOBJ invocations to module description.
12922         * m4/fprintftime.m4: Remove file.
12923         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
12924         (configure.ac): Remove gl_FPRINTFTIME call.
12925         (Makefile.am): Augment lib_SOURCES.
12926         Reported by Jim Meyering.
12927
12928 2011-06-16  Bruno Haible  <bruno@clisp.org>
12929
12930         tmpfile-safer: Finish 2011-05-23 commit.
12931         * m4/stdio-safer.m4: Really remove file.
12932         Reported by Jim Meyering.
12933
12934 2011-06-16  Bruno Haible  <bruno@clisp.org>
12935
12936         syntax-check: Fix typo.
12937         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
12938         printf-posix.m4.
12939         Reported by Jim Meyering.
12940
12941 2011-06-13  Jim Meyering  <meyering@redhat.com>
12942
12943         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
12944         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
12945
12946 2011-05-23  Bruno Haible  <bruno@clisp.org>
12947
12948         yesno: Move AC_LIBOBJ invocations to module description.
12949         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
12950         * modules/yesno (Makefile.am): Augment lib_SOURCES.
12951
12952 2011-05-23  Bruno Haible  <bruno@clisp.org>
12953
12954         xstrtol: Move AC_LIBOBJ invocations to module description.
12955         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
12956         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
12957
12958 2011-05-23  Bruno Haible  <bruno@clisp.org>
12959
12960         xstrtold: Move AC_LIBOBJ invocations to module description.
12961         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
12962         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
12963
12964 2011-05-23  Bruno Haible  <bruno@clisp.org>
12965
12966         xstrtod: Move AC_LIBOBJ invocations to module description.
12967         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
12968         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
12969
12970 2011-05-23  Bruno Haible  <bruno@clisp.org>
12971
12972         xnanosleep: Move AC_LIBOBJ invocations to module description.
12973         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
12974         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
12975
12976 2011-05-23  Bruno Haible  <bruno@clisp.org>
12977
12978         xgetcwd: Move AC_LIBOBJ invocations to module description.
12979         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
12980         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
12981
12982 2011-05-23  Bruno Haible  <bruno@clisp.org>
12983
12984         xalloc: Move AC_LIBOBJ invocations to module description.
12985         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
12986         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
12987
12988 2011-05-23  Bruno Haible  <bruno@clisp.org>
12989
12990         write-any-file: Move AC_LIBOBJ invocations to module description.
12991         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
12992         invocation.
12993         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
12994
12995 2011-05-23  Bruno Haible  <bruno@clisp.org>
12996
12997         utimens: Move AC_LIBOBJ invocations to module description.
12998         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
12999         * modules/utimens (Makefile.am): Augment lib_SOURCES.
13000
13001 2011-05-23  Bruno Haible  <bruno@clisp.org>
13002
13003         utimecmp: Move AC_LIBOBJ invocations to module description.
13004         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
13005         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
13006
13007 2011-05-23  Bruno Haible  <bruno@clisp.org>
13008
13009         userspec: Move AC_LIBOBJ invocations to module description.
13010         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
13011         * modules/userspec (Makefile.am): Augment lib_SOURCES.
13012
13013 2011-05-23  Bruno Haible  <bruno@clisp.org>
13014
13015         unlinkdir: Move AC_LIBOBJ invocations to module description.
13016         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
13017         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
13018
13019 2011-05-23  Bruno Haible  <bruno@clisp.org>
13020
13021         unistd-safer: Move AC_LIBOBJ invocations to module description.
13022         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
13023         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
13024
13025 2011-05-23  Bruno Haible  <bruno@clisp.org>
13026
13027         tempname: Move AC_LIBOBJ invocations to module description.
13028         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
13029         * modules/tempname (Makefile.am): Augment lib_SOURCES.
13030
13031 2011-05-23  Bruno Haible  <bruno@clisp.org>
13032
13033         strftime: Move AC_LIBOBJ invocations to module description.
13034         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
13035         * modules/strftime (Makefile.am): Augment lib_SOURCES.
13036
13037 2011-05-23  Bruno Haible  <bruno@clisp.org>
13038
13039         stdlib-safer: Move AC_LIBOBJ invocations to module description.
13040         * m4/stdlib-safer.m4: Remove file.
13041         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
13042         (configure.ac): Remove gl_STDLIB_SAFER call.
13043         (Makefile.am): Augment lib_SOURCES.
13044
13045 2011-05-23  Bruno Haible  <bruno@clisp.org>
13046
13047         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
13048         * m4/stdio-safer.m4: Remove file.
13049         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
13050         (configure.ac): Remove gl_TMPFILE_SAFER call.
13051         (Makefile.am): Augment lib_SOURCES.
13052
13053 2011-05-23  Bruno Haible  <bruno@clisp.org>
13054
13055         popen-safer: Move AC_LIBOBJ invocations to module description.
13056         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
13057         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
13058         (configure.ac): Remove gl_POPEN_SAFER call.
13059         (Makefile.am): Augment lib_SOURCES.
13060
13061 2011-05-23  Bruno Haible  <bruno@clisp.org>
13062
13063         freopen-safer: Move AC_LIBOBJ invocations to module description.
13064         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
13065         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
13066         (configure.ac): Remove gl_FREOPEN_SAFER call.
13067         (Makefile.am): Augment lib_SOURCES.
13068
13069 2011-05-23  Bruno Haible  <bruno@clisp.org>
13070
13071         fopen-safer: Move AC_LIBOBJ invocations to module description.
13072         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
13073         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
13074         (configure.ac): Remove gl_FOPEN_SAFER call.
13075         (Makefile.am): Augment lib_SOURCES.
13076
13077 2011-05-23  Bruno Haible  <bruno@clisp.org>
13078
13079         crypto/sha512: Move AC_LIBOBJ invocations to module description.
13080         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
13081         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
13082
13083 2011-05-23  Bruno Haible  <bruno@clisp.org>
13084
13085         crypto/sha256: Move AC_LIBOBJ invocations to module description.
13086         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
13087         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
13088
13089 2011-05-23  Bruno Haible  <bruno@clisp.org>
13090
13091         crypto/sha1: Move AC_LIBOBJ invocations to module description.
13092         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
13093         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
13094
13095 2011-05-23  Bruno Haible  <bruno@clisp.org>
13096
13097         settime: Move AC_LIBOBJ invocations to module description.
13098         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
13099         * modules/settime (Makefile.am): Augment lib_SOURCES.
13100
13101 2011-05-23  Bruno Haible  <bruno@clisp.org>
13102
13103         savedir: Move AC_LIBOBJ invocations to module description.
13104         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
13105         * modules/savedir (Makefile.am): Augment lib_SOURCES.
13106
13107 2011-05-23  Bruno Haible  <bruno@clisp.org>
13108
13109         save-cwd: Move AC_LIBOBJ invocations to module description.
13110         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
13111         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
13112
13113 2011-05-23  Bruno Haible  <bruno@clisp.org>
13114
13115         same: Move AC_LIBOBJ invocations to module description.
13116         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
13117         * modules/same (Makefile.am): Augment lib_SOURCES.
13118
13119 2011-05-23  Bruno Haible  <bruno@clisp.org>
13120
13121         safe-write: Move AC_LIBOBJ invocations to module description.
13122         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
13123         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
13124         instead of gl_SAFE_WRITE.
13125         (Makefile.am): Augment lib_SOURCES.
13126
13127 2011-05-23  Bruno Haible  <bruno@clisp.org>
13128
13129         safe-read: Move AC_LIBOBJ invocations to module description.
13130         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
13131         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
13132         of gl_SAFE_READ.
13133         (Makefile.am): Augment lib_SOURCES.
13134
13135 2011-05-23  Bruno Haible  <bruno@clisp.org>
13136
13137         safe-alloc: Move AC_LIBOBJ invocations to module description.
13138         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
13139         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
13140
13141 2011-05-23  Bruno Haible  <bruno@clisp.org>
13142
13143         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
13144         * m4/rijndael.m4: Remove file.
13145         * modules/crypto/rijndael (Files): Remove it.
13146         (configure.ac): Remove gl_RIJNDAEL call.
13147         (Makefile.am): Augment lib_SOURCES.
13148
13149 2011-05-23  Bruno Haible  <bruno@clisp.org>
13150
13151         readtokens: Move AC_LIBOBJ invocations to module description.
13152         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
13153         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
13154
13155 2011-05-23  Bruno Haible  <bruno@clisp.org>
13156
13157         read-file: Move AC_LIBOBJ invocations to module description.
13158         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
13159         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
13160         of gl_FUNC_READ_FILE.
13161         (Makefile.am): Augment lib_SOURCES.
13162
13163 2011-05-23  Bruno Haible  <bruno@clisp.org>
13164
13165         quotearg: Move AC_LIBOBJ invocations to module description.
13166         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
13167         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
13168
13169 2011-05-23  Bruno Haible  <bruno@clisp.org>
13170
13171         quote: Move AC_LIBOBJ invocations to module description.
13172         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
13173         * modules/quote (Makefile.am): Augment lib_SOURCES.
13174
13175 2011-05-23  Bruno Haible  <bruno@clisp.org>
13176
13177         posixver: Move AC_LIBOBJ invocations to module description.
13178         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
13179         * modules/posixver (Makefile.am): Augment lib_SOURCES.
13180
13181 2011-05-23  Bruno Haible  <bruno@clisp.org>
13182
13183         posixtm: Move AC_LIBOBJ invocations to module description.
13184         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
13185         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
13186
13187 2011-05-23  Bruno Haible  <bruno@clisp.org>
13188
13189         physmem: Move AC_LIBOBJ invocations to module description.
13190         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
13191         * modules/physmem (Makefile.am): Augment lib_SOURCES.
13192
13193 2011-05-23  Bruno Haible  <bruno@clisp.org>
13194
13195         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
13196         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
13197         invocation.
13198         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
13199
13200 2011-05-23  Bruno Haible  <bruno@clisp.org>
13201
13202         mpsort: Move AC_LIBOBJ invocations to module description.
13203         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
13204         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
13205
13206 2011-05-23  Bruno Haible  <bruno@clisp.org>
13207
13208         modechange: Move AC_LIBOBJ invocations to module description.
13209         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
13210         * modules/modechange (Makefile.am): Augment lib_SOURCES.
13211
13212 2011-05-23  Bruno Haible  <bruno@clisp.org>
13213
13214         mkdir-p: Move AC_LIBOBJ invocations to module description.
13215         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
13216         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
13217
13218 2011-05-23  Bruno Haible  <bruno@clisp.org>
13219
13220         mkancesdirs: Move AC_LIBOBJ invocations to module description.
13221         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
13222         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
13223
13224 2011-05-23  Bruno Haible  <bruno@clisp.org>
13225
13226         mgetgroups: Move AC_LIBOBJ invocations to module description.
13227         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
13228         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
13229
13230 2011-05-23  Bruno Haible  <bruno@clisp.org>
13231
13232         memxor: Move AC_LIBOBJ invocations to module description.
13233         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
13234         * modules/memxor (Makefile.am): Augment lib_SOURCES.
13235
13236 2011-05-23  Bruno Haible  <bruno@clisp.org>
13237
13238         memcoll: Move AC_LIBOBJ invocations to module description.
13239         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
13240         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
13241
13242 2011-05-23  Bruno Haible  <bruno@clisp.org>
13243
13244         memcasecmp: Move AC_LIBOBJ invocations to module description.
13245         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
13246         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
13247
13248 2011-05-23  Bruno Haible  <bruno@clisp.org>
13249
13250         crypto/md5: Move AC_LIBOBJ invocations to module description.
13251         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
13252         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
13253
13254 2011-05-23  Bruno Haible  <bruno@clisp.org>
13255
13256         crypto/md4: Move AC_LIBOBJ invocations to module description.
13257         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
13258         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
13259
13260 2011-05-23  Bruno Haible  <bruno@clisp.org>
13261
13262         crypto/md2: Move AC_LIBOBJ invocations to module description.
13263         * m4/md2.m4: Remove file.
13264         * modules/crypto/md2 (Files): Remove it.
13265         (configure.ac): Remove gl_MD2 call.
13266         (Makefile.am): Augment lib_SOURCES.
13267
13268 2011-05-23  Bruno Haible  <bruno@clisp.org>
13269
13270         long-options: Move AC_LIBOBJ invocations to module description.
13271         * m4/long-options.m4: Remove file.
13272         * modules/long-options (Files): Remove it.
13273         (configure.ac): Remove gl_LONG_OPTIONS call.
13274         (Makefile.am): Augment lib_SOURCES.
13275
13276 2011-05-23  Bruno Haible  <bruno@clisp.org>
13277
13278         i-ring: Move AC_LIBOBJ invocations to module description.
13279         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
13280         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
13281
13282 2011-05-23  Bruno Haible  <bruno@clisp.org>
13283
13284         idcache: Move AC_LIBOBJ invocations to module description.
13285         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
13286         * modules/idcache (Makefile.am): Augment lib_SOURCES.
13287
13288 2011-05-23  Bruno Haible  <bruno@clisp.org>
13289
13290         human: Move AC_LIBOBJ invocations to module description.
13291         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
13292         * modules/human (Makefile.am): Augment lib_SOURCES.
13293
13294 2011-05-23  Bruno Haible  <bruno@clisp.org>
13295
13296         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
13297         * m4/hmac-sha1.m4: Remove file.
13298         * modules/crypto/hmac-sha1 (Files): Remove it.
13299         (configure.ac): Remove gl_HMAC_SHA1 call.
13300         (Makefile.am): Augment lib_SOURCES.
13301
13302 2011-05-23  Bruno Haible  <bruno@clisp.org>
13303
13304         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
13305         * m4/hmac-md5.m4: Remove file.
13306         * modules/crypto/hmac-md5 (Files): Remove it.
13307         (configure.ac): Remove gl_HMAC_MD5 call.
13308         (Makefile.am): Augment lib_SOURCES.
13309
13310 2011-05-23  Bruno Haible  <bruno@clisp.org>
13311
13312         hash: Move AC_LIBOBJ invocations to module description.
13313         * m4/hash.m4: Remove file.
13314         * modules/hash (Files): Remove it.
13315         (configure.ac): Remove gl_HASH call.
13316         (Makefile.am): Augment lib_SOURCES.
13317
13318 2011-05-23  Bruno Haible  <bruno@clisp.org>
13319
13320         hard-locale: Move AC_LIBOBJ invocations to module description.
13321         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
13322         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
13323
13324 2011-05-23  Bruno Haible  <bruno@clisp.org>
13325
13326         getugroups: Move AC_LIBOBJ invocations to module description.
13327         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
13328         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
13329
13330 2011-05-23  Bruno Haible  <bruno@clisp.org>
13331
13332         gettime: Move AC_LIBOBJ invocations to module description.
13333         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
13334         * modules/gettime (Makefile.am): Augment lib_SOURCES.
13335
13336 2011-05-23  Bruno Haible  <bruno@clisp.org>
13337
13338         getndelim2: Move AC_LIBOBJ invocations to module description.
13339         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
13340         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
13341
13342 2011-05-23  Bruno Haible  <bruno@clisp.org>
13343
13344         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
13345         * m4/gc-pbkdf2-sha1.m4: Remove file.
13346         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
13347         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
13348         (Makefile.am): Augment lib_SOURCES.
13349
13350 2011-05-23  Bruno Haible  <bruno@clisp.org>
13351
13352         fts: Move AC_LIBOBJ invocations to module description.
13353         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
13354         * modules/fts (configure.ac): ... to here.
13355
13356 2011-05-23  Bruno Haible  <bruno@clisp.org>
13357
13358         file-type: Move AC_LIBOBJ invocations to module description.
13359         * m4/file-type.m4: Remove file.
13360         * modules/file-type (Files): Remove it.
13361         (configure.ac): Remove gl_FILE_TYPE call.
13362         (Makefile.am): Augment lib_SOURCES.
13363
13364 2011-05-23  Bruno Haible  <bruno@clisp.org>
13365
13366         filenamecat*: Respect rules for use of AC_LIBOBJ.
13367         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
13368         Remove AC_LIBOBJ invocation.
13369         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
13370         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
13371
13372 2011-05-23  Bruno Haible  <bruno@clisp.org>
13373
13374         filemode: Move AC_LIBOBJ invocations to module description.
13375         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
13376         * modules/filemode (Makefile.am): Augment lib_SOURCES.
13377
13378 2011-05-23  Bruno Haible  <bruno@clisp.org>
13379
13380         openat-safer: Move AC_LIBOBJ invocations to module description.
13381         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
13382         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
13383
13384 2011-05-23  Bruno Haible  <bruno@clisp.org>
13385
13386         fcntl-safer: Move AC_LIBOBJ invocations to module description.
13387         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
13388         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
13389
13390 2011-05-23  Bruno Haible  <bruno@clisp.org>
13391
13392         exclude: Move AC_LIBOBJ invocations to module description.
13393         * m4/exclude.m4: Remove file.
13394         * modules/exclude (Files): Remove it.
13395         (configure.ac): Remove gl_EXCLUDE call.
13396         (Makefile.am): Augment lib_SOURCES.
13397
13398 2011-05-23  Bruno Haible  <bruno@clisp.org>
13399
13400         dirname*: Respect rules for use of AC_LIBOBJ.
13401         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
13402         invocations.
13403         * modules/dirname (Makefile.am): Augment lib_SOURCES.
13404         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
13405
13406 2011-05-23  Bruno Haible  <bruno@clisp.org>
13407
13408         dirent-safer: Move AC_LIBOBJ invocations to module description.
13409         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
13410         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
13411
13412 2011-05-23  Bruno Haible  <bruno@clisp.org>
13413
13414         crypto/des: Move AC_LIBOBJ invocations to module description.
13415         * m4/des.m4: Remove file.
13416         * modules/crypto/des (Files): Remove it.
13417         (configure.ac): Remove gl_DES call.
13418         (Makefile.am): Augment lib_SOURCES.
13419
13420 2011-05-23  Bruno Haible  <bruno@clisp.org>
13421
13422         cycle-check: Move AC_LIBOBJ invocations to module description.
13423         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
13424         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
13425
13426 2011-05-23  Bruno Haible  <bruno@clisp.org>
13427
13428         c-strtold: Move AC_LIBOBJ invocations to module description.
13429         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
13430         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
13431
13432 2011-05-23  Bruno Haible  <bruno@clisp.org>
13433
13434         c-strtod: Move AC_LIBOBJ invocations to module description.
13435         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
13436         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
13437
13438 2011-05-23  Bruno Haible  <bruno@clisp.org>
13439
13440         crc: Move AC_LIBOBJ invocations to module description.
13441         * m4/crc.m4: Remove file.
13442         * modules/crc (Files): Remove it.
13443         (configure.ac): Remove gl_CRC call.
13444         (Makefile.am): Augment lib_SOURCES.
13445
13446 2011-05-23  Bruno Haible  <bruno@clisp.org>
13447
13448         close-stream: Move AC_LIBOBJ invocations to module description.
13449         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
13450         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
13451
13452 2011-05-23  Bruno Haible  <bruno@clisp.org>
13453
13454         closeout: Move AC_LIBOBJ invocations to module description.
13455         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
13456         * modules/closeout (Makefile.am): Augment lib_SOURCES.
13457
13458 2011-05-23  Bruno Haible  <bruno@clisp.org>
13459
13460         closein: Move AC_LIBOBJ invocations to module description.
13461         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
13462         * modules/closein (Makefile.am): Augment lib_SOURCES.
13463
13464 2011-05-23  Bruno Haible  <bruno@clisp.org>
13465
13466         cloexec: Move AC_LIBOBJ invocations to module description.
13467         * m4/cloexec.m4: Remove file.
13468         * modules/cloexec (Files): Remove it.
13469         (configure.ac): Remove gl_CLOEXEC call.
13470         (Makefile.am): Augment lib_SOURCES.
13471
13472 2011-05-23  Bruno Haible  <bruno@clisp.org>
13473
13474         check-version: Move AC_LIBOBJ invocations to module description.
13475         * m4/check-version.m4: Remove file.
13476         * modules/check-version (Files): Remove it.
13477         (configure.ac): Remove gl_CHECK_VERSION call.
13478         (Makefile.am): Augment lib_SOURCES.
13479
13480 2011-05-23  Bruno Haible  <bruno@clisp.org>
13481
13482         chdir-safer: Move AC_LIBOBJ invocations to module description.
13483         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
13484         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
13485
13486 2011-05-23  Bruno Haible  <bruno@clisp.org>
13487
13488         canonicalize: Move AC_LIBOBJ invocations to module description.
13489         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
13490         AC_LIBOBJ invocation.
13491         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
13492
13493 2011-05-23  Bruno Haible  <bruno@clisp.org>
13494
13495         canon-host: Move AC_LIBOBJ invocations to module description.
13496         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
13497         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
13498         instead of gl_CANON_HOST.
13499         (Makefile.am): Augment lib_SOURCES.
13500
13501 2011-05-23  Bruno Haible  <bruno@clisp.org>
13502
13503         backupfile: Move AC_LIBOBJ invocations to module description.
13504         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
13505         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
13506
13507 2011-05-23  Bruno Haible  <bruno@clisp.org>
13508
13509         argmatch: Move AC_LIBOBJ invocations to module description.
13510         * m4/argmatch.m4: Remove file.
13511         * modules/argmatch (Files): Remove it.
13512         (configure.ac): Remove gl_ARGMATCH call.
13513         (Makefile.am): Augment lib_SOURCES.
13514
13515 2011-05-23  Bruno Haible  <bruno@clisp.org>
13516
13517         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
13518         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
13519         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
13520
13521 2011-05-23  Bruno Haible  <bruno@clisp.org>
13522
13523         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
13524         * m4/arcfour.m4: Remove file.
13525         * modules/crypto/arcfour (Files): Remove it.
13526         (configure.ac): Remove gl_ARCFOUR call.
13527         (Makefile.am): Augment lib_SOURCES.
13528
13529 2011-05-22  Bruno Haible  <bruno@clisp.org>
13530
13531         write: Move AC_LIBOBJ invocations to module description.
13532         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
13533         * modules/write (configure.ac): ... to here.
13534
13535 2011-05-22  Bruno Haible  <bruno@clisp.org>
13536
13537         wmemset: Move AC_LIBOBJ invocations to module description.
13538         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
13539         here...
13540         * modules/wmemset (configure.ac): ... to here.
13541
13542 2011-05-22  Bruno Haible  <bruno@clisp.org>
13543
13544         wmemmove: Move AC_LIBOBJ invocations to module description.
13545         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
13546         here...
13547         * modules/wmemmove (configure.ac): ... to here.
13548
13549 2011-05-22  Bruno Haible  <bruno@clisp.org>
13550
13551         wmemcpy: Move AC_LIBOBJ invocations to module description.
13552         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
13553         here...
13554         * modules/wmemcpy (configure.ac): ... to here.
13555
13556 2011-05-22  Bruno Haible  <bruno@clisp.org>
13557
13558         wmemcmp: Move AC_LIBOBJ invocations to module description.
13559         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
13560         here...
13561         * modules/wmemcmp (configure.ac): ... to here.
13562
13563 2011-05-22  Bruno Haible  <bruno@clisp.org>
13564
13565         wmemchr: Move AC_LIBOBJ invocations to module description.
13566         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
13567         here...
13568         * modules/wmemchr (configure.ac): ... to here.
13569
13570 2011-05-22  Bruno Haible  <bruno@clisp.org>
13571
13572         wcswidth: Move AC_LIBOBJ invocations to module description.
13573         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
13574         here...
13575         * modules/wcswidth (configure.ac): ... to here.
13576
13577 2011-05-22  Bruno Haible  <bruno@clisp.org>
13578
13579         wcwidth: Respect rules for use of AC_LIBOBJ.
13580         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
13581         invocation from here...
13582         * modules/wcwidth (configure.ac): ... to here.
13583         (Depends-on): Update conditions.
13584
13585 2011-05-22  Bruno Haible  <bruno@clisp.org>
13586
13587         wctype: Move AC_LIBOBJ invocations to module description.
13588         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
13589         invocation from here...
13590         * modules/wctype (configure.ac): ... to here.
13591         (Depends-on): Update conditions.
13592
13593 2011-05-22  Bruno Haible  <bruno@clisp.org>
13594
13595         wctrans: Move AC_LIBOBJ invocations to module description.
13596         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
13597         invocation from here...
13598         * modules/wctrans (configure.ac): ... to here.
13599
13600 2011-05-22  Bruno Haible  <bruno@clisp.org>
13601
13602         wctomb: Move AC_LIBOBJ invocations to module description.
13603         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
13604         invocations from here...
13605         * modules/wctomb (configure.ac): ... to here.
13606
13607 2011-05-22  Bruno Haible  <bruno@clisp.org>
13608
13609         wctob: Move AC_LIBOBJ invocations to module description.
13610         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
13611         gl_PREREQ_WCTOB invocations from here...
13612         * modules/wctob (configure.ac): ... to here.
13613         (Depends-on): Update conditions.
13614
13615 2011-05-22  Bruno Haible  <bruno@clisp.org>
13616
13617         wcsxfrm: Move AC_LIBOBJ invocations to module description.
13618         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
13619         here...
13620         * modules/wcsxfrm (configure.ac): ... to here.
13621
13622 2011-05-22  Bruno Haible  <bruno@clisp.org>
13623
13624         wcstok: Move AC_LIBOBJ invocations to module description.
13625         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
13626         * modules/wcstok (configure.ac): ... to here.
13627
13628 2011-05-22  Bruno Haible  <bruno@clisp.org>
13629
13630         wcsstr: Move AC_LIBOBJ invocations to module description.
13631         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
13632         * modules/wcsstr (configure.ac): ... to here.
13633
13634 2011-05-22  Bruno Haible  <bruno@clisp.org>
13635
13636         wcsspn: Move AC_LIBOBJ invocations to module description.
13637         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
13638         * modules/wcsspn (configure.ac): ... to here.
13639
13640 2011-05-22  Bruno Haible  <bruno@clisp.org>
13641
13642         wcsrtombs: Move AC_LIBOBJ invocations to module description.
13643         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
13644         gl_PREREQ_WCSRTOMBS invocations from here...
13645         * modules/wcsrtombs (configure.ac): ... to here.
13646
13647 2011-05-22  Bruno Haible  <bruno@clisp.org>
13648
13649         wcsrchr: Move AC_LIBOBJ invocations to module description.
13650         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
13651         here...
13652         * modules/wcsrchr (configure.ac): ... to here.
13653
13654 2011-05-22  Bruno Haible  <bruno@clisp.org>
13655
13656         wcspbrk: Move AC_LIBOBJ invocations to module description.
13657         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
13658         here...
13659         * modules/wcspbrk (configure.ac): ... to here.
13660
13661 2011-05-22  Bruno Haible  <bruno@clisp.org>
13662
13663         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
13664         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
13665         gl_PREREQ_WCSNRTOMBS invocations from here...
13666         * modules/wcsnrtombs (configure.ac): ... to here.
13667
13668 2011-05-22  Bruno Haible  <bruno@clisp.org>
13669
13670         wcsnlen: Move AC_LIBOBJ invocations to module description.
13671         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
13672         here...
13673         * modules/wcsnlen (configure.ac): ... to here.
13674
13675 2011-05-22  Bruno Haible  <bruno@clisp.org>
13676
13677         wcsncpy: Move AC_LIBOBJ invocations to module description.
13678         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
13679         here...
13680         * modules/wcsncpy (configure.ac): ... to here.
13681
13682 2011-05-22  Bruno Haible  <bruno@clisp.org>
13683
13684         wcsncmp: Move AC_LIBOBJ invocations to module description.
13685         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
13686         here...
13687         * modules/wcsncmp (configure.ac): ... to here.
13688
13689 2011-05-22  Bruno Haible  <bruno@clisp.org>
13690
13691         wcsncat: Move AC_LIBOBJ invocations to module description.
13692         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
13693         here...
13694         * modules/wcsncat (configure.ac): ... to here.
13695
13696 2011-05-22  Bruno Haible  <bruno@clisp.org>
13697
13698         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
13699         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
13700         from here...
13701         * modules/wcsncasecmp (configure.ac): ... to here.
13702
13703 2011-05-22  Bruno Haible  <bruno@clisp.org>
13704
13705         wcslen: Move AC_LIBOBJ invocations to module description.
13706         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
13707         * modules/wcslen (configure.ac): ... to here.
13708
13709 2011-05-22  Bruno Haible  <bruno@clisp.org>
13710
13711         wcsdup: Move AC_LIBOBJ invocations to module description.
13712         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
13713         * modules/wcsdup (configure.ac): ... to here.
13714
13715 2011-05-22  Bruno Haible  <bruno@clisp.org>
13716
13717         wcscspn: Move AC_LIBOBJ invocations to module description.
13718         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
13719         here...
13720         * modules/wcscspn (configure.ac): ... to here.
13721
13722 2011-05-22  Bruno Haible  <bruno@clisp.org>
13723
13724         wcscpy: Move AC_LIBOBJ invocations to module description.
13725         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
13726         * modules/wcscpy (configure.ac): ... to here.
13727
13728 2011-05-22  Bruno Haible  <bruno@clisp.org>
13729
13730         wcscoll: Move AC_LIBOBJ invocations to module description.
13731         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
13732         here...
13733         * modules/wcscoll (configure.ac): ... to here.
13734
13735 2011-05-22  Bruno Haible  <bruno@clisp.org>
13736
13737         wcscmp: Move AC_LIBOBJ invocations to module description.
13738         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
13739         * modules/wcscmp (configure.ac): ... to here.
13740
13741 2011-05-22  Bruno Haible  <bruno@clisp.org>
13742
13743         wcschr: Move AC_LIBOBJ invocations to module description.
13744         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
13745         * modules/wcschr (configure.ac): ... to here.
13746
13747 2011-05-22  Bruno Haible  <bruno@clisp.org>
13748
13749         wcscat: Move AC_LIBOBJ invocations to module description.
13750         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
13751         * modules/wcscat (configure.ac): ... to here.
13752
13753 2011-05-22  Bruno Haible  <bruno@clisp.org>
13754
13755         wcscasecmp: Move AC_LIBOBJ invocations to module description.
13756         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
13757         here...
13758         * modules/wcscasecmp (configure.ac): ... to here.
13759
13760 2011-05-22  Bruno Haible  <bruno@clisp.org>
13761
13762         wcrtomb: Move AC_LIBOBJ invocations to module description.
13763         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
13764         invocations from here...
13765         * modules/wcrtomb (configure.ac): ... to here.
13766
13767 2011-05-22  Bruno Haible  <bruno@clisp.org>
13768
13769         wcpncpy: Move AC_LIBOBJ invocations to module description.
13770         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
13771         here...
13772         * modules/wcpncpy (configure.ac): ... to here.
13773
13774 2011-05-22  Bruno Haible  <bruno@clisp.org>
13775
13776         wcpcpy: Move AC_LIBOBJ invocations to module description.
13777         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
13778         * modules/wcpcpy (configure.ac): ... to here.
13779
13780 2011-05-22  Bruno Haible  <bruno@clisp.org>
13781
13782         waitpid: Move AC_LIBOBJ invocations to module description.
13783         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
13784         invocation from here...
13785         * modules/waitpid (configure.ac): ... to here.
13786
13787 2011-05-22  Bruno Haible  <bruno@clisp.org>
13788
13789         utimensat: Move AC_LIBOBJ invocations to module description.
13790         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
13791         here...
13792         * modules/utimensat (configure.ac): ... to here.
13793
13794 2011-05-22  Bruno Haible  <bruno@clisp.org>
13795
13796         usleep: Move AC_LIBOBJ invocations to module description.
13797         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
13798         here...
13799         * modules/usleep (configure.ac): ... to here.
13800
13801 2011-05-22  Bruno Haible  <bruno@clisp.org>
13802
13803         unlockpt: Move AC_LIBOBJ invocations to module description.
13804         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
13805         gl_PREREQ_UNLOCKPT invocations from here...
13806         * modules/unlockpt (configure.ac): ... to here.
13807
13808 2011-05-22  Bruno Haible  <bruno@clisp.org>
13809
13810         unlink: Respect rules for use of AC_LIBOBJ.
13811         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
13812         * modules/unlink (configure.ac): ... to here.
13813
13814 2011-05-22  Bruno Haible  <bruno@clisp.org>
13815
13816         uname: Move AC_LIBOBJ invocations to module description.
13817         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
13818         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
13819         here...
13820         * modules/uname (configure.ac): ... to here.
13821
13822 2011-05-22  Bruno Haible  <bruno@clisp.org>
13823
13824         ttyname_r: Move AC_LIBOBJ invocations to module description.
13825         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
13826         gl_PREREQ_TTYNAME_R invocations from here...
13827         * modules/ttyname_r (configure.ac): ... to here.
13828
13829 2011-05-22  Bruno Haible  <bruno@clisp.org>
13830
13831         tsearch: Move AC_LIBOBJ invocations to module description.
13832         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
13833         invocations from here...
13834         * modules/tsearch (configure.ac): ... to here.
13835
13836 2011-05-22  Bruno Haible  <bruno@clisp.org>
13837
13838         towctrans: Move AC_LIBOBJ invocations to module description.
13839         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
13840         AC_LIBOBJ invocation from here...
13841         * modules/towctrans (configure.ac): ... to here.
13842
13843 2011-05-22  Bruno Haible  <bruno@clisp.org>
13844
13845         tmpfile: Move AC_LIBOBJ invocations to module description.
13846         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
13847         invocations from here...
13848         * modules/tmpfile (configure.ac): ... to here.
13849
13850 2011-05-22  Bruno Haible  <bruno@clisp.org>
13851
13852         times: Move AC_LIBOBJ invocations to module description.
13853         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
13854         * modules/times (configure.ac): ... to here.
13855
13856 2011-05-22  Bruno Haible  <bruno@clisp.org>
13857
13858         time_r: Move AC_LIBOBJ invocations to module description.
13859         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
13860         invocations from here...
13861         * modules/time_r (configure.ac): ... to here.
13862
13863 2011-05-22  Bruno Haible  <bruno@clisp.org>
13864
13865         timegm: Move AC_LIBOBJ invocations to module description.
13866         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
13867         invocations from here...
13868         * modules/timegm (configure.ac): ... to here.
13869
13870 2011-05-22  Bruno Haible  <bruno@clisp.org>
13871
13872         tcgetsid: Move AC_LIBOBJ invocations to module description.
13873         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
13874         and gl_PREREQ_TCGETSID invocations from here...
13875         * modules/tcgetsid (configure.ac): ... to here.
13876         (Depends-on): Update conditions.
13877
13878 2011-05-22  Bruno Haible  <bruno@clisp.org>
13879
13880         symlinkat: Move AC_LIBOBJ invocations to module description.
13881         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
13882         here...
13883         * modules/symlinkat (configure.ac): ... to here.
13884
13885 2011-05-22  Bruno Haible  <bruno@clisp.org>
13886
13887         symlink: Move AC_LIBOBJ invocations to module description.
13888         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
13889         here...
13890         * modules/symlink (configure.ac): ... to here.
13891
13892 2011-05-22  Bruno Haible  <bruno@clisp.org>
13893
13894         strverscmp: Move AC_LIBOBJ invocations to module description.
13895         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
13896         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
13897         from here...
13898         * modules/strverscmp (configure.ac): ... to here.
13899
13900 2011-05-22  Bruno Haible  <bruno@clisp.org>
13901
13902         strtok_r: Move AC_LIBOBJ invocations to module description.
13903         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
13904         and gl_PREREQ_STRTOK_R invocations from here...
13905         * modules/strtok_r (configure.ac): ... to here.
13906         (Depends-on): Update conditions.
13907
13908 2011-05-22  Bruno Haible  <bruno@clisp.org>
13909
13910         strtoumax: Move AC_LIBOBJ invocations to module description.
13911         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
13912         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
13913         from here...
13914         * modules/strtoumax (configure.ac): ... to here.
13915
13916 2011-05-22  Bruno Haible  <bruno@clisp.org>
13917
13918         strtoimax: Move AC_LIBOBJ invocations to module description.
13919         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
13920         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
13921         from here...
13922         * modules/strtoimax (configure.ac): ... to here.
13923
13924 2011-05-22  Bruno Haible  <bruno@clisp.org>
13925
13926         strtoull: Move AC_LIBOBJ invocations to module description.
13927         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
13928         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
13929         from here...
13930         * modules/strtoull (configure.ac): ... to here.
13931
13932 2011-05-22  Bruno Haible  <bruno@clisp.org>
13933
13934         strtoll: Move AC_LIBOBJ invocations to module description.
13935         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
13936         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
13937         here...
13938         * modules/strtoll (configure.ac): ... to here.
13939
13940 2011-05-22  Bruno Haible  <bruno@clisp.org>
13941
13942         strtoul: Move AC_LIBOBJ invocations to module description.
13943         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
13944         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
13945         * modules/strtoul (configure.ac): ... to here.
13946
13947 2011-05-22  Bruno Haible  <bruno@clisp.org>
13948
13949         strtol: Move AC_LIBOBJ invocations to module description.
13950         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
13951         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
13952         * modules/strtol (configure.ac): ... to here.
13953
13954 2011-05-22  Bruno Haible  <bruno@clisp.org>
13955
13956         strtod: Move AC_LIBOBJ invocations to module description.
13957         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
13958         invocations from here...
13959         * modules/strtod (configure.ac): ... to here.
13960
13961 2011-05-22  Bruno Haible  <bruno@clisp.org>
13962
13963         strstr*: Move AC_LIBOBJ invocations to module description.
13964         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
13965         invocations from here...
13966         * modules/strstr-simple (configure.ac): ... to here.
13967         * modules/strstr (configure.ac): ... and here.
13968
13969 2011-05-22  Bruno Haible  <bruno@clisp.org>
13970
13971         strsignal: Move AC_LIBOBJ invocations to module description.
13972         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
13973         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
13974         * modules/strsignal (configure.ac): ... to here.
13975         (Depends-on): Update conditions.
13976
13977 2011-05-22  Bruno Haible  <bruno@clisp.org>
13978
13979         strsep: Move AC_LIBOBJ invocations to module description.
13980         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
13981         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
13982         here...
13983         * modules/strsep (configure.ac): ... to here.
13984
13985 2011-05-22  Bruno Haible  <bruno@clisp.org>
13986
13987         strptime: Move AC_LIBOBJ invocations to module description.
13988         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
13989         gl_PREREQ_STRPTIME invocations from here...
13990         * modules/strptime (configure.ac): ... to here.
13991
13992 2011-05-22  Bruno Haible  <bruno@clisp.org>
13993
13994         strpbrk: Move AC_LIBOBJ invocations to module description.
13995         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
13996         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
13997         here...
13998         * modules/strpbrk (configure.ac): ... to here.
13999
14000 2011-05-22  Bruno Haible  <bruno@clisp.org>
14001
14002         strnlen: Move AC_LIBOBJ invocations to module description.
14003         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
14004         invocations from here...
14005         * modules/strnlen (configure.ac): ... to here.
14006
14007 2011-05-22  Bruno Haible  <bruno@clisp.org>
14008
14009         strndup: Move AC_LIBOBJ invocations to module description.
14010         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
14011         invocations from here...
14012         * modules/strndup (configure.ac): ... to here.
14013         (Depends-on): Update conditions.
14014
14015 2011-05-22  Bruno Haible  <bruno@clisp.org>
14016
14017         strncat: Move AC_LIBOBJ invocations to module description.
14018         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
14019         invocations from here...
14020         * modules/strncat (configure.ac): ... to here.
14021
14022 2011-05-22  Bruno Haible  <bruno@clisp.org>
14023
14024         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
14025         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
14026         invocations from here...
14027         * modules/strdup (configure.ac): ... to here.
14028         * modules/strdup-posix (configure.ac): ... and here.
14029
14030 2011-05-22  Bruno Haible  <bruno@clisp.org>
14031
14032         strcspn: Move AC_LIBOBJ invocations to module description.
14033         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
14034         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
14035         here...
14036         * modules/strcspn (configure.ac): ... to here.
14037
14038 2011-05-22  Bruno Haible  <bruno@clisp.org>
14039
14040         strchrnul: Move AC_LIBOBJ invocations to module description.
14041         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
14042         gl_PREREQ_STRCHRNUL invocations from here...
14043         * modules/strchrnul (configure.ac): ... to here.
14044
14045 2011-05-22  Bruno Haible  <bruno@clisp.org>
14046
14047         strcasestr*: Move AC_LIBOBJ invocations to module description.
14048         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
14049         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
14050         * modules/strcasestr-simple (configure.ac): ... to here.
14051         * modules/strcasestr (configure.ac): ... and here.
14052
14053 2011-05-22  Bruno Haible  <bruno@clisp.org>
14054
14055         strcase: Move AC_LIBOBJ invocations to module description.
14056         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
14057         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
14058         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
14059         gl_PREREQ_STRNCASECMP invocations from here...
14060         * modules/strcase (configure.ac): ... to here.
14061
14062 2011-05-22  Bruno Haible  <bruno@clisp.org>
14063
14064         stpncpy: Move AC_LIBOBJ invocations to module description.
14065         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
14066         here...
14067         * modules/stpncpy (configure.ac): ... to here.
14068
14069 2011-05-22  Bruno Haible  <bruno@clisp.org>
14070
14071         stpcpy: Move AC_LIBOBJ invocations to module description.
14072         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
14073         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
14074         here...
14075         * modules/stpcpy (configure.ac): ... to here.
14076
14077 2011-05-21  Bruno Haible  <bruno@clisp.org>
14078
14079         stat: Move AC_LIBOBJ invocations to module description.
14080         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
14081         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
14082         here...
14083         * modules/stat (configure.ac): ... to here.
14084
14085 2011-05-21  Bruno Haible  <bruno@clisp.org>
14086
14087         sleep: Move AC_LIBOBJ invocations to module description.
14088         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
14089         * modules/sleep (configure.ac): ... to here.
14090
14091 2011-05-21  Bruno Haible  <bruno@clisp.org>
14092
14093         signbit: Move AC_LIBOBJ invocations to module description.
14094         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
14095         * modules/signbit (configure.ac): ... to here.
14096
14097 2011-05-21  Bruno Haible  <bruno@clisp.org>
14098
14099         sigprocmask: Move AC_LIBOBJ invocations to module description.
14100         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
14101         gl_PREREQ_SIGPROMASK invocations from here...
14102         * modules/sigprocmask (configure.ac): ... to here.
14103
14104 2011-05-21  Bruno Haible  <bruno@clisp.org>
14105
14106         sigaction: Move AC_LIBOBJ invocations to module description.
14107         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
14108         gl_PREREQ_SIGACTION invocations from here...
14109         * modules/sigaction (configure.ac): ... to here.
14110
14111 2011-05-21  Bruno Haible  <bruno@clisp.org>
14112
14113         sig2str: Move AC_LIBOBJ invocations to module description.
14114         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
14115         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
14116         here...
14117         * modules/sig2str (configure.ac): ... to here.
14118
14119 2011-05-21  Bruno Haible  <bruno@clisp.org>
14120
14121         setlocale: Move AC_LIBOBJ invocations to module description.
14122         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
14123         gl_PREREQ_SETLOCALE invocations from here...
14124         * modules/setlocale (configure.ac): ... to here.
14125
14126 2011-05-21  Bruno Haible  <bruno@clisp.org>
14127
14128         unsetenv: Move AC_LIBOBJ invocations to module description.
14129         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
14130         and gl_PREREQ_UNSETENV invocations from here...
14131         * modules/unsetenv (configure.ac): ... to here.
14132         (Depends-on): Update.
14133
14134 2011-05-21  Bruno Haible  <bruno@clisp.org>
14135
14136         setenv: Move AC_LIBOBJ invocations to module description.
14137         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
14138         here...
14139         * modules/setenv (configure.ac): ... to here.
14140
14141 2011-05-21  Bruno Haible  <bruno@clisp.org>
14142
14143         selinux-h: Move AC_LIBOBJ invocations to module description.
14144         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
14145         AC_LIBOBJ invocation from here...
14146         * modules/selinux-h (configure.ac): ... to here.
14147
14148 2011-05-21  Bruno Haible  <bruno@clisp.org>
14149
14150         select: Respect rules for use of AC_LIBOBJ.
14151         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
14152         here...
14153         * modules/select (configure.ac): ... to here.
14154
14155 2011-05-21  Bruno Haible  <bruno@clisp.org>
14156
14157         scandir: Move AC_LIBOBJ invocations to module description.
14158         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
14159         invocations from here...
14160         * modules/scandir (configure.ac): ... to here.
14161
14162 2011-05-21  Bruno Haible  <bruno@clisp.org>
14163
14164         rpmatch: Move AC_LIBOBJ invocations to module description.
14165         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
14166         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
14167         here...
14168         * modules/rpmatch (configure.ac): ... to here.
14169
14170 2011-05-21  Bruno Haible  <bruno@clisp.org>
14171
14172         rmdir: Respect rules for use of AC_LIBOBJ.
14173         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
14174         * modules/rmdir (configure.ac): ... to here.
14175
14176 2011-05-21  Bruno Haible  <bruno@clisp.org>
14177
14178         renameat: Move AC_LIBOBJ invocations to module description.
14179         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
14180         here...
14181         * modules/renameat (configure.ac): ... to here.
14182
14183 2011-05-21  Bruno Haible  <bruno@clisp.org>
14184
14185         rename: Respect rules for use of AC_LIBOBJ.
14186         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
14187         here...
14188         * modules/rename (configure.ac): ... to here.
14189
14190 2011-05-21  Bruno Haible  <bruno@clisp.org>
14191
14192         remove: Move AC_LIBOBJ invocations to module description.
14193         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
14194         here...
14195         * modules/remove (configure.ac): ... to here.
14196
14197 2011-05-21  Bruno Haible  <bruno@clisp.org>
14198
14199         relocatable-lib: Move AC_LIBOBJ invocations to module description.
14200         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
14201         macro.
14202         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
14203         * modules/relocatable-lib (configure.ac): ... to here.
14204         * modules/relocatable-prog-wrapper (configure.ac): Invoke
14205         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
14206
14207 2011-05-21  Bruno Haible  <bruno@clisp.org>
14208
14209         relocatable-prog: Move AC_LIBOBJ invocations to module description.
14210         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
14211         here...
14212         * modules/relocatable-prog (configure.ac): ... to here.
14213
14214 2011-05-21  Bruno Haible  <bruno@clisp.org>
14215
14216         regex: Move AC_LIBOBJ invocations to module description.
14217         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
14218         invocations from here...
14219         * modules/regex (configure.ac): ... to here.
14220
14221 2011-05-21  Bruno Haible  <bruno@clisp.org>
14222
14223         realloc-*: Move AC_LIBOBJ invocations to module description.
14224         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
14225         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
14226         AC_LIBOBJ invocations from here...
14227         * modules/realloc-gnu (configure.ac): ... to here.
14228         * modules/realloc-posix (configure.ac): ... and here.
14229
14230 2011-05-21  Bruno Haible  <bruno@clisp.org>
14231
14232         readutmp: Move AC_LIBOBJ invocations to module description.
14233         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
14234         * modules/readutmp (configure.ac): ... to here.
14235
14236 2011-05-21  Bruno Haible  <bruno@clisp.org>
14237
14238         readlinkat: Move AC_LIBOBJ invocations to module description.
14239         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
14240         here...
14241         * modules/readlinkat (configure.ac): ... to here.
14242
14243 2011-05-21  Bruno Haible  <bruno@clisp.org>
14244
14245         readlink: Move AC_LIBOBJ invocations to module description.
14246         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
14247         gl_PREREQ_READLINK invocations from here...
14248         * modules/readlink (configure.ac): ... to here.
14249
14250 2011-05-21  Bruno Haible  <bruno@clisp.org>
14251
14252         readline: Move AC_LIBOBJ invocations to module description.
14253         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
14254         gl_PREREQ_READLINE invocations from here...
14255         * modules/readline (configure.ac): ... to here.
14256
14257 2011-05-21  Bruno Haible  <bruno@clisp.org>
14258
14259         read: Move AC_LIBOBJ invocations to module description.
14260         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
14261         * modules/read (configure.ac): ... to here.
14262
14263 2011-05-21  Bruno Haible  <bruno@clisp.org>
14264
14265         rawmemchr: Move AC_LIBOBJ invocations to module description.
14266         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
14267         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
14268         from here...
14269         * modules/rawmemchr (configure.ac): ... to here.
14270
14271 2011-05-21  Bruno Haible  <bruno@clisp.org>
14272
14273         random_r: Move AC_LIBOBJ invocations to module description.
14274         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
14275         gl_PREREQ_RANDOM_R invocations from here...
14276         * modules/random_r (configure.ac): ... to here.
14277
14278 2011-05-21  Bruno Haible  <bruno@clisp.org>
14279
14280         pwrite: Move AC_LIBOBJ invocations to module description.
14281         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
14282         * modules/pwrite (configure.ac): ... to here.
14283
14284 2011-05-21  Bruno Haible  <bruno@clisp.org>
14285
14286         putenv: Move AC_LIBOBJ invocations to module description.
14287         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
14288         * modules/putenv (configure.ac): ... to here.
14289
14290 2011-05-21  Bruno Haible  <bruno@clisp.org>
14291
14292         login_tty: Move AC_LIBOBJ invocations to module description.
14293         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
14294         * modules/login_tty (configure.ac): ... to here.
14295
14296 2011-05-21  Bruno Haible  <bruno@clisp.org>
14297
14298         openpty: Move AC_LIBOBJ invocations to module description.
14299         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
14300         * modules/openpty (configure.ac): ... to here.
14301
14302 2011-05-21  Bruno Haible  <bruno@clisp.org>
14303
14304         forkpty: Move AC_LIBOBJ invocations to module description.
14305         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
14306         * modules/forkpty (configure.ac): ... to here.
14307
14308 2011-05-21  Bruno Haible  <bruno@clisp.org>
14309
14310         ptsname: Move AC_LIBOBJ invocations to module description.
14311         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
14312         invocations from here...
14313         * modules/ptsname (configure.ac): ... to here.
14314
14315 2011-05-21  Bruno Haible  <bruno@clisp.org>
14316
14317         pread: Move AC_LIBOBJ invocations to module description.
14318         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
14319         * modules/pread (configure.ac): ... to here.
14320
14321 2011-05-21  Bruno Haible  <bruno@clisp.org>
14322
14323         posix_spawn*: Move AC_LIBOBJ invocations to module description.
14324         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
14325         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
14326         * modules/posix_spawn (configure.ac): ... to here.
14327         * modules/posix_spawnp (configure.ac): ... and here.
14328
14329 2011-05-21  Bruno Haible  <bruno@clisp.org>
14330
14331         popen: Move AC_LIBOBJ invocations to module description.
14332         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
14333         invocations from here...
14334         * modules/popen (configure.ac): ... to here.
14335
14336 2011-05-21  Bruno Haible  <bruno@clisp.org>
14337
14338         poll: Move AC_LIBOBJ invocations to module description.
14339         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
14340         invocations from here...
14341         * modules/poll (configure.ac): ... to here.
14342
14343 2011-05-21  Bruno Haible  <bruno@clisp.org>
14344
14345         pipe-posix: Move AC_LIBOBJ invocations to module description.
14346         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
14347         * modules/pipe-posix (configure.ac): ... to here.
14348
14349 2011-05-21  Bruno Haible  <bruno@clisp.org>
14350
14351         openat: Respect rules for use of AC_LIBOBJ.
14352         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
14353         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
14354         * modules/openat (configure.ac): ... to here.
14355
14356 2011-05-21  Bruno Haible  <bruno@clisp.org>
14357
14358         obstack-printf*: Move AC_LIBOBJ invocations to module description.
14359         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
14360         invocation from here...
14361         * modules/obstack-printf (configure.ac): ... to here.
14362         * modules/obstack-printf-posix (configure.ac): ... and here.
14363
14364 2011-05-21  Bruno Haible  <bruno@clisp.org>
14365
14366         nl_langinfo: Move AC_LIBOBJ invocations to module description.
14367         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
14368         from here...
14369         * modules/nl_langinfo (configure.ac): ... to here.
14370
14371 2011-05-21  Bruno Haible  <bruno@clisp.org>
14372
14373         nanosleep: Move AC_LIBOBJ invocations to module description.
14374         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
14375         gl_PREREQ_NANOSLEEP invocations from here...
14376         * modules/nanosleep (configure.ac): ... to here.
14377
14378 2011-05-21  Bruno Haible  <bruno@clisp.org>
14379
14380         mountlist: Move AC_LIBOBJ invocations to module description.
14381         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
14382         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
14383         * modules/mountlist (configure.ac): ... to here.
14384
14385 2011-05-21  Bruno Haible  <bruno@clisp.org>
14386
14387         mktime: Respect rules for use of AC_LIBOBJ.
14388         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
14389         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
14390         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
14391         (gl_FUNC_MKTIME_INTERNAL): ... and here...
14392         * modules/mktime (configure.ac): ... to here.
14393         * modules/mktime-internal (configure.ac): ... and here.
14394         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
14395
14396 2011-05-21  Bruno Haible  <bruno@clisp.org>
14397
14398         mkstemps: Move AC_LIBOBJ invocations to module description.
14399         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
14400         here...
14401         * modules/mkstemps (configure.ac): ... to here.
14402
14403 2011-05-21  Bruno Haible  <bruno@clisp.org>
14404
14405         mkstemp: Move AC_LIBOBJ invocations to module description.
14406         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
14407         gl_PREREQ_MKSTEMP invocations from here...
14408         * modules/mkstemp (configure.ac): ... to here.
14409
14410 2011-05-21  Bruno Haible  <bruno@clisp.org>
14411
14412         mkostemps: Move AC_LIBOBJ invocations to module description.
14413         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
14414         here...
14415         * modules/mkostemps (configure.ac): ... to here.
14416
14417 2011-05-21  Bruno Haible  <bruno@clisp.org>
14418
14419         mkostemp: Move AC_LIBOBJ invocations to module description.
14420         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
14421         gl_PREREQ_MKOSTEMP invocations from here...
14422         * modules/mkostemp (configure.ac): ... to here.
14423
14424 2011-05-21  Bruno Haible  <bruno@clisp.org>
14425
14426         mknod: Move AC_LIBOBJ invocations to module description.
14427         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
14428         * modules/mknod (configure.ac): ... to here.
14429
14430 2011-05-21  Bruno Haible  <bruno@clisp.org>
14431
14432         mkfifoat: Move AC_LIBOBJ invocations to module description.
14433         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
14434         here...
14435         * modules/mkfifoat (configure.ac): ... to here.
14436
14437 2011-05-21  Bruno Haible  <bruno@clisp.org>
14438
14439         mkfifo: Respect rules for use of AC_LIBOBJ.
14440         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
14441         here...
14442         * modules/mkfifo (configure.ac): ... to here.
14443
14444 2011-05-21  Bruno Haible  <bruno@clisp.org>
14445
14446         mkdtemp: Move AC_LIBOBJ invocations to module description.
14447         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
14448         invocations from here...
14449         * modules/mkdtemp (configure.ac): ... to here.
14450
14451 2011-05-21  Bruno Haible  <bruno@clisp.org>
14452
14453         mkdir: Move AC_LIBOBJ invocations to module description.
14454         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
14455         * modules/mkdir (configure.ac): ... to here.
14456
14457 2011-05-21  Bruno Haible  <bruno@clisp.org>
14458
14459         memset: Move AC_LIBOBJ invocations to module description.
14460         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
14461         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
14462         here...
14463         * modules/memset (configure.ac): ... to here.
14464
14465 2011-05-21  Bruno Haible  <bruno@clisp.org>
14466
14467         memrchr: Move AC_LIBOBJ invocations to module description.
14468         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
14469         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
14470         here...
14471         * modules/memrchr (configure.ac): ... to here.
14472
14473 2011-05-21  Bruno Haible  <bruno@clisp.org>
14474
14475         mempcpy: Move AC_LIBOBJ invocations to module description.
14476         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
14477         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
14478         here...
14479         * modules/mempcpy (configure.ac): ... to here.
14480
14481 2011-05-21  Bruno Haible  <bruno@clisp.org>
14482
14483         memmove: Move AC_LIBOBJ invocations to module description.
14484         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
14485         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
14486         here...
14487         * modules/memmove (configure.ac): ... to here.
14488
14489 2011-05-21  Bruno Haible  <bruno@clisp.org>
14490
14491         memmem*: Move AC_LIBOBJ invocations to module description.
14492         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
14493         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
14494         here...
14495         (gl_FUNC_MEMMEM): ... and here...
14496         * modules/memmem-simple (configure.ac): ... to here.
14497         * modules/memmem (configure.ac): ... and here.
14498
14499 2011-05-21  Bruno Haible  <bruno@clisp.org>
14500
14501         memcpy: Move AC_LIBOBJ invocations to module description.
14502         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
14503         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
14504         here...
14505         * modules/memcpy (configure.ac): ... to here.
14506
14507 2011-05-21  Bruno Haible  <bruno@clisp.org>
14508
14509         memcmp: Simplify autoconf macro.
14510         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
14511         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
14512         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
14513
14514 2011-05-21  Bruno Haible  <bruno@clisp.org>
14515
14516         memcmp: Move AC_LIBOBJ invocations to module description.
14517         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
14518         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
14519         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
14520         * modules/memcmp (configure.ac): ... to here.
14521         (Depends-on): Update conditions.
14522
14523 2011-05-21  Bruno Haible  <bruno@clisp.org>
14524
14525         memchr: Respect rules for use of AC_LIBOBJ.
14526         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
14527         invocations from here...
14528         * modules/memchr (configure.ac): ... to here.
14529
14530 2011-05-21  Bruno Haible  <bruno@clisp.org>
14531
14532         mbtowc: Move AC_LIBOBJ invocations to module description.
14533         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
14534         invocations from here...
14535         * modules/mbtowc (configure.ac): ... to here.
14536
14537 2011-05-21  Bruno Haible  <bruno@clisp.org>
14538
14539         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
14540         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
14541         gl_PREREQ_MBSRTOWCS invocations from here...
14542         * modules/mbsrtowcs (configure.ac): ... to here.
14543
14544 2011-05-21  Bruno Haible  <bruno@clisp.org>
14545
14546         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
14547         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
14548         gl_PREREQ_MBSNRTOWCS invocations from here...
14549         * modules/mbsnrtowcs (configure.ac): ... to here.
14550
14551 2011-05-21  Bruno Haible  <bruno@clisp.org>
14552
14553         mbsinit: Move AC_LIBOBJ invocations to module description.
14554         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
14555         invocations from here...
14556         * modules/mbsinit (configure.ac): ... to here.
14557
14558 2011-05-21  Bruno Haible  <bruno@clisp.org>
14559
14560         mbrlen: Move AC_LIBOBJ invocations to module description.
14561         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
14562         invocations from here...
14563         * modules/mbrlen (configure.ac): ... to here.
14564
14565 2011-05-21  Bruno Haible  <bruno@clisp.org>
14566
14567         mbrtowc: Respect rules for use of AC_LIBOBJ.
14568         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
14569         invocations from here...
14570         * modules/mbrtowc (configure.ac): ... to here.
14571
14572 2011-05-21  Bruno Haible  <bruno@clisp.org>
14573
14574         malloc-*: Move AC_LIBOBJ invocations to module description.
14575         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
14576         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
14577         AC_LIBOBJ invocations from here...
14578         * modules/malloc-gnu (configure.ac): ... to here.
14579         * modules/malloc-posix (configure.ac): ... and here.
14580
14581 2011-05-21  Bruno Haible  <bruno@clisp.org>
14582
14583         lstat, openat: Respect rules for use of AC_LIBOBJ.
14584         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
14585         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
14586         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
14587         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
14588         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
14589         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
14590         here.
14591         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
14592
14593 2011-05-21  Bruno Haible  <bruno@clisp.org>
14594
14595         lseek: Move AC_LIBOBJ invocations to module description.
14596         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
14597         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
14598         * modules/lseek (configure.ac): ... to here.
14599
14600 2011-05-21  Bruno Haible  <bruno@clisp.org>
14601
14602         linkat: Move AC_LIBOBJ invocations to module description.
14603         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
14604         here...
14605         * modules/linkat (configure.ac): ... to here.
14606
14607 2011-05-21  Bruno Haible  <bruno@clisp.org>
14608
14609         link: Respect rules for use of AC_LIBOBJ.
14610         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
14611         * modules/link (configure.ac): ... to here.
14612
14613 2011-05-21  Bruno Haible  <bruno@clisp.org>
14614
14615         lchown: Move AC_LIBOBJ invocations to module description.
14616         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
14617         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
14618         * modules/lchown (configure.ac): ... to here.
14619
14620 2011-05-21  Bruno Haible  <bruno@clisp.org>
14621
14622         iswctype: Move AC_LIBOBJ invocations to module description.
14623         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
14624         here...
14625         * modules/iswctype (configure.ac): ... to here.
14626
14627 2011-05-21  Bruno Haible  <bruno@clisp.org>
14628
14629         iswblank: Move AC_LIBOBJ invocations to module description.
14630         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
14631         here...
14632         * modules/iswblank (configure.ac): ... to here.
14633
14634 2011-05-21  Bruno Haible  <bruno@clisp.org>
14635
14636         atanl: Move AC_LIBOBJ invocations to module description.
14637         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
14638         * modules/atanl (configure.ac): ... to here.
14639
14640 2011-05-21  Bruno Haible  <bruno@clisp.org>
14641
14642         acosl: Move AC_LIBOBJ invocations to module description.
14643         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
14644         * modules/acosl (configure.ac): ... to here.
14645
14646 2011-05-21  Bruno Haible  <bruno@clisp.org>
14647
14648         asinl: Respect rules for use of AC_LIBOBJ.
14649         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
14650         * modules/asinl (configure.ac): ... to here.
14651
14652 2011-05-21  Bruno Haible  <bruno@clisp.org>
14653
14654         tanl: Move AC_LIBOBJ invocations to module description.
14655         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
14656         * modules/tanl (configure.ac): ... to here.
14657
14658 2011-05-21  Bruno Haible  <bruno@clisp.org>
14659
14660         cosl: Move AC_LIBOBJ invocations to module description.
14661         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
14662         * modules/cosl (configure.ac): ... to here.
14663
14664 2011-05-21  Bruno Haible  <bruno@clisp.org>
14665
14666         sinl: Move AC_LIBOBJ invocations to module description.
14667         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
14668         * modules/sinl (configure.ac): ... to here.
14669
14670 2011-05-21  Bruno Haible  <bruno@clisp.org>
14671
14672         logl: Move AC_LIBOBJ invocations to module description.
14673         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
14674         * modules/logl (configure.ac): ... to here.
14675
14676 2011-05-21  Bruno Haible  <bruno@clisp.org>
14677
14678         expl: Move AC_LIBOBJ invocations to module description.
14679         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
14680         * modules/expl (configure.ac): ... to here.
14681
14682 2011-05-21  Bruno Haible  <bruno@clisp.org>
14683
14684         roundl: Move AC_LIBOBJ invocations to module description.
14685         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
14686         * modules/roundl (configure.ac): ... to here.
14687
14688 2011-05-21  Bruno Haible  <bruno@clisp.org>
14689
14690         round: Move AC_LIBOBJ invocations to module description.
14691         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
14692         * modules/round (configure.ac): ... to here.
14693
14694 2011-05-21  Bruno Haible  <bruno@clisp.org>
14695
14696         roundf: Move AC_LIBOBJ invocations to module description.
14697         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
14698         * modules/roundf (configure.ac): ... to here.
14699
14700 2011-05-21  Bruno Haible  <bruno@clisp.org>
14701
14702         truncl: Move AC_LIBOBJ invocations to module description.
14703         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
14704         * modules/truncl (configure.ac): ... to here.
14705
14706 2011-05-21  Bruno Haible  <bruno@clisp.org>
14707
14708         trunc: Move AC_LIBOBJ invocations to module description.
14709         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
14710         * modules/trunc (configure.ac): ... to here.
14711
14712 2011-05-21  Bruno Haible  <bruno@clisp.org>
14713
14714         truncf: Move AC_LIBOBJ invocations to module description.
14715         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
14716         * modules/truncf (configure.ac): ... to here.
14717
14718 2011-05-21  Bruno Haible  <bruno@clisp.org>
14719
14720         ceill: Move AC_LIBOBJ invocations to module description.
14721         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
14722         * modules/ceill (configure.ac): ... to here.
14723
14724 2011-05-21  Bruno Haible  <bruno@clisp.org>
14725
14726         ceil: Move AC_LIBOBJ invocations to module description.
14727         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
14728         * modules/ceil (configure.ac): ... to here.
14729
14730 2011-05-21  Bruno Haible  <bruno@clisp.org>
14731
14732         ceilf: Move AC_LIBOBJ invocations to module description.
14733         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
14734         * modules/ceilf (configure.ac): ... to here.
14735
14736 2011-05-21  Bruno Haible  <bruno@clisp.org>
14737
14738         floorl: Respect rules for use of AC_LIBOBJ.
14739         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
14740         * modules/floorl (configure.ac): ... to here.
14741
14742 2011-05-21  Bruno Haible  <bruno@clisp.org>
14743
14744         floor: Respect rules for use of AC_LIBOBJ.
14745         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
14746         * modules/floor (configure.ac): ... to here.
14747
14748 2011-05-21  Bruno Haible  <bruno@clisp.org>
14749
14750         floorf: Move AC_LIBOBJ invocations to module description.
14751         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
14752         * modules/floorf (configure.ac): ... to here.
14753
14754 2011-05-20  Bruno Haible  <bruno@clisp.org>
14755
14756         sqrtl: Respect rules for use of AC_LIBOBJ.
14757         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
14758         * modules/sqrtl (configure.ac): ... to here.
14759
14760 2011-05-20  Bruno Haible  <bruno@clisp.org>
14761
14762         ldexpl: Respect rules for use of AC_LIBOBJ.
14763         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
14764         * modules/ldexpl (configure.ac): ... to here.
14765
14766 2011-05-20  Bruno Haible  <bruno@clisp.org>
14767
14768         frexpl*: Respect rules for use of AC_LIBOBJ.
14769         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
14770         invocation from here...
14771         * modules/frexpl (configure.ac): ... to here.
14772         * modules/frexpl-nolibm (configure.ac): ... and here.
14773
14774 2011-05-20  Bruno Haible  <bruno@clisp.org>
14775
14776         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
14777         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
14778         invocation from here...
14779         * modules/frexp (configure.ac): ... to here.
14780         * modules/frexp-nolibm (configure.ac): ... and here.
14781
14782 2011-05-20  Bruno Haible  <bruno@clisp.org>
14783
14784         isnan: Respect rules for use of AC_LIBOBJ.
14785         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
14786         invocations here.
14787         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
14788         REPLACE_ISNAN.
14789         * modules/isnand (configure.ac): Likewise.
14790         * modules/isnanl (configure.ac): Likewise.
14791
14792 2011-05-20  Bruno Haible  <bruno@clisp.org>
14793
14794         isnanl*: Respect rules for use of AC_LIBOBJ.
14795         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
14796         invocation from here...
14797         * modules/isnanl (configure.ac): ... to here.
14798         * modules/isnanl-nolibm (configure.ac): ... and here.
14799
14800 2011-05-20  Bruno Haible  <bruno@clisp.org>
14801
14802         isnand*: Move AC_LIBOBJ invocations to module description.
14803         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
14804         invocation from here...
14805         * modules/isnand (configure.ac): ... to here.
14806         * modules/isnand-nolibm (configure.ac): ... and here.
14807
14808 2011-05-20  Bruno Haible  <bruno@clisp.org>
14809
14810         isnanf*: Move AC_LIBOBJ invocations to module description.
14811         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
14812         invocation from here...
14813         * modules/isnanf (configure.ac): ... to here.
14814         * modules/isnanf-nolibm (configure.ac): ... and here.
14815
14816 2011-05-20  Bruno Haible  <bruno@clisp.org>
14817
14818         isnan*: Separate the AC_LIBOBJ invocations.
14819         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
14820         AC_LIBOBJ invocation.
14821         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
14822         here.
14823         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
14824         AC_LIBOBJ invocation.
14825         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
14826         here.
14827         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
14828         AC_LIBOBJ invocation.
14829         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
14830         here.
14831         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
14832
14833 2011-05-08  Bruno Haible  <bruno@clisp.org>
14834
14835         isinf: Move AC_LIBOBJ invocations to module description.
14836         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
14837         * modules/isinf (configure.ac): ... to here.
14838
14839 2011-05-08  Bruno Haible  <bruno@clisp.org>
14840
14841         isfinite: Move AC_LIBOBJ invocations to module description.
14842         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
14843         * modules/isfinite (configure.ac): ... to here.
14844
14845 2011-05-08  Bruno Haible  <bruno@clisp.org>
14846
14847         isblank: Move AC_LIBOBJ invocations to module description.
14848         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
14849         here...
14850         * modules/isblank (configure.ac): ... to here.
14851
14852 2011-05-08  Bruno Haible  <bruno@clisp.org>
14853
14854         isapipe: Move AC_LIBOBJ invocations to module description.
14855         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
14856         gl_PREREQ_ISAPIPE invocations from here...
14857         * modules/isapipe (configure.ac): ... to here.
14858         (Depends-on): Update condition.
14859
14860 2011-05-08  Bruno Haible  <bruno@clisp.org>
14861
14862         ioctl: Move AC_LIBOBJ invocations to module description.
14863         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
14864         invocations from here...
14865         * modules/ioctl (configure.ac): ... to here.
14866         (Depends-on): Update condition.
14867
14868 2011-05-08  Bruno Haible  <bruno@clisp.org>
14869
14870         imaxdiv: Move AC_LIBOBJ invocations to module description.
14871         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
14872         invocations from here...
14873         * modules/imaxdiv (configure.ac): ... to here.
14874
14875 2011-05-08  Bruno Haible  <bruno@clisp.org>
14876
14877         imaxabs: Move AC_LIBOBJ invocations to module description.
14878         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
14879         invocations from here...
14880         * modules/imaxabs (configure.ac): ... to here.
14881
14882 2011-05-08  Bruno Haible  <bruno@clisp.org>
14883
14884         getaddrinfo: Move AC_LIBOBJ invocations to module description.
14885         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
14886         AC_LIBOBJ invocations from here...
14887         * modules/getaddrinfo (configure.ac): ... to here.
14888         (Depends-on): Add conditions.
14889
14890 2011-05-08  Bruno Haible  <bruno@clisp.org>
14891
14892         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
14893         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
14894         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
14895         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
14896         (gl_PREREQ_INET_PTON): ... from here.
14897         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
14898         gl_PREREQ_INET_PTON here.
14899         (Depends-on): Update condition.
14900
14901 2011-05-08  Bruno Haible  <bruno@clisp.org>
14902
14903         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
14904         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
14905         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
14906         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
14907         (gl_PREREQ_INET_NTOP): ... from here.
14908         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
14909         gl_PREREQ_INET_NTOP here.
14910         (Depends-on): Update condition.
14911
14912 2011-05-08  Bruno Haible  <bruno@clisp.org>
14913
14914         iconv_open: Move AC_LIBOBJ invocations to module description.
14915         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
14916         AC_LIBOBJ invocations from here...
14917         * modules/iconv_open (configure.ac): ... to here.
14918
14919 2011-05-08  Bruno Haible  <bruno@clisp.org>
14920
14921         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
14922         If module 'iconv_open' is among the main modules and module
14923         'iconv_open-utf' is among the tests dependencies, then
14924         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
14925         return the special iconv_t values. Therefore iconv() and iconv_close()
14926         must support these special iconv_t values, already in lib, not only in
14927         tests.
14928         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
14929         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
14930         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
14931         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
14932         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
14933         (Depends-on): Add the dependencies of iconv_open-utf.
14934         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
14935         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
14936         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
14937
14938 2011-05-08  Bruno Haible  <bruno@clisp.org>
14939
14940         group-member: Move AC_LIBOBJ invocations to module description.
14941         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
14942         gl_PREREQ_GROUP_MEMBER invocations from here...
14943         * modules/group-member (configure.ac): ... to here.
14944
14945 2011-05-08  Bruno Haible  <bruno@clisp.org>
14946
14947         grantpt: Move AC_LIBOBJ invocations to module description.
14948         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
14949         invocations from here...
14950         * modules/grantpt (configure.ac): ... to here.
14951
14952 2011-05-08  Bruno Haible  <bruno@clisp.org>
14953
14954         glob: Move AC_LIBOBJ invocations to module description.
14955         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
14956         from here...
14957         * modules/glob (configure.ac): ... to here.
14958
14959 2011-05-08  Bruno Haible  <bruno@clisp.org>
14960
14961         getusershell: Move AC_LIBOBJ invocations to module description.
14962         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
14963         Move AC_LIBOBJ invocation from here...
14964         * modules/getusershell (configure.ac): ... to here.
14965         (Depends-on): Update condition.
14966
14967 2011-05-08  Bruno Haible  <bruno@clisp.org>
14968
14969         gettimeofday: Move AC_LIBOBJ invocations to module description.
14970         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
14971         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
14972         gl_PREREQ_GETTIMEOFDAY invocations from here...
14973         * modules/gettimeofday (configure.ac): ... to here.
14974
14975 2011-05-08  Bruno Haible  <bruno@clisp.org>
14976
14977         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
14978         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
14979         just gl_FUNC_TZSET.
14980         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
14981         (gl_FUNC_TZSET_CLOBBER): Remove actions.
14982         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
14983         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
14984
14985 2011-05-08  Bruno Haible  <bruno@clisp.org>
14986
14987         getsubopt: Move AC_LIBOBJ invocations to module description.
14988         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
14989         gl_PREREQ_GETSUBOPT invocations from here...
14990         * modules/getsubopt (configure.ac): ... to here.
14991
14992 2011-05-08  Bruno Haible  <bruno@clisp.org>
14993
14994         getpass-gnu: Move AC_LIBOBJ invocations to module description.
14995         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
14996         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
14997         * modules/getpass-gnu (configure.ac): ... to here.
14998
14999 2011-05-08  Bruno Haible  <bruno@clisp.org>
15000
15001         getpass: Move AC_LIBOBJ invocations to module description.
15002         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
15003         gl_PREREQ_GETPASS invocations from here...
15004         * modules/getpass (configure.ac): ... to here.
15005
15006 2011-05-08  Bruno Haible  <bruno@clisp.org>
15007
15008         getpagesize: Move AC_LIBOBJ invocations to module description.
15009         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
15010         from here...
15011         * modules/getpagesize (configure.ac): ... to here.
15012
15013 2011-05-08  Bruno Haible  <bruno@clisp.org>
15014
15015         getopt: Move AC_LIBOBJ invocations to module description.
15016         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
15017         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
15018         invocations from here...
15019         * modules/getopt-gnu (configure.ac): ... to here.
15020         * modules/getopt-posix (configure.ac): ... and here.
15021         (Depends-on): Update condition.
15022
15023 2011-05-08  Bruno Haible  <bruno@clisp.org>
15024
15025         getopt, argp: Respect rules for use of AC_LIBOBJ.
15026         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
15027         (gl_REPLACE_GETOPT_ALWAYS): New macro.
15028         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
15029         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
15030
15031 2011-05-08  Bruno Haible  <bruno@clisp.org>
15032
15033         getlogin_r: Move AC_LIBOBJ invocations to module description.
15034         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
15035         gl_PREREQ_GETLOGIN_R invocations from here...
15036         * modules/getlogin_r (configure.ac): ... to here.
15037
15038 2011-05-08  Bruno Haible  <bruno@clisp.org>
15039
15040         getlogin: Move AC_LIBOBJ invocations to module description.
15041         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
15042         here...
15043         * modules/getlogin (configure.ac): ... to here.
15044
15045 2011-05-08  Bruno Haible  <bruno@clisp.org>
15046
15047         getloadavg: Move AC_LIBOBJ invocations to module description.
15048         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
15049         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
15050         * modules/getloadavg (configure.ac): ... to here.
15051
15052 2011-05-08  Bruno Haible  <bruno@clisp.org>
15053
15054         gethrxtime: Move AC_LIBOBJ invocations to module description.
15055         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
15056         LIB_GETHRXTIME from here...
15057         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
15058         invocations from here...
15059         * modules/gethrxtime (configure.ac): ... to here.
15060
15061 2011-05-08  Bruno Haible  <bruno@clisp.org>
15062
15063         gethostname: Move AC_LIBOBJ invocations to module description.
15064         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
15065         gl_PREREQ_GETHOSTNAME invocations from here...
15066         * modules/gethostname (configure.ac): ... to here.
15067
15068 2011-05-08  Bruno Haible  <bruno@clisp.org>
15069
15070         getgroups: Move AC_LIBOBJ invocations to module description.
15071         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
15072         here...
15073         * modules/getgroups (configure.ac): ... to here.
15074
15075 2011-05-08  Bruno Haible  <bruno@clisp.org>
15076
15077         getdtablesize: Move AC_LIBOBJ invocations to module description.
15078         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
15079         invocation from here...
15080         * modules/getdtablesize (configure.ac): ... to here.
15081
15082 2011-05-08  Bruno Haible  <bruno@clisp.org>
15083
15084         getdomainname: Move AC_LIBOBJ invocations to module description.
15085         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
15086         gl_PREREQ_GETDOMAINNAME invocations from here...
15087         * modules/getdomainname (configure.ac): ... to here.
15088
15089 2011-05-08  Bruno Haible  <bruno@clisp.org>
15090
15091         getline: Move AC_LIBOBJ invocations to module description.
15092         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
15093         invocations from here...
15094         * modules/getline (configure.ac): ... to here.
15095
15096 2011-05-08  Bruno Haible  <bruno@clisp.org>
15097
15098         getline: Simplify.
15099         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
15100         It's already handled through the module dependency.
15101
15102 2011-05-08  Bruno Haible  <bruno@clisp.org>
15103
15104         getdelim: Move AC_LIBOBJ invocations to module description.
15105         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
15106         and gl_PREREQ_GETDELIM invocations from here...
15107         * modules/getdelim (configure.ac): ... to here.
15108         (Depends-on): Fix condition.
15109
15110 2011-05-08  Bruno Haible  <bruno@clisp.org>
15111
15112         getcwd: Move AC_LIBOBJ invocations to module description.
15113         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
15114         invocations from here...
15115         * modules/getcwd (configure.ac): ... to here.
15116
15117 2011-05-08  Bruno Haible  <bruno@clisp.org>
15118
15119         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
15120         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
15121         here...
15122         * modules/getcwd-lgpl (configure.ac): ... to here.
15123
15124 2011-05-07  Bruno Haible  <bruno@clisp.org>
15125
15126         crypto/gc: Move AC_LIBOBJ invocations to module description.
15127         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
15128         * modules/crypto/gc (configure.ac): ... to here.
15129
15130 2011-05-07  Bruno Haible  <bruno@clisp.org>
15131
15132         fwriting: Move AC_LIBOBJ invocations to module description.
15133         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
15134         here...
15135         * modules/fwriting (configure.ac): ... to here.
15136
15137 2011-05-07  Bruno Haible  <bruno@clisp.org>
15138
15139         fwritable: Move AC_LIBOBJ invocations to module description.
15140         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
15141         here...
15142         * modules/fwritable (configure.ac): ... to here.
15143
15144 2011-05-07  Bruno Haible  <bruno@clisp.org>
15145
15146         futimens: Move AC_LIBOBJ invocations to module description.
15147         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
15148         here...
15149         * modules/futimens (configure.ac): ... to here.
15150
15151 2011-05-07  Bruno Haible  <bruno@clisp.org>
15152
15153         ftruncate: Move AC_LIBOBJ invocations to module description.
15154         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
15155         gl_PREREQ_FTRUNCATE invocations from here...
15156         * modules/ftruncate (configure.ac): ... to here.
15157
15158 2011-05-07  Bruno Haible  <bruno@clisp.org>
15159
15160         fsync: Move AC_LIBOBJ invocations to module description.
15161         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
15162         invocations from here...
15163         * modules/fsync (configure.ac): ... to here.
15164
15165 2011-05-07  Bruno Haible  <bruno@clisp.org>
15166
15167         fsusage: Move AC_LIBOBJ invocations to module description.
15168         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
15169         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
15170         * modules/fsusage (configure.ac): ... to here.
15171
15172 2011-05-07  Bruno Haible  <bruno@clisp.org>
15173
15174         freopen: Move AC_LIBOBJ invocations to module description.
15175         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
15176         invocations from here...
15177         * modules/freopen (configure.ac): ... to here.
15178
15179 2011-05-07  Bruno Haible  <bruno@clisp.org>
15180
15181         free: Move AC_LIBOBJ invocations to module description.
15182         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
15183         invocations from here...
15184         * modules/free (configure.ac): ... to here.
15185
15186 2011-05-07  Bruno Haible  <bruno@clisp.org>
15187
15188         freadable: Move AC_LIBOBJ invocations to module description.
15189         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
15190         here...
15191         * modules/freadable (configure.ac): ... to here.
15192
15193 2011-05-07  Bruno Haible  <bruno@clisp.org>
15194
15195         fpurge: Move AC_LIBOBJ invocations to module description.
15196         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
15197         invocations from here...
15198         * modules/fpurge (configure.ac): ... to here.
15199
15200 2011-05-07  Bruno Haible  <bruno@clisp.org>
15201
15202         fpending: Move AC_LIBOBJ invocations to module description.
15203         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
15204         gl_FUNC_FPENDING.
15205         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
15206         invocations from here...
15207         * modules/fpending (configure.ac): ... to here.
15208
15209 2011-05-07  Bruno Haible  <bruno@clisp.org>
15210
15211         fopen: Move AC_LIBOBJ invocations to module description.
15212         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
15213         invocations from here...
15214         * modules/fopen (configure.ac): ... to here.
15215
15216 2011-05-07  Bruno Haible  <bruno@clisp.org>
15217
15218         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
15219         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
15220         gl_FUNC_FNMATCH_POSIX.
15221         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
15222         invocations from here...
15223         * modules/fnmatch (configure.ac): ... to here.
15224         * modules/fnmatch-gnu (configure.ac): ... and here.
15225
15226 2011-05-07  Bruno Haible  <bruno@clisp.org>
15227
15228         flock: Move AC_LIBOBJ invocations to module description.
15229         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
15230         invocations from here...
15231         * modules/flock (configure.ac): ... to here.
15232
15233 2011-05-07  Bruno Haible  <bruno@clisp.org>
15234
15235         fileblocks: Move AC_LIBOBJ invocations to module description.
15236         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
15237         gl_PREREQ_FILEBLOCKS invocations from here...
15238         * modules/fileblocks (configure.ac): ... to here.
15239
15240 2011-05-06  Bruno Haible  <bruno@clisp.org>
15241
15242         fflush: Move AC_LIBOBJ invocations to module description.
15243         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
15244         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
15245         invocations from here...
15246         * modules/fflush (configure.ac): ... to here.
15247
15248 2011-05-06  Bruno Haible  <bruno@clisp.org>
15249
15250         fdopendir: Move AC_LIBOBJ invocations to module description.
15251         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
15252         here...
15253         * modules/fdopendir (configure.ac): ... to here.
15254         (Depends-on): Improve conditions.
15255
15256 2011-05-06  Bruno Haible  <bruno@clisp.org>
15257
15258         _Exit: Move AC_LIBOBJ invocations to module description.
15259         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
15260         invocations from here...
15261         * modules/_Exit (configure.ac): ... to here.
15262
15263 2011-05-21  Bruno Haible  <bruno@clisp.org>
15264
15265         euidaccess: Respect rules for use of AC_LIBOBJ.
15266         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
15267         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
15268         from here...
15269         * modules/euidaccess (configure.ac): ... to here.
15270
15271 2011-05-06  Bruno Haible  <bruno@clisp.org>
15272
15273         error: Move AC_LIBOBJ invocations to module description.
15274         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
15275         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
15276         invocations from here...
15277         * modules/error (configure.ac): ... to here.
15278
15279 2011-05-06  Bruno Haible  <bruno@clisp.org>
15280
15281         duplocale: Move AC_LIBOBJ invocations to module description.
15282         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
15283         gl_PREREQ_DUPLOCALE invocations from here...
15284         * modules/duplocale (configure.ac): ... to here.
15285
15286 2011-05-05  Bruno Haible  <bruno@clisp.org>
15287
15288         dirfd: Move AC_LIBOBJ invocations to module description.
15289         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
15290         gl_FUNC_DIRFD.
15291         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
15292         here...
15293         * modules/dirfd (configure.ac): ... to here.
15294         (Depends-on): Fix condition.
15295
15296 2011-05-05  Bruno Haible  <bruno@clisp.org>
15297
15298         chown: Respect rules for use of AC_LIBOBJ.
15299         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
15300         * modules/chown (configure.ac): ... to here.
15301
15302 2011-05-05  Bruno Haible  <bruno@clisp.org>
15303
15304         chdir-long: Move AC_LIBOBJ invocations to module description.
15305         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
15306         gl_PREREQ_CHDIR_LONG invocations from here...
15307         * modules/chdir-long (configure.ac): ... to here.
15308
15309 2011-05-05  Bruno Haible  <bruno@clisp.org>
15310
15311         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
15312         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
15313         from here...
15314         * modules/canonicalize-lgpl (configure.ac): ... to here.
15315
15316 2011-05-05  Bruno Haible  <bruno@clisp.org>
15317
15318         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
15319         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
15320         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
15321         REPLACE_CALLOC.
15322         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
15323         * modules/calloc-gnu (configure.ac): Likewise.
15324
15325 2011-05-05  Bruno Haible  <bruno@clisp.org>
15326
15327         btowc: Move AC_LIBOBJ invocations to module description.
15328         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
15329         invocations from here...
15330         * modules/btowc (configure.ac): ... to here.
15331
15332 2011-05-21  Bruno Haible  <bruno@clisp.org>
15333
15334         atexit: Move AC_LIBOBJ invocations to module description.
15335         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
15336         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
15337         here...
15338         * modules/atexit (configure.ac): ... to here.
15339
15340 2011-05-05  Bruno Haible  <bruno@clisp.org>
15341
15342         atoll: Move AC_LIBOBJ invocations to module description.
15343         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
15344         invocations from here...
15345         * modules/atoll (configure.ac): ... to here.
15346
15347 2011-05-05  Bruno Haible  <bruno@clisp.org>
15348
15349         argz: Move AC_LIBOBJ invocations to module description.
15350         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
15351         * modules/argz (configure.ac): ... to here.
15352
15353 2011-05-05  Bruno Haible  <bruno@clisp.org>
15354
15355         alphasort: Move AC_LIBOBJ invocations to module description.
15356         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
15357         gl_PREREQ_ALPHASORT invocations from here...
15358         * modules/alphasort (configure.ac): ... to here.
15359
15360 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
15361
15362         verify: new macro verify_expr; verify_true deprecated
15363         * NEWS: Mention this.
15364         * doc/verify.texi (Compile-time Assertions): Document this.
15365         * lib/verify.h (verify_true): Deprecate.
15366         (verify_expr): New macro.
15367         * tests/test-verify.c (function): Test verify_expr.
15368
15369 2011-06-14  Jim Meyering  <meyering@redhat.com>
15370
15371         init.sh: give more portable redirection-related advice in a comment
15372         * tests/init.sh (stderr_fileno_): Update the advice in comments.
15373         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
15374         for lots of discussion.  Stefano Lattarini suggested the solution
15375         of putting "9>&2" after the command.  Reported by Bruno Haible.
15376
15377 2011-06-13  Bruno Haible  <bruno@clisp.org>
15378
15379         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
15380         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
15381         'none'.
15382
15383 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
15384
15385         ftoastr: use strtof only if HAVE_STRTOF
15386         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
15387         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
15388         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
15389         * modules/ftoastr (configure.ac): Check for strtof.
15390
15391 2011-06-13  Bruno Haible  <bruno@clisp.org>
15392
15393         gnulib-tool: Addendum to 2011-06-08 commit.
15394         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
15395         and --witness-c-macro have been given, augment AM_CPPFLAGS.
15396
15397 2011-06-13  Bruno Haible  <bruno@clisp.org>
15398
15399         fseeko: Provide a non-inline replacement of fseek().
15400         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
15401         * modules/fseeko (Depends-on): Add fseek.
15402         * modules/fseek (License): Change to LGPLv2+.
15403
15404 2011-06-13  Bruno Haible  <bruno@clisp.org>
15405
15406         ftello: Provide a non-inline replacement of ftell().
15407         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
15408         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
15409         not have ftello() (such as on mingw).
15410         * modules/ftello (Depends-on): Add ftell.
15411         * modules/ftell (License): Change to LGPLv2+.
15412
15413 2011-05-07  Bruno Haible  <bruno@clisp.org>
15414
15415         ftell: Move AC_LIBOBJ invocations to module description.
15416         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
15417         * modules/ftell (configure.ac): ... to here.
15418
15419 2011-05-07  Bruno Haible  <bruno@clisp.org>
15420
15421         ftello: Respect rules for use of AC_LIBOBJ.
15422         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
15423         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
15424         here...
15425         * modules/ftello (configure.ac): ... to here.
15426
15427 2011-05-07  Bruno Haible  <bruno@clisp.org>
15428
15429         fseeko: Simplify.
15430         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
15431         (gl_FUNC_FSEEKO): Inline it here.
15432
15433 2011-05-07  Bruno Haible  <bruno@clisp.org>
15434
15435         fseek: Move AC_LIBOBJ invocations to module description.
15436         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
15437         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
15438         * modules/fseek (configure.ac): ... to here.
15439
15440 2011-05-07  Bruno Haible  <bruno@clisp.org>
15441
15442         fseek: Respect rules for use of AC_LIBOBJ.
15443         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
15444         here...
15445         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
15446
15447 2011-05-07  Bruno Haible  <bruno@clisp.org>
15448
15449         fseeko: Respect rules for use of AC_LIBOBJ.
15450         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
15451         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
15452         here...
15453         * modules/fseeko (configure.ac): ... to here.
15454
15455 2011-06-13  Bruno Haible  <bruno@clisp.org>
15456
15457         gnulib-tool: Allow comments in the 'Depends-on' section.
15458         * doc/gnulib.texi (Module description): Mention comment syntax in the
15459         Depends-on section.
15460         * gnulib-tool (func_get_dependencies): Filter out comment lines.
15461
15462 2011-06-13  Bruno Haible  <bruno@clisp.org>
15463
15464         file-set.h: guard __attibute__ use, now that it's not always defined
15465         * lib/file-set.h (record_file): Use __attribute__ only with compiler
15466         versions that support it.  This fixes a coreutils build failure with
15467         the vendor cc on HP-UX 11.31.
15468
15469 2011-06-12  Bruno Haible  <bruno@clisp.org>
15470
15471         acl: Add support for HP-UX >= 11.11 JFS ACLs.
15472         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
15473         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
15474         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
15475         (acl, aclsort): New declarations.
15476         (aclv_nontrivial): New declaration.
15477         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
15478         (file_has_acl): Read also the second kind of HP-UX ACLs.
15479         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
15480         kind of HP-UX ACLs if the first kind fails.
15481         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
15482         second kind of HP-UX ACLs.
15483         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
15484         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
15485         agree.
15486         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
15487         hpuxjfs.
15488         Handle hpuxjfs.
15489         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
15490         hpuxjfs.
15491         Handle hpuxjfs.
15492         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
15493         (func_test_same_acls): Use both lsacl and getacl.
15494         Handle hpuxjfs.
15495         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
15496         (func_test_same_acls): Use both lsacl and getacl.
15497         Handle hpuxjfs.
15498
15499 2011-06-12  Bruno Haible  <bruno@clisp.org>
15500
15501         acl: Complete the 2010-08-10 fix.
15502         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
15503         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
15504         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
15505         explicitly.
15506         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
15507         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
15508
15509 2011-06-12  Bruno Haible  <bruno@clisp.org>
15510
15511         spawn-pipe tests: Comments.
15512         * tests/test-spawn-pipe-child.c (main): Update comment.
15513         Reported by James Youngman <jay@gnu.org>.
15514
15515 2011-06-11  James Youngman  <jay@gnu.org>
15516
15517         New module 'stat-size'.
15518         * modules/stat-size: New module.  Provides macros for accessing
15519         file size information in instances of struct stat.  Depends on the
15520         fileblocks module because it calls st_blocks.
15521         * lib/stat-size.h: New file, adapted from coreutils' system.h.
15522         * doc/gnulib.texi: Include stat-size.texi.
15523         * doc/stat-size.texi: Documentation for this module.
15524         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
15525         * m4/fileblocks.m4: Mention that stat-size depends on the call to
15526         AC_STRUCT_ST_BLOCKS.
15527
15528 2011-06-09  Bruno Haible  <bruno@clisp.org>
15529
15530         thread: Support pthreads-win32.
15531         * lib/glthread/thread.h (gl_thread_self): Define differently on
15532         pthreads-win32.
15533         (gl_null_thread): New declaration.
15534         (gl_thread_self_pointer): New macro.
15535         * lib/glthread/thread.c (gl_null_thread): New constant.
15536         * tests/test-lock.c: Use gl_thread_self_pointer instead of
15537         gl_thread_self.
15538         * tests/test-tls.c: Likewise.
15539         Suggested by Paul Eggert. Reported by Eric Blake.
15540
15541 2011-06-09  Bruno Haible  <bruno@clisp.org>
15542
15543         thread: Fix confusion between NULL and 0.
15544         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
15545         Reported by Paul Eggert.
15546
15547 2011-06-09  Bruno Haible  <bruno@clisp.org>
15548
15549         spawn-pipe tests: Avoid test failure on HP-UX 11.
15550         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
15551         is closed.
15552
15553 2011-06-09  Bruno Haible  <bruno@clisp.org>
15554
15555         acl tests: Fix compilation error on HP-UX 11.
15556         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
15557
15558 2011-06-09  Bruno Haible  <bruno@clisp.org>
15559
15560         rmdir: Avoid test failure on HP-UX 10.20.
15561         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
15562         EEXIST.
15563
15564 2011-06-08  Eric Blake  <eblake@redhat.com>
15565
15566         perror: fix test on mingw
15567         * modules/perror-tests (Depends-on): Add dup2.
15568
15569         strerror_r-posix: fix on MacOS
15570         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
15571         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
15572         logic bug.
15573         * lib/strerror_r.c (strerror_r): Fix the bug.
15574         * lib/strerror.c (strerror): Likewise.
15575         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
15576         problem.
15577         * doc/posix-functions/strerror.texi (strerror): Likewise.
15578         * doc/posix-functions/perror.texi (perror): Likewise.
15579         * tests/test-strerror.c (main): Enhance test.
15580         * tests/test-strerror_r.c (main): Likewise.
15581
15582 2011-06-08  Bruno Haible  <bruno@clisp.org>
15583
15584         gnulib-tool: Better isolation between different gnulib-tool invocations.
15585         * gnulib-tool: New option --witness-c-macro.
15586         (witness_c_macro): New variable.
15587         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
15588         AM_CPPFLAGS define it as a C macro.
15589         (func_emit_tests_Makefile_am): Likewise.
15590         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
15591         read it from there.
15592         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
15593         m4_define, not AC_DEFUN.
15594         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
15595         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
15596         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
15597         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
15598         s|...|...|, to substitute the values of the GNULIB_* module indicator
15599         variables.
15600         * modules/dirent (Makefile.am): Likewise.
15601         * modules/fcntl-h (Makefile.am): Likewise.
15602         * modules/iconv-h (Makefile.am): Likewise.
15603         * modules/langinfo (Makefile.am): Likewise.
15604         * modules/locale (Makefile.am): Likewise.
15605         * modules/math (Makefile.am): Likewise.
15606         * modules/netdb (Makefile.am): Likewise.
15607         * modules/poll-h (Makefile.am): Likewise.
15608         * modules/pty (Makefile.am): Likewise.
15609         * modules/search (Makefile.am): Likewise.
15610         * modules/signal (Makefile.am): Likewise.
15611         * modules/spawn (Makefile.am): Likewise.
15612         * modules/stdio (Makefile.am): Likewise.
15613         * modules/stdlib (Makefile.am): Likewise.
15614         * modules/string (Makefile.am): Likewise.
15615         * modules/sys_ioctl (Makefile.am): Likewise.
15616         * modules/sys_select (Makefile.am): Likewise.
15617         * modules/sys_socket (Makefile.am): Likewise.
15618         * modules/sys_stat (Makefile.am): Likewise.
15619         * modules/sys_times (Makefile.am): Likewise.
15620         * modules/sys_utsname (Makefile.am): Likewise.
15621         * modules/sys_wait (Makefile.am): Likewise.
15622         * modules/termios (Makefile.am): Likewise.
15623         * modules/time (Makefile.am): Likewise.
15624         * modules/unistd (Makefile.am): Likewise.
15625         * modules/wchar (Makefile.am): Likewise.
15626
15627 2011-06-08  Eric Blake  <eblake@redhat.com>
15628
15629         strerror: simplify replacement
15630         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
15631         * modules/strerror (configure.ac): No prereqs needed here...
15632         * modules/strerror-override (configure.ac): ...but this needs it.
15633         (Files): Add file for needed prereq macro.
15634
15635 2011-06-08  Bruno Haible  <bruno@clisp.org>
15636
15637         strerror_r-posix: Tweaks.
15638         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
15639         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
15640         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
15641         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
15642         (gl_FUNC_STRERROR_R): ... to here.
15643         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
15644
15645 2011-06-07  Eric Blake  <eblake@redhat.com>
15646
15647         perror: document fixed bugs
15648         * doc/posix-functions/perror.texi (perror): Document recent
15649         patches.
15650
15651 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
15652
15653         stat-time: get_stat_birthtime failure is better-defined
15654         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
15655         return a timestamp whose tv_sec and tv_nsec values are both -1.
15656         Previously, the spec said only that the tv_nsec value was negative.
15657         This upward-compatible change simplifies GNU tar a bit.
15658
15659 2011-06-07  Eric Blake  <eblake@redhat.com>
15660
15661         strerror_r-posix: work around cygwin 1.7.9
15662         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
15663         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
15664         bug without replacing strerror_r.
15665         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
15666         strerror_r is buggy, but without requiring strerror_r compilation.
15667         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
15668
15669         test-perror: relax test to ignore cygwin bug
15670         * tests/test-perror2.c (main): Relax test on requiring detection
15671         of stream errors, and use unbuffered stream.
15672         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
15673         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
15674         * doc/posix-functions/fputc.texi (fputc): Likewise.
15675         * doc/posix-functions/fputs.texi (fputs): Likewise.
15676         * doc/posix-functions/fputws.texi (fputws): Likewise.
15677         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
15678         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
15679         * doc/posix-functions/getopt.texi (getopt): Likewise.
15680         * doc/posix-functions/perror.texi (perror): Likewise.
15681         * doc/posix-functions/printf.texi (printf): Likewise.
15682         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
15683         * doc/posix-functions/psignal.texi (psignal): Likewise.
15684         * doc/posix-functions/putc.texi (putc): Likewise.
15685         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
15686         Likewise.
15687         * doc/posix-functions/putchar.texi (putchar): Likewise.
15688         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
15689         Likewise.
15690         * doc/posix-functions/puts.texi (puts): Likewise.
15691         * doc/posix-functions/putwc.texi (putwc): Likewise.
15692         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
15693         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
15694         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
15695         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
15696         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
15697         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
15698         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
15699         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
15700
15701 2011-05-22  Bruno Haible  <bruno@clisp.org>
15702
15703         strerror: Move AC_LIBOBJ invocations to module description.
15704         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
15705         gl_PREREQ_STRERROR invocations from here...
15706         * modules/strerror (configure.ac): ... to here.
15707
15708 2011-05-21  Bruno Haible  <bruno@clisp.org>
15709
15710         perror: Use common idiom.
15711         * modules/perror (configure.ac): Reorder statements.
15712
15713 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
15714
15715         tests: fix usage message in 'mktempd_'
15716         * tests/init.sh (mktempd_): In the usage message, use literal
15717         'mktempd_', not '$ME' (which is even undefined), as the name of
15718         the subroutine.
15719
15720 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
15721
15722         tests init: new function 'fatal_', for hard errors
15723         Before this patch, the only way offered by tests/init.sh to
15724         properly signal a hard error was the `framework_failure_'
15725         function.  But the error message issued by that function,
15726         as its name would suggest, refers to a set-up failure in the
15727         testsuite, while hard errors can obviously also be due to
15728         other reasons.  The best way to fix this inconsistency is to
15729         introduce a new function with a more general error message.
15730         * tests/init.sh (fatal_): New function.
15731
15732 2011-06-06  Eric Blake  <eblake@redhat.com>
15733
15734         canonicalize-lgpl: use common idiom
15735         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
15736         over newer POSIX -Rf.
15737         Reported by Bruno Haible.
15738
15739         canonicalize-lgpl: work around AIX realpath bug
15740         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
15741         * doc/posix-functions/realpath.texi (realpath): Document it.
15742         Reported by Bruno Haible.
15743
15744         strerror: work around FreeBSD bug
15745         * lib/strerror.c (strerror): Special case 0.
15746         Reported by Bruno Haible.
15747
15748         strerror-override: avoid bloating errno module
15749         * modules/errno (Files, configure.ac): Move replacement strings...
15750         * modules/strerror-override: ...to new module.
15751         * modules/strerror (Depends-on): Add strerror-override.
15752         * modules/strerror_r-posix (Depends-on): Likewise.
15753         * MODULES.html.sh: Document new module.
15754         Reported by Bruno Haible.
15755
15756 2011-06-06  Bruno Haible  <bruno@clisp.org>
15757
15758         spawn-pipe tests: Rename program.
15759         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
15760         * tests/test-spawn-pipe-child.c: Update comment.
15761         * tests/test-spawn-pipe.sh: Update.
15762         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
15763
15764         spawn-pipe tests: Link the child program only against libc.
15765         * tests/test-spawn-pipe-child.c: New file, extracted from
15766         tests/test-spawn-pipe.c.
15767         (main): Expect only one argument.
15768         (is_open): New function, copied from tests/test-pipe.c.
15769         * tests/test-spawn-pipe.c: Don't include <errno.h>.
15770         (child_main): Remove function.
15771         (test_pipe): Pass only one argument to the child program.
15772         (main): Remove child process code. Expect the child program's name as
15773         first argument.
15774         * tests/test-spawn-pipe.sh: Pass the child program's name as first
15775         argument.
15776         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
15777         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
15778         test-spawn-pipe-child against no libraries.
15779
15780 2011-06-06  Bruno Haible  <bruno@clisp.org>
15781
15782         careadlinkat: Avoid mismatch between ssize_t and int.
15783         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
15784         * lib/careadlinkat.c (careadlinkatcwd): Define always.
15785
15786 2011-06-06  Jim Meyering  <meyering@redhat.com>
15787
15788         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
15789         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
15790         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
15791
15792 2011-06-05  Bruno Haible  <bruno@clisp.org>
15793
15794         ansi-c++-opt: Interoperability with libtool.
15795         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
15796         set the variable to "no", not to ":".
15797         * NEWS: Mention the change.
15798
15799 2011-06-05  Bruno Haible  <bruno@clisp.org>
15800
15801         acl: Fix test failure on AIX 7.
15802         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
15803         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
15804
15805 2011-06-05  Bruno Haible  <bruno@clisp.org>
15806
15807         pipe-filter-ii: Fix test failure on AIX and IRIX.
15808         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
15809         with EAGAIN, retry with a smaller buffer size.
15810
15811 2011-06-05  Bruno Haible  <bruno@clisp.org>
15812
15813         localename: Fix link dependencies.
15814         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
15815         * modules/localename-tests (Makefile.am): Link test-localename with
15816         $(LIBTHREAD).
15817
15818 2011-06-05  Bruno Haible  <bruno@clisp.org>
15819
15820         error: Avoid gcc warning.
15821         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
15822
15823 2011-06-05  Bruno Haible  <bruno@clisp.org>
15824
15825         unsetenv: Avoid gcc warning.
15826         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
15827
15828 2011-06-05  Bruno Haible  <bruno@clisp.org>
15829
15830         setenv: Avoid gcc warning.
15831         * lib/setenv.c (setenv): Provide declaration if system lacks it.
15832
15833 2011-06-05  Bruno Haible  <bruno@clisp.org>
15834
15835         sys_select: Ensure memset is declared also on AIX 7.
15836         * lib/sys_select.in.h: Include <string.h> also on AIX.
15837         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
15838         self-contained also on AIX 7.1.
15839
15840 2011-06-04  Jim Meyering  <meyering@redhat.com>
15841
15842         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
15843         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
15844         function name, "error".
15845         (_gl_translatable_diag_func_re): New configurable variable.
15846
15847 2011-06-04  Bruno Haible  <bruno@clisp.org>
15848
15849         getopt: Avoid gcc warning.
15850         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
15851
15852 2011-06-04  Bruno Haible  <bruno@clisp.org>
15853
15854         strerror_r: Fix comments.
15855         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
15856         commit.
15857
15858 2011-06-04  Bruno Haible  <bruno@clisp.org>
15859
15860         perror: Fix compilation error.
15861         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
15862         Undefine fprintf, not sprintf.
15863         * modules/perror (Depends-on): Remove intprops, verify.
15864
15865 2011-06-04  Bruno Haible  <bruno@clisp.org>
15866
15867         setlocale: Enable replacement on Cygwin 1.5.
15868         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
15869         Cygwin 1.5.x.
15870         * doc/posix-functions/setlocale.texi: Mention that the problem with the
15871         LC_CTYPE category also exists on Cygwin 1.5.x.
15872
15873 2011-06-04  Bruno Haible  <bruno@clisp.org>
15874
15875         strerror-override: Don't disable symbol renamings.
15876         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
15877         * lib/strerror-override.c: Include config.h.
15878         (strerror_override): Don't undefine.
15879
15880 2011-06-03  Bruno Haible  <bruno@clisp.org>
15881
15882         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
15883         * lib/localename.h: Update copyright header.
15884         * lib/localename.c: Likewise.
15885         * lib/relocatable.h: Likewise.
15886         * lib/relocatable.c: Likewise.
15887
15888 2011-06-02  Bruno Haible  <bruno@clisp.org>
15889
15890         doc: Fix a module name.
15891         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
15892
15893 2011-06-02  Bruno Haible  <bruno@clisp.org>
15894
15895         pipe2: Remove dependency on 'nonblocking' module.
15896         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
15897         O_NONBLOCK is defined by gnulib.
15898         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
15899         is zero.
15900         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
15901         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
15902         defined by gnulib.
15903         (get_nonblocking_flag): New function.
15904         (main): Test O_NONBLOCK flag only if it is nonzero.
15905         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
15906
15907 2011-06-03  Jim Meyering  <meyering@redhat.com>
15908
15909         maint: three new prohibit-header-without-use rules
15910         Prohibit use of cloexec.h, posixver.h, same.h without use.
15911         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
15912         (sc_prohibit_posixver_without_use): Likewise.
15913         (sc_prohibit_same_without_use): Likewise.
15914
15915 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
15916
15917         allocator: 'die' routine is now given requested size
15918         * lib/allocator.h (struct allocator.die): New size arg.
15919         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
15920         If the actual problem is an ssize_t limitation, not a size_t or
15921         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
15922
15923 2011-06-01  Eric Blake  <eblake@redhat.com>
15924
15925         strerror: drop strerror_r dependency
15926         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
15927         * lib/strerror-override.c (strerror_override): ...to new file.
15928         * lib/strerror-override.h: Add prototype.
15929         * lib/strerror-impl.h: Delete.
15930         * lib/strerror.c (strerror): New implementation.
15931         * modules/errno (Files): Add new files.
15932         (configure.ac): Compile new file as appropriate.
15933         * modules/strerror (Files): Drop unused file.
15934         (Depends-on): Drop strerror_r-posix.
15935         * MODULES.html.sh: Document strerror_r-posix.
15936         Requested by Sam Steingold.
15937
15938         perror: call strerror_r directly
15939         * modules/perror (Files): Drop strerror-impl.h.
15940         * lib/perror.c (perror): Use our own stack buffer, rather than
15941         calling a wrapper that uses static storage.
15942         * doc/posix-functions/perror.texi (perror): Document a limitation
15943         of our replacement.
15944
15945         strerror_r: fix includes for FreeBSD
15946         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
15947         since we use abort on some platforms.
15948         Reported by Matthias Bolte.
15949
15950 2011-05-31  Bruno Haible  <bruno@clisp.org>
15951
15952         Fix link errors in tests: openat-die uses gettext-h.
15953         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
15954         against $(LIBINTL).
15955         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
15956         against $(LIBINTL).
15957         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
15958         $(LIBINTL).
15959         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
15960         against $(LIBINTL).
15961         * modules/linkat-tests (Makefile.am): Link test-linkat against
15962         $(LIBINTL).
15963         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
15964         $(LIBINTL).
15965         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
15966         against $(LIBINTL).
15967         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
15968         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
15969         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
15970         $(LIBINTL).
15971         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
15972         $(LIBINTL).
15973         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
15974         $(LIBINTL).
15975         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15976
15977 2011-05-31  Bruno Haible  <bruno@clisp.org>
15978
15979         Fix link errors in tests: wait-process uses gettext-h.
15980         * modules/nonblocking-pipe-tests (Makefile.am): Set
15981         test_nonblocking_pipe_main_LDADD.
15982         * modules/nonblocking-socket-tests (Makefile.am): Link
15983         test-nonblocking-socket-main against $(LIBINTL).
15984         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15985
15986 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
15987
15988         assert-h: work around 'verify' incompatibility
15989         * lib/verify.h: Use @...@ directives, not ifdef.
15990         * modules/assert-h (assert.h): Implement the directives.
15991         (assert.h): Substitute the symbol-prefix more consistently.
15992
15993 2011-05-29  Jim Meyering  <meyering@redhat.com>
15994
15995         trim: remove three superfluous assignments
15996         * lib/trim.c (trim2): Remove three superfluous assignments
15997         and correct brace positioning.
15998
15999 2011-05-29  Bruno Haible  <bruno@clisp.org>
16000
16001         wctype-h: Avoid namespace pollution on Solaris 2.6.
16002         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
16003         identifiers.
16004         * doc/posix-headers/wctype.texi: Mention the problem.
16005         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16006
16007 2011-05-28  Jim Meyering  <meyering@redhat.com>
16008
16009         parse-datetime.y: accommodate -Wstrict-overflow
16010         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
16011         placate -Wstrict-overflow.
16012
16013         trim: avoid a warning from -O2 -Wstrict-overflow
16014         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
16015
16016 2011-05-29  Bruno Haible  <bruno@clisp.org>
16017
16018         gnulib-tool: Fix bug in yesterday's commit.
16019         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
16020         twice.
16021
16022 2011-05-29  Bruno Haible  <bruno@clisp.org>
16023
16024         Allow multiple gnulib generated include files to be combined.
16025         * gnulib-tool (func_compute_include_guard_prefix): New function.
16026         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
16027         ${gl_include_guard_prefix} references.
16028         (func_import, func_create_testdir): Invoke
16029         func_compute_include_guard_prefix.
16030         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
16031         * lib/ctype.in.h: Likewise.
16032         * lib/dirent.in.h: Likewise.
16033         * lib/errno.in.h: Likewise.
16034         * lib/fcntl.in.h: Likewise.
16035         * lib/float.in.h: Likewise.
16036         * lib/getopt.in.h: Likewise.
16037         * lib/iconv.in.h: Likewise.
16038         * lib/langinfo.in.h: Likewise.
16039         * lib/locale.in.h: Likewise.
16040         * lib/math.in.h: Likewise.
16041         * lib/netdb.in.h: Likewise.
16042         * lib/netinet_in.in.h: Likewise.
16043         * lib/poll.in.h: Likewise.
16044         * lib/pthread.in.h: Likewise.
16045         * lib/pty.in.h: Likewise.
16046         * lib/sched.in.h: Likewise.
16047         * lib/se-selinux.in.h: Likewise.
16048         * lib/search.in.h: Likewise.
16049         * lib/signal.in.h: Likewise.
16050         * lib/spawn.in.h: Likewise.
16051         * lib/stdarg.in.h: Likewise.
16052         * lib/stddef.in.h: Likewise.
16053         * lib/stdint.in.h: Likewise.
16054         * lib/stdio.in.h: Likewise.
16055         * lib/stdlib.in.h: Likewise.
16056         * lib/string.in.h: Likewise.
16057         * lib/strings.in.h: Likewise.
16058         * lib/sys_file.in.h: Likewise.
16059         * lib/sys_ioctl.in.h: Likewise.
16060         * lib/sys_select.in.h: Likewise.
16061         * lib/sys_socket.in.h: Likewise.
16062         * lib/sys_stat.in.h: Likewise.
16063         * lib/sys_time.in.h: Likewise.
16064         * lib/sys_times.in.h: Likewise.
16065         * lib/sys_uio.in.h: Likewise.
16066         * lib/sys_utsname.in.h: Likewise.
16067         * lib/sys_wait.in.h: Likewise.
16068         * lib/sysexits.in.h: Likewise.
16069         * lib/termios.in.h: Likewise.
16070         * lib/time.in.h: Likewise.
16071         * lib/unistd.in.h: Likewise.
16072         * lib/wchar.in.h: Likewise.
16073         * lib/wctype.in.h: Likewise.
16074         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
16075         * modules/ctype (Makefile.am): Likewise.
16076         * modules/dirent (Makefile.am): Likewise.
16077         * modules/errno (Makefile.am): Likewise.
16078         * modules/fcntl-h (Makefile.am): Likewise.
16079         * modules/float (Makefile.am): Likewise.
16080         * modules/getopt-posix (Makefile.am): Likewise.
16081         * modules/iconv-h (Makefile.am): Likewise.
16082         * modules/langinfo (Makefile.am): Likewise.
16083         * modules/locale (Makefile.am): Likewise.
16084         * modules/math (Makefile.am): Likewise.
16085         * modules/netdb (Makefile.am): Likewise.
16086         * modules/netinet_in (Makefile.am): Likewise.
16087         * modules/poll-h (Makefile.am): Likewise.
16088         * modules/pthread (Makefile.am): Likewise.
16089         * modules/pty (Makefile.am): Likewise.
16090         * modules/sched (Makefile.am): Likewise.
16091         * modules/search (Makefile.am): Likewise.
16092         * modules/selinux-h (Makefile.am): Likewise.
16093         * modules/signal (Makefile.am): Likewise.
16094         * modules/spawn (Makefile.am): Likewise.
16095         * modules/stdarg (Makefile.am): Likewise.
16096         * modules/stddef (Makefile.am): Likewise.
16097         * modules/stdint (Makefile.am): Likewise.
16098         * modules/stdio (Makefile.am): Likewise.
16099         * modules/stdlib (Makefile.am): Likewise.
16100         * modules/string (Makefile.am): Likewise.
16101         * modules/strings (Makefile.am): Likewise.
16102         * modules/sys_file (Makefile.am): Likewise.
16103         * modules/sys_ioctl (Makefile.am): Likewise.
16104         * modules/sys_select (Makefile.am): Likewise.
16105         * modules/sys_socket (Makefile.am): Likewise.
16106         * modules/sys_stat (Makefile.am): Likewise.
16107         * modules/sys_time (Makefile.am): Likewise.
16108         * modules/sys_times (Makefile.am): Likewise.
16109         * modules/sys_uio (Makefile.am): Likewise.
16110         * modules/sys_utsname (Makefile.am): Likewise.
16111         * modules/sys_wait (Makefile.am): Likewise.
16112         * modules/sysexits (Makefile.am): Likewise.
16113         * modules/termios (Makefile.am): Likewise.
16114         * modules/time (Makefile.am): Likewise.
16115         * modules/unistd (Makefile.am): Likewise.
16116         * modules/wchar (Makefile.am): Likewise.
16117         * modules/wctype-h (Makefile.am): Likewise.
16118         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
16119
16120 2011-05-29  Bruno Haible  <bruno@clisp.org>
16121
16122         assert-h: Allow multiple gnulib generated replacements to coexist.
16123         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
16124
16125 2011-05-29  Bruno Haible  <bruno@clisp.org>
16126
16127         argp: Allow coexistence with strerror_r-posix module.
16128         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
16129         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
16130         by gnulib's <string.h> replacement), assume it has the POSIX signature,
16131         not the glibc signature.
16132
16133 2011-05-28  Bruno Haible  <bruno@clisp.org>
16134
16135         gnulib-tool: Alternative structure of testdirs, similar to --import.
16136         * gnulib-tool: New option --single-configure.
16137         (func_usage): Document it.
16138         (single_configure): New variable.
16139         (func_modules_transitive_closure_separately,
16140         func_modules_transitive_closure_separately,
16141         func_determine_use_libtests, func_modules_add_dummy_separately,
16142         func_modules_to_filelist_separately): New functions, extracted from
16143         func_import.
16144         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
16145         (func_import): Use the new functions.
16146         (func_create_testdir): Set final_modules. Handle $single_configure =
16147         true case.
16148
16149 2011-05-28  Bruno Haible  <bruno@clisp.org>
16150
16151         getloadavg: Remove an unreliable safety check.
16152         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
16153         getloadavg.c is in place.
16154         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
16155         Reported by Sam Steingold <sds@gnu.org>.
16156
16157 2011-05-28  Bruno Haible  <bruno@clisp.org>
16158
16159         doc: Cleanup yet another file produced by texinfo.tex.
16160         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
16161
16162 2011-05-28  Bruno Haible  <bruno@clisp.org>
16163
16164         Finish the conditional dependencies mechanism.
16165         * gnulib-tool: New option --no-conditional-dependencies.
16166         (func_usage): Document it. Don't mark --conditional-dependencies as
16167         experimental.
16168         (cond_dependencies): The possible values can now be true, false, empty.
16169         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
16170         (func_import): Store setting in gnulib-cache.m4 and read it from there.
16171         * doc/gnulib-tool.texi (Conditional dependencies): New section.
16172
16173 2011-05-28  Bruno Haible  <bruno@clisp.org>
16174
16175         doc: Use a recent texinfo.tex.
16176         * doc/Makefile (tex_opts): New variable.
16177         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
16178
16179 2011-05-28  Jim Meyering  <meyering@redhat.com>
16180
16181         intprops.h: adjust comment to match code change
16182         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
16183         only once, it *may* have side effects.  Also fix an unrelated typo.
16184         (_GL_INT_SIGNED): Likewise.
16185
16186 2011-05-26  Simon Josefsson  <simon@josefsson.org>
16187
16188         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
16189
16190 2011-05-26  Bruno Haible  <bruno@clisp.org>
16191
16192         mbsrchr: Avoid collision with system function on Interix.
16193         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
16194         Reported by Markus Duft <mduft@gentoo.org>.
16195
16196 2011-05-15  James Youngman  <jay@gnu.org>
16197
16198         getopt: for ambiguous options, enumerate the possibilities.
16199         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
16200         the ambiguous options when an ambiguous prefix is given. This was
16201         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
16202         glibc change was
16203         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
16204
16205 2011-05-25  Eric Blake  <eblake@redhat.com>
16206
16207         getcwd: work around mingw bug
16208         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
16209         * doc/posix-functions/getcwd.texi (getcwd): Document it.
16210         Reported by Matthias Bolte.
16211
16212 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
16213
16214         test-intprops: disable -Wtype-limits diagnostics
16215         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
16216         diagnostics.  Otherwise, the integer overflow macros generate many
16217         diagnostics.  Reported by Jim Meyering in
16218         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
16219
16220         intprops: shorten, to pacify gcc -Woverlength-strings
16221         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
16222         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
16223         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
16224         likely to run afoul of C compiler limits for string constant lengths.
16225         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
16226
16227 2011-05-24  Eric Blake  <eblake@redhat.com>
16228
16229         docs: document recently fixed glibc printf bug
16230         * doc/posix-functions/fprintf.texi (fprintf): Document it.
16231         * doc/posix-functions/printf.texi (printf): Likewise.
16232         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
16233         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
16234
16235         closein-tests: convert to init.sh
16236         * modules/closein-tests (Files): Add init.sh
16237         * tests/test-closein.sh Use it.
16238
16239         yesno-tests: convert to init.sh
16240         * modules/yesno-tests (Files): Add init.sh.
16241         * tests/test-yesno.sh: Use it.
16242
16243         atexit-tests: ensure reliable exit status
16244         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
16245         Reported by Bruno Haible.
16246
16247 2011-05-24  Bruno Haible  <bruno@clisp.org>
16248
16249         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
16250         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
16251         gl_PREREQ_STRERROR_R invocations from here...
16252         * modules/strerror_r-posix (configure.ac): ... to here.
16253
16254 2011-05-24  Eric Blake  <eblake@redhat.com>
16255
16256         strerror_r: fix missing header
16257         * lib/strerror_r.c: Avoid compiler warning about snprintf.
16258
16259         strerror_r: fix AIX test failures
16260         * lib/strerror_r.c (strerror_r): Convert silent truncation to
16261         ERANGE failure.
16262
16263         strerror_r: fix Solaris test failures
16264         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
16265         failures.
16266         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
16267
16268         strerror_r: enforce POSIX recommendations
16269         * lib/strerror_r.c (safe_copy): New helper method.
16270         (strerror_r): Guarantee a non-empty string.
16271         * tests/test-strerror_r.c (main): Enhance tests to incorporate
16272         recent POSIX rulings and to match our strerror guarantees.
16273         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
16274
16275 2011-05-24  Jim Meyering  <meyering@redhat.com>
16276
16277         test-perror2.c: avoid warning about unused variable
16278         * tests/test-perror2.c (main): Remove declaration of unused "fp".
16279
16280 2011-05-24  Eric Blake  <eblake@redhat.com>
16281
16282         perror: avoid spurious test failure on HP-UX
16283         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
16284
16285         tests: fix logic bug in init.sh
16286         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
16287         shell.
16288
16289 2011-05-24  Jim Meyering  <meyering@redhat.com>
16290
16291         utimensat: do not reference an out-of-scope buffer
16292         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
16293         declared in an inner scope, yet "times" would be dereferenced outside
16294         the scope in which "ts" was valid.
16295         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
16296         of ts[2] "out/up", so that the use of aliased "times" (via
16297         "times = ts;") does not end up referencing an out-of-scope "ts"
16298
16299         opendir-safer.c: don't clobber errno; don't close negative FD
16300         * lib/opendir-safer.c (opendir_safer):
16301         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
16302         file descriptor, and more importantly, don't clobber the
16303         offending errno value with EINVAL.  Before, upon failure
16304         of dup_safer, we would pass the negative file descriptor to
16305         fdopendir, which would clobber errno.
16306
16307 2011-05-23  Bruno Haible  <bruno@clisp.org>
16308
16309         idcache: Fix module description.
16310         * modules/idcache (Include): Set to "idcache.h".
16311
16312 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
16313
16314         gnulib-tool: fix portability problem with MacOS sed
16315         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
16316         before the "}".  Problem reported by Leo in
16317         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
16318         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
16319         sed_extract_condition1, sed_extract_condition2.
16320
16321 2011-05-23  Bruno Haible  <bruno@clisp.org>
16322
16323         hash: Simplify autoconf macro.
16324         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
16325
16326 2011-05-23  Bruno Haible  <bruno@clisp.org>
16327
16328         getugroups: Fix module description.
16329         * modules/getugroups (Include): Set to "getugroups.h".
16330
16331 2011-05-23  Bruno Haible  <bruno@clisp.org>
16332
16333         linkat: Simplify autoconf macro.
16334         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
16335
16336 2011-05-23  Bruno Haible  <bruno@clisp.org>
16337             Eric Blake  <eblake@redhat.com>
16338
16339         linkat, renameat: Update dependencies.
16340         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
16341         * modules/linkat (Depends-on): Likewise. Remove also readlink,
16342         symlinkat.
16343
16344 2011-05-23  Jim Meyering  <meyering@redhat.com>
16345
16346         maint.mk: more tight_scope improvements
16347         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
16348         (_gl_TS_headers): Define only in if-0'd block.
16349         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
16350         sometimes we must *not* use it.  Adjust uses accordingly.
16351         (sc_tight_scope): Use much simpler grep-based test to determine
16352         whether we skip this rule.
16353
16354         maint.mk: generalize/improve the tight-scope rule
16355         * top/maint.mk: Emit a warning when the test is skipped.
16356         (_gl_TS_dir): Add $(srcdir)/ prefix.
16357         (_gl_TS_function_match): Simplify, rather than trying
16358         to enumerate common types.  Otherwise, it would fail to match an
16359         "extern unsigned char const *" declaration in idutils.
16360         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
16361         a way to support use of that type of macro.
16362         (_gl_TS_var_match): Simplify regexp.
16363         (_gl_TS_obj_files): New configurable variable.
16364         (_gl_TS_headers): Likewise.
16365
16366 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
16367
16368         verify: fix bug when gnulib <assert.h> is also included
16369         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
16370         is defined, not if _GL_STATIC_ASSERT_H is not defined.
16371         Perhaps there's a better way, but this fixes the immediate problem.
16372         Problem reported by Bruno Haible in
16373         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
16374
16375 2011-05-22  Bruno Haible  <bruno@clisp.org>
16376
16377         xgetcwd: Simplify autoconf macro.
16378         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
16379
16380 2011-05-22  Bruno Haible  <bruno@clisp.org>
16381
16382         New module 'mktime-internal'.
16383         * modules/mktime-internal: New file.
16384         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
16385         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
16386         mktime_internal as a C macro if libc has __mktime_internal.
16387         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
16388         conditions.
16389         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
16390
16391 2011-05-22  Bruno Haible  <bruno@clisp.org>
16392
16393         timegm: Correct mktime replacement statements.
16394         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
16395         defining mktime as a C macro. This completes a 2009-07-28 commit.
16396
16397 2011-05-22  Bruno Haible  <bruno@clisp.org>
16398
16399         timegm: Simplify autoconf macro.
16400         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
16401
16402 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
16403
16404         clock-time: change to LGPLv2+.
16405         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
16406         BSD-like but we have no mark for that; this is good enough for now.
16407
16408 2011-05-21  Bruno Haible  <bruno@clisp.org>
16409
16410         strerror_r: Fix comments.
16411         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
16412
16413 2011-05-21  Bruno Haible  <bruno@clisp.org>
16414
16415         relocatable-prog-wrapper: Fix possible link error.
16416         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
16417         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
16418         (gl_FUNC_SETENV): ... to here.
16419         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
16420         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
16421
16422 2011-05-21  Bruno Haible  <bruno@clisp.org>
16423
16424         relocatable-prog-wrapper: Assume strerror() exists.
16425         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
16426         m4/strerror.m4.
16427         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
16428         * lib/relocwrapper.c: Remove mention of strerror module.
16429         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
16430         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
16431         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
16432         C macro.
16433
16434 2011-05-21  Bruno Haible  <bruno@clisp.org>
16435
16436         select: Simplify replacement idiom.
16437         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
16438         Win32 platforms.
16439         * lib/sys_select.in.h (select): Simplify accordingly.
16440         * modules/select (Depends-on): Likewise.
16441
16442 2011-05-21  Bruno Haible  <bruno@clisp.org>
16443
16444         mkdir-p: Simplify autoconf macro.
16445         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
16446         gl_FUNC_LCHOWN.
16447
16448 2011-05-21  Eric Blake  <eblake@redhat.com>
16449
16450         strerror_r: avoid clobbering strerror on cygwin
16451         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
16452         fall back instead to sys_errlist.
16453         * modules/strerror (configure.ac): Add witness.
16454         * tests/test-strerror_r.c (main): Enhance test.
16455         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
16456         * tests/test-perror2.c (main): Free memory before exit.
16457
16458 2011-05-21  Bruno Haible  <bruno@clisp.org>
16459
16460         mkdtemp: Use gnulib naming conventions.
16461         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
16462         * modules/mkdtemp (configure.ac): Update.
16463
16464 2011-05-20  Eric Blake  <eblake@redhat.com>
16465
16466         strerror_r: avoid corrupting errno on Solaris
16467         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
16468         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
16469
16470         strerror_r: avoid compiler warning
16471         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
16472
16473         strerror_r: simplify AIX code
16474         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
16475
16476         test-perror: avoid spurious failure on FreeBSD
16477         * modules/perror-tests (Depends-on): Add strerror, now that
16478         strerror_r no longer pulls it in.
16479
16480 2011-05-20  Bruno Haible  <bruno@clisp.org>
16481
16482         strerror_r-posix: Remove unused dependencies.
16483         * modules/strerror_r-posix (Depends-on): Remove strerror.
16484         Reported by Eric Blake.
16485
16486 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
16487
16488         intprops: remove assumption about A|B representation
16489         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
16490         is a valid integer if both A and B are.  Although this is true for
16491         all known practical hosts, the C standard doesn't guarantee it,
16492         and the code need not assume it.  Also, this change may work around
16493         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
16494         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
16495
16496 2011-05-20  Eric Blake  <eblake@redhat.com>
16497
16498         perror: work around FreeBSD bug
16499         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
16500         is broken.  Move AC_LIBOBJ...
16501         * modules/perror (configure.ac): Here.
16502         * doc/posix-functions/perror.texi (perror): Document this.
16503         * tests/test-perror2.c (main): Enhance test.
16504
16505         test-perror: check for strerror interactions
16506         * tests/macros.h (STREQ): Add macro.
16507         * modules/perror-tests (Files): Add second test.
16508         * tests/test-perror2.c (main): New file.
16509         * doc/posix-functions/perror.texi (perror): Document glibc bug.
16510
16511         test-perror: rewrite to use init script
16512         * modules/perror-tests (Files): Add init.sh.
16513         * tests/test-perror.sh: Use temporary directory.
16514
16515 2011-05-20  Jim Meyering  <meyering@redhat.com>
16516
16517         maint: replace misused "a" with "an"
16518         * doc/intprops.texi: "a integer"
16519         * doc/regex.texi: "a explanation"
16520         * lib/alignof.h: "a object"
16521         * lib/argmatch.h: "a explanation"
16522         * lib/argp-help.c: "a option" and "a OPTION_DOC"
16523         * lib/stdint.in.h: "a integer"
16524         * lib/userspec.c: "a owner"
16525         * doc/gnulib.texi: Fix "a idea", and reword.
16526
16527 2011-05-19  Jim Meyering  <meyering@redhat.com>
16528
16529         maint: correct misuse of "a" and "an"
16530         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
16531         * lib/argp-help.c: "an docum...": s/an/a/
16532         * lib/argp-parse.c: "An vector": s/An/A/
16533         * lib/execute.c: "an native": s/an/a/
16534         * lib/spawn-pipe.c: Likewise.
16535         * lib/gc.h: "an Gc_rc": s/an/a/
16536         * lib/unigbrk.in.h: "an grapheme": s/an/a/
16537         * lib/fts.c: "an stat.st_dev": s/an/a/
16538
16539 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
16540
16541         intprops-tests: work around HP-UX 11.23 cc bug with constants
16542         * tests/test-intprops.c (VERIFY): New macro.
16543         (main): Use it, instead of verify, to work around the compiler bug; see
16544         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
16545
16546         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
16547         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
16548         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
16549         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
16550         (_GL_REMAINDER_OVERFLOW): Use it.
16551
16552         intprops-tests: revert unsigned part of previous change
16553         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
16554         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
16555         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
16556         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
16557
16558 2011-05-19  Bruno Haible  <bruno@clisp.org>
16559
16560         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
16561         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
16562         strerror_r() returned without filling the buffer.
16563         Reported by Eric Blake.
16564
16565 2011-05-19  Eric Blake  <eblake@redhat.com>
16566
16567         strerror_r: guarantee unchanged errno
16568         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
16569         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
16570         failure.
16571         * tests/test-strerror_r.c (main): Enhance test.
16572
16573 2011-05-19  Bruno Haible  <bruno@clisp.org>
16574
16575         strerror_r: Reorder #if blocks.
16576         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
16577         for consistency with the previous commit.
16578
16579 2011-05-19  Bruno Haible  <bruno@clisp.org>
16580
16581         perror: Avoid clobbering the strerror buffer when possible.
16582         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
16583         * lib/strerror.c: Include it.
16584         * modules/strerror (Files): Add lib/strerror-impl.h.
16585         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
16586         (my_strerror): New function, defined through lib/strerror-impl.h.
16587         (perror): Use it instead of strerror.
16588         * modules/perror (Files): Add lib/strerror-impl.h.
16589         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
16590
16591 2011-05-19  Eric Blake  <eblake@redhat.com>
16592
16593         strerror_r: fix on newer cygwin
16594         * lib/strerror_r.c (strerror_r): Cygwin now has
16595         __xpg_strerror_r, use it.
16596
16597 2011-05-19  Bruno Haible  <bruno@clisp.org>
16598
16599         strerror_r: Avoid clobbering the strerror buffer when possible.
16600         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
16601         (sys_nerr, sys_errlist): New declarations.
16602         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
16603         HP-UX, native Win32, IRIX, and 32-bit Solaris.
16604         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
16605
16606 2011-05-19  Bruno Haible  <bruno@clisp.org>
16607
16608         strerror_r: Fix test failure on mingw.
16609         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
16610         EXTEND_STRERROR_R.
16611         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
16612         macros from errno.in.h instead.
16613
16614 2011-05-19  Eric Blake  <eblake@redhat.com>
16615
16616         strerror: relax test for Solaris
16617         * tests/test-strerror.c (main): Permit Solaris behavior.
16618         * tests/test-strerror_r.c (main): Likewise.
16619
16620         strerror: enforce POSIX ruling on strerror(0)
16621         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
16622         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
16623         * lib/strerror_r.c (rpl_strerror_r): Work around it.
16624         * doc/posix-functions/strerror.texi (strerror): Document it.
16625         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
16626         * tests/test-strerror.c (main): Strengthen test.
16627         * tests/test-strerror_r.c (main): Likewise.
16628
16629 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
16630
16631         intprop-tests: port to older and more-pedantic compilers
16632         * modules/intprops-tests (Files): Add tests/macros.h.
16633         * tests/test-intprops.c: Include macros.h.
16634         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
16635         it's no longer documented to expand to an integer constant expression.
16636         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
16637         argument is floating point, as it's no longer documented to expand
16638         to an integer constant expression in that case.
16639         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
16640         compiler bugs reported by Bruno Haible.  See
16641         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
16642         (U0, U1): New constants, to work around the same bugs.  Also,
16643         in tests, use e.g., "(unsigned int) 39" rather than "39u".
16644
16645         intprops: work around C compiler bugs
16646         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
16647         bug in Sun C 5.11 2010/08/13 and other compilers; see
16648         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
16649
16650         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
16651         * doc/intprops.texi (Integer Type Determination): Fix
16652         documentation for TYPE_IS_INTEGER: it returns an constant
16653         expression, not an integer constant expression.  Fix doc for
16654         TYPE_SIGNED: it returns an integer constant expression only if its
16655         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
16656         hardly worth documented that way....)
16657
16658 2011-05-18  Bruno Haible  <bruno@clisp.org>
16659
16660         strerror_r: Avoid clobbering the strerror buffer when possible.
16661         * lib/strerror_r.c (strerror_r): Merge the three implementations.
16662         Handle gnulib defined errno values here. When strerror() returns NULL
16663         or an empty string, return EINVAL.
16664         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
16665         gnulib defined errno values here.
16666         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
16667
16668 2011-05-18  Eric Blake  <eblake@redhat.com>
16669
16670         fnmatch: avoid compiler warning
16671         * lib/fnmatch_loop.c (FCT): Use correct type.
16672         Reported by Matthias Bolte.
16673
16674 2011-05-13  Jim Meyering  <meyering@redhat.com>
16675
16676         maint.mk: three new prohibit_<HDR>_without_use rules
16677         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
16678         (sc_prohibit_stdio-safer_without_use): Likewise.
16679         (sc_prohibit_xfreopen_without_use): Likewise.
16680
16681 2011-05-17  Jim Meyering  <meyering@redhat.com>
16682
16683         announce-gen: fail if the NEWS delta is empty
16684         If there's nothing noteworthy in NEWS, then either you forgot
16685         or you shouldn't be releasing.
16686         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
16687
16688 2011-05-17  Pádraig Brady <P@draigBrady.com>
16689
16690         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
16691         reserved symbols starting with double underscore from the check.
16692
16693 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
16694
16695         intprops: add doc
16696         * doc/intprops.texi: New file, documenting intprops.
16697         * doc/gnulib.texi (Particular Modules): Include it.
16698
16699         verify: add doc to gnulib manual and fix example
16700         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
16701         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
16702         (Compile-time Assertions): Fix example so it can't overflow.
16703
16704 2011-05-17  Jim Meyering  <meyering@redhat.com>
16705
16706         warnings.m4: don't usurp save_CPPFLAGS variable name
16707         * m4/warnings.m4: Prefix local temporary variable name with gl_.
16708
16709         doc: fix typo
16710         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
16711
16712 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
16713             Bruno Haible  <bruno@clisp.org>
16714
16715         doc: Tweak recent change.
16716         * README (Portability guidelines): Tweak new text.
16717         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
16718         Interix 6.1.
16719
16720 2011-05-16  Eric Blake  <eblake@redhat.com>
16721
16722         inttypes: avoid autoconf warning
16723         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
16724         * m4/stdint.m4 (gl_STDINT_H): Likewise.
16725
16726 2011-05-16  Sam Steingold <sds@gnu.org>
16727         and Eric Blake  <eblake@redhat.com>
16728
16729         vc-list-files: accept multiple directory operands
16730         * build-aux/vc-list-files: Iterate over all remaining operands.
16731
16732 2011-05-16  Bruno Haible  <bruno@clisp.org>
16733
16734         Fix confusion regarding deprecated modules.
16735         * modules/calloc (Status, Notice): Mark module as deprecated, not
16736         obsolete.
16737         * modules/fnmatch-posix (Status, Notice): Likewise.
16738         * modules/getdate (Status, Notice): Likewise.
16739         * modules/getopt (Status, Notice): Likewise.
16740         * modules/malloc (Status, Notice): Likewise.
16741         * modules/pipe (Status, Notice): Likewise.
16742         * modules/realloc (Status, Notice): Likewise.
16743         * modules/rename-dest-slash (Status, Notice): Likewise.
16744         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
16745         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
16746         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
16747         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
16748         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
16749
16750 2011-05-16  Bruno Haible  <bruno@clisp.org>
16751
16752         doc: List the target platforms.
16753         * doc/gnulib-intro.texi (Target Platforms): New section.
16754         * doc/gnulib.texi (Introduction): Update menu.
16755         * README (Portability guidelines): Refer to the new section. Update
16756         statement about oldest supported environment. Remove rationale why
16757         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
16758         unportable C89 function.
16759         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
16760         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
16761
16762 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
16763
16764         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
16765
16766 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
16767
16768         intprops-tests: new module
16769         * modules/intprops-tests, tests/test-intprops.c: New files.
16770
16771         intprops: add safe, portable integer overflow checking
16772         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
16773         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
16774         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
16775         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
16776         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
16777         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
16778         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
16779         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
16780         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
16781         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
16782         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
16783
16784 2011-05-12  James Youngman  <jay@gnu.org>
16785
16786         Add a test for glibc's Bugzilla bug #12378.
16787         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
16788         doesn't allow the literal matching of a lone "[" (which is
16789         required by POSIX).
16790         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
16791
16792 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
16793
16794         Sync glibc change fixing Bugzilla bug #12378.
16795         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
16796         beginning and fall back to matching as normal character if the
16797         string ends before the matching ']' is found.  This is what POSIX
16798         requires.
16799
16800 2011-05-13  Eric Blake  <eblake@redhat.com>
16801
16802         getcwd-lgpl: relax test for FreeBSD
16803         * doc/posix-functions/getcwd.texi (getcwd): Document portability
16804         issue.
16805         * tests/test-getcwd-lgpl.c (main): Relax test.
16806         Reported by Matthias Bolte.
16807
16808 2011-05-11  Eric Blake  <eblake@redhat.com>
16809
16810         test-fflush: silence compiler warning
16811         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
16812
16813 2011-05-11  Bruno Haible  <bruno@clisp.org>
16814
16815         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
16816         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
16817         * modules/canonicalize (Depends-on): Add 'nocrash'.
16818         * modules/canonicalize-lgpl (Depends-on): Likewise.
16819         * doc/posix-functions/realpath.texi: Update platforms list.
16820         Reported by Ryan Schmidt <ryandesign@macports.org>.
16821
16822 2011-05-11  Bruno Haible  <bruno@clisp.org>
16823
16824         group-member: Declare function in <unistd.h>.
16825         * lib/unistd.in.h (group_member): New declaration.
16826         * lib/group-member.h: Remove file.
16827         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
16828         * tests/test-unistd-c++.cc: Check signature of group_member.
16829         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
16830         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
16831         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
16832         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
16833         HAVE_GROUP_MEMBER.
16834         * modules/group-member (Files): Remove lib/group-member.h.
16835         (Depends-on): Add unistd. Specify conditions.
16836         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
16837         (Include): Change to <unistd.h>.
16838         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
16839         HAVE_GROUP_MEMBER.
16840         * NEWS: Mention the change.
16841         * lib/euidaccess.c: Don't include group-member.h.
16842
16843 2011-05-11  Bruno Haible  <bruno@clisp.org>
16844
16845         group-member: Document module.
16846         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
16847         module.
16848
16849 2011-05-11  Bruno Haible  <bruno@clisp.org>
16850
16851         fclose: Fix mistake earlier today.
16852         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
16853
16854 2011-05-11  Eric Blake  <eblake@redhat.com>
16855
16856         fclose: preserve fflush errors
16857         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
16858         Reported by Jim Meyering.
16859
16860         bootstrap: support a prereq of 'rpcgen -' on RHEL5
16861         * build-aux/bootstrap (check_versions): When no specific version
16862         is required, merely check that the app produces an exit status
16863         that indicates its existence.
16864
16865         maint.mk: drop redundant check
16866         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
16867         the same but better.
16868
16869 2011-05-11  Bruno Haible  <bruno@clisp.org>
16870
16871         fclose: Fix possible link error.
16872         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
16873         unregister_shadow_fd. Improve comments.
16874         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
16875         Eric Blake.
16876
16877 2011-05-11  Jim Meyering  <meyering@redhat.com>
16878
16879         maint.mk: improve "can not" detection and generalize rule name
16880         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
16881         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
16882         Use the same technique as in sc_prohibit_doubled_word, so that
16883         we recognize "can not" also when the words are separated by a newline.
16884         Suggested by Eric Blake.
16885         (perl_filename_lineno_text_): Define.  Factored out of...
16886         (prohibit_doubled_word_): ...here.  Use the new definition.
16887         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
16888         (prohibit_undesirable_word_seq_RE_): New overridable variable.
16889         (ignore_undesirable_word_sequence_RE_): New overridable variable.
16890
16891 2011-05-10  Eric Blake  <eblake@redhat.com>
16892
16893         fclose: avoid double close race when possible
16894         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
16895         all but WINDOWS_SOCKETS.
16896
16897 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
16898
16899         openat: correct new comment
16900         * lib/openat-proc.c (openat_proc_name): Correct the comment.
16901
16902 2011-05-10  Jim Meyering  <meyering@redhat.com>
16903
16904         openat: add comments
16905         * lib/openat-proc.c (openat_proc_name): Add comments,
16906         mostly from Eric Blake.
16907
16908 2011-05-09  Eric Blake  <eblake@redhat.com>
16909
16910         openat: reduce syscalls in first probe of /proc
16911         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
16912         be a directory.  Simplify the probe for .. bugs.
16913         * modules/openat (Depends-on): Drop same-inode.
16914         Reported by Bastien ROUCARIES.
16915
16916 2011-05-09  Jim Meyering  <meyering@redhat.com>
16917
16918         maint.mk: change semantics/name of tight_scope variables
16919         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
16920         Rename variables to align with semantics that make them more useful.
16921
16922         maint.mk: tweak new rule's name not to impinge
16923         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
16924         (sc_tight_scope): Use new rule name rather than $@-0.
16925
16926         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
16927         * top/maint.mk (sc_tight_scope): New rule.
16928         (sc_tight_scope-0): New rule, ifdef'd out.
16929         (_gl_TS_dir): Default.
16930         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
16931         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
16932
16933 2011-05-09  Simon Josefsson  <simon@josefsson.org>
16934
16935         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
16936         Haible <bruno@clisp.org>.
16937
16938 2011-05-08  Bruno Haible  <bruno@clisp.org>
16939
16940         Comments.
16941         * m4/isnanf.m4: Add comment.
16942         * m4/isnanl.m4: Likewise.
16943
16944 2011-05-08  Bruno Haible  <bruno@clisp.org>
16945
16946         glob: Remove obsolete macro.
16947         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
16948
16949 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
16950
16951         intprops: Sun C 5.11 supports __typeof__
16952         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
16953         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
16954         which is new.
16955         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
16956
16957         intprops: switch to usual gnulib indenting and naming
16958         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
16959         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
16960
16961         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
16962
16963 2011-05-08  Jim Meyering  <meyering@redhat.com>
16964
16965         maint.mk: suppress "Entering/Leaving directory" diag in announcement
16966         * top/maint.mk (release-prep): Use make's --no-print-directory
16967         option when generating the announcement.  This eliminates the
16968         pesky "make[2]: Entering/Leaving directory" diagnostics in the
16969         generated announcement template.
16970
16971 2011-05-08  Bruno Haible  <bruno@clisp.org>
16972
16973         tzset: Fix gettimeofday wrapper on Solaris 2.6.
16974         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
16975         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
16976
16977 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
16978
16979         ignore-value, verify: Omit include files from lib_SOURCES.
16980         * modules/ignore-value, modules/verify (Makefile.am):
16981         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
16982         that leads Automake to duplicate use of am__objects_... variables
16983         in Makefile.in.  See
16984         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
16985
16986 2011-05-07  Bruno Haible  <bruno@clisp.org>
16987
16988         fclose: Simplify autoconf macro.
16989         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
16990         defined.
16991
16992 2011-05-07  Bruno Haible  <bruno@clisp.org>
16993
16994         canonicalize-lgpl: Fix autoconf macro ordering bug.
16995         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
16996         gl_STDLIB_H_DEFAULTS.
16997
16998 2011-05-06  Eric Blake  <eblake@redhat.com>
16999
17000         maintainer-makefile: make sc_po_check easier to tune
17001         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
17002         to probe for strings, such as an alternate location for gnulib.
17003
17004         fclose: guarantee behavior on seekable stdin
17005         * modules/fclose (Depends-on): Add fflush.
17006         * doc/posix-functions/fclose.texi (fclose): Document this.
17007         * tests/test-fclose.c (main): Make test for this unconditional.
17008
17009 2011-05-06  Bruno Haible  <bruno@clisp.org>
17010
17011         fflush, fpurge: Relicense under LGPLv2+.
17012         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
17013         * modules/fpurge (License): Likewise.
17014         With permission from Eric Blake and Jim Meyering.
17015         Suggested by Eric Blake.
17016
17017 2011-05-06  Karl Berry  <karl@gnu.org>
17018
17019         * MODULES.html.sh (func_all_modules): remove exit.
17020
17021 2011-05-06  Jim Meyering  <meyering@redhat.com>
17022
17023         maint.mk: use info-gnu@ as the default only for a stable release
17024         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
17025         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
17026         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
17027         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
17028
17029 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
17030
17031         assert-h: new module, which supports C1X-style static_assert
17032         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
17033         * lib/verify.h: Revamp so that this can be copied into assert.h,
17034         while retaining the ability to use it standalone as before.
17035         Rename private identifiers so as not to encroach on the
17036         standard C namespace, since this is now used by assert.h.
17037         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
17038         the old verify_true.
17039         (_GL_VERIFY_TRUE): New macro, with much of the contents of
17040         the old verify_true.  Use _GL_VERIFY_TYPE.
17041         (_GL_VERIFY): New macro, with much of the contents of the old verify.
17042         (static_assert): New macro, if _GL_STATIC_ASSERT_H
17043         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
17044         defined when this file is copied into the replacement assert.h.
17045         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
17046         and _Static_assert is not built in.
17047         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
17048         defined, and use the new macros mentioned above.
17049         * doc/posix-headers/assert.texi: Document this.
17050
17051 2011-05-05  Bruno Haible  <bruno@clisp.org>
17052
17053         fclose, fflush: Respect rules for use of AC_LIBOBJ.
17054         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
17055         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
17056         gl_REPLACE_FCLOSE here.
17057         * modules/fflush (Depends-on): Remove fclose.
17058         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
17059         combination with module 'fclose'.
17060
17061 2011-05-05  Bruno Haible  <bruno@clisp.org>
17062
17063         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
17064         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
17065         gl_FUNC_FFLUSH.
17066         (gl_FUNC_FFLUSH): Use it.
17067         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
17068         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
17069         gl_REPLACE_FSEEKO here.
17070
17071 2011-05-05  Bruno Haible  <bruno@clisp.org>
17072
17073         tzset: Relicense under LGPL.
17074         * modules/tzset (License): Change to LGPL.
17075         No agreement needed; it's a no-op.
17076
17077         strtoimax, strtoumax: Relicense under LGPL.
17078         * modules/strtoimax (License): Change to LGPL.
17079         * modules/strtoumax (License): Likewise.
17080         With permission from Jim Meyering, Paul Eggert:
17081         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
17082         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
17083
17084         getgroups: Relicense under LGPL.
17085         * modules/getgroups (License): Change to LGPL.
17086         With permission from Jim Meyering, Paul Eggert, Eric Blake:
17087         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
17088         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
17089         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
17090
17091         nanosleep: Relicense under LGPL.
17092         * modules/nanosleep (License): Change to LGPL.
17093         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
17094         Haible:
17095         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
17096         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
17097         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
17098         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
17099
17100         futimens: Relicense under LGPL.
17101         * modules/futimens (License): Change to LGPL.
17102         With permission from Eric Blake:
17103         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
17104
17105         fflush: Relicense under LGPL.
17106         * modules/fflush (License): Change to LGPL.
17107         With permission from Eric Blake, Bruno Haible, Jim Meyering:
17108         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
17109         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
17110         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
17111
17112         tmpfile: Relicense under LGPL.
17113         * modules/tmpfile (License): Change to LGPL.
17114         With permission from Ben Pfaff:
17115         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
17116
17117         isfinite: Relicense under LGPL.
17118         * modules/isfinite (License): Change to LGPL.
17119         With permission from Ben Pfaff, Bruno Haible:
17120         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
17121         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
17122
17123         acosl..tanl: Relicense under LGPL.
17124         * modules/acosl (License): Change to LGPL.
17125         * modules/asinl (License): Likewise.
17126         * modules/atanl (License): Likewise.
17127         * modules/cosl (License): Likewise.
17128         * modules/expl (License): Likewise.
17129         * modules/logl (License): Likewise.
17130         * modules/sinl (License): Likewise.
17131         * modules/sqrtl (License): Likewise.
17132         * modules/tanl (License): Likewise.
17133         Source code originally from glibc and Paolo Bonzini. Agreements:
17134         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
17135         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
17136
17137 2011-05-05  Bruno Haible  <bruno@clisp.org>
17138
17139         signal: Define sighandler_t.
17140         * lib/signal.in.h (sighandler_t): New type.
17141         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
17142         whether sighandler_t is defined.
17143         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
17144         * modules/signal (Depends-on): Add extensions.
17145         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
17146         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
17147         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
17148
17149 2011-05-05  Eric Blake  <eblake@redhat.com>
17150
17151         maint: remove useless REPLACE_*_H macros
17152         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
17153         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
17154         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
17155         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
17156         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
17157         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
17158         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
17159         * m4/btowc.m4: Update callers.
17160         * m4/dirfd.m4: Likewise.
17161         * m4/duplocale.m4: Likewise.
17162         * m4/fchdir.m4: Likewise.
17163         * m4/fdopendir.m4: Likewise.
17164         * m4/inet_ntop.m4: Likewise.
17165         * m4/inet_pton.m4: Likewise.
17166         * m4/ioctl.m4: Likewise.
17167         * m4/mbrlen.m4: Likewise.
17168         * m4/mbrtowc.m4: Likewise.
17169         * m4/mbsinit.m4: Likewise.
17170         * m4/mbsnrtowcs.m4: Likewise.
17171         * m4/mbsrtowcs.m4: Likewise.
17172         * m4/poll.m4: Likewise.
17173         * m4/setlocale.m4: Likewise.
17174         * m4/wcrtomb.m4: Likewise.
17175         * m4/wcsnrtombs.m4: Likewise.
17176         * m4/wcsrtombs.m4: Likewise.
17177         * m4/wctob.m4: Likewise.
17178         * m4/wcwidth.m4: Likewise.
17179         * modules/posix_spawn: Likewise.
17180         * modules/posix_spawn_file_actions_addclose: Likewise.
17181         * modules/posix_spawn_file_actions_adddup2: Likewise.
17182         * modules/posix_spawn_file_actions_addopen: Likewise.
17183         * modules/posix_spawn_file_actions_destroy: Likewise.
17184         * modules/posix_spawn_file_actions_init: Likewise.
17185         * modules/posix_spawnattr_destroy: Likewise.
17186         * modules/posix_spawnattr_getflags: Likewise.
17187         * modules/posix_spawnattr_getpgroup: Likewise.
17188         * modules/posix_spawnattr_getschedparam: Likewise.
17189         * modules/posix_spawnattr_getschedpolicy: Likewise.
17190         * modules/posix_spawnattr_getsigdefault: Likewise.
17191         * modules/posix_spawnattr_getsigmask: Likewise.
17192         * modules/posix_spawnattr_init: Likewise.
17193         * modules/posix_spawnattr_setflags: Likewise.
17194         * modules/posix_spawnattr_setpgroup: Likewise.
17195         * modules/posix_spawnattr_setschedparam: Likewise.
17196         * modules/posix_spawnattr_setschedpolicy: Likewise.
17197         * modules/posix_spawnattr_setsigdefault: Likewise.
17198         * modules/posix_spawnattr_setsigmask: Likewise.
17199         * modules/posix_spawnp: Likewise.
17200
17201 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
17202
17203         Add option to do-release-commit-and-tag to specify branch.
17204         * build-aux/do-release-commit-and-tag: Add --branch.
17205
17206 2011-05-03  Bruno Haible  <bruno@clisp.org>
17207
17208         Avoid unnecessary compilation units, through conditional dependencies.
17209         * modules/accept (Depends-on): Add conditions to the dependencies.
17210         * modules/acosl (Depends-on): Likewise.
17211         * modules/argz (Depends-on): Likewise.
17212         * modules/asinl (Depends-on): Likewise.
17213         * modules/atanl (Depends-on): Likewise.
17214         * modules/atoll (Depends-on): Likewise.
17215         * modules/bind (Depends-on): Likewise.
17216         * modules/btowc (Depends-on): Likewise.
17217         * modules/canonicalize-lgpl (Depends-on): Likewise.
17218         * modules/ceil (Depends-on): Likewise.
17219         * modules/ceilf (Depends-on): Likewise.
17220         * modules/ceill (Depends-on): Likewise.
17221         * modules/chdir-long (Depends-on): Likewise.
17222         * modules/chown (Depends-on): Likewise.
17223         * modules/close (Depends-on): Likewise.
17224         * modules/connect (Depends-on): Likewise.
17225         * modules/cosl (Depends-on): Likewise.
17226         * modules/dirfd (Depends-on): Likewise.
17227         * modules/dprintf (Depends-on): Likewise.
17228         * modules/dprintf-posix (Depends-on): Likewise.
17229         * modules/error (Depends-on): Likewise.
17230         * modules/euidaccess (Depends-on): Likewise.
17231         * modules/expl (Depends-on): Likewise.
17232         * modules/faccessat (Depends-on): Likewise.
17233         * modules/fchdir (Depends-on): Likewise.
17234         * modules/fclose (Depends-on): Likewise.
17235         * modules/fcntl (Depends-on): Likewise.
17236         * modules/fdopendir (Depends-on): Likewise.
17237         * modules/fflush (Depends-on): Likewise.
17238         * modules/floor (Depends-on): Likewise.
17239         * modules/floorf (Depends-on): Likewise.
17240         * modules/floorl (Depends-on): Likewise.
17241         * modules/fnmatch (Depends-on): Likewise.
17242         * modules/fopen (Depends-on): Likewise.
17243         * modules/fprintf-posix (Depends-on): Likewise.
17244         * modules/frexp (Depends-on): Likewise.
17245         * modules/frexp-nolibm (Depends-on): Likewise.
17246         * modules/frexpl (Depends-on): Likewise.
17247         * modules/frexpl-nolibm (Depends-on): Likewise.
17248         * modules/fseek (Depends-on): Likewise.
17249         * modules/fsusage (Depends-on): Likewise.
17250         * modules/ftell (Depends-on): Likewise.
17251         * modules/ftello (Depends-on): Likewise.
17252         * modules/futimens (Depends-on): Likewise.
17253         * modules/getcwd (Depends-on): Likewise.
17254         * modules/getcwd-lgpl (Depends-on): Likewise.
17255         * modules/getdelim (Depends-on): Likewise.
17256         * modules/getdomainname (Depends-on): Likewise.
17257         * modules/getgroups (Depends-on): Likewise.
17258         * modules/gethostname (Depends-on): Likewise.
17259         * modules/getline (Depends-on): Likewise.
17260         * modules/getlogin_r (Depends-on): Likewise.
17261         * modules/getopt-posix (Depends-on): Likewise.
17262         * modules/getpeername (Depends-on): Likewise.
17263         * modules/getsockname (Depends-on): Likewise.
17264         * modules/getsockopt (Depends-on): Likewise.
17265         * modules/getsubopt (Depends-on): Likewise.
17266         * modules/getusershell (Depends-on): Likewise.
17267         * modules/glob (Depends-on): Likewise.
17268         * modules/grantpt (Depends-on): Likewise.
17269         * modules/iconv_open (Depends-on): Likewise.
17270         * modules/iconv_open-utf (Depends-on): Likewise.
17271         * modules/inet_ntop (Depends-on): Likewise.
17272         * modules/inet_pton (Depends-on): Likewise.
17273         * modules/ioctl (Depends-on): Likewise.
17274         * modules/isapipe (Depends-on): Likewise.
17275         * modules/isfinite (Depends-on): Likewise.
17276         * modules/isinf (Depends-on): Likewise.
17277         * modules/lchown (Depends-on): Likewise.
17278         * modules/ldexpl (Depends-on): Likewise.
17279         * modules/link (Depends-on): Likewise.
17280         * modules/linkat (Depends-on): Likewise.
17281         * modules/listen (Depends-on): Likewise.
17282         * modules/logl (Depends-on): Likewise.
17283         * modules/lstat (Depends-on): Likewise.
17284         * modules/mbrlen (Depends-on): Likewise.
17285         * modules/mbrtowc (Depends-on): Likewise.
17286         * modules/mbsinit (Depends-on): Likewise.
17287         * modules/mbsnrtowcs (Depends-on): Likewise.
17288         * modules/mbsrtowcs (Depends-on): Likewise.
17289         * modules/mbtowc (Depends-on): Likewise.
17290         * modules/memcmp (Depends-on): Likewise.
17291         * modules/mkdir (Depends-on): Likewise.
17292         * modules/mkdtemp (Depends-on): Likewise.
17293         * modules/mkfifo (Depends-on): Likewise.
17294         * modules/mkfifoat (Depends-on): Likewise.
17295         * modules/mknod (Depends-on): Likewise.
17296         * modules/mkostemp (Depends-on): Likewise.
17297         * modules/mkostemps (Depends-on): Likewise.
17298         * modules/mkstemp (Depends-on): Likewise.
17299         * modules/mkstemps (Depends-on): Likewise.
17300         * modules/mktime (Depends-on): Likewise.
17301         * modules/nanosleep (Depends-on): Likewise.
17302         * modules/open (Depends-on): Likewise.
17303         * modules/openat (Depends-on): Likewise.
17304         * modules/perror (Depends-on): Likewise.
17305         * modules/poll (Depends-on): Likewise.
17306         * modules/popen (Depends-on): Likewise.
17307         * modules/posix_spawn (Depends-on): Likewise.
17308         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
17309         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
17310         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
17311         * modules/posix_spawnp (Depends-on): Likewise.
17312         * modules/pread (Depends-on): Likewise.
17313         * modules/printf-posix (Depends-on): Likewise.
17314         * modules/ptsname (Depends-on): Likewise.
17315         * modules/putenv (Depends-on): Likewise.
17316         * modules/pwrite (Depends-on): Likewise.
17317         * modules/readline (Depends-on): Likewise.
17318         * modules/readlink (Depends-on): Likewise.
17319         * modules/readlinkat (Depends-on): Likewise.
17320         * modules/recv (Depends-on): Likewise.
17321         * modules/recvfrom (Depends-on): Likewise.
17322         * modules/regex (Depends-on): Likewise.
17323         * modules/remove (Depends-on): Likewise.
17324         * modules/rename (Depends-on): Likewise.
17325         * modules/renameat (Depends-on): Likewise.
17326         * modules/rmdir (Depends-on): Likewise.
17327         * modules/round (Depends-on): Likewise.
17328         * modules/roundf (Depends-on): Likewise.
17329         * modules/roundl (Depends-on): Likewise.
17330         * modules/rpmatch (Depends-on): Likewise.
17331         * modules/select (Depends-on): Likewise.
17332         * modules/send (Depends-on): Likewise.
17333         * modules/sendto (Depends-on): Likewise.
17334         * modules/setenv (Depends-on): Likewise.
17335         * modules/setlocale (Depends-on): Likewise.
17336         * modules/setsockopt (Depends-on): Likewise.
17337         * modules/shutdown (Depends-on): Likewise.
17338         * modules/sigaction (Depends-on): Likewise.
17339         * modules/signbit (Depends-on): Likewise.
17340         * modules/sigprocmask (Depends-on): Likewise.
17341         * modules/sinl (Depends-on): Likewise.
17342         * modules/sleep (Depends-on): Likewise.
17343         * modules/snprintf (Depends-on): Likewise.
17344         * modules/snprintf-posix (Depends-on): Likewise.
17345         * modules/socket (Depends-on): Likewise.
17346         * modules/sprintf-posix (Depends-on): Likewise.
17347         * modules/sqrtl (Depends-on): Likewise.
17348         * modules/stat (Depends-on): Likewise.
17349         * modules/strchrnul (Depends-on): Likewise.
17350         * modules/strdup-posix (Depends-on): Likewise.
17351         * modules/strerror (Depends-on): Likewise.
17352         * modules/strerror_r-posix (Depends-on): Likewise.
17353         * modules/strndup (Depends-on): Likewise.
17354         * modules/strnlen (Depends-on): Likewise.
17355         * modules/strptime (Depends-on): Likewise.
17356         * modules/strsep (Depends-on): Likewise.
17357         * modules/strsignal (Depends-on): Likewise.
17358         * modules/strstr-simple (Depends-on): Likewise.
17359         * modules/strtod (Depends-on): Likewise.
17360         * modules/strtoimax (Depends-on): Likewise.
17361         * modules/strtok_r (Depends-on): Likewise.
17362         * modules/strtoumax (Depends-on): Likewise.
17363         * modules/symlink (Depends-on): Likewise.
17364         * modules/symlinkat (Depends-on): Likewise.
17365         * modules/tanl (Depends-on): Likewise.
17366         * modules/tcgetsid (Depends-on): Likewise.
17367         * modules/tmpfile (Depends-on): Likewise.
17368         * modules/trunc (Depends-on): Likewise.
17369         * modules/truncf (Depends-on): Likewise.
17370         * modules/truncl (Depends-on): Likewise.
17371         * modules/uname (Depends-on): Likewise.
17372         * modules/unlink (Depends-on): Likewise.
17373         * modules/unlockpt (Depends-on): Likewise.
17374         * modules/unsetenv (Depends-on): Likewise.
17375         * modules/usleep (Depends-on): Likewise.
17376         * modules/utimensat (Depends-on): Likewise.
17377         * modules/vasprintf (Depends-on): Likewise.
17378         * modules/vdprintf (Depends-on): Likewise.
17379         * modules/vdprintf-posix (Depends-on): Likewise.
17380         * modules/vfprintf-posix (Depends-on): Likewise.
17381         * modules/vprintf-posix (Depends-on): Likewise.
17382         * modules/vsnprintf (Depends-on): Likewise.
17383         * modules/vsnprintf-posix (Depends-on): Likewise.
17384         * modules/vsprintf-posix (Depends-on): Likewise.
17385         * modules/wcrtomb (Depends-on): Likewise.
17386         * modules/wcscasecmp (Depends-on): Likewise.
17387         * modules/wcscspn (Depends-on): Likewise.
17388         * modules/wcsdup (Depends-on): Likewise.
17389         * modules/wcsncasecmp (Depends-on): Likewise.
17390         * modules/wcsnrtombs (Depends-on): Likewise.
17391         * modules/wcspbrk (Depends-on): Likewise.
17392         * modules/wcsrtombs (Depends-on): Likewise.
17393         * modules/wcsspn (Depends-on): Likewise.
17394         * modules/wcsstr (Depends-on): Likewise.
17395         * modules/wcstok (Depends-on): Likewise.
17396         * modules/wcswidth (Depends-on): Likewise.
17397         * modules/wctob (Depends-on): Likewise.
17398         * modules/wctomb (Depends-on): Likewise.
17399         * modules/wctype (Depends-on): Likewise.
17400         * modules/wcwidth (Depends-on): Likewise.
17401         * modules/write (Depends-on): Likewise.
17402
17403 2011-05-03  Bruno Haible  <bruno@clisp.org>
17404
17405         Support for conditional dependencies.
17406         * doc/gnulib.texi (Module description): Document the syntax of
17407         conditional dependencies.
17408         * gnulib-tool: New option --conditional-dependencies.
17409         (func_usage): Document it.
17410         (cond_dependencies): New variable.
17411         (func_get_automake_snippet_conditional,
17412         func_get_automake_snippet_unconditional): New functions, extracted from
17413         func_get_automake_snippet.
17414         (func_get_automake_snippet): Use them.
17415         (sed_first_32_chars): New variable.
17416         (func_module_shellfunc_name): New function.
17417         (func_module_shellvar_name): New function.
17418         (func_module_conditional_name): New function.
17419         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
17420         func_cond_module_condition): New functions.
17421         (func_modules_transitive_closure): Add support for conditional
17422         dependencies.
17423         (func_emit_lib_Makefile_am): For a conditional module, enclose the
17424         conditional automake snippet in an automake conditional.
17425         (func_emit_autoconf_snippets): Emit shell functions that contain the
17426         code for conditional modules.
17427         (func_import, func_create_testdir): Update specification.
17428
17429 2011-05-03  Eric Blake  <eblake@redhat.com>
17430
17431         test-getaddrinfo: report error information
17432         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
17433
17434 2011-05-03  Jim Meyering  <meyering@redhat.com>
17435
17436         bootstrap: avoid build failure when $GZIP is set
17437         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
17438         program name.  If defined at all, it is supposed to list gzip options.
17439         Reported by Alan Curry in http://debbugs.gnu.org/8609
17440
17441 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
17442
17443         readme-release: new module with release instructions
17444         * modules/readme-release: New module.
17445         * top/README-release: New file, from coreutils, grep, diffutils.
17446         * MODULES.html.sh (Support for maintaining and releasing): Add it.
17447
17448 2011-05-02  Eric Blake  <eblake@redhat.com>
17449
17450         fflush: also replace fclose when fixing fflush
17451         * modules/fflush (Depends-on): Add fclose.
17452         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
17453         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
17454         memstreams with no backing fd.
17455         * doc/posix-functions/fclose.texi (fclose): Document the use of
17456         fflush module to fix the bug.
17457         * tests/test-fclose.c (main): Relax test when fclose is used in
17458         isolation.
17459
17460         fclose: add some tests
17461         * modules/fclose-tests: New test module.
17462         * tests/test-fclose.c: New file.
17463         * doc/posix-functions/fclose.texi (fclose): Document the bug.
17464
17465         fclose: reduced dependencies
17466         * modules/fclose (Depends-on): Switch from fflush/fseeko to
17467         simpler lseek.
17468         * lib/fclose.c (rpl_fclose): Likewise.
17469         Reported by Simon Josefsson.
17470
17471         exit: drop remaining clients
17472         * modules/argmatch (Depends-on): Replace exit with stdlib.
17473         * modules/copy-file (Depends-on): Likewise.
17474         * modules/execute (Depends-on): Likewise.
17475         * modules/exitfail (Depends-on): Likewise.
17476         * modules/obstack (Depends-on): Likewise.
17477         * modules/pagealign_alloc (Depends-on): Likewise.
17478         * modules/pipe-filter-gi (Depends-on): Likewise.
17479         * modules/pipe-filter-ii (Depends-on): Likewise.
17480         * modules/savewd (Depends-on): Likewise.
17481         * modules/spawn-pipe (Depends-on): Likewise.
17482         * modules/wait-process (Depends-on): Likewise.
17483         * modules/xsetenv (Depends-on): Likewise.
17484         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
17485         * modules/git-merge-changelog (Depends-on): Likewise.
17486         * modules/long-options (Depends-on): Likewise.
17487         * modules/pt_chown (Depends-on): Likewise.
17488         * modules/sysexits (Depends-on): Likewise.
17489
17490         freading: relax license from LGPLv3+ to LGPLv2+
17491         * modules/freading (License): Relax LGPL version.
17492
17493 2011-05-02  Bruno Haible  <bruno@clisp.org>
17494
17495         fchdir: Remove unused dependencies.
17496         * modules/fchdir (Depends-on): Remove include_next.
17497
17498 2011-05-02  Bruno Haible  <bruno@clisp.org>
17499
17500         gnulib-tool: Refactor.
17501         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
17502         from func_emit_autoconf_snippets.
17503         (func_emit_autoconf_snippets): Use it.
17504
17505 2011-05-02  Simon Josefsson  <simon@josefsson.org>
17506
17507         * NEWS: Document removal of 'exit'.
17508         * modules/exit: Remove file.
17509
17510 2011-05-01  Bruno Haible  <bruno@clisp.org>
17511
17512         Update DEPENDENCIES.
17513         * DEPENDENCIES (gettext): Recommend the newest release.
17514         Reported by Simon Josefsson.
17515
17516 2011-05-01  Bruno Haible  <bruno@clisp.org>
17517
17518         gnulib-tool: Reduce code duplication.
17519         * gnulib-tool (func_emit_autoconf_snippets): New function.
17520         (func_import, func_create_testdir): Use it.
17521
17522 2011-04-30  Eric Blake  <eblake@redhat.com>
17523
17524         fclose: don't fail on non-seekable input stream
17525         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
17526         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
17527         since fflush is allowed to fail in that case.
17528
17529 2011-04-30  Bruno Haible  <bruno@clisp.org>
17530
17531         dup3: cleanup
17532         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
17533
17534 2011-04-30  Bruno Haible  <bruno@clisp.org>
17535
17536         netdb: Make it work in C++ mode.
17537         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
17538         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
17539         module.
17540         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
17541         gl_MODULE_INDICATOR_FOR_TESTS.
17542         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
17543         * modules/netdb-c++-tests: New file.
17544         * tests/test-netdb-c++.cc: New file.
17545
17546 2011-04-30  Bruno Haible  <bruno@clisp.org>
17547
17548         New modules 'vfscanf', 'vscanf'.
17549         * modules/vfscanf: New file.
17550         * modules/vscanf: New file.
17551         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
17552         here.
17553         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
17554         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
17555
17556 2011-04-30  Bruno Haible  <bruno@clisp.org>
17557
17558         passfd: Add comments.
17559         * lib/passfd.c: Add comments about platforms.
17560
17561 2011-04-30  Bruno Haible  <bruno@clisp.org>
17562
17563         sys_uio: Make <sys/uio.h> self-contained.
17564         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
17565         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
17566
17567 2011-04-30  Bruno Haible  <bruno@clisp.org>
17568
17569         sys_socket: Ensure 'struct iovec' definition.
17570         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
17571         <sys/socket.h>.
17572         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
17573
17574 2011-04-30  Bruno Haible  <bruno@clisp.org>
17575
17576         sys_uio: Protect definition of 'struct iovec'.
17577         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
17578         it as a C struct.
17579
17580 2011-04-30  Bruno Haible  <bruno@clisp.org>
17581
17582         manywarnings: fix indentation
17583         * m4/manywarnings.m4: Indent by 2 spaces consistently.
17584
17585 2011-04-30  Pádraig Brady <P@draigBrady.com>
17586
17587         manywarnings: add -Wno-missing-field-initializers if needed.
17588         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
17589         option if it's needed to allow initialization with { 0, }
17590
17591 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
17592
17593         announce-gen: cosmetic improvement
17594         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
17595
17596 2011-04-29  Jim Meyering  <meyering@redhat.com>
17597
17598         vc-list-files: indent with spaces, not TABs
17599         * build-aux/vc-list-files: Convert leading TABs to spaces,
17600         to match the style of most other files in gnulib.
17601
17602         announce-gen: indent with spaces, not TABs
17603         * build-aux/announce-gen: Convert all TABs to spaces, to match
17604         the style of most other files in gnulib.
17605
17606 2011-04-29  Eric Blake  <eblake@redhat.com>
17607
17608         quotearg: avoid uninitialized variable use
17609         * lib/quotearg.c (quoting_options_from_style): Initialize
17610         remaining fields, and ensure that custom styles are only used via
17611         quoting_options rather than quoting_style.
17612
17613 2011-04-29  Jim Meyering  <meyering@redhat.com>
17614
17615         maint.mk: remove unused VC-tag variable
17616         * top/maint.mk (VC-tag): Remove unused variable.
17617
17618 2011-04-29  Bruno Haible  <bruno@clisp.org>
17619
17620         netdb: fix gai_strerror replacements
17621         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
17622         * modules/netdb: Substitute it.
17623
17624 2011-04-29  Jim Meyering  <meyering@redhat.com>
17625
17626         test-getcwd.c: avoid new set-but-not-used warning
17627         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
17628         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
17629         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
17630         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
17631
17632         test-hash.c: avoid a new shadowing warning
17633         * tests/test-hash.c (main): Don't shadow "dup".
17634
17635 2011-04-28  Eric Blake  <eblake@redhat.com>
17636
17637         getaddrinfo: fix gai_strerror signature
17638         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
17639         and work around mingw with UNICODE defined.
17640         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
17641         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
17642         * modules/netdb (Makefile.am): Substitute it.
17643         * lib/netdb.in.h (gai_strerror): Declare replacement.
17644         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
17645         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
17646         the fix.
17647
17648         getsockopt: avoid compiler warning
17649         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
17650         Reported by Matthias Bolte.
17651
17652         tests: drop unused link dependency
17653         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
17654         * modules/dirent-safer-tests (Makefile.am): Likewise.
17655         * modules/fdopendir-tests (Makefile.am): Likewise.
17656         * modules/mkfifoat-tests (Makefile.am): Likewise.
17657         * modules/openat-safer-tests (Makefile.am): Likewise.
17658         * modules/openat-tests (Makefile.am): Likewise.
17659         * modules/readlinkat-tests (Makefile.am): Likewise.
17660         * modules/symlinkat-tests (Makefile.am): Likewise.
17661         * modules/linkat-tests (Makefile.am): Likewise.
17662         (Depends-on): Switch to filenamecat-lgpl.
17663         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
17664         LIBINTL.
17665         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
17666         * tests/test-linkat.c (main): Don't require xalloc.
17667
17668         hash, mgetgroups: drop xalloc dependency
17669         * lib/hash.c (includes): Adjust includes.
17670         * lib/mgetgroups.c (includes): Likewise.
17671         (xgetgroups): Move...
17672         * lib/xgetgroups.c: ...to new file.
17673         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
17674         * modules/xgetgroups: New file, split from...
17675         * modules/mgetgroups: ...here.
17676         (Depends-on): Add xalloc-oversized.
17677         * modules/hash (Depends-on): Likewise.
17678         * modules/hash-tests (Depends-on): Drop xalloc.
17679         (test_hash_LDADD): Drop unused library.
17680         * tests/test-hash.c (main): Break xalloc dependency.
17681         (includes): Drop unused include.
17682
17683         xalloc-oversized: new module
17684         * modules/xalloc-oversized: New module.
17685         * modules/xalloc (Depends-on): Add it.
17686         * lib/xalloc.h (xalloc_oversized): Move...
17687         * lib/xalloc-oversized.h: ...into new file.
17688
17689         utimecmp: drop dependency on xmalloc
17690         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
17691         due to memory pressure.
17692         * modules/utimecmp (Depends-on): Drop xalloc.
17693
17694 2011-04-27  Eric Blake  <eblake@redhat.com>
17695
17696         getcwd: fix mingw bugs
17697         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
17698         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
17699         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
17700
17701 2011-04-27  Bruno Haible  <bruno@clisp.org>
17702
17703         mkstemps: Ensure declaration on MacOS X 10.5.
17704         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
17705         * doc/glibc-functions/mkstemps.texi: Document header file problem on
17706         MacOS X.
17707
17708 2011-04-27  Bruno Haible  <bruno@clisp.org>
17709
17710         mkstemp: More documentation.
17711         * doc/posix-functions/mkstemp.texi: Document header file problem on
17712         MacOS X.
17713
17714 2011-04-27  Bruno Haible  <bruno@clisp.org>
17715
17716         mkstemp: Tweak configure message when cross-compiling.
17717         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
17718         result as a guess.
17719
17720 2011-04-27  Bruno Haible  <bruno@clisp.org>
17721
17722         clean-temp: Clarify what it does.
17723         * lib/clean-temp.h: Add more comments.
17724         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
17725         module.
17726         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
17727         * doc/glibc-functions/mkstemps.texi: Likewise.
17728         * doc/glibc-functions/mkostemps.texi: Likewise.
17729
17730 2011-04-27  Eric Blake  <eblake@redhat.com>
17731
17732         fchdir: avoid extra chdir and fix test
17733         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
17734         getcwd-lgpl.
17735         * lib/fchdir.c (get_name): Any absolute name will do; it does not
17736         have to be canonical.
17737         (canonicalize_file_name): Drop unused macro.
17738         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
17739
17740         filenamecat-lgpl: fix licence
17741         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
17742         when it was first created.
17743
17744         linkat, renameat: add missing dependency
17745         * modules/linkat (Depends-on): Require getcwd-lgpl.
17746         * modules/renameat (Depends-on): Likewise.
17747
17748         tests: reduce dependencies
17749         * tests/test-linkat.c (main): Use lighter-weight getcwd.
17750         * tests/test-renameat.c (main): Likewise.
17751         * modules/linkat-tests (Depends-on): Relax dependency.
17752         * modules/renameat-tests (Depends-on): Likewise.
17753         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
17754         dependency explicit.
17755
17756         save-cwd: reduce default dependency
17757         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
17758         * lib/save-cwd.c: Update comments.
17759         * NEWS: Document the semantic change.
17760
17761         getcwd: enhance tests
17762         * tests/test-getcwd-lgpl.c: New file, taken from...
17763         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
17764         repeat long path stress tests from m4 probe.
17765         * modules/getcwd-lgpl-tests: New module.
17766         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
17767         * m4/getcwd-abort-bug.m4: Update comment.
17768         * m4/getcwd-path-max.m4: Likewise.
17769
17770         getcwd-lgpl: new module
17771         * modules/getcwd-lgpl: New module.
17772         * lib/getcwd-lgpl.c: New file.
17773         * doc/posix-functions/getcwd.texi (getcwd): Document it.
17774         * MODULES.html.sh (lacking POSIX:2008): Likewise.
17775         * modules/getcwd (configure.ac): Set C witness.
17776         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
17777
17778         getcwd: tweak comments
17779         * m4/getcwd-abort-bug.m4: Fix comments.
17780         * m4/getcwd-path-max.m4: Likewise.
17781         * m4/getcwd.m4: Likewise.
17782
17783 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
17784         and Eric Blake  <eblake@redhat.com>
17785
17786         mkstemp: replace if system version uses wrong permissions
17787         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
17788         read/write mode bits set in file created by mkstemp.
17789         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
17790
17791 2011-04-27  Eric Blake  <eblake@redhat.com>
17792
17793         passfd: avoid compiler warning
17794         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
17795         Reported by Laine Stump.
17796
17797 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
17798
17799         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
17800         required by the NetBSD (and perhaps other 4.4BSD derived) join.
17801
17802 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
17803         and Eric Blake  <eblake@redhat.com>
17804
17805         mkstemp: mention clean-temp module
17806         * lib/mkstemp.c: Add comment.
17807         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
17808
17809 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
17810
17811         inttypes: also provide default values for 32-bit tests
17812         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
17813         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
17814
17815 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
17816
17817         strtoumax: remove dependency on strtoimax
17818         This is like the strtoull change of yesterday.
17819         * modules/strtoumax (Files): Add lib/strtoimax.c.
17820         (Depends-on): Remove strtoimax and add verify.
17821
17822         inttypes-incomplete: new module
17823         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
17824         all but the PRI* and SCN* parts of gl_INTTYPES_H.
17825         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
17826         of gl_INTTYPES_H.
17827         (gl_INTTYPES_H): Rewrite in terms of these new macros.
17828         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
17829         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
17830         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
17831         * modules/strtoumax, modules/xstrtol (Depends-on):
17832         Depend on inttypes-incomplete, not inttypes.
17833         * modules/inttypes-incomplete: New module, containing the contents
17834         of the old modules/inttypes module, except that the Files: section
17835         omits m4/inttypes-pri.m4, and the configure.ac section invokes
17836         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
17837         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
17838         (Depends-on): Depend only on inttypes-incomplete.
17839         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
17840
17841         inttypes: omit now-redundant strtoimax and strtoumax work
17842         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
17843         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
17844
17845         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
17846         This supports apps that need pointers to strtoimax and strtoumax,
17847         and ports to HP-UX 11.00 64.bit, which has macros that expand to
17848         nonexistent functions.  See
17849         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
17850         et seq.
17851         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
17852         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
17853         a macro.
17854         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
17855
17856 2011-04-25  Simon Josefsson  <simon@josefsson.org>
17857
17858         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
17859
17860 2011-04-25  Bruno Haible  <bruno@clisp.org>
17861
17862         strtol, strtoul: Mark modules as obsolete.
17863         * modules/strtol (Status, Notice): New sections.
17864         * modules/strtoul (Status, Notice): New sections.
17865
17866 2011-04-25  Bruno Haible  <bruno@clisp.org>
17867
17868         strtod: Remove check for strtod, unless supporting old platforms.
17869         * modules/strtod-obsolete: New file.
17870         * m4/strtod-obsolete.m4: New file.
17871         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
17872         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
17873         * modules/strtod (Depends-on): Add strtod-obsolete.
17874         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
17875
17876 2011-04-25  Bruno Haible  <bruno@clisp.org>
17877
17878         strcase: Make module obsolete.
17879         * modules/strcase (Status, Notice): New sections.
17880
17881 2011-04-25  Bruno Haible  <bruno@clisp.org>
17882
17883         dup2: Remove check for dup2, unless supporting old obsolete platforms.
17884         * modules/dup2-obsolete: New file.
17885         * m4/dup2-obsolete.m4: New file.
17886         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
17887         gl_FUNC_DUP2_OBSOLETE is not also defined.
17888         * modules/dup2 (Depends-on): Add dup2-obsolete.
17889         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
17890
17891 2011-04-25  Bruno Haible  <bruno@clisp.org>
17892
17893         strnlen: Avoid memchr related link error on old obsolete platforms.
17894         * modules/memchr-obsolete: New file.
17895         * m4/memchr-obsolete.m4: New file.
17896         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
17897         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
17898         * modules/memchr (Depends-on): Add memchr-obsolete.
17899         * modules/strnlen (Depends-on): Likewise.
17900         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
17901
17902 2011-04-25  Jim Meyering  <meyering@redhat.com>
17903
17904         maint.mk: makefile_at_at_check extend and clean up
17905         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
17906         in addition to */Makefile.am.
17907         Exempt legitimate uses of @VAR@ notation, e.g.,
17908         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
17909         Remove obsolete coreutils-specific comment.
17910         Prompted by discussion here:
17911         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
17912
17913 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
17914
17915         strtoul: remove dependency on strtol
17916         This is so that 'configure' need not check for strtol merely because
17917         the application needs strtoul.
17918         * modules/strtoul (Files): Add lib/strtol.c.
17919         (Depends-on): Remove strtol.
17920
17921         strtoull: remove dependency on strtoul
17922         This is like the strtoll change.
17923         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
17924         (Depends-on): Remove strtoul.
17925
17926         strtoll: remove dependency on strtol
17927         This is so that 'configure' need not check for strtol merely because
17928         the application needs strtoll.
17929         * modules/strtoll (Files): Add lib/strtol.c.
17930         (Depends-on): Remove strtol.
17931
17932 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
17933
17934         inttypes: Move some configure check to module 'imaxdiv'.
17935         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
17936         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
17937         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
17938
17939 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
17940
17941         inttypes: Move some configure check to module 'imaxabs'.
17942         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
17943         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
17944         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
17945
17946 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
17947
17948         inttypes: Remove configure tests that are not needed since 2009-12-31.
17949         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
17950         gl_cv_header_working_inttypes_h.
17951
17952 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
17953
17954         * modules/strnlen (Depends-on): Remove memchr.
17955         The strnlen implementation doesn't need the memchr module's fixes; see
17956         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
17957
17958         strtol: remove dependency on wchar
17959         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
17960         * modules/strtol (Depends-on): Remove wchar.
17961
17962 2011-04-21  Eric Blake  <eblake@redhat.com>
17963
17964         passfd: fix test regression on Linux
17965         * modules/passfd-tests (configure.ac): Correct socketpair check.
17966
17967         passfd: speed up configure and drop unused code
17968         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
17969         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
17970         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
17971         Instead of probing at configure for unix_scm_rights_bsd44_way,
17972         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
17973         check to a struct member probe.
17974         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
17975         (sendfd, recvfd): Update preprocessor checks.
17976         * modules/passfd (Files): Reflect rename, and drop unused file.
17977         (Depends-on): Drop unused dependency.
17978
17979         passfd: allow compilation on mingw
17980         * modules/sys_socket (Depends-on): Add sys_uio.
17981         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
17982         iovec and a minimal struct msghdr.
17983         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
17984         * tests/test-sys_socket.c (main): Enhance test.
17985         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
17986         guaranteed to provide what we need.
17987         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
17988         * modules/passfd-tests (Depends-on): Add sys_wait.
17989         * tests/test-passfd.c (main): Skip test on mingw, for now.
17990         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
17991         partial 'struct msghdr' implementation.
17992
17993         sys_uio: new module
17994         * modules/sys_uio: New module.
17995         * modules/sys_uio-tests: Likewise.
17996         * lib/sys_uio.in.h: New file.
17997         * m4/sys_uio_h.m4: Likewise.
17998         * tests/test-sys_uio.c: Likewise.
17999         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
18000         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
18001
18002 2011-04-20  Jim Meyering  <meyering@redhat.com>
18003
18004         useless-if-before-free: avoid false-positive
18005         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
18006         disjunct so that it too requires a terminating ";".  Without that,
18007         this script would identify as useless one statement from gcc that
18008         was not:
18009           if (aligned_ptr)
18010             free (((void **) aligned_ptr) [-1]);
18011
18012 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
18013
18014         doc: update users.txt.
18015         * users.txt: Add barcode.
18016
18017 2011-04-19  Bruno Haible  <bruno@clisp.org>
18018
18019         ioctl: Remove link dependency on native Windows.
18020         * lib/fd-hook.h: Renamed from lib/close-hook.h.
18021         (gl_close_fn, gl_ioctl_fn): New types.
18022         (struct fd_hook): Renamed from struct close_hook. Change type of
18023         private_close_fn field. Add private_ioctl_fn field.
18024         (close_hook_fn): Add parameter for primary close method.
18025         (execute_close_hooks, execute_all_close_hooks): Likewise.
18026         (ioctl_hook_fn): New type.
18027         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
18028         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
18029         argument.
18030         (unregister_fd_hook): Renamed from unregister_close_hook.
18031         * lib/fd-hook.c: Renamed from lib/close-hook.c.
18032         Don't include <unistd.h>.
18033         (close): Remove undef.
18034         (anchor): Update.
18035         (execute_close_hooks): Add argument for primary close method.
18036         (execute_all_close_hooks): Likewise.
18037         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
18038         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
18039         argument. Allow each argument to be NULL.
18040         (unregister_fd_hook): Renamed from unregister_close_hook.
18041         * lib/close.c (rpl_close): Pass 'close' function pointer to
18042         execute_all_close_hooks.
18043         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
18044         (primary_ioctl): New function.
18045         (ioctl): Don't call ioctlsocket here. Instead, call
18046         execute_all_ioctl_hooks.
18047         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
18048         close method.
18049         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
18050         (fd_sockets_hook): Renamed from close_sockets_hook.
18051         (gl_sockets_startup, gl_sockets_cleanup): Update.
18052         * modules/fd-hook: Renamed from modules/close-hook. Update.
18053         * modules/close (Depends-on): Add fd-hook, remove close-hook.
18054         * modules/sockets (Depends-on): Likewise.
18055         * modules/ioctl (Depends-on): Add fd-hook.
18056         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
18057         GNULIB_SOCKET.
18058
18059 2011-04-19  Bruno Haible  <bruno@clisp.org>
18060
18061         Move the support of O_NONBLOCK in open() to the 'open' module.
18062         * modules/nonblocking (Depends-on): Remove 'open'.
18063         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
18064         gl_cv_have_open_O_NONBLOCK.
18065         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
18066         O_NONBLOCK support.
18067         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
18068
18069 2011-04-17  Bruno Haible  <bruno@clisp.org>
18070
18071         pipe2: Simplify code.
18072         * lib/pipe2.c (pipe2): Reduce code duplication.
18073
18074 2011-04-17  Bruno Haible  <bruno@clisp.org>
18075
18076         nonblocking: Add comment.
18077         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
18078
18079 2011-04-17  Bruno Haible  <bruno@clisp.org>
18080
18081         nonblocking: Add tests for sockets.
18082         * tests/test-nonblocking-socket.sh: New file.
18083         * tests/test-nonblocking-socket-main.c: New file.
18084         * tests/test-nonblocking-socket-child.c: New file.
18085         * tests/test-nonblocking-socket.h: New file.
18086         * tests/socket-server.h: New file.
18087         * tests/socket-client.h: New file.
18088         * modules/nonblocking-socket-tests: New file.
18089         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
18090
18091 2011-04-17  Bruno Haible  <bruno@clisp.org>
18092
18093         nonblocking: Add tests for pipes.
18094         * tests/test-nonblocking-pipe.sh: New file.
18095         * tests/test-nonblocking-pipe-main.c: New file.
18096         * tests/test-nonblocking-pipe-child.c: New file.
18097         * tests/test-nonblocking-pipe.h: New file.
18098         * tests/test-nonblocking-writer.h: New file.
18099         * tests/test-nonblocking-reader.h: New file.
18100         * tests/test-nonblocking-misc.h: New file.
18101         * modules/nonblocking-pipe-tests: New file.
18102         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
18103
18104 2011-04-16  Bruno Haible  <bruno@clisp.org>
18105
18106         gettext: Clarify the needed programmer actions.
18107         * modules/gettext (Notice): New field.
18108         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
18109
18110 2011-04-16  Bruno Haible  <bruno@clisp.org>
18111
18112         strchrnul: Tweak last commit.
18113         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
18114         bug.
18115         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
18116         as in _GL_FUNCDECL_SYS.
18117         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
18118         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
18119
18120 2011-04-15  Eric Blake  <eblake@redhat.com>
18121
18122         strchrnul: work around cygwin bug
18123         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
18124         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
18125         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
18126         * modules/string (Makefile.am): Substitute it.
18127         * lib/string.in.h (strchrnul): Use it.
18128
18129 2011-04-15  Bruno Haible  <bruno@clisp.org>
18130
18131         Don't require lib/stdio-write.c when only module 'stdio' is used.
18132         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
18133         invocation.
18134         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
18135
18136 2011-04-14  Bruno Haible  <bruno@clisp.org>
18137
18138         Support non-blocking pipe I/O in read() on native Windows.
18139         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
18140         (read): New declaration.
18141         * lib/read.c: New file.
18142         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
18143         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
18144         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
18145         vscanf): New declarations.
18146         * lib/stdio-read.c: New file.
18147         * m4/read.m4: New file.
18148         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
18149         REPLACE_READ.
18150         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
18151         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
18152         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
18153         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
18154         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
18155         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
18156         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
18157         * modules/read: New file.
18158         * modules/nonblocking (Files): Add lib/stdio-read.c.
18159         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
18160         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
18161         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
18162         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
18163         * modules/pread (Depends-on): Add read.
18164         * modules/safe-read (Depends-on): Likewise.
18165         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
18166         gets, scanf, vfscanf, vscanf): Verify signatures.
18167         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
18168         problem with non-blocking pipes.
18169         * doc/posix-functions/fgetc.texi: Likewise.
18170         * doc/posix-functions/fgets.texi: Likewise.
18171         * doc/posix-functions/fread.texi: Likewise.
18172         * doc/posix-functions/fscanf.texi: Likewise.
18173         * doc/posix-functions/getc.texi: Likewise.
18174         * doc/posix-functions/getchar.texi: Likewise.
18175         * doc/posix-functions/gets.texi: Likewise.
18176         * doc/posix-functions/scanf.texi: Likewise.
18177         * doc/posix-functions/vfscanf.texi: Likewise.
18178         * doc/posix-functions/vscanf.texi: Likewise.
18179
18180 2011-04-14  Bruno Haible  <bruno@clisp.org>
18181
18182         Support non-blocking pipe I/O in write() on native Windows.
18183         * lib/write.c (rpl_write): Split a write request that failed merely
18184         because the byte count was larger than the pipe buffer's size.
18185         * doc/posix-functions/write.texi: Mention the problem with large byte
18186         counts.
18187
18188 2011-04-14  Bruno Haible  <bruno@clisp.org>
18189
18190         wchar: Ensure that wchar_t gets defined on uClibc.
18191         * lib/wchar.in.h: On uClibc, include <stddef.h>.
18192         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
18193
18194 2011-04-13  Bruno Haible  <bruno@clisp.org>
18195
18196         safe-write, full-read: Avoid unnecessary compilation units.
18197         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
18198         (Depends-on): Remove safe-read. Add ssize_t.
18199         * modules/full-read (Files): Add lib/full-write.c.
18200         (Depends-on): Add full-write.
18201
18202 2011-04-13  Bruno Haible  <bruno@clisp.org>
18203
18204         Support non-blocking pipe I/O and SIGPIPE in pwrite().
18205         * modules/pwrite (Depends-on): Add 'write'.
18206
18207 2011-04-13  Bruno Haible  <bruno@clisp.org>
18208
18209         Support non-blocking pipe I/O in write() on native Windows.
18210         * lib/unistd.in.h (write): Enable replacement also if
18211         GNULIB_UNISTD_H_NONBLOCKING is 1.
18212         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
18213         (rpl_write): When failing to write on a non-blocking pipe, change
18214         errno from ENOSPC to EAGAIN.
18215         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
18216         putchar, puts, vfprintf, vprintf): Enable replacement also if
18217         GNULIB_STDIO_H_NONBLOCKING is 1.
18218         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
18219         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
18220         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
18221         CALL_WITH_SIGPIPE_EMULATION.
18222         (CALL_WITH_SIGPIPE_EMULATION): Use them.
18223         * m4/nonblocking.m4: New file.
18224         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
18225         for non-blocking I/O support.
18226         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18227         GNULIB_UNISTD_H_NONBLOCKING.
18228         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
18229         required for non-blocking I/O support.
18230         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
18231         * modules/nonblocking (Files): Add m4/nonblocking.m4,
18232         lib/stdio-write.c, m4/asm-underscore.m4.
18233         (Depends-on): Add stdio, unistd.
18234         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
18235         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
18236         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
18237         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
18238         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
18239         problem with non-blocking pipes.
18240         * doc/posix-functions/fputc.texi: Likewise.
18241         * doc/posix-functions/fputs.texi: Likewise.
18242         * doc/posix-functions/fwrite.texi: Likewise.
18243         * doc/posix-functions/printf.texi: Likewise.
18244         * doc/posix-functions/putc.texi: Likewise.
18245         * doc/posix-functions/putchar.texi: Likewise.
18246         * doc/posix-functions/puts.texi: Likewise.
18247         * doc/posix-functions/vfprintf.texi: Likewise.
18248         * doc/posix-functions/vprintf.texi: Likewise.
18249         * doc/posix-functions/write.texi: Likewise.
18250
18251 2011-04-10  Jim Meyering  <meyering@redhat.com>
18252
18253         maint.mk: prohibit doubled words
18254         Detect them also when they're separated by a newline.
18255         There are 3 ways to customize it:
18256           - disable the test on a per file basis, as usual with rules using
18257             $(VC_LIST_EXCEPT)
18258           - replace the default doubled-word-selecting regexp (affects all files)
18259           - ignore a particular file-vs-doubled-word match
18260         I nearly used that last one to ignore the "is is" match in
18261         coreutils' NEWS file, since the text was "ls -is is ..."
18262         To do that, I would have added this line to cfg.mk:
18263           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
18264         but it would have ignored any "is is" match in NEWS.
18265         Low probability, but still...
18266         Instead, I changed the text, slightly:
18267           -  ls -is is now consistent with ls -lis in ignoring values returned
18268           +  "ls -is" is now consistent with ls -lis in ignoring values returned
18269         * top/maint.mk (prohibit_double_word_RE_): Provide default.
18270         (prohibit_doubled_word_): Define.
18271         (sc_prohibit_doubled_word): New rule.
18272         (sc_prohibit_the_the): Remove.  Subsumed by the above.
18273
18274 2011-04-10  Jim Meyering  <meyering@redhat.com>
18275
18276         maint: fix doubled-word typo in comment
18277         * m4/gethostname.m4: s/is is/it is/
18278         * m4/getdomainname.m4: Likewise.
18279
18280 2011-04-10  Jim Meyering  <meyering@redhat.com>
18281
18282         maint: remove doubled word: s/it it/it/
18283         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
18284
18285 2011-04-10  Jim Meyering  <meyering@redhat.com>
18286
18287         maint.mk: remove useless semicolon and backslash
18288         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
18289         semicolon and backslash.
18290
18291 2011-04-10  Bruno Haible  <bruno@clisp.org>
18292
18293         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
18294         * modules/stdint-tests (Depends-on): Add wchar.
18295
18296 2011-04-10  Jim Meyering  <meyering@redhat.com>
18297
18298         maint: remove doubled words in comments, e.g., s/a a/a/
18299         * lib/strptime.c (day_of_the_week): s/the the/the/
18300         * tests/test-chown.h (test_chown): s/a a/a/
18301
18302         test-chown.h: correct a cast
18303         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
18304         when the destination is a stat.st_gid.
18305
18306 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
18307
18308         getaddrinfo: Fix test for sa_len member.
18309         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
18310         include <sys/types.h> before <sys/socket.h>.
18311
18312 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
18313
18314         maint: change "can not" to "cannot"
18315         * doc/posix-functions/iconv.texi (iconv): This one crossed line
18316         boundaries.
18317
18318 2011-04-09  Jim Meyering  <meyering@redhat.com>
18319
18320         maint: change "a a" to "a"
18321         * tests/test-lchown.h (test_lchown): s/a a/a/
18322
18323         maint.mk: prohibit \<the the\>
18324         * top/maint.mk (sc_prohibit_the_the): New rule.
18325
18326         maint: fix "the the" in comment
18327         * lib/count-one-bits.h: s/the the/the/
18328
18329         maint: change "can not" to "cannot"
18330         But do not change the occurrences in maintain.texi or in
18331         build-aux/po/Makefile.in.in, which I presume comes from gettext.
18332         * doc/gnulib-tool.texi: s/can not/cannot/
18333         * doc/posix-functions/accept.texi (accept): Likewise.
18334         * doc/posix-functions/socket.texi (socket): Likewise.
18335         * lib/mbrtowc.c: Likewise.
18336
18337         maint.mk: prohibit use of "can not"
18338         * top/maint.mk (sc_prohibit_can_not): New rule.
18339         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
18340
18341 2011-04-09  Bruno Haible  <bruno@clisp.org>
18342
18343         careadlinkat: Guard against misuse of careadlinkatcwd.
18344         * lib/careadlinkat.c: Include <stdlib.h>.
18345         (careadlinkatcwd): Check that the fd argument is as expected.
18346
18347 2011-04-09  Bruno Haible  <bruno@clisp.org>
18348
18349         careadlinkat: Use common coding style.
18350         * lib/careadlinkat.c: Move gnulib includes after system includes.
18351
18352 2011-04-09  Bruno Haible  <bruno@clisp.org>
18353
18354         careadlinkat: Clarify specification.
18355         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
18356         (careadlinkatcwd): Add comment.
18357         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
18358
18359 2011-04-09  Bruno Haible  <bruno@clisp.org>
18360
18361         areadlinkat: Avoid link error on many platforms.
18362         * modules/areadlinkat (Depends-on): Add areadlink.
18363
18364 2011-04-09  Bruno Haible  <bruno@clisp.org>
18365
18366         allocator, careadlinkat: Fix double-inclusion guard.
18367         * lib/allocator.h: Fix double-inclusion guard.
18368         * lib/careadlinkat.h: Likewise.
18369
18370 2011-04-09  Bruno Haible  <bruno@clisp.org>
18371
18372         relocatable-prog-wrapper: Update after module 'areadlink' changed.
18373         * lib/relocwrapper.c: Update dependencies hierarchy.
18374         * build-aux/install-reloc: Update list of files to be compiled.
18375         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
18376         lib/allocator.[hc].
18377
18378 2011-04-08  Eric Blake  <eblake@redhat.com>
18379
18380         strftime: silence gnulib-tool warning
18381         * modules/strftime-tests (Depends-on): Drop automatic dependency.
18382
18383 2011-04-08  Bruno Haible  <bruno@clisp.org>
18384
18385         verify: Fix syntax error with GCC 4.6 in C++ mode.
18386         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
18387         (HAVE_STATIC_ASSERT): New macro.
18388         (verify_true, verify): Use 'static_assert' if it is supported and
18389         '_Static_assert' is not supported.
18390
18391 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
18392
18393         allocator: New module.
18394         * modules/allocator, lib/allocator.c: New files.
18395         * lib/allocator.h (stdlib_allocator): New decl.
18396         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
18397         Remove.  Do not include <stdlib.h>.
18398         (careadlinkat): Use stdlib_allocator instead of rolling our own.
18399         * modules/careadlinkat (Files): Remove lib/allocator.h.
18400         (Depends-on): Add allocator.
18401
18402         stdlib: let modules use system malloc, realloc
18403         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
18404         if !_GL_USE_STDLIB_ALLOC.
18405         (malloc, realloc): Limit this change to a smaller scope.
18406
18407         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
18408         (malloc, realloc): Don't #undef; no longer needed.
18409         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18410         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18411         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
18412         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18413         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18414         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18415         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18416         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
18417
18418         careadlinkat: rename members to avoid problem
18419         * lib/allocator.h (struct allocator): Rename members from
18420         malloc/realloc to allocate/reallocate, to avoid problems if malloc
18421         and realloc are #define'd.  Reported by Eric Blake in
18422         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
18423         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
18424
18425 2011-04-08  Eric Blake  <eblake@redhat.com>
18426
18427         nonblocking: reduce dependency
18428         * tests/test-nonblocking.c: Only test sockets when in use.
18429         * modules/nonblocking-tests (Depends-on): Drop socket.
18430         (Makefile.am): Link even if sockets are not present.
18431         * modules/pipe2-tests (Makefile.am): Likewise.
18432         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
18433
18434         pipe2: fix O_NONBLOCK support on mingw
18435         * modules/pipe2 (Depends-on): Add nonblocking.
18436         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
18437         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
18438         * tests/test-nonblocking.c (main): Likewise.
18439         * modules/pipe2-tests (Makefile.am): Avoid link failure.
18440
18441         fcntl-h: fix O_ACCMODE on cygwin
18442         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
18443         * lib/fcntl.in.h (O_ACCMODE): Fix it.
18444
18445         pipe-filter: drop O_NONBLOCK workarounds
18446         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
18447         * modules/pipe-filter-ii (Depends-on): Likewise.
18448         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
18449
18450         nonblocking: provide O_NONBLOCK for mingw
18451         * modules/nonblocking (Depends-on): Add open.
18452         (configure.ac): Set new witness macro.
18453         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
18454         * modules/fcntl-h (Makefile.am): Substitute it.
18455         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
18456         nonblocking module is in use.
18457         * lib/nonblocking.c: Adjust portability test.
18458         * lib/open.c (open): Don't let native open see gnulib flag.
18459         * tests/test-fcntl-h.c (main): Enhance test.
18460         * tests/test-open.h (test_open): Likewise.
18461         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
18462
18463         careadlinkat: fix compilation error on mingw
18464         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
18465         within struct allocator.
18466
18467 2011-04-06  Eric Blake  <eblake@redhat.com>
18468
18469         binary-io: relicense under LGPLv2+
18470         * modules/binary-io (License): Relax to LGPLv2+.
18471         Requested for libvirt, and required by pipe2.
18472
18473 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
18474
18475         verify: use _Static_assert if available
18476         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
18477         (verify_true, verify): Use it if available.  This generates better
18478         diagnostics with GCC 4.6.0 and later.
18479
18480 2011-04-05  Bruno Haible  <bruno@clisp.org>
18481
18482         Remove leftover generated .h files after config.status changed.
18483
18484         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
18485         GL_GENERATE_ALLOCA_H.
18486         * modules/alloca-opt (Makefile.am): Remove alloca.h if
18487         GL_GENERATE_ALLOCA_H evaluates to false.
18488
18489         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
18490         GL_GENERATE_ARGZ_H.
18491         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
18492         evaluates to false.
18493
18494         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
18495         GL_GENERATE_BYTESWAP_H.
18496         * modules/byteswap (Makefile.am): Remove byteswap.h if
18497         GL_GENERATE_BYTESWAP_H evaluates to false.
18498
18499         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
18500         GL_GENERATE_ERRNO_H.
18501         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
18502         evaluates to false.
18503
18504         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
18505         GL_GENERATE_FLOAT_H.
18506         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
18507         evaluates to false.
18508
18509         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
18510         GL_GENERATE_FNMATCH_H.
18511         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
18512         GL_GENERATE_FNMATCH_H evaluates to false.
18513
18514         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
18515         GL_GENERATE_GLOB_H.
18516         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
18517         evaluates to false.
18518
18519         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
18520         automake conditional GL_GENERATE_ICONV_H.
18521         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
18522         evaluates to false.
18523
18524         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
18525         GL_GENERATE_NETINET_IN_H.
18526         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
18527         GL_GENERATE_NETINET_IN_H evaluates to false.
18528
18529         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
18530         conditional GL_GENERATE_PTHREAD_H.
18531         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
18532         * modules/pthread (Makefile.am): Remove pthread.h if
18533         GL_GENERATE_PTHREAD_H evaluates to false.
18534
18535         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
18536         GL_GENERATE_SCHED_H.
18537         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
18538         evaluates to false.
18539
18540         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
18541         conditional GL_GENERATE_SELINUX_CONTEXT_H.
18542         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
18543         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
18544
18545         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
18546         GL_GENERATE_STDARG_H.
18547         * modules/stdarg (Makefile.am): Remove stdarg.h if
18548         GL_GENERATE_STDARG_H evaluates to false.
18549
18550         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
18551         GL_GENERATE_STDBOOL_H.
18552         * modules/stdbool (Makefile.am): Remove stdbool.h if
18553         GL_GENERATE_STDBOOL_H evaluates to false.
18554
18555         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
18556         conditional GL_GENERATE_STDDEF_H.
18557         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
18558         * modules/stddef (Makefile.am): Remove stddef.h if
18559         GL_GENERATE_STDDEF_H evaluates to false.
18560
18561         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
18562         GL_GENERATE_STDINT_H.
18563         * modules/stdint (Makefile.am): Remove stdint.h if
18564         GL_GENERATE_STDINT_H evaluates to false.
18565
18566         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
18567         GL_GENERATE_SYSEXITS_H.
18568         * modules/sysexits (Makefile.am): Remove sysexits.h if
18569         GL_GENERATE_SYSEXITS_H evaluates to false.
18570
18571         Reported by Karl Berry and Ralf Wildenhues.
18572
18573 2011-04-05  Bruno Haible  <bruno@clisp.org>
18574
18575         Ensure to rebuild generated .h files when config.status has changed.
18576         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
18577         config.status.
18578         * modules/ctype (Makefile.am): Likewise.
18579         * modules/dirent (Makefile.am): Likewise.
18580         * modules/errno (Makefile.am): Likewise.
18581         * modules/fcntl-h (Makefile.am): Likewise.
18582         * modules/float (Makefile.am): Likewise.
18583         * modules/getopt-posix (Makefile.am): Likewise.
18584         * modules/glob (Makefile.am): Likewise.
18585         * modules/iconv-h (Makefile.am): Likewise.
18586         * modules/inttypes (Makefile.am): Likewise.
18587         * modules/langinfo (Makefile.am): Likewise.
18588         * modules/locale (Makefile.am): Likewise.
18589         * modules/math (Makefile.am): Likewise.
18590         * modules/netdb (Makefile.am): Likewise.
18591         * modules/netinet_in (Makefile.am): Likewise.
18592         * modules/poll-h (Makefile.am): Likewise.
18593         * modules/pthread (Makefile.am): Likewise.
18594         * modules/pty (Makefile.am): Likewise.
18595         * modules/sched (Makefile.am): Likewise.
18596         * modules/search (Makefile.am): Likewise.
18597         * modules/selinux-h (Makefile.am): Likewise.
18598         * modules/signal (Makefile.am): Likewise.
18599         * modules/spawn (Makefile.am): Likewise.
18600         * modules/stdarg (Makefile.am): Likewise.
18601         * modules/stdbool (Makefile.am): Likewise.
18602         * modules/stddef (Makefile.am): Likewise.
18603         * modules/stdint (Makefile.am): Likewise.
18604         * modules/stdio (Makefile.am): Likewise.
18605         * modules/stdlib (Makefile.am): Likewise.
18606         * modules/string (Makefile.am): Likewise.
18607         * modules/strings (Makefile.am): Likewise.
18608         * modules/sys_file (Makefile.am): Likewise.
18609         * modules/sys_ioctl (Makefile.am): Likewise.
18610         * modules/sys_select (Makefile.am): Likewise.
18611         * modules/sys_socket (Makefile.am): Likewise.
18612         * modules/sys_stat (Makefile.am): Likewise.
18613         * modules/sys_time (Makefile.am): Likewise.
18614         * modules/sys_times (Makefile.am): Likewise.
18615         * modules/sys_utsname (Makefile.am): Likewise.
18616         * modules/sys_wait (Makefile.am): Likewise.
18617         * modules/sysexits (Makefile.am): Likewise.
18618         * modules/termios (Makefile.am): Likewise.
18619         * modules/time (Makefile.am): Likewise.
18620         * modules/unistd (Makefile.am): Likewise.
18621         * modules/wchar (Makefile.am): Likewise.
18622         * modules/wctype-h (Makefile.am): Likewise.
18623         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
18624
18625 2011-04-05  Bruno Haible  <bruno@clisp.org>
18626
18627         pipe2: Relicense under LGPLv2+.
18628         * modules/pipe2 (License): Change to LGPLv2+.
18629         Requested by Eric Blake, for libvirt.
18630
18631 2011-04-05  Bruce Korb  <bkorb@gnu.org>
18632
18633         bootstrap: compute gnulib_extra_files after updating build_aux
18634         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
18635         change build_aux or also supply gnulib_extra_files.  Handle correctly.
18636
18637 2011-04-05  Eric Blake  <eblake@redhat.com>
18638
18639         bootstrap: preserve git whitelist item sorting
18640         * build-aux/bootstrap (sort_patterns): New function.
18641         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
18642
18643 2011-04-05  Simon Josefsson  <simon@josefsson.org>
18644
18645         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
18646         sc_space_tab check.
18647
18648 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
18649
18650         areadlink, areadlinkat: rewrite in terms of careadlinkat
18651         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
18652         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
18653         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
18654         (malloc, realloc): Remove #undefs.
18655         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
18656         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
18657         readlink, ssize_t, stdint, unistd.
18658         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
18659         areadlink, stdint.
18660
18661         careadlinkat: new module
18662         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
18663         * modules/careadlinkat: New files, written by me with
18664         a review and feedback from Ben Pfaff in
18665         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
18666
18667 2011-04-01  Bruno Haible  <bruno@clisp.org>
18668
18669         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
18670         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
18671         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
18672         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
18673         Reported by Bruce Korb <bruce.korb@gmail.com>.
18674
18675 2011-04-01  Bruno Haible  <bruno@clisp.org>
18676
18677         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
18678         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
18679         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
18680         * modules/wcpcpy (Depends-on): Add extensions.
18681         * modules/wcpncpy (Depends-on): Likewise.
18682         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
18683         systems.
18684         * doc/posix-functions/wcpncpy.texi: Likewise.
18685         * doc/posix-functions/wcwidth.texi: Likewise.
18686
18687 2011-03-31  Eric Blake  <eblake@redhat.com>
18688
18689         nonblocking: fix mingw test failures
18690         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
18691         non-blocking flag on regular file.
18692         (get_nonblocking_flag): Set errno on invalid fd.
18693         * tests/test-nonblocking.c (main): Avoid test failure on
18694         directories if fchdir is not active.
18695         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
18696
18697 2011-03-31  Bruno Haible  <bruno@clisp.org>
18698
18699         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
18700         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
18701         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
18702         Reported by Simon Josefsson <simon@josefsson.org>.
18703
18704 2011-03-31  Bruno Haible  <bruno@clisp.org>
18705         and Eric Blake  <eblake@redhat.com>
18706
18707         nonblocking: new module
18708         * modules/nonblocking: New module.
18709         * modules/nonblocking-tests: Likewise.
18710         * lib/nonblocking.h: New file.
18711         * lib/nonblocking.c: Likewise.
18712         * tests/test-nonblocking.c: New test.
18713         * lib/ioctl.c (ioctl) [mingw]: Update comment.
18714
18715 2011-03-30  Bruno Haible  <bruno@clisp.org>
18716
18717         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
18718         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
18719         instead of 'printf' format for GCC >= 4.4.
18720         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
18721         (fprintf, printf, vfprintf, vprintf): Declare with
18722         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
18723         the system's vfprintf() function.
18724         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
18725
18726 2011-03-30  Eric Blake  <eblake@redhat.com>
18727
18728         passfd: fix scoping bug
18729         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
18730         before sendmsg/recvmsg.
18731
18732         passfd: standardize coding conventions
18733         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
18734         can be learned at compile time.
18735         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
18736         ifdefs.
18737         (sendfd, recvfd): Follow gnulib code conventions.
18738
18739         passfd: fix incorrect sendmsg arguments
18740         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
18741         incorrect msg_controllen value.
18742         * modules/passfd-tests (Depends-on): Check for alarm.
18743         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
18744         Reported by Bastien ROUCARIES.
18745
18746 2011-03-30  Bruno Haible  <bruno@clisp.org>
18747
18748         c-strcasestr: Relicense under LGPLv2+.
18749         * modules/c-strcasestr (License): Change to LGPLv2+.
18750         Requested by Eric Blake, for libvirt.
18751
18752 2011-03-30  Simon Josefsson  <simon@josefsson.org>
18753
18754         * users.txt: Add libidn2.  Fix libtasn1 link.
18755
18756 2011-03-30  Jim Meyering  <meyering@redhat.com>
18757
18758         tests: readlink* ("",... fails with EINVAL on newer kernels
18759         readlink and readlinkat have typically failed with ENOENT for
18760         the invalid, empty file name,  "".  However, with the advent
18761         of linux-2.6.39, they fail with EINVAL.
18762         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
18763         when operating on the empty file name.
18764         * tests/test-readlink.h (test_readlink): Likewise.
18765
18766 2011-03-29  Bruno Haible  <bruno@clisp.org>
18767
18768         Relicense some modules under LGPLv2+, for libidn2.
18769         * modules/array-mergesort (License): Change to LGPLv2+.
18770         * modules/c-strcaseeq (License): Likewise.
18771         * modules/striconveh (License): Likewise.
18772         * modules/striconveha (License): Likewise.
18773         * modules/uniconv/base (License): Likewise.
18774         * modules/uniconv/u8-conv-from-enc (License): Likewise.
18775         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
18776         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
18777         * modules/unictype/base (License): Likewise.
18778         * modules/unictype/bidiclass-of (License): Likewise.
18779         * modules/unictype/category-M (License): Likewise.
18780         * modules/unictype/category-none (License): Likewise.
18781         * modules/unictype/category-of (License): Likewise.
18782         * modules/unictype/category-test (License): Likewise.
18783         * modules/unictype/category-test-withtable (License): Likewise.
18784         * modules/unictype/combining-class (License): Likewise.
18785         * modules/unictype/joiningtype-of (License): Likewise.
18786         * modules/unictype/scripts (License): Likewise.
18787         * modules/uninorm/base (License): Likewise.
18788         * modules/uninorm/canonical-decomposition (License): Likewise.
18789         * modules/uninorm/composition (License): Likewise.
18790         * modules/uninorm/decompose-internal (License): Likewise.
18791         * modules/uninorm/decomposition-table (License): Likewise.
18792         * modules/uninorm/nfc (License): Likewise.
18793         * modules/uninorm/nfd (License): Likewise.
18794         * modules/uninorm/u32-normalize (License): Likewise.
18795         * modules/unistr/base (License): Likewise.
18796         * modules/unistr/u32-cpy (License): Likewise.
18797         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
18798         * modules/unistr/u32-to-u8 (License): Likewise.
18799         * modules/unistr/u32-uctomb (License): Likewise.
18800         * modules/unistr/u8-check (License): Likewise.
18801         * modules/unistr/u8-mblen (License): Likewise.
18802         * modules/unistr/u8-mbtouc (License): Likewise.
18803         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
18804         * modules/unistr/u8-mbtoucr (License): Likewise.
18805         * modules/unistr/u8-prev (License): Likewise.
18806         * modules/unistr/u8-strlen (License): Likewise.
18807         * modules/unistr/u8-to-u32 (License): Likewise.
18808         * modules/unistr/u8-uctomb (License): Likewise.
18809         * modules/unitypes (License): Likewise.
18810         Requested by Simon Josefsson.
18811
18812 2011-03-29  Simon Josefsson  <simon@josefsson.org>
18813
18814         lib-symbol-visibility: Add a notice.
18815         * modules/lib-symbol-visibility (Notice): New field.
18816
18817 2011-03-29  Bruno Haible  <bruno@clisp.org>
18818
18819         getaddrinfo: Doc fix.
18820         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
18821         section "fixed in Gnulib".
18822
18823 2011-03-28  Simon Josefsson  <simon@josefsson.org>
18824
18825         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
18826         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
18827
18828 2011-03-26  Bruno Haible  <bruno@clisp.org>
18829
18830         unictype/property-byname: Reduce the number of load-time relocations.
18831         * lib/unictype/pr_byname.c: Include <stdlib.h>.
18832         (UC_PROPERTY_INDEX_*): New enumeration values.
18833         (uc_property_byname): Convert an index from the lookup table to an
18834         uc_property_t.
18835         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
18836         values.
18837
18838 2011-03-26  Bruno Haible  <bruno@clisp.org>
18839
18840         unictype/property-byname: Allow omitted word separators and aliases.
18841         * lib/unictype/pr_byname.gperf: Add property names without word
18842         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
18843         for 'space'.
18844
18845 2011-03-26  Bruno Haible  <bruno@clisp.org>
18846
18847         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
18848         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
18849         also hyphens to space.
18850         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
18851         without spaces.
18852         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
18853
18854 2011-03-26  Bruno Haible  <bruno@clisp.org>
18855
18856         unictype/joiningtype-byname: Recognize long names as well.
18857         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
18858         a long name.
18859         * lib/unictype/joiningtype_byname.c: Include <string.h>,
18860         unictype/joiningtype_byname.h.
18861         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
18862         * lib/unictype/joiningtype_byname.gperf: New file.
18863         * modules/unictype/joiningtype-byname (Files): Add
18864         lib/unictype/joiningtype_byname.gperf.
18865         (Depends-on): Add gperf.
18866         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
18867         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
18868         long names.
18869
18870         Tests for module 'unictype/joiningtype-longname'.
18871         * modules/unictype/joiningtype-longname-tests: New file.
18872         * tests/unictype/test-joiningtype_longname.c: New file.
18873
18874         New module 'unictype/joiningtype-longname'.
18875         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
18876         * lib/unictype/joiningtype_longname.c: New file.
18877         * modules/unictype/joiningtype-longname: New file.
18878         * modules/unictype/joiningtype-all (Depends-on): Add
18879         unictype/joiningtype-longname.
18880
18881 2011-03-26  Bruno Haible  <bruno@clisp.org>
18882
18883         unictype/bidiclass-byname: Recognize long names as well.
18884         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
18885         name.
18886         * lib/unictype/bidi_byname.c: Include <string.h>,
18887         unictype/bidi_byname.h.
18888         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
18889         * lib/unictype/bidi_byname.gperf: New file.
18890         * modules/unictype/bidiclass-byname (Files): Add
18891         lib/unictype/bidi_byname.gperf.
18892         (Depends-on): Add gperf.
18893         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
18894         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
18895         long names.
18896
18897         Tests for module 'unictype/bidiclass-longname'.
18898         * modules/unictype/bidiclass-longname-tests: New file.
18899         * tests/unictype/test-bidi_longname.c: New file.
18900
18901         New module 'unictype/bidiclass-longname'.
18902         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
18903         * lib/unictype/bidi_longname.c: New file.
18904         * modules/unictype/bidiclass-longname: New file.
18905         * modules/unictype/bidiclass-all (Depends-on): Add
18906         unictype/bidiclass-longname.
18907
18908 2011-03-26  Bruno Haible  <bruno@clisp.org>
18909
18910         unictype/bidi*: Rename modules.
18911         * modules/unictype/bidiclass-all: Renamed from
18912         modules/unictype/bidicategory-all.
18913         * modules/unictype/bidiclass-name: Renamed from
18914         modules/unictype/bidiclass-name.
18915         (Description): Update.
18916         * modules/unictype/bidiclass-name-tests: Renamed from
18917         modules/unictype/bidicategory-name-tests.
18918         * modules/unictype/bidiclass-byname: Renamed from
18919         modules/unictype/bidicategory-byname.
18920         (Description): Update.
18921         * modules/unictype/bidiclass-byname-tests: Renamed from
18922         modules/unictype/bidicategory-byname-tests.
18923         * modules/unictype/bidiclass-of: Renamed from
18924         modules/unictype/bidicategory-of.
18925         (Description): Update.
18926         * modules/unictype/bidiclass-of-tests: Renamed from
18927         modules/unictype/bidicategory-of-tests.
18928         * modules/unictype/bidiclass-test: Renamed from
18929         modules/unictype/bidicategory-test.
18930         (Description): Update.
18931         * modules/unictype/bidiclass-test-tests: Renamed from
18932         modules/unictype/bidicategory-test-tests.
18933         * modules/unictype/bidicategory-all: New file, a simple redirection.
18934         * modules/unictype/bidicategory-name: Likewise.
18935         * modules/unictype/bidicategory-byname: Likewise.
18936         * modules/unictype/bidicategory-of: Likewise.
18937         * modules/unictype/bidicategory-test: Likewise.
18938         * modules/unictype/property-bidi-* (Dependencies): Update.
18939         * lib/unictype/bidi_*.c: Update comment.
18940
18941 2011-03-26  Bruno Haible  <bruno@clisp.org>
18942
18943         unictype/bidi*: Rename functions, part 2.
18944         * modules/unictype/bidicategory-name (configure.ac): Update required
18945         libunistring version.
18946         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
18947
18948 2011-03-25  Bruno Haible  <bruno@clisp.org>
18949
18950         New module 'unictype/combining-class-all'.
18951         * modules/unictype/combining-class-all: New file.
18952
18953         Tests for module 'unictype/combining-class-byname'.
18954         * modules/unictype/combining-class-byname-tests: New file.
18955         * tests/unictype/test-combiningclass_byname.c: New file.
18956
18957         New module 'unictype/combining-class-byname'.
18958         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
18959         * lib/unictype/combiningclass_byname.c: New file.
18960         * lib/unictype/combiningclass_byname.gperf: New file.
18961         * modules/unictype/combining-class-byname: New file.
18962
18963         Tests for module 'unictype/combining-class-longname'.
18964         * modules/unictype/combining-class-longname-tests: New file.
18965         * tests/unictype/test-combiningclass_longname.c: New file.
18966
18967         New module 'unictype/combining-class-longname'.
18968         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
18969         * lib/unictype/combiningclass_longname.c: New file.
18970         * modules/unictype/combining-class-longname: New file.
18971
18972         Tests for module 'unictype/combining-class-name'.
18973         * modules/unictype/combining-class-name-tests: New file.
18974         * tests/unictype/test-combiningclass_name.c: New file.
18975
18976         New module 'unictype/combining-class-name'.
18977         * lib/unictype.in.h (uc_combining_class_name): New declaration.
18978         * lib/unictype/combiningclass_name.c: New file.
18979         * modules/unictype/combining-class-name: New file.
18980
18981 2011-03-25  Bruno Haible  <bruno@clisp.org>
18982
18983         unictype/combining-class: Rename source files.
18984         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
18985         of unictype/combining.h.
18986         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
18987         Update.
18988         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
18989         * modules/unictype/combining-class (Description): Fix.
18990         (Files, Makefile.am): Update.
18991         * tests/unictype/test-combiningclass.c: Renamed from
18992         tests/unictype/test-combining.c.
18993         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
18994
18995 2011-03-25  Bruno Haible  <bruno@clisp.org>
18996
18997         unictype: Update list of canonical combining classes.
18998         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
18999
19000 2011-03-25  Bruno Haible  <bruno@clisp.org>
19001
19002         unictype/category-byname: Recognize long names as well.
19003         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
19004         a long name.
19005         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
19006         unictype/categ_byname.h.
19007         (UC_CATEGORY_INDEX_*): New enumeration values.
19008         (uc_general_category_byname): Use uc_general_category_lookup and
19009         convert from index to value.
19010         * lib/unictype/categ_byname.gperf: New file.
19011         * modules/unictype/category-byname (Files): Add
19012         lib/unictype/categ_byname.gperf.
19013         (Depends-on): Add gperf.
19014         (Makefile.am): Add rule for generating unictype/categ_byname.h.
19015         * tests/unictype/test-categ_byname.c (main): Test the recognition of
19016         long names.
19017
19018         Tests for module 'unictype/category-longname'.
19019         * modules/unictype/category-longname-tests: New file.
19020         * tests/unictype/test-categ_longname.c: New file.
19021
19022         New module 'unictype/category-longname'.
19023         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
19024         * lib/unictype/categ_longname.c: New file.
19025         * modules/unictype/category-longname: New file.
19026         * modules/unictype/category-all (Depends-on): Add it.
19027
19028 2011-03-25  Bruno Haible  <bruno@clisp.org>
19029
19030         Tests for module 'unictype/category-LC'.
19031         * modules/unictype/category-LC-tests: New file.
19032         * tests/unictype/test-categ_LC.c: New file, automatically generated.
19033
19034         New module 'unictype/category-LC'.
19035         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
19036         (UC_CATEGORY_LC): New declaration.
19037         (UC_CASED_LETTER): New macro.
19038         * lib/gen-uni-tables.c (is_category_LC): New function.
19039         (output_categories): Also handle category LC.
19040         (UC_CATEGORY_MASK_LC): New enumeration value.
19041         (general_category_byname): Also handle category LC.
19042         * lib/unictype/categ_LC.c: New file.
19043         * lib/unictype/categ_LC.h: New file, automatically generated.
19044         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
19045         category LC.
19046         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
19047         * modules/unictype/category-LC: New file.
19048         * modules/unictype/category-byname (Depends-on): Add
19049         unictype/category-LC.
19050         * modules/unictype/category-all (Depends-on): Likewise.
19051
19052 2011-03-25  Eric Blake  <eblake@redhat.com>
19053
19054         xmalloc: revert yesterday's regression
19055         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
19056         realloc's underlying behavior (allowing allocation of zero-size
19057         objects, especially if malloc-gnu is also in use).
19058
19059 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
19060
19061         maint.mk: add missing version to VC-tag
19062         * top/maint.mk: git tag was missing actual tag name; add it.
19063
19064         valgrind: do leak checking, and exit with code 1 on error (not 0)
19065         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
19066         to VALGRIND.
19067
19068 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
19069
19070         posix-modules: say what it does.
19071         * posix-modules: Add a line to the --help output saying what it does.
19072
19073 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
19074
19075         xmalloc: Do not leak if underlying realloc is C99 compatible.
19076         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
19077         This avoids a leak on C99-based systems.  See
19078         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
19079
19080 2011-03-24  Eric Blake  <eblake@redhat.com>
19081
19082         realloc: document portability problem
19083         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
19084         passing 0 size to realloc.
19085
19086 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
19087
19088         doc: update users.txt
19089         * users.txt: Add cvsps, tmpwatch
19090
19091 2011-03-23  Matt Rice  <ratmice@gmail.com>
19092
19093         doc: update users.txt
19094         * users.txt: Add gdb.
19095
19096 2011-03-23  Jim Meyering  <meyering@redhat.com>
19097
19098         doc: update users.txt
19099         Looking through matches up to the following URL (there are still
19100         several more pages), I found several projects that use gnulib:
19101         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
19102         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
19103         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
19104
19105 2011-03-22  Bruno Haible  <bruno@clisp.org>
19106
19107         unictype/bidi*: Rename functions.
19108         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
19109         uc_bidi_class, uc_is_bidi_class): New declarations.
19110         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
19111         uc_bidi_category_byname.
19112         (uc_bidi_category_byname): New function.
19113         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
19114         u_bidi_category_name.
19115         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
19116         (uc_bidi_category_name): New function.
19117         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
19118         uc_bidi_category.
19119         (uc_bidi_category): New function.
19120         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
19121         uc_is_bidi_category. Invoke uc_bidi_class.
19122         (uc_is_bidi_category): New function.
19123         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
19124         instead of uc_bidi_category_byname.
19125         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
19126         instead of uc_bidi_category_name.
19127         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
19128         uc_bidi_category.
19129         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
19130         instead of uc_is_bidi_category.
19131
19132 2011-03-21  Bruno Haible  <bruno@clisp.org>
19133
19134         New module 'unictype/joininggroup-all'.
19135         * modules/unictype/joininggroup-all: New file.
19136
19137         Tests for module 'unictype/joininggroup-of'.
19138         * modules/unictype/joininggroup-of-tests: New file.
19139         * tests/unictype/test-joininggroup_of.c: New file.
19140         * tests/unictype/test-joininggroup_of.h: New file, automatically
19141         generated by gen-uni-tables.
19142
19143         New module 'unictype/joininggroup-of'.
19144         * modules/unictype/joininggroup-of: New file.
19145         * lib/unictype/joininggroup_of.c: New file.
19146         * lib/unictype/joininggroup_of.h: New file, automatically generated by
19147         gen-uni-tables.
19148
19149         Tests for module 'unictype/joininggroup-byname'.
19150         * modules/unictype/joininggroup-byname-tests: New file.
19151         * tests/unictype/test-joininggroup_byname.c: New file.
19152
19153         New module 'unictype/joininggroup-byname'.
19154         * modules/unictype/joininggroup-byname: New file.
19155         * lib/unictype/joininggroup_byname.c: New file.
19156         * lib/unictype/joininggroup_byname.gperf: New file.
19157
19158         Tests for module 'unictype/joininggroup-name'.
19159         * modules/unictype/joininggroup-name-tests: New file.
19160         * tests/unictype/test-joininggroup_name.c: New file.
19161
19162         New module 'unictype/joininggroup-name'.
19163         * modules/unictype/joininggroup-name: New file.
19164         * lib/unictype/joininggroup_name.c: New file.
19165         * lib/unictype/joininggroup_name.h: New file.
19166
19167         New module 'unictype/joiningtype-all'.
19168         * modules/unictype/joiningtype-all: New file.
19169
19170         Tests for module 'unictype/joiningtype-of'.
19171         * modules/unictype/joiningtype-of-tests: New file.
19172         * tests/unictype/test-joiningtype_of.c: New file.
19173         * tests/unictype/test-joiningtype_of.h: New file, automatically
19174         generated by gen-uni-tables.
19175
19176         New module 'unictype/joiningtype-of'.
19177         * modules/unictype/joiningtype-of: New file.
19178         * lib/unictype/joiningtype_of.c: New file.
19179         * lib/unictype/joiningtype_of.h: New file, automatically generated by
19180         gen-uni-tables.
19181
19182         Tests for module 'unictype/joiningtype-byname'.
19183         * modules/unictype/joiningtype-byname-tests: New file.
19184         * tests/unictype/test-joiningtype_byname.c: New file.
19185
19186         New module 'unictype/joiningtype-byname'.
19187         * modules/unictype/joiningtype-byname: New file.
19188         * lib/unictype/joiningtype_byname.c: New file.
19189
19190         Tests for module 'unictype/joiningtype-name'.
19191         * modules/unictype/joiningtype-name-tests: New file.
19192         * tests/unictype/test-joiningtype_name.c: New file.
19193
19194         New module 'unictype/joiningtype-name'.
19195         * modules/unictype/joiningtype-name: New file.
19196         * lib/unictype/joiningtype_name.c: New file.
19197
19198         unictype: Add support for Arabic shaping properties.
19199         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
19200         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
19201         declarations.
19202         (UC_JOINING_GROUP_*): New enumeration values.
19203         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
19204         declarations.
19205         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
19206         (unicode_joining_type): New variable.
19207         (UC_JOINING_GROUP_*): New enumeration values.
19208         (unicode_joining_group): New variable.
19209         (fill_arabicshaping, joining_type_as_c_identifier,
19210         output_joining_type_test, output_joining_type,
19211         joining_group_as_c_identifier, output_joining_group_test,
19212         output_joining_group): New functions.
19213         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
19214         fill_arabicshaping and output_joining_type_test, output_joining_type,
19215         output_joining_group_test, output_joining_group.
19216         Reported by Simon Josefsson.
19217
19218 2011-03-21  Jim Meyering  <meyering@redhat.com>
19219
19220         strftime: fix a bug in yesterday's change
19221         * lib/strftime.c (add): Accommodate width's initial value of -1.
19222         Otherwise, nstrftime would copy uninitialized data into
19223         the result buffer.
19224
19225 2011-03-21  Jim Meyering  <meyering@redhat.com>
19226
19227         tests: add strftime-tests module
19228         * tests/test-strftime.c: New file.
19229         * modules/strftime-tests: New module.
19230
19231 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
19232
19233         strftime: don't assume a byte count fits in 'int'
19234         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
19235         found this problem by static analysis, using gcc -Wstrict-overflow
19236         (GCC 4.5.2, x86-64).  This reported an optimization that depended
19237         on an integer overflow having undefined behavior, but it turns out
19238         that the argument is a size, which might not fit in 'int' anyway,
19239
19240 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
19241
19242         stdio: don't require ignore_value around fwrite
19243
19244         This patch works around libc bug 11959
19245         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
19246         Without this patch, applications must often write
19247         ignore_value (fwrite (...)) even though the ignore_value is
19248         not helpful here.  It's common to write many objects, using
19249         fwrite/printf/etc., and then use ferror to detect output error.
19250
19251         I considered making this patch optional, but decided against it,
19252         because libc is obviously being inconsistent here: there is no
19253         reason libc should insist that user code must inspect fwrite
19254         return's value without also insisting that it inspect printf's,
19255         putchar's, etc.  If user code wants to have a strict style where
19256         all these functions' values are checked (so that ferror need not
19257         be checked), we could add support for that style in a new gnulib
19258         module, but in the meantime it's better to be consistent and to
19259         support common usage.
19260
19261         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
19262         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
19263         that we are compiling in checking mode, and if not C++, and
19264         if not already wrapping fwrite for some other reason.
19265         (fwrite): #define to rpl_fwrite if the latter is defined.
19266
19267 2011-03-20  Bruno Haible  <bruno@clisp.org>
19268
19269         verror: Fix compilation error introduced on 2011-02-13.
19270         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
19271         instead of __attribute__.
19272         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19273
19274 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
19275             Bruno Haible  <bruno@clisp.org>
19276
19277         socklen: do not depend on sys_socket
19278         While trying to modify Emacs to use gnulib's socklen module,
19279         I discovered a circular dependency: socklen depends on sys_socket
19280         and vice versa.  Emacs can use socklen, but it does not need
19281         sys_socket because it has its own substitute for sys/socket.h.
19282         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
19283         gl_TYPE_SOCKLEN_T.
19284         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
19285         gl_PREREQ_SYS_H_SOCKET.
19286         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
19287         gl_PREREQ_SYS_H_SOCKET.
19288         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
19289         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
19290         * modules/socklen (Depends-on): Do not depend on sys_socket.
19291         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
19292
19293 2011-03-20  Jim Meyering  <meyering@redhat.com>
19294
19295         maint.mk: sort file names *after* new transformation
19296         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
19297         prefix would have led to an unwarranted failure in GNU parted.
19298         Sort after that transformation.
19299
19300 2011-03-19  Jim Meyering  <meyering@redhat.com>
19301
19302         maint.mk: fix po-file syntax-check rule
19303         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
19304         Patch by Bruno Haible.
19305
19306 2011-03-19  Bruno Haible  <bruno@clisp.org>
19307
19308         socklen: Update comment.
19309         * m4/socklen.m4: Update comment about platforms.
19310
19311 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
19312             Bruno Haible  <bruno@clisp.org>
19313
19314         inet_ntop, inet_pton: Simplify.
19315         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
19316         documented to provide socklen_t and we already depend on sys_socket.
19317         * modules/inet_pton (Depends-on): Likewise.
19318         * lib/arpa_inet.in.h: Adjust comment.
19319
19320 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
19321             Bruno Haible  <bruno@clisp.org>
19322
19323         netdb: Simplify.
19324         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
19325         documented to provide socklen_t and we already depend on sys_socket.
19326         * lib/netdb.in.h: Adjust comment.
19327
19328 2011-03-19  Bruno Haible  <bruno@clisp.org>
19329
19330         sys_socket, netdb: Document problem with socklen_t.
19331         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
19332         platforms.
19333         * doc/posix-headers/netdb.texi: Likewise.
19334
19335 2011-03-18  Eric Blake  <eblake@redhat.com>
19336
19337         maint.mk: let po check work in VPATH build
19338         * top/maint.mk (po_file): Allow cfg.mk override.
19339         (sc_po_check): Allow VPATH use.
19340         Reported by Jiri Denemark.
19341
19342 2011-03-16  Jim Meyering  <meyering@redhat.com>
19343
19344         maint.mk: allow fine-grained syntax-check exclusion via Make variables
19345         Before, you would have had to create one .x-sc_ file per rule in order
19346         to exempt offending files.  Now, you may instead use a Make variable --
19347         usually defined in cfg.mk -- whose name identifies the affected rule.
19348         * top/maint.mk (_sc_excl): Define.
19349         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
19350         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
19351
19352 2011-03-13  Bruno Haible  <bruno@clisp.org>
19353
19354         ignore-value tests: Avoid warnings.
19355         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
19356         empty for gcc < 3.4.
19357
19358 2011-03-13  Bruno Haible  <bruno@clisp.org>
19359
19360         passfd: Fix link error on Solaris.
19361         * modules/passfd (Description): Correct.
19362         (Depends-on): Add socketlib.
19363         (Link): New section.
19364         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
19365
19366 2011-03-13  Bruno Haible  <bruno@clisp.org>
19367
19368         passfd: Fix link error on AIX 5.2.
19369         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
19370
19371 2011-03-13  Bruno Haible  <bruno@clisp.org>
19372
19373         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
19374         * lib/sys_socket.in.h: Include <stddef.h>.
19375         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
19376         CMSG_FIRSTHDR. Remove unused variable.
19377
19378 2011-03-13  Bruno Haible  <bruno@clisp.org>
19379
19380         passfd: Fix compilation error on OpenBSD.
19381         * lib/passfd.c: Include <sys/uio.h>.
19382
19383 2011-03-13  Bruno Haible  <bruno@clisp.org>
19384
19385         passfd test: Fix warnings.
19386         * tests/test-passfd.c: Include <sys/wait.h>.
19387         (main): Fix typo.
19388
19389 2011-03-13  Bruno Haible  <bruno@clisp.org>
19390
19391         passfd module, part 4, tweaks.
19392         * tests/test-passfd.c: Reorder includes.
19393         (main): Fix perror and printf calls.
19394
19395 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
19396
19397         passfd module, part 4.
19398         * modules/passfd-tests: New file.
19399         * tests/test-passfd.c: New file.
19400
19401 2011-03-13  Jim Meyering  <meyering@redhat.com>
19402
19403         Makefile: rely on GNU make; derive syntax-check rule names
19404         Rather than requiring that each sc_ rule be listed as a dependent
19405         of "check", use features of GNU make to derive the list.
19406         * Makefile (syntax-check-rules): Define.
19407         (check): Depend on the new variable, not the hard-coded list.
19408
19409 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
19410             Bruno Haible  <bruno@clisp.org>
19411
19412         passfd module, part 3.
19413         * lib/passfd.h (recvfd): Add a flags argument.
19414         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
19415         (recvfd): Add a flags argument.
19416         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
19417         exists.
19418         * modules/passfd (Depends-on): Add cloexec.
19419         Suggested by Eric Blake.
19420
19421 2011-03-13  Bruno Haible  <bruno@clisp.org>
19422
19423         passfd module, part 2, tweaks.
19424         * modules/passfd (Files): Reorder.
19425         (Depends-on): Remove errno.
19426         (Include): Remove <sys/socket.h>, <sys/un.h>.
19427         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
19428         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
19429         specification header. Include <sys/socket.h> always. Don't include
19430         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
19431         (sendfd): Clarify that it sets errno when it fails.
19432         (recvfd): Fix specification.
19433
19434 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
19435
19436         passfd module, part 2.
19437         * modules/passfd: New file.
19438         * lib/passfd.h: New file.
19439         * lib/passfd.c: New file.
19440
19441 2011-03-12  Bruno Haible  <bruno@clisp.org>
19442
19443         wcswidth, mbswidth: Avoid integer overflow.
19444         * lib/wcswidth.c: Include <limits.h>.
19445         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
19446         * lib/mbswidth.c: Include <limits.h>.
19447         (mbsnwidth): Avoid 'int' overflow.
19448         Reported by Jim Meyering.
19449
19450 2011-03-12  Bruno Haible  <bruno@clisp.org>
19451
19452         futimens, utimensat: Avoid endless recursion on Solaris 10.
19453         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
19454         Solaris.
19455         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
19456         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
19457
19458 2011-03-11  Jim Meyering  <meyering@redhat.com>
19459
19460         maint.mk: relax a regexp to accommodate other formatting styles
19461         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
19462         between "ngettext" and the following "(".
19463
19464 2011-03-11  Pádraig Brady <P@draigBrady.com>
19465
19466         maint.mk: suppress a false positive warning
19467         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
19468         diagnostics are marked with ngettext.
19469
19470 2011-03-10  Eric Blake  <eblake@redhat.com>
19471
19472         wchar: add explicit dependencies, for Tru64
19473         * modules/mbmemcasecoll (Depends-on): Add wchar.
19474         * modules/mbtowc (Depends-on): Likewise.
19475         * modules/vasnprintf (Depends-on): Likewise.
19476         * modules/unistdio/u-printf-args (Depends-on): Likewise.
19477         * modules/wctomb (Depends-on): Likewise.
19478         Reported by Peter O'Gorman.
19479
19480 2011-03-08  Bruno Haible  <bruno@clisp.org>
19481
19482         passfd module, part 1, tweaks.
19483         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
19484         Improve indentation. Improve AC_MSG_CHECKING messages.
19485         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
19486         gl_SOCKET_FAMILIES.
19487
19488 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
19489
19490         passfd module, part 1.
19491         * m4/afunix.m4: New file.
19492         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
19493         sockets.
19494
19495 2011-03-08  Bruno Haible  <bruno@clisp.org>
19496
19497         regex-quote: New API.
19498         * lib/regex-quote.h: Include <stdbool.h>.
19499         (struct regex_quote_spec): New type.
19500         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
19501         New declarations.
19502         (regex_quote_length, regex_quote_copy, regex_quote): Take a
19503         'const struct regex_quote_spec *' argument.
19504         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
19505         (pcre_special): New constant.
19506         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
19507         New functions.
19508         (regex_quote_length, regex_quote_copy, regex_quote): Take a
19509         'const struct regex_quote_spec *' argument.
19510         * modules/regex-quote (Depends-on): Add stdbool.
19511         * tests/test-regex-quote.c (check): Update for new API. Add test for
19512         anchored results.
19513         * NEWS: Mention the API change.
19514         Reported by Reuben Thomas and Eric Blake.
19515
19516 2011-03-06  Bruno Haible  <bruno@clisp.org>
19517
19518         regex-quote: Fix creation of POSIX extended regular expressions.
19519         * lib/regex-quote.c (ere_special): Add grouping and alternation
19520         operators.
19521
19522 2011-03-05  Bruno Haible  <bruno@clisp.org>
19523
19524         doc: Improve doc regarding autopoint vs. gnulib.
19525         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
19526         disable autopoint while running autoreconf.
19527         Suggested by Ralf Wildenhues.
19528
19529 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19530
19531         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
19532         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
19533
19534 2011-03-03  Bruce Korb  <bkorb@gnu.org>
19535
19536         parse-duration: remove xalloc.h dependency
19537         * lib/parse-duration.c (parse_period): handle NULL return from
19538         strdup instead of calling xstrdup().
19539         * modules/parse-duration: remove "xalloc" dependency
19540
19541 2011-03-03  Matthew Booth  <mbooth@redhat.com>
19542
19543         bootstrap: honor m4_base when running aclocal
19544         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
19545
19546 2011-03-02  Jim Meyering  <meyering@redhat.com>
19547
19548         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
19549         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
19550         on request from Matt Booth.
19551
19552 2011-03-01  Eric Blake  <eblake@redhat.com>
19553
19554         test-link: work on Hurd
19555         * tests/test-link.h (test_link): Hurd rejects linking directories
19556         with EISDIR instead of the POSIX-mandated EPERM.
19557
19558 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
19559
19560         stdio: simplify by moving files to printf-posix, sigpipe
19561         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
19562         since this symbol is needed only if printf is replaced.
19563         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
19564         Require gl_ASM_SYMBOL_PREFIX.
19565         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
19566         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
19567         (Depends-on): Add 'raise'.
19568         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
19569         * modules/stdio (Files): Remove lib/stdio-write.c,
19570         m4/asm-underscore.m4.
19571         (Depends-on): Remove 'raise'.
19572
19573         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
19574         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
19575         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
19576         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
19577
19578 2011-02-28  Bruno Haible  <bruno@clisp.org>
19579
19580         localcharset: Assume ANSI C behaviour of free().
19581         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
19582         calling free().
19583         Suggested by Simon Josefsson <simon@josefsson.org>.
19584
19585 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
19586             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
19587             Bruno Haible  <bruno@clisp.org>  (tiny change)
19588
19589         On Cygwin, use /proc file system instead of win32 API.
19590         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
19591         Win32 file names.
19592         (DllMain): Simplify by removing Cygwin specific code.
19593         (find_shared_library_fullname): Use Linux specific implementation also
19594         for Cygwin.
19595         (get_shared_library_fullname): Update accordingly.
19596         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
19597         Win32 file names.
19598         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
19599         Cygwin specific code.
19600
19601 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
19602             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
19603
19604         Fix OpenMP flag detection for various Fortran compilers.
19605         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
19606         OpenMP-conditional compilation construct, to force compile
19607         failure with missing OpenMP flag.
19608         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
19609
19610 2011-02-25  Eric Blake  <eblake@redhat.com>
19611
19612         strstr: expand test coverage
19613         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
19614         compilation.
19615         * tests/test-memmem.c (main): Duplicate tests.
19616         * tests/test-strcasestr.c (main): Likewise.
19617         * tests/test-c-strcasestr.c (main): Likewise.
19618
19619 2011-02-25  Jim Meyering  <meyering@redhat.com>
19620
19621         maint.mk: detect missing-NL-at-EOF, too
19622         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
19623         it also detects when a file lacks a newline at EOF.
19624         (require_exactly_one_NL_at_EOF_): Renamed from
19625         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
19626         since people may well have .x-sc_... file names tied to the
19627         existing name.  Suggested by Eric Blake.
19628
19629 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
19630
19631         dirname: move m4/dos.m4 functionality into lib/dosname.h
19632
19633         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
19634         extracts symbols from it, puts them into config.h; but it's much
19635         easier to use the symbols directly.  filename.h already does this,
19636         but it disagrees with dos.m4 in some respects.  This patch
19637         introduces a different include file dosname.h that packages up
19638         dos.m4, and then later we can work on merging filename.h and
19639         dosname.h.  Applications that need only the easy-to-configure
19640         symbols should consider including dosname.h rather than dirname.h.
19641         * NEWS: Mention incompatible changes.
19642         * m4/dos.m4: Remove.
19643         * lib/dosname.h, modules/dosname: New files.
19644         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
19645         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
19646         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
19647         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
19648         Include dosname.h, not dirname.h.
19649         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
19650         Include dosname.h, for definitions of symbols like ISSLASH
19651         that used to be in config.h.
19652         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
19653         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
19654         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
19655         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
19656         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
19657         * modules/rmdir (Files): Likewise.
19658         * modules/stat (Files): Likewise.
19659         * modules/unlink (Files): Likewise.
19660         * modules/dirname-lgpl (Depends-on): Add dosname.
19661         * modules/lstat (Depends-on): Likewise.
19662         * modules/openat (Depends-on): Likewise.
19663         * modules/rmdir (Depends-on): Likewise.
19664         * modules/savewd (Depends-on): Likewise.
19665         * modules/stat (Depends-on): Likewise.
19666         * modules/unlink (Depends-on): Likewise.
19667         * modules/openat (Depends-on): Remove dirname-lgpl.
19668         * modules/savewd (Depends-on): Likewise.
19669         * tests/test-dirname.c: Do not use removed symbols like
19670         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
19671         the remaining symbols, e.g., ISSLASH ('\\').
19672
19673 2011-02-25  Eric Blake  <eblake@redhat.com>
19674
19675         strstr: revert patches that introduced bug and pessimization
19676         * lib/str-two-way.h: Add another reference.
19677         (two_way_short_needle, two_way_long_needle): Revert changes from
19678         2011-02-24; they pessimize search speed.
19679         (critical_factorization): Partially revert changes from
19680         2010-06-22; they violate the requirement that the left half of the
19681         needle be smaller than the period of the needle.
19682
19683 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
19684
19685         filenamecat: remove unnecessary dependency on dirname-lgpl
19686         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
19687         is no direct dependency, just an indirect one via filenamecat-lgpl.
19688
19689         remove: remove unnecessary use of m4/dos.m4
19690         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
19691         * modules/remove (FILES): Remove m4/dos.m4.
19692
19693         * lib/openat-proc.c: Don't include dirname.h; not needed.
19694
19695         backupfile: remove unnecessary use of m4/dos.m4
19696         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
19697         of its symbols are used by the backupfile code.  backupfile.c does
19698         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
19699         for the rare case of programs that want all their backup file
19700         names to live within 8+3 limits, and dos.m4 doesn't address that.
19701         * modules/backupfile (Files): Remove m4/dos.m4.
19702
19703 2011-02-24  Jim Meyering  <meyering@redhat.com>
19704
19705         strstr: fix a bug whereby strstr would mistakenly return NULL
19706         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
19707         in period calculation.
19708         (two_way_long_needle): Likewise.
19709         The original problem was reported by Mike Stump in
19710         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
19711         Ralf Wildenhues provided the short needle and haystack.
19712         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
19713         Add a more involved test to trigger the bug in two_way_long_needle.
19714
19715 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
19716
19717         gnulib-tool: remove use of bold display in help screen
19718         * gnulib-tool (func_usage): Do not use bold display anymore in the
19719         help screen.  That was just meant to be a temporary emphasis for a
19720         backward-incompatible change.
19721
19722 2011-02-23  Bruno Haible  <bruno@clisp.org>
19723
19724         Fix misindentation of preprocessor directives.
19725         * lib/argp-namefrob.h: Reindent preprocessor directives.
19726         * lib/getopt_int.h (struct _getopt_data): Likewise.
19727         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
19728         * lib/vasnprintf.c (decode_long_double): Likewise.
19729         * tests/test-argmatch.c: Insert blank lines, for clarity.
19730         * tests/test-exclude.c: Likewise.
19731
19732 2011-02-22  Bruno Haible  <bruno@clisp.org>
19733
19734         ioctl: Fix for MacOS X in 64-bit mode.
19735         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
19736         value.
19737         Suggested by Eric Blake.
19738         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
19739
19740 2011-02-22  Jim Meyering  <meyering@redhat.com>
19741
19742         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
19743         * Makefile (sc_cpp_indent_check): Don't limit the check to files
19744         in lib/.
19745
19746 2011-02-22  Eric Blake  <eblake@redhat.com>
19747
19748         maint: avoid any CDPATH issue
19749         * Makefile (sc_cpp_indent_check): Anchor cd argument.
19750
19751         maint: adjust cpp indentation for my modules, as well
19752         * Makefile (sc_cpp_indent_check): Add my name.
19753         * lib/fbufmode.c: Filter through cppi.
19754         * lib/fpurge.c: Likewise.
19755         * lib/freadable.c: Likewise.
19756         * lib/freading.c: Likewise.
19757         * lib/fwritable.c: Likewise.
19758         * lib/fwriting.c: Likewise.
19759         * lib/sigaction.c: Likewise.
19760
19761 2011-02-22  Jim Meyering  <meyering@redhat.com>
19762
19763         maint: adjust cpp indentation to reflect nesting depth
19764         I.e., in a block of code that begins with an unnested "#if",
19765         put one space between the "#" in column 1 and following token.
19766         For example,
19767         -#include <sys/vfs.h>
19768         +# include <sys/vfs.h>
19769         Do this only in .c files that are part of a module I maintain.
19770         * lib/linkat.c: Filter through cppi.
19771         * lib/nanosleep.c: Likewise.
19772         * lib/openat.c: Likewise.
19773         * lib/openat-die.c: Likewise.
19774         * lib/dup3.c: Likewise.
19775         * lib/fchownat.c: Likewise.
19776         * lib/flock.c: Likewise.
19777         * lib/fsync.c: Likewise.
19778         * lib/fts.c: Likewise.
19779         * lib/getpass.c: Likewise.
19780         * lib/gettimeofday.c: Likewise.
19781         * lib/userspec.c: Likewise.
19782         * Makefile (sc_cpp_indent_check): New rule, to check this.
19783
19784 2011-02-22  Bruno Haible  <bruno@clisp.org>
19785
19786         New module 'wctomb'.
19787         * lib/stdlib.in.h (wctomb): New declaration.
19788         * lib/wctomb.c: New file.
19789         * lib/wctomb-impl.h: New file.
19790         * m4/wctomb.m4: New file.
19791         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
19792         REPLACE_WCTOMB.
19793         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
19794         REPLACE_WCTOMB.
19795         * modules/wctomb: New file.
19796         * tests/test-stdlib-c++.cc: Test signature of wctomb.
19797         * doc/posix-functions/wctomb.texi: Mention the new module.
19798         * modules/wctob (Depends-on): Add wctomb.
19799
19800 2011-02-22  Bruno Haible  <bruno@clisp.org>
19801
19802         New module 'mbtowc'.
19803         * lib/stdlib.in.h (mbtowc): New declaration.
19804         * lib/mbtowc.c: New file.
19805         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
19806         * m4/mbtowc.m4: New file.
19807         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
19808         REPLACE_MBTOWC.
19809         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
19810         REPLACE_MBTOWC.
19811         * modules/mbtowc: New file.
19812         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
19813         * doc/posix-functions/mbtowc.texi: Mention the new module.
19814         * modules/btowc (Depends-on): Add mbtowc.
19815
19816 2011-02-22  Bruno Haible  <bruno@clisp.org>
19817
19818         wcrtomb: Add more tests for native Windows platforms.
19819         * tests/test-wcrtomb-w32-1.sh: New file.
19820         * tests/test-wcrtomb-w32-2.sh: New file.
19821         * tests/test-wcrtomb-w32-3.sh: New file.
19822         * tests/test-wcrtomb-w32-4.sh: New file.
19823         * tests/test-wcrtomb-w32-5.sh: New file.
19824         * tests/test-wcrtomb-w32.c: New file.
19825         * modules/wcrtomb-tests (Files): Add them.
19826         (Makefile.am): Arrange to run these tests.
19827         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
19828         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
19829
19830 2011-02-20  Bruno Haible  <bruno@clisp.org>
19831
19832         wcrtomb: Enhance test.
19833         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
19834
19835 2011-02-20  Bruno Haible  <bruno@clisp.org>
19836
19837         mbrtowc: Tiny optimization.
19838         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
19839
19840 2011-02-20  Jim Meyering  <meyering@redhat.com>
19841
19842         test-exclude.c: remove unmatched #endif
19843         * tests/test-exclude.c: Remove stray #endif, left over from
19844         the change of a week ago.
19845
19846 2011-02-19  Jim Meyering  <meyering@redhat.com>
19847
19848         git-version-gen: skip "-dirty" check when appropriate
19849         * build-aux/git-version-gen: Don't run any git commands when the
19850         version string comes from .tarball-version.  Prior to this, we
19851         would run git update-index --refresh even from a just-unpacked
19852         tarball directory, and that could affect a .git/ directory in a
19853         parent of the build directory.  Reported by Mike Frysinger.
19854
19855 2011-02-19  Bruno Haible  <bruno@clisp.org>
19856
19857         unictype/property-byname: Reduce the size of the 'data' segment.
19858         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
19859
19860 2011-02-19  Bruno Haible  <bruno@clisp.org>
19861
19862         unictype/scripts: Reduce the size of the 'data' segment.
19863         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
19864         '%pic'.
19865         * lib/unictype/scripts_byname.gperf: Regenerated.
19866
19867 2011-02-19  Bruno Haible  <bruno@clisp.org>
19868
19869         stdint: Update documentation.
19870         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
19871
19872 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
19873
19874         stdint: omit redundant check for wchar.h
19875         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
19876         always tests whether wchar.h exists, so remove the now-redundant test.
19877
19878 2011-02-18  Bruno Haible  <bruno@clisp.org>
19879
19880         stdint: Cut dependency to module 'wchar'.
19881         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
19882         include the necessary prerequisites.
19883         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
19884         * modules/stdint (Depends-on): Remove wchar.
19885         (Makefile.am): Substitute HAVE_WCHAR_H.
19886         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
19887
19888 2011-02-18  Eric Blake  <eblake@redhat.com>
19889
19890         longlong: skip, rather than fail, on cross-compilation
19891         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
19892         when cross-compiling; regression from 2011-02-16.
19893
19894 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
19895
19896         * NEWS: Mention 2011-02-08 change to stdlib.
19897
19898 2011-02-17  Bruno Haible  <bruno@clisp.org>
19899
19900         getloadavg: Add comments about platforms.
19901         * m4/getloadavg.m4: Add comment.
19902         * lib/getloadavg.c: Likewise.
19903
19904 2011-02-17  Bruno Haible  <bruno@clisp.org>
19905
19906         getloadavg: Fix link error on Solaris 2.6.
19907         * modules/getloadavg (Link): New section.
19908         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
19909         linking test-getloadavg.
19910         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
19911         getloadavg.
19912
19913 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
19914
19915         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
19916         It was 'int', but this doesn't match the IRIX 6.5 manual.
19917         Suggested by Bruno Haible in
19918         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
19919
19920 2011-02-17  Bruno Haible  <bruno@clisp.org>
19921
19922         havelib: Fix comments.
19923         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
19924         change.
19925
19926 2011-02-17  Bruno Haible  <bruno@clisp.org>
19927
19928         havelib: Update config.rpath.
19929         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
19930
19931 2011-02-17  Bruno Haible  <bruno@clisp.org>
19932
19933         getloadavg test: Add some plausibility checks.
19934         * tests/test-getloadavg.c (check_avg): Print a warning when the value
19935         is improbable.
19936
19937 2011-02-16  Eric Blake  <eblake@redhat.com>
19938
19939         maintainer-makefile: make syntax-check a no-op from tarballs
19940         * top/maint.mk (no-vc-detected): New rule.
19941         (local-checks-available): Use it to avoid hanging if someone tries
19942         'make syntax-check' from a tarball.  Also append to any non-syntax
19943         checks already defined in cfg.mk.
19944
19945 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
19946
19947         longlong: tune, particularly for common case of c99
19948
19949         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
19950         or running anything if c99, or if unsigned long long int does not
19951         work.  In either case, we know the answer without further tests.
19952         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
19953         it at most once, and use its results for both long long int and
19954         unsigned long long int.  This is more likely to be efficient in
19955         the common case where the program wants to check for both long
19956         long int and unsigned long long int.
19957         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
19958         since the answer is already known.
19959
19960 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
19961
19962         getloadavg: set errno
19963         * lib/getloadavg.c: Set errno when returning -1.  If no other
19964         error number looks appropriate, set it to ENOSYS if the getloadavg
19965         looks like it can't possibly ever work, ENOTSUP otherwise.
19966         Suggested by Bruno Haible in
19967         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
19968
19969         getloadavg: trim unused parts and speed up 'configure'
19970         * NEWS: Document this.
19971         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
19972         always compiled if getloadavg is absent.
19973         Move test code to ...
19974         * tests/test-getloadavg.c: New file, containing previous
19975         contents of test from lib/getloadavg.c.  It also contains
19976         suggestions by Bruno Haible in
19977         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
19978         * modules/getloadavg-tests: New file.
19979         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
19980         Do tests in the same order as they're needed for getloadavg.c.
19981         Omit setgid-related tests that generate symbols KMEM_GROUP,
19982         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
19983         Do only the tests that are needed to see whether the system has
19984         getloadavg, moving the other tests into ...
19985         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
19986         NLIST_NAME_UNION; nobody should be using it.  Do not define
19987         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
19988         relevant, as the user of this module shouldn't care how getloadavg
19989         is implemented.
19990
19991         getloadavg: omit unused var
19992         * lib/getloadavg.c (getloadavg): Omit unused local variable.
19993
19994 2011-02-15  Jim Meyering  <meyering@redhat.com>
19995
19996         doc: update users.txt
19997         * users.txt: Update iwhd's URL.
19998
19999 2011-02-13  Bruno Haible  <bruno@clisp.org>
20000
20001         Consistent macro naming for macros that use GCC __attribute__.
20002         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
20003         _ATTRIBUTE_NONNULL_.
20004         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
20005         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
20006         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
20007         ATTRIBUTE_DEPRECATED.
20008         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
20009         ATTRIBUTE_NORETURN.
20010         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
20011         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
20012         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
20013         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
20014         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
20015         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
20016         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
20017         ATTRIBUTE_SENTINEL.
20018         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
20019         ATTRIBUTE_RETURN_CHECK.
20020         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
20021         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
20022         ATTRIBUTE_NORETURN.
20023         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
20024         Reported by Paul Eggert.
20025
20026 2011-02-13  Bruno Haible  <bruno@clisp.org>
20027
20028         Don't interfere with a program's definition of __attribute__.
20029         * lib/argp.h (__attribute__): Remove definition.
20030         (_GL_ATTRIBUTE_FORMAT): New macro.
20031         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
20032         * lib/argp-fmtstream.h (__attribute__): Remove definition.
20033         (_GL_ATTRIBUTE_FORMAT): New macro.
20034         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
20035         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
20036         GCC 3 or newer.
20037         * lib/error.h (__attribute__): Remove definition.
20038         (_GL_ATTRIBUTE_FORMAT): New macro.
20039         (error, error_at_line): Use it.
20040         * lib/hash.h (__attribute__): Remove definition.
20041         (ATTRIBUTE_WUR): Update definition. Define always.
20042         * lib/openat.h (__attribute__): Remove definition.
20043         (ATTRIBUTE_NORETURN): Update definition. Define always.
20044         * lib/sigpipe-die.h (__attribute__): Remove definition.
20045         (ATTRIBUTE_NORETURN): Update definition. Define always.
20046         * lib/vasnprintf.h (__attribute__): Remove definition.
20047         (_GL_ATTRIBUTE_FORMAT): New macro.
20048         (asnprintf, vasnprintf): Use it.
20049         * lib/xalloc.h (__attribute__): Remove definition.
20050         (ATTRIBUTE_NORETURN): Update definition. Define always.
20051         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
20052         * lib/xmemdup0.h (__attribute__): Remove definition.
20053         (ATTRIBUTE_NORETURN): Update definition. Define always.
20054         * lib/xprintf.h (__attribute__): Remove definition.
20055         (_GL_ATTRIBUTE_FORMAT): New macro.
20056         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
20057         * lib/xstrtol.h (__attribute__): Remove definition.
20058         (ATTRIBUTE_NORETURN): Update definition. Define always.
20059         * lib/xvasprintf.h (__attribute__): Remove definition.
20060         (_GL_ATTRIBUTE_FORMAT): New macro.
20061         (xasprintf, xvasprintf): Use it.
20062         * tests/test-argmatch.c (__attribute__): Remove definition.
20063         (ATTRIBUTE_NORETURN): Update definition. Define always.
20064         * tests/test-exclude.c (__attribute__): Remove definition.
20065         (ATTRIBUTE_NORETURN): Update definition. Define always.
20066         Reported by Paul Eggert.
20067
20068 2011-02-13  Bruno Haible  <bruno@clisp.org>
20069
20070         mbrtowc: Add more tests for native Windows platforms.
20071         * tests/test-mbrtowc-w32-1.sh: New file.
20072         * tests/test-mbrtowc-w32-2.sh: New file.
20073         * tests/test-mbrtowc-w32-3.sh: New file.
20074         * tests/test-mbrtowc-w32-4.sh: New file.
20075         * tests/test-mbrtowc-w32-5.sh: New file.
20076         * tests/test-mbrtowc-w32.c: New file.
20077         * modules/mbrtowc-tests (Files): Add them.
20078         (Makefile.am): Arrange to run these tests.
20079         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
20080         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
20081
20082 2011-02-13  Bruno Haible  <bruno@clisp.org>
20083
20084         mbrtowc: Work around native Windows bug.
20085         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
20086         guess when no suitable locale for testing was found.
20087         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
20088
20089 2011-02-13  Bruno Haible  <bruno@clisp.org>
20090
20091         mbsinit: Work around mingw bug.
20092         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
20093         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
20094         Windows.
20095         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
20096
20097 2011-02-13  Bruno Haible  <bruno@clisp.org>
20098
20099         mbsinit: Don't crash for a NULL argument.
20100         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
20101         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
20102
20103 2011-02-13  Bruno Haible  <bruno@clisp.org>
20104
20105         Don't interfere with a program's definition of __attribute__.
20106         * lib/stdio.in.h (__attribute__): Remove definition.
20107         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
20108         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
20109         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
20110         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
20111         * lib/string.in.h (__attribute__): Remove definition.
20112         Reported by Paul Eggert.
20113
20114 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
20115
20116         stdlib: don't get in the way of non-GCC __attribute__
20117         See thread starting at
20118         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
20119         Revert previous stdlib change, installing the following instead:
20120         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
20121         to get in the way of a non-GCC compiler that supports __attribute__.
20122         (_GL_ATTRIBUTE_RETURN): New macro.
20123         (_Exit): Use it instead of __attribute__.
20124
20125 2011-02-12  Bruno Haible  <bruno@clisp.org>
20126
20127         quotearg test: Avoid test failure on mingw.
20128         * tests/test-quotearg.sh: Convert the locale identifier from native
20129         Windows syntax to Unix syntax.
20130
20131 2011-02-12  Bruno Haible  <bruno@clisp.org>
20132
20133         setlocale: Prefer gnulib's override over libintl's override.
20134         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
20135         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
20136         GNULIB_defined_setlocale is set.
20137
20138 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
20139
20140         stdlib: support non-GCC __attribute__
20141
20142         Fix a serious and tricky problem encountered when attempting to
20143         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
20144         5.5, but it crashed due to memory corruption on Solaris 10 with
20145         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
20146         bits that are otherwise zero.  This tagging is optional inside
20147         Emacs but is preferred and is used when __attribute__ ((__aligned
20148         (8))) works, as it does with both recent-enough GCC and with Sun C
20149         5.11.  However, Sun C 5.11 is not GCC and does not #define
20150         __GNUC__ and __GNUC_MINOR__.
20151
20152         When I added the getloadavg module to Emacs, it brought in
20153         stdlib.in.h, which contained this fragment:
20154
20155            #ifndef __attribute__
20156            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
20157            #  define __attribute__(Spec)   /* empty */
20158            # endif
20159            #endif
20160
20161         When files that include <stdlib.h> were compiled with Sun C 5.11,
20162         the above code disabled __attribute__ ((__aligned (8))), which
20163         caused variables to not be properly aligned, which eventually led
20164         to the pointer corruption mentioned above.  (This was a bit hard
20165         to diagnose, unfortunately.)
20166
20167         Several "#define __attribute__(X) /* empty */" code snippets need
20168         to be eradicated from Gnulib to work with non-GCC compilers that
20169         support __attribute__.  The Autoconf way to do this is to test for
20170         each kind of attribute that we want support for, and selectively
20171         enable that in source code.
20172
20173         Fix this problem just for stdlib.h, by adding a test for the
20174         __noreturn__ attribute, and change stdlib.in.h to use that test
20175         when needed.  This technique can be easily generalized to the
20176         other *.in.h files and attributes, and a similar technique can be
20177         used for *.h and *.c files.  This patch is enough to solve the
20178         problem for Emacs + getloadavg, and I thought I'd publish it for
20179         feedback before undertaking further, similar fixes in other
20180         modules.
20181
20182         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
20183         because it's not needed for stdlib.h.  It merely substitutes the
20184         value directly into stdlib.h.  We may well need to #define it, or
20185         similar symbols, for other modules, but it's nice to also have an
20186         option to not #define it for applications like Emacs that do not
20187         need it.
20188
20189         * lib/stdlib.in.h (__attribute__): Do not #define.
20190         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
20191         be defined only if the _Exit module is also used.
20192         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
20193         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
20194         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
20195         platforms.
20196         * modules/_Exit (Files): Add m4/attribute.m4.
20197         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
20198         * m4/attribute.m4: New file.
20199
20200 2011-02-12  Bruno Haible  <bruno@clisp.org>
20201
20202         wcsrtombs: Work around bug on native Windows.
20203         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
20204         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
20205         instead of len.
20206         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
20207
20208 2011-02-12  Bruno Haible  <bruno@clisp.org>
20209
20210         mbsrtowcs: Work around bug on native Windows.
20211         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
20212         against mingw bug.
20213         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
20214
20215 2011-02-12  Bruno Haible  <bruno@clisp.org>
20216
20217         Avoid setlocale bugs in tests.
20218         * modules/btowc (Dependencies): Add setlocale.
20219         * modules/c-strcase (Dependencies): Likewise.
20220         * modules/mbmemcasecmp (Dependencies): Likewise.
20221         * modules/mbmemcasecoll (Dependencies): Likewise.
20222         * modules/mbrtowc (Dependencies): Likewise.
20223         * modules/mbscasecmp (Dependencies): Likewise.
20224         * modules/mbscasestr (Dependencies): Likewise.
20225         * modules/mbschr (Dependencies): Likewise.
20226         * modules/mbscspn (Dependencies): Likewise.
20227         * modules/mbsinit (Dependencies): Likewise.
20228         * modules/mbsncasecmp (Dependencies): Likewise.
20229         * modules/mbsnrtowcs (Dependencies): Likewise.
20230         * modules/mbspbrk (Dependencies): Likewise.
20231         * modules/mbspcasecmp (Dependencies): Likewise.
20232         * modules/mbsrchr (Dependencies): Likewise.
20233         * modules/mbsrtowcs (Dependencies): Likewise.
20234         * modules/mbsspn (Dependencies): Likewise.
20235         * modules/mbsstr (Dependencies): Likewise.
20236         * modules/nl_langinfo (Dependencies): Likewise.
20237         * modules/quotearg (Dependencies): Likewise.
20238         * modules/unicase/locale-language (Dependencies): Likewise.
20239         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
20240         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
20241         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
20242         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
20243         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
20244         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
20245         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
20246         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
20247         * modules/vasnprintf-posix (Dependencies): Likewise.
20248         * modules/wcrtomb (Dependencies): Likewise.
20249         * modules/wcsnrtombs (Dependencies): Likewise.
20250         * modules/wcsrtombs (Dependencies): Likewise.
20251
20252 2011-02-12  Bruno Haible  <bruno@clisp.org>
20253
20254         setlocale: Workaround native Windows bug.
20255         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
20256         succeeds but sets LC_CTYPE to "C", report a failure.
20257         * tests/test-setlocale2.sh: New file.
20258         * tests/test-setlocale2.c: New file.
20259         * modules/setlocale-tests (Files): Add the new files.
20260         (Makefile.am): Enable test-setlocale2.sh test.
20261         * doc/posix-functions/setlocale.texi: Mention workaround.
20262
20263 2011-02-11  Bruno Haible  <bruno@clisp.org>
20264
20265         Tests for module 'setlocale'.
20266         * modules/setlocale-tests: New file.
20267         * tests/test-setlocale1.sh: New file.
20268         * tests/test-setlocale1.c: New file.
20269
20270         New module 'setlocale'.
20271         * lib/locale.in.h (setlocale): New declaration.
20272         * lib/setlocale.c: New file, based on
20273         gettext/gettext-runtime/intl/setlocale.c.
20274         * m4/setlocale.m4: New file.
20275         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
20276         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
20277         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
20278         REPLACE_SETLOCALE.
20279         * modules/setlocale: New file.
20280         * tests/test-locale-c++.cc: Test the declaration of setlocale.
20281         * doc/posix-functions/setlocale.texi: Mention the new module.
20282
20283 2011-02-11  Bruno Haible  <bruno@clisp.org>
20284
20285         Prepare for locale dependent tests on mingw.
20286         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
20287         because it has the wrong locale encoding.
20288         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
20289         French_France.1252 instead of "fr".
20290         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
20291         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
20292         because it has the wrong locale encoding.
20293         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
20294         native Windows, try Turkish_Turkey.65001.
20295         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
20296         Chinese_China.54936.
20297
20298         Prepare for locale dependent tests on mingw.
20299         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
20300         differently.
20301         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
20302         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
20303         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
20304         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
20305
20306 2011-02-11  Eric Blake  <eblake@redhat.com>
20307
20308         strptime: avoid compiler warnings
20309         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
20310         compiler warnings about dead code.
20311         Reported by Daniel P. Berrange.
20312
20313 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
20314
20315         doc: update users.txt
20316         * users.txt: Add rcs.
20317
20318 2011-02-10  John W. Eaton  <jwe@gnu.org>
20319
20320         doc: update users.txt
20321         * users.txt: Add octave.
20322
20323 2011-02-10  Jim Meyering  <meyering@redhat.com>
20324
20325         doc: update users.txt
20326         * users.txt: Add iwhd.
20327
20328 2011-02-09  Bruno Haible  <bruno@clisp.org>
20329
20330         gnulib-tool: Make copyright notice adjustment more robust.
20331         * gnulib-tool (func_import): In sed_transform_main_lib_file,
20332         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
20333         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
20334         License".
20335         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
20336
20337 2011-02-06  Bruno Haible  <bruno@clisp.org>
20338
20339         New module 'towctrans'.
20340         * modules/towctrans: New file.
20341         * lib/wctype.in.h (towctrans): New declaration.
20342         * lib/towctrans.c: New file.
20343         * lib/towctrans-impl.h: New file.
20344         * m4/towctrans.m4: New file.
20345         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
20346         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
20347         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
20348         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
20349         * doc/posix-functions/towctrans.texi: Mention the new module.
20350
20351 2011-02-06  Bruno Haible  <bruno@clisp.org>
20352
20353         New module 'wctrans'.
20354         * modules/wctrans: New file.
20355         * lib/wctype.in.h (wctrans): New declaration.
20356         * lib/wctrans.c: New file.
20357         * lib/wctrans-impl.h: New file.
20358         * m4/wctrans.m4: New file.
20359         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
20360         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
20361         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
20362         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
20363         * doc/posix-functions/wctrans.texi: Mention the new module.
20364
20365 2011-02-06  Bruno Haible  <bruno@clisp.org>
20366
20367         New module 'iswctype'.
20368         * modules/iswctype: New file.
20369         * lib/wctype.in.h (iswctype): New declaration.
20370         * lib/iswctype.c: New file.
20371         * lib/iswctype-impl.h: New file.
20372         * m4/iswctype.m4: New file.
20373         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
20374         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
20375         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
20376         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
20377         * doc/posix-functions/iswctype.texi: Mention the new module and the
20378         HP-UX 11.00 problem.
20379
20380 2011-02-06  Bruno Haible  <bruno@clisp.org>
20381
20382         New module 'wctype'.
20383         * modules/wctype: Change to represent the wctype() substitute.
20384         * lib/wctype.in.h (wctype): New declaration.
20385         * lib/wctype.c: New file.
20386         * lib/wctype-impl.h: New file.
20387         * m4/wctype.m4: New file.
20388         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
20389         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
20390         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
20391         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
20392         * doc/posix-functions/wctype.texi: Mention the new module and the
20393         HP-UX 11.00 problem.
20394
20395 2011-02-06  Bruno Haible  <bruno@clisp.org>
20396
20397         wctype-h: Ensure wctype_t and wctrans_t are defined.
20398         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
20399         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
20400         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
20401         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
20402         HAVE_WCTRANS_T.
20403         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
20404
20405 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
20406
20407         flock: fix license typo
20408
20409         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
20410         omitted.
20411
20412 2011-02-08  Bruno Haible  <bruno@clisp.org>
20413
20414         Split large sed scripts, for HP-UX sed.
20415         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
20416         to avoid HP-UX limit of 99 commands, in the near future.
20417         * modules/stdlib (Makefile.am): Likewise.
20418         * modules/unistd (Makefile.am): Likewise.
20419         * modules/wchar (Makefile.am): Likewise.
20420         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
20421         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
20422         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
20423
20424 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
20425             Bruno Haible  <bruno@clisp.org>
20426
20427         stdlib: improve random_r modularization
20428         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
20429         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
20430         you also need the random_r module to get this material right.
20431         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
20432         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
20433         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
20434
20435 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
20436
20437         stdlib: don't depend on stdint
20438         * lib/stdlib.in.h: Don't include <stdint.h> merely because
20439         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
20440         be independent of whether stdint.h is needed.
20441         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
20442         here, instead of ...
20443         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
20444         struct random_data should be using the random_r module, not just
20445         the stdlib module (which wouldn't make sense: what package needs
20446         just struct random_data without also needing random_r?).
20447         * modules/stdlib (Depends-on): Remove stdint.
20448
20449         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
20450         See the thread rooted at
20451         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
20452         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
20453         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
20454         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
20455         __VMS)); previously it was always included (via fcntl--.h).
20456         (getloadavg): Do not use c_strtod.  Instead, approximate it by
20457         hand; this is good enough for load averages.  Also, do not use
20458         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
20459         flags directly if available and don't bother otherwise.  (Packages
20460         that need the extra reliability should use the modules that define
20461         these flags on older platforms that lack them.)
20462         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
20463         fcntl-safer.
20464
20465 2011-02-08  Jim Meyering  <meyering@redhat.com>
20466
20467         di-set.h, ino-map.h: add multiple-inclusion guard
20468         Technically, the guard is required only for ino-map.h, due to its
20469         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
20470         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
20471         * lib/ino-map.h: Likewise.
20472
20473 2011-02-06  Bruno Haible  <bruno@clisp.org>
20474
20475         iswblank: Ensure declaration on glibc systems.
20476         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
20477         * modules/iswblank (Dependencies): Add 'extensions'.
20478         * doc/posix-functions/iswblank.texi: Document the glibc problem.
20479
20480 2011-02-06  Bruno Haible  <bruno@clisp.org>
20481
20482         New module 'iswblank'.
20483         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
20484         * modules/iswblank: New file.
20485         * modules/wctype-h (Files): Remove lib/iswblank.c.
20486         (Makefile.am): Substitute GNULIB_ISWBLANK.
20487         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
20488         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
20489         (gl_WCTYPE_H_DEFAULTS): New macro.
20490         (gl_WCTYPE_H): Require it. Remove iswblank related code.
20491         * modules/iswblank-tests: New file.
20492         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
20493         * tests/test-wctype-h.c (main): Remove iswblank tests.
20494         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
20495         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
20496         of 'wctype-h'.
20497         * NEWS: Mention the change.
20498         * modules/mbchar (Depends-on): Add iswblank.
20499
20500 2011-02-08  Bruno Haible  <bruno@clisp.org>
20501
20502         di-set tests: Refactor.
20503         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
20504         unnecessary includes.
20505         (ASSERT): Remove macro.
20506         (main): Make C90 compliant by avoiding variable declaration after
20507         statement.
20508         * modules/di-set-tests (Files): Add tests/macros.h.
20509
20510 2011-02-08  Bruno Haible  <bruno@clisp.org>
20511
20512         ino-map tests: Refactor.
20513         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
20514         unnecessary includes.
20515         (ASSERT): Remove macro.
20516         (main): Make C90 compliant by avoiding variable declaration after
20517         statement.
20518         * modules/ino-map-tests (Files): Add tests/macros.h.
20519
20520 2011-02-08  Jim Meyering  <meyering@redhat.com>
20521
20522         di-set: add "const" to a cast
20523         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
20524         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
20525
20526 2011-02-06  Bruno Haible  <bruno@clisp.org>
20527
20528         Rename module 'wctype' to 'wctype-h'.
20529         * modules/wctype-h: Renamed from modules/wctype.
20530         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
20531         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
20532         (Files, Depends-on, Makefile.am): Update.
20533         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
20534         (Files, Makefile.am): Update.
20535         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
20536         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
20537         * doc/posix-headers/wctype.texi: Update.
20538         * doc/posix-functions/iswalnum.texi: Update.
20539         * doc/posix-functions/iswalpha.texi: Update.
20540         * doc/posix-functions/iswblank.texi: Update.
20541         * doc/posix-functions/iswcntrl.texi: Update.
20542         * doc/posix-functions/iswdigit.texi: Update.
20543         * doc/posix-functions/iswgraph.texi: Update.
20544         * doc/posix-functions/iswlower.texi: Update.
20545         * doc/posix-functions/iswprint.texi: Update.
20546         * doc/posix-functions/iswpunct.texi: Update.
20547         * doc/posix-functions/iswspace.texi: Update.
20548         * doc/posix-functions/iswupper.texi: Update.
20549         * doc/posix-functions/iswxdigit.texi: Update.
20550         * doc/posix-functions/towlower.texi: Update.
20551         * doc/posix-functions/towupper.texi: Update.
20552         * NEWS: Mention the change.
20553         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
20554         * modules/mbchar (Dependencies): Likewise.
20555         * modules/mbswidth (Dependencies): Likewise.
20556         * modules/quotearg (Dependencies): Likewise.
20557         * modules/regex (Dependencies): Likewise.
20558         * modules/wcscasecmp (Dependencies): Likewise.
20559         * modules/wcsncasecmp (Dependencies): Likewise.
20560         * modules/wcwidth (Dependencies): Likewise.
20561
20562 2011-02-06  Bruno Haible  <bruno@clisp.org>
20563
20564         New module 'wcswidth'.
20565         * modules/wcswidth: New file.
20566         * lib/wchar.in.h (wcswidth): New declaration.
20567         * lib/wcswidth.c: New file.
20568         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
20569         * m4/wcswidth.m4: New file.
20570         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
20571         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
20572         REPLACE_WCSWIDTH.
20573         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
20574         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
20575         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
20576         * doc/posix-functions/wcswidth.texi: Mention the new module.
20577
20578 2011-02-06  Bruno Haible  <bruno@clisp.org>
20579
20580         New module 'wcstok'.
20581         * modules/wcstok: New file.
20582         * lib/wchar.in.h (wcstok): New declaration.
20583         * lib/wcstok.c: New file.
20584         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
20585         * m4/wcstok.m4: New file.
20586         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
20587         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
20588         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
20589         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
20590         * doc/posix-functions/wcstok.texi: Mention the new module.
20591
20592 2011-02-06  Bruno Haible  <bruno@clisp.org>
20593
20594         New module 'wcsstr'.
20595         * modules/wcsstr: New file.
20596         * lib/wchar.in.h (wcsstr): New declaration.
20597         * lib/wcsstr.c: New file.
20598         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
20599         * m4/wcsstr.m4: New file.
20600         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
20601         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
20602         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
20603         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
20604         * doc/posix-functions/wcsstr.texi: Mention the new module.
20605
20606 2011-02-06  Bruno Haible  <bruno@clisp.org>
20607
20608         New module 'wcspbrk'.
20609         * modules/wcspbrk: New file.
20610         * lib/wchar.in.h (wcspbrk): New declaration.
20611         * lib/wcspbrk.c: New file.
20612         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
20613         * m4/wcspbrk.m4: New file.
20614         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
20615         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
20616         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
20617         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
20618         * doc/posix-functions/wcspbrk.texi: Mention the new module.
20619
20620 2011-02-06  Bruno Haible  <bruno@clisp.org>
20621
20622         New module 'wcsspn'.
20623         * modules/wcsspn: New file.
20624         * lib/wchar.in.h (wcsspn): New declaration.
20625         * lib/wcsspn.c: New file.
20626         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
20627         * m4/wcsspn.m4: New file.
20628         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
20629         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
20630         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
20631         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
20632         * doc/posix-functions/wcsspn.texi: Mention the new module.
20633
20634 2011-02-06  Bruno Haible  <bruno@clisp.org>
20635
20636         New module 'wcscspn'.
20637         * modules/wcscspn: New file.
20638         * lib/wchar.in.h (wcscspn): New declaration.
20639         * lib/wcscspn.c: New file.
20640         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
20641         * m4/wcscspn.m4: New file.
20642         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
20643         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
20644         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
20645         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
20646         * doc/posix-functions/wcscspn.texi: Mention the new module.
20647
20648 2011-02-06  Bruno Haible  <bruno@clisp.org>
20649
20650         New module 'wcsrchr'.
20651         * modules/wcsrchr: New file.
20652         * lib/wchar.in.h (wcsrchr): New declaration.
20653         * lib/wcsrchr.c: New file.
20654         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
20655         * m4/wcsrchr.m4: New file.
20656         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
20657         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
20658         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
20659         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
20660         * doc/posix-functions/wcsrchr.texi: Mention the new module.
20661
20662 2011-02-06  Bruno Haible  <bruno@clisp.org>
20663
20664         New module 'wcschr'.
20665         * modules/wcschr: New file.
20666         * lib/wchar.in.h (wcschr): New declaration.
20667         * lib/wcschr.c: New file.
20668         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
20669         * m4/wcschr.m4: New file.
20670         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
20671         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
20672         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
20673         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
20674         * doc/posix-functions/wcschr.texi: Mention the new module.
20675
20676 2011-02-06  Bruno Haible  <bruno@clisp.org>
20677
20678         New module 'wcsdup'.
20679         * modules/wcsdup: New file.
20680         * lib/wchar.in.h (wcsdup): New declaration.
20681         * lib/wcsdup.c: New file.
20682         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
20683         * m4/wcsdup.m4: New file.
20684         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
20685         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
20686         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
20687         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
20688         * doc/posix-functions/wcsdup.texi: Mention the new module.
20689
20690 2011-02-06  Bruno Haible  <bruno@clisp.org>
20691
20692         New module 'wcsxfrm'.
20693         * modules/wcsxfrm: New file.
20694         * lib/wchar.in.h (wcsxfrm): New declaration.
20695         * lib/wcsxfrm.c: New file.
20696         * lib/wcsxfrm-impl.h: New file.
20697         * m4/wcsxfrm.m4: New file.
20698         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
20699         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
20700         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
20701         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
20702         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
20703
20704 2011-02-06  Bruno Haible  <bruno@clisp.org>
20705
20706         New module 'wcscoll'.
20707         * modules/wcscoll: New file.
20708         * lib/wchar.in.h (wcscoll): New declaration.
20709         * lib/wcscoll.c: New file.
20710         * lib/wcscoll-impl.h: New file.
20711         * m4/wcscoll.m4: New file.
20712         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
20713         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
20714         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
20715         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
20716         * doc/posix-functions/wcscoll.texi: Mention the new module.
20717
20718 2011-02-06  Bruno Haible  <bruno@clisp.org>
20719
20720         New module 'wcsncasecmp'.
20721         * modules/wcsncasecmp: New file.
20722         * lib/wchar.in.h (wcsncasecmp): New declaration.
20723         * lib/wcsncasecmp.c: New file.
20724         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
20725         * m4/wcsncasecmp.m4: New file.
20726         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
20727         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
20728         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
20729         HAVE_WCSNCASECMP.
20730         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
20731         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
20732
20733 2011-02-06  Bruno Haible  <bruno@clisp.org>
20734
20735         New module 'wcscasecmp'.
20736         * modules/wcscasecmp: New file.
20737         * lib/wchar.in.h (wcscasecmp): New declaration.
20738         * lib/wcscasecmp.c: New file.
20739         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
20740         * m4/wcscasecmp.m4: New file.
20741         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
20742         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
20743         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
20744         HAVE_WCSCASECMP.
20745         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
20746         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
20747
20748 2011-02-05  Bruno Haible  <bruno@clisp.org>
20749
20750         New module 'wcsncmp'.
20751         * modules/wcsncmp: New file.
20752         * lib/wchar.in.h (wcsncmp): New declaration.
20753         * lib/wcsncmp.c: New file.
20754         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
20755         * m4/wcsncmp.m4: New file.
20756         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
20757         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
20758         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
20759         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
20760         * doc/posix-functions/wcsncmp.texi: Mention the new module.
20761
20762 2011-02-05  Bruno Haible  <bruno@clisp.org>
20763
20764         New module 'wcscmp'.
20765         * modules/wcscmp: New file.
20766         * lib/wchar.in.h (wcscmp): New declaration.
20767         * lib/wcscmp.c: New file.
20768         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
20769         * m4/wcscmp.m4: New file.
20770         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
20771         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
20772         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
20773         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
20774         * doc/posix-functions/wcscmp.texi: Mention the new module.
20775
20776 2011-02-05  Bruno Haible  <bruno@clisp.org>
20777
20778         New module 'wcsncat'.
20779         * modules/wcsncat: New file.
20780         * lib/wchar.in.h (wcsncat): New declaration.
20781         * lib/wcsncat.c: New file.
20782         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
20783         * m4/wcsncat.m4: New file.
20784         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
20785         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
20786         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
20787         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
20788         * doc/posix-functions/wcsncat.texi: Mention the new module.
20789
20790 2011-02-05  Bruno Haible  <bruno@clisp.org>
20791
20792         New module 'wcscat'.
20793         * modules/wcscat: New file.
20794         * lib/wchar.in.h (wcscat): New declaration.
20795         * lib/wcscat.c: New file.
20796         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
20797         * m4/wcscat.m4: New file.
20798         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
20799         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
20800         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
20801         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
20802         * doc/posix-functions/wcscat.texi: Mention the new module.
20803
20804 2011-02-05  Bruno Haible  <bruno@clisp.org>
20805
20806         New module 'wcpncpy'.
20807         * modules/wcpncpy: New file.
20808         * lib/wchar.in.h (wcpncpy): New declaration.
20809         * lib/wcpncpy.c: New file.
20810         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
20811         * m4/wcpncpy.m4: New file.
20812         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
20813         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
20814         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
20815         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
20816         * doc/posix-functions/wcpncpy.texi: Mention the new module.
20817
20818 2011-02-05  Bruno Haible  <bruno@clisp.org>
20819
20820         New module 'wcsncpy'.
20821         * modules/wcsncpy: New file.
20822         * lib/wchar.in.h (wcsncpy): New declaration.
20823         * lib/wcsncpy.c: New file.
20824         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
20825         * m4/wcsncpy.m4: New file.
20826         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
20827         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
20828         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
20829         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
20830         * doc/posix-functions/wcsncpy.texi: Mention the new module.
20831
20832 2011-02-05  Bruno Haible  <bruno@clisp.org>
20833
20834         New module 'wcpcpy'.
20835         * modules/wcpcpy: New file.
20836         * lib/wchar.in.h (wcpcpy): New declaration.
20837         * lib/wcpcpy.c: New file.
20838         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
20839         * m4/wcpcpy.m4: New file.
20840         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
20841         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
20842         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
20843         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
20844         * doc/posix-functions/wcpcpy.texi: Mention the new module.
20845
20846 2011-02-05  Bruno Haible  <bruno@clisp.org>
20847
20848         New module 'wcscpy'.
20849         * modules/wcscpy: New file.
20850         * lib/wchar.in.h (wcscpy): New declaration.
20851         * lib/wcscpy.c: New file.
20852         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
20853         * m4/wcscpy.m4: New file.
20854         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
20855         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
20856         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
20857         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
20858         * doc/posix-functions/wcscpy.texi: Mention the new module.
20859
20860 2011-02-05  Bruno Haible  <bruno@clisp.org>
20861
20862         New module 'wcsnlen'.
20863         * modules/wcsnlen: New file.
20864         * lib/wchar.in.h (wcsnlen): New declaration.
20865         * lib/wcsnlen.c: New file.
20866         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
20867         * m4/wcsnlen.m4: New file.
20868         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
20869         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
20870         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
20871         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
20872         * doc/posix-functions/wcsnlen.texi: Mention the new module.
20873
20874 2011-02-05  Bruno Haible  <bruno@clisp.org>
20875
20876         New module 'wcslen'.
20877         * modules/wcslen: New file.
20878         * lib/wchar.in.h (wcslen): New declaration.
20879         * lib/wcslen.c: New file.
20880         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
20881         * m4/wcslen.m4: New file.
20882         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
20883         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
20884         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
20885         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
20886         * doc/posix-functions/wcslen.texi: Mention the new module.
20887
20888 2011-02-05  Bruno Haible  <bruno@clisp.org>
20889
20890         New module 'wmemset'.
20891         * modules/wmemset: New file.
20892         * lib/wchar.in.h (wmemset): New declaration.
20893         * lib/wmemset.c: New file.
20894         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
20895         * m4/wmemset.m4: New file.
20896         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
20897         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
20898         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
20899         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
20900         * doc/posix-functions/wmemset.texi: Mention the new module.
20901
20902 2011-02-05  Bruno Haible  <bruno@clisp.org>
20903
20904         New module 'wmemmove'.
20905         * modules/wmemmove: New file.
20906         * lib/wchar.in.h (wmemmove): New declaration.
20907         * lib/wmemmove.c: New file.
20908         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
20909         * m4/wmemmove.m4: New file.
20910         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
20911         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
20912         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
20913         HAVE_WMEMMOVE.
20914         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
20915         * doc/posix-functions/wmemmove.texi: Mention the new module.
20916
20917 2011-02-05  Bruno Haible  <bruno@clisp.org>
20918
20919         New module 'wmemcpy'.
20920         * modules/wmemcpy: New file.
20921         * lib/wchar.in.h (wmemcpy): New declaration.
20922         * lib/wmemcpy.c: New file.
20923         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
20924         * m4/wmemcpy.m4: New file.
20925         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
20926         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
20927         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
20928         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
20929         * doc/posix-functions/wmemcpy.texi: Mention the new module.
20930
20931 2011-02-05  Bruno Haible  <bruno@clisp.org>
20932
20933         New module 'wmemcmp'.
20934         * modules/wmemcmp: New file.
20935         * lib/wchar.in.h (wmemcmp): New declaration.
20936         * lib/wmemcmp.c: New file.
20937         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
20938         * m4/wmemcmp.m4: New file.
20939         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
20940         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
20941         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
20942         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
20943         * doc/posix-functions/wmemcmp.texi: Mention the new module.
20944
20945 2011-02-07  Jim Meyering  <meyering@redhat.com>
20946
20947         di-set, ino-map: new modules, from coreutils
20948         * lib/di-set.c: New file.
20949         * lib/di-set.h: Likewise.
20950         * lib/ino-map.c: Likewise.
20951         * lib/ino-map.h: Likewise.
20952         * modules/di-set: Likewise.
20953         * modules/di-set-tests: Likewise.
20954         * modules/ino-map: Likewise.
20955         * modules/ino-map-tests: Likewise.
20956         * tests/test-di-set.c: Likewise.
20957         * tests/test-ino-map.c: Likewise.
20958
20959 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
20960
20961         getloadavg: merge minor changes from Emacs
20962
20963         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
20964         (getloadavg): Use memset, not bzero.
20965
20966         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
20967         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
20968         clash (bug#86).
20969
20970 2010-11-14  Bruno Haible  <bruno@clisp.org>
20971
20972         Allow multiple gnulib generated replacements to coexist.
20973         * lib/getopt.in.h (struct option): Avoid identical redefinition.
20974         * lib/inttypes.in.h (imaxdiv_t): Likewise.
20975         * lib/langinfo.in.h (nl_item): Likewise.
20976         * lib/math.in.h (_NaN, NAN): Likewise.
20977         * lib/netdb.in.h (struct addrinfo): Likewise.
20978         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
20979         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
20980         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
20981         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
20982         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
20983         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
20984         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
20985         pthread_mutexattr_init, pthread_mutexattr_settype,
20986         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
20987         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
20988         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
20989         pthread_spin_trylock, pthread_spin_unlock): Likewise.
20990         * lib/sched.in.h (struct sched_param): Likewise.
20991         * lib/se-selinux.in.h (security_class_t, security_context_t,
20992         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
20993         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
20994         lsetfilecon, fsetfilecon, security_check_context,
20995         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
20996         Likewise.
20997         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
20998         Likewise.
20999         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
21000         _gl_function_taking_int_returning_void_t, union sigval,
21001         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
21002         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
21003         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
21004         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
21005         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
21006         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
21007         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
21008         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
21009         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
21010         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
21011         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
21012         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
21013         socklen_t, rpl_fd_isset): Likewise.
21014         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
21015         * lib/sys_time.in.h (struct timeval): Likewise.
21016         * lib/sys_times.in.h (struct tms): Likewise.
21017         * lib/sys_utsname.in.h (struct utsname):
21018         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
21019         * lib/unistd.in.h (getpagesize): Likewise.
21020         * lib/wchar.in.h (mbstate_t): Likewise.
21021         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
21022         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
21023         towlower, towupper): Likewise.
21024         Reported by Sam Steingold <sds@gnu.org>.
21025
21026 2011-02-05  Eric Blake  <eblake@redhat.com>
21027
21028         unsetenv: work around Haiku issues
21029         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
21030         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
21031
21032 2010-12-30  Bruce Korb  <bkorb@gnu.org>
21033
21034         libposix: avoid calling error() within libposix
21035         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
21036         is defined.
21037
21038 2011-02-05  Eric Blake  <eblake@redhat.com>
21039
21040         strerror_r-posix: port to cygwin
21041         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
21042         implementation.
21043         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
21044         * tests/test-strerror_r.c (main): Fix test.
21045         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
21046         issue.
21047
21048 2011-02-05  Bruno Haible  <bruno@clisp.org>
21049
21050         New module 'wmemchr'.
21051         * modules/wmemchr: New file.
21052         * lib/wchar.in.h (wmemchr): New declaration.
21053         * lib/wmemchr.c: New file.
21054         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
21055         * m4/wmemchr.m4: New file.
21056         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
21057         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
21058         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
21059         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
21060         * doc/posix-functions/wmemchr.texi: Mention the new module.
21061
21062 2011-02-04  Eric Blake  <eblake@redhat.com>
21063
21064         fdopendir: detect FreeBSD bug
21065         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
21066         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
21067
21068 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
21069
21070         stdbool: do not define HAVE_STDBOOL_H
21071         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
21072         AC_HEADER_STDBOOL.  All uses changed.  Do not define
21073         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
21074         imported from the latest Autoconf git.  It was motivated by Emacs,
21075         which uses gnulib but does not need HAVE_STDBOOL_H.
21076
21077 2011-02-04  Bruno Haible  <bruno@clisp.org>
21078
21079         wcsnrtombs: Prepare for new module wwcsnrtombs.
21080         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
21081         * lib/wcsnrtombs.c: Include it.
21082         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
21083
21084         wcsrtombs: Prepare for new module wwcsrtombs.
21085         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
21086         * lib/wcsrtombs.c: Include it.
21087         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
21088
21089         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
21090         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
21091         * lib/mbsnrtowcs.c: Include it.
21092         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
21093
21094         mbsrtowcs: Prepare for new module mbsrtowwcs.
21095         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
21096         * lib/mbsrtowcs.c: Include it.
21097         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
21098
21099 2011-02-04  Bruno Haible  <bruno@clisp.org>
21100
21101         vasnprintf: Reduce use of malloc for small format strings.
21102         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
21103         (arguments): Add room for the first 7 arguments.
21104         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
21105         (char_directives, u8_directives, u16_directives, u32_directives): Add
21106         room for the first 7 directives.
21107         * lib/printf-parse.c: Include <string.h>.
21108         (PRINTF_PARSE): Change memory handling code so that it uses the first
21109         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
21110         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
21111         Reported by Pádraig Brady <P@draigbrady.com>.
21112
21113 2011-01-31  Eric Blake  <eblake@redhat.com>
21114
21115         dup2: work around Haiku bug
21116         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
21117         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
21118         * doc/posix-functions/dup2.texi (dup2): Document the bug.
21119         * tests/test-dup2.c (main): Enhance test.
21120
21121 2011-01-31  Simon Josefsson  <simon@josefsson.org>
21122
21123         doc: off_t is not available in eglibc 2.11.2 stdio.h.
21124         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
21125         declared by eglibc 2.11.2.
21126         * lib/stdio.in.h: Likewise.
21127
21128 2011-01-31  Eric Blake  <eblake@redhat.com>
21129
21130         ignore-value: add missing test dependency
21131         * tests/test-ignore-value.c: Revert previous change; stdio.h
21132         provides off_t.
21133         * modules/ignore-value-tests (Depends-on): Add missing dependency.
21134
21135 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
21136
21137         mktime: clarify long_int width checking
21138         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
21139         the top level, to make it clearer that the assumption about
21140         long_int width is being checked.  See
21141         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
21142
21143 2011-01-30  Simon Josefsson  <simon@josefsson.org>
21144
21145         ignore-value: Fix self-test.
21146         * tests/test-ignore-value.c: Include sys/types.h for off_t.
21147
21148 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
21149
21150         TYPE_MAXIMUM: avoid theoretically undefined behavior
21151         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
21152         negative number, which the C Standard says has undefined behavior.
21153         In practice this is not a problem, but might as well do it by the book.
21154         Reported by Rich Felker and Eric Blake; see
21155         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
21156         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
21157         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
21158         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
21159         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
21160         * m4/stdint.m4 (gl_STDINT_H): Likewise.
21161         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
21162
21163         mktime: #undef mktime before #defining it
21164         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
21165
21166         mktime: systematically normalize tm_isdst comparisons
21167         * lib/mktime.c (isdst_differ): New function.
21168         (__mktime_internal): Use it systematically for all isdst comparisons.
21169         This completes the fix for libc BZ #6723, and removes the need for
21170         normalizing tm_isdst.  See
21171         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
21172         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
21173
21174         mktime: fix some integer overflow issues and sidestep the rest
21175
21176         This was prompted by a bug report by Benjamin Lindner for MinGW
21177         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
21178         His bug is due to signed integer overflow (0 - INT_MIN), and I
21179         I scanned through mktime.c looking for other integer overflow
21180         problems, fixing all the bugs I found.
21181
21182         Although the C Standard says the resulting code is still not safe
21183         in the presence of integer overflow, in practice it should be good
21184         enough for all real-world two's-complement implementations, except
21185         for debugging environments that deliberately trap on integer
21186         overflow (e.g., gcc -ftrapv).
21187
21188         * lib/mktime.c (WRAPV): New macro.
21189         (SHR): Also check that long_int and time_t shift right in the
21190         usual way, before using the fast-but-unportable method.
21191         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
21192         used.  The code already assumed two's complement, so there's
21193         no need to test for alternatives.  All uses removed.
21194         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
21195         the C standard.  Problem reported by Rich Felker in
21196         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
21197         (twos_complement_arithmetic): Also check long_int and time_t.
21198         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
21199         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
21200         (__mktime_internal): Avoid integer overflow with unary subtraction
21201         in two instances where -1 - X is an adequate replacement for -X,
21202         since the calculations are approximate.
21203
21204 2011-01-29  Eric Blake  <eblake@redhat.com>
21205
21206         mktime: avoid infinite loop
21207         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
21208         type; behavior is still undefined but portable to all known targets.
21209         Reported by Rich Felker.
21210
21211 2011-01-29  Simon Josefsson  <simon@josefsson.org>
21212
21213         rename, unlink, same-inode: Relicense.
21214         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
21215         * modules/unlink (License): Likewise.
21216         * modules/same-inode (License): Likewise.
21217
21218 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
21219
21220         mktime: avoid problems on NetBSD 5 / i386
21221         * lib/mktime.c (long_int): New type.  This works around a problem
21222         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
21223         but time_t is 64 bits, and where I expect the existing code is
21224         wrong in some cases.
21225         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
21226         (ydhms_diff): Bring back the compile-time check for wide-enough
21227         year and yday.
21228
21229         mktime: fix misspelling in comment
21230         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
21231         This merges all recent glibc changes of importance.
21232
21233 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21234
21235         move-if-change: cope with concurrent mv of identical file.
21236         * build-aux/move-if-change (CMPPROG): Accept environment
21237         variable as an override for `cmp'.
21238         (usage): Document CMPPROG.
21239         Adjust comparison to drop stdout.  Cope with failure of mv if
21240         the target file exists and is identical to the source, for
21241         parallel builds.
21242         Report from H.J. Lu against binutils in PR binutils/12283.
21243
21244 2011-01-28  Bruce Korb  <bkorb@gnu.org>
21245
21246         * users.txt: Mention sharutils.
21247
21248 2011-01-28  Simon Josefsson  <simon@josefsson.org>
21249
21250         * users.txt: Mention OATH Toolkit.
21251
21252 2011-01-27  Bruno Haible  <bruno@clisp.org>
21253
21254         Prepare for supporting FreeBSD 10.
21255         * build-aux/config.libpath: Remove handling of freebsd1*.
21256
21257 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
21258
21259         Prepare for supporting FreeBSD 10.
21260         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
21261         match FreeBSD 10.0.
21262
21263 2011-01-27  Bruno Haible  <bruno@clisp.org>
21264
21265         vma-iter, get-rusage-as: Add OpenBSD support.
21266         * modules/vma-iter (configure.ac): Test for mquery.
21267         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
21268         * lib/vma-iter.c: Include <sys/mman.h>.
21269         (vma_iterate): Add an implementation based on mquery().
21270         * lib/resource-ext.h (get_rusage_as): Update comments.
21271         * lib/get-rusage-as.c: Likewise.
21272         * lib/get-rusage-data.c: Likewise.
21273
21274 2011-01-26  Karl Berry  <karl@gnu.org>
21275
21276         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
21277         variables to make it easier to override the makeinfo program used.
21278
21279 2011-01-26  Eric Blake  <eblake@redhat.com>
21280
21281         fcntl: work around Haiku F_DUPFD bugs
21282         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
21283         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
21284         cloexec bit on duplication.
21285         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
21286
21287 2011-01-26  Bruno Haible  <bruno@clisp.org>
21288
21289         Enable memory leak tests on AIX.
21290         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
21291         * tests/test-fprintf-posix3.c (main): Likewise.
21292
21293 2011-01-26  Bruno Haible  <bruno@clisp.org>
21294
21295         Tests for module 'get-rusage-data'.
21296         * modules/get-rusage-data-tests: New file.
21297         * tests/test-get-rusage-data.c: New file.
21298
21299         New module 'get-rusage-data'.
21300         * lib/resource-ext.h (get_rusage_data): New declaration.
21301         * lib/get-rusage-data.c: New file.
21302         * modules/get-rusage-data: New file.
21303
21304 2011-01-25  Bruno Haible  <bruno@clisp.org>
21305
21306         get-rusage-as: Allow for easier testing.
21307         * lib/resource-ext.h (get_rusage_as): Add comment.
21308         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
21309         (main): New function for interactive testing.
21310
21311 2011-01-25  Bruno Haible  <bruno@clisp.org>
21312
21313         vma-iter: Treat Haiku like BeOS.
21314         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
21315         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
21316
21317 2011-01-25  Eric Blake  <eblake@redhat.com>
21318
21319         c-stack: fix regression on cygwin when libsigsegv is present
21320         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
21321
21322 2011-01-24  Bruno Haible  <bruno@clisp.org>
21323
21324         vma-iter: Avoid empty intervals.
21325         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
21326         on an empty interval.
21327
21328 2011-01-24  Jim Meyering  <meyering@redhat.com>
21329
21330         u64: remove unnecessary #include
21331         * lib/u64.h: Don't include <stddef.h>.  It was not used.
21332
21333 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
21334
21335         Allow the user to avoid the HAVE_RAW_DECL_* macros.
21336         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
21337
21338 2011-01-23  Bruno Haible  <bruno@clisp.org>
21339
21340         New module 'vma-iter'.
21341         * lib/vma-iter.h: New file.
21342         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
21343         * modules/vma-iter: New file.
21344         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
21345         for get_rusage_as_via_iterator.
21346         (vma_iterate_callback): New function.
21347         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
21348         * modules/get-rusage-as (Depends-on): Add vma-iter.
21349
21350 2011-01-23  Bruno Haible  <bruno@clisp.org>
21351
21352         uninorm: Tweak includes.
21353         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
21354         Reported by Jim Meyering.
21355
21356 2011-01-23  Bruno Haible  <bruno@clisp.org>
21357
21358         get-rusage-as: Improve on NetBSD.
21359         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
21360         /proc, like on FreeBSD.
21361
21362 2011-01-23  Jim Meyering  <meyering@redhat.com>
21363
21364         xreadlink.h: remove unnecessary #include
21365         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
21366
21367         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
21368         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
21369
21370 2011-01-23  Bruno Haible  <bruno@clisp.org>
21371
21372         get-rusage-as: Fix bug.
21373         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
21374         original limit when aborting the first loop.
21375
21376 2011-01-23  Bruno Haible  <bruno@clisp.org>
21377
21378         wctype: Ensure valid C syntax.
21379         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
21380         unconditionally, instead of gl_NEXT_HEADERS conditionally.
21381
21382 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
21383
21384         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
21385         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
21386         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
21387         as they are needed only for configure's test case.
21388         This removes two unnecessary symbols from config.h.
21389
21390         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
21391         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
21392         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
21393         AC_CHECK_HEADERS_ONCE on a header that we also invoke
21394         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
21395         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
21396         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
21397         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
21398         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
21399         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
21400         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
21401         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
21402         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
21403         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
21404         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
21405         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
21406         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
21407         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
21408
21409 2011-01-21  Eric Blake  <eblake@redhat.com>
21410
21411         maintainer-makefile: work with older git for submodule check
21412         * top/maint.mk (public-submodule-commit): Rewrite to avoid
21413         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
21414         Reported by Matthias Bolte.
21415
21416         bootstrap: minor portability fixes
21417         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
21418         (usage): Omit leading capital and trailing . on help phrases, per
21419         GNU Coding Standards.
21420         (check_versions, top level): Prefix messages with script name.
21421
21422 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
21423
21424         bootstrap: support --no-git option
21425         * build-aux/bootstrap: Add --no-git option, to be used when
21426         --gnulib-srcdir points to the exact desired checkout.
21427
21428 2011-01-21  Eric Blake  <eblake@redhat.com>
21429
21430         strerror_r-posix: work with glibc 2.13
21431         * lib/strerror_r.c (strerror_r): Fix return type.
21432
21433 2011-01-21  Pádraig Brady  <P@draigBrady.com>
21434             Bruno Haible  <bruno@clisp.org>
21435
21436         uN_strstr: New unit tests.
21437         * modules/unistr/u8-strstr-tests: New file.
21438         * modules/unistr/u16-strstr-tests: New file.
21439         * modules/unistr/u32-strstr-tests: New file.
21440         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
21441         * tests/unistr/test-u8-strstr.c: New file.
21442         * tests/unistr/test-u16-strstr.c: New file.
21443         * tests/unistr/test-u32-strstr.c: New file.
21444
21445 2011-01-21  Pádraig Brady  <P@draigBrady.com>
21446             Bruno Haible  <bruno@clisp.org>
21447
21448         Make uN_strstr functions O(n) worst-case.
21449         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
21450         16-bit and 32-bit unit cases, use the unibyte algorithm from
21451         lib/mbsstr.c.
21452         * lib/unistr/u8-strstr.c: Include <string.h>.
21453         (UNIT_IS_UINT8_T): New macro.
21454         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
21455         (U_STRLEN, U_STRNLEN): New macros.
21456         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
21457         (U_STRLEN, U_STRNLEN): New macros.
21458         * modules/unistr/u8-strstr (Depends-on): Add strstr.
21459         (configure.ac): Update required libunistring version.
21460         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
21461         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
21462         malloca.
21463         (configure.ac): Update required libunistring version.
21464         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
21465         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
21466         malloca.
21467         (configure.ac): Update required libunistring version.
21468
21469 2011-01-21  Pádraig Brady  <P@draigBrady.com>
21470             Bruno Haible  <bruno@clisp.org>
21471
21472         Prepare for faster uN_strstr functions.
21473         * lib/str-kmp.h: Support definable UNITs.
21474         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
21475         needle_len argument.
21476         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
21477         * lib/mbscasestr.c (mbscasestr): Likewise.
21478
21479 2011-01-21  Pádraig Brady <P@draigBrady.com>
21480
21481         malloca-tests: make faster by unsetting MALLOC_PERTURB_
21482         * tests/test-malloca.c (main): Unset the environment variable
21483         to greatly speed up the test.
21484         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
21485         * modules/malloca-tests: Depend on unsetenv.
21486
21487 2011-01-21  Pádraig Brady <P@draigBrady.com>
21488
21489         ignore-value: remove stdint dependency
21490         * lib/ignore-value.h: Remove <stdint.h>
21491         * modules/ignore-value: Remove stdint dependency.
21492
21493 2011-01-21  Jim Meyering  <meyering@redhat.com>
21494
21495         maint.mk: adjust variable name to be consistent with other gl_ vars
21496         * top/maint.mk (gl_public_submodule_commit): Rename the variable
21497         to be lower case.
21498
21499 2011-01-20  Jim Meyering  <meyering@redhat.com>
21500
21501         maint.mk: make "check" depend on public-submodule-commit by default
21502         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
21503
21504 2011-01-20  Bruno Haible  <bruno@clisp.org>
21505
21506         mbfile, mbiter: Complete change from 2008-12-21.
21507         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
21508         * m4/mbiter.m4 (gl_MBITER): Likewise.
21509
21510 2011-01-20  Jim Meyering  <meyering@redhat.com>
21511
21512         init.sh: insert space between each function name and "()"
21513         * tests/init.sh: Make it a little easier to see that a function's
21514         name is "warn_", and not "warn" when looking at the first part of
21515         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
21516
21517 2011-01-20  Jim Meyering  <meyering@redhat.com>
21518
21519         mountlist: clean up code formatting
21520         * lib/mountlist.c (read_file_system_list): Split a long line,
21521         correct bracing style, use NULL in place of "(struct statfs *)0",
21522         don't parenthesize return value, add spaces around "=" and after
21523         ";-in-for-stmt".
21524
21525 2011-01-14  Markus Duft <mduft@gentoo.org>
21526
21527         mountlist: add support for Interix
21528         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
21529         Apply statvfs to all entries of /dev/fs.
21530         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
21531         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
21532
21533 2011-01-20  Jim Meyering  <meyering@redhat.com>
21534
21535         maint.mk: improve the public-submodule-commit rule
21536         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
21537         to suppress printing of its commands... unless V=1.
21538         Add git submodule's --quiet option to suppress printing of e.g.,
21539         "Entering gnulib" output.
21540         "cd" into $(srcdir) before running git submodule.
21541
21542 2011-01-20  Bruno Haible  <bruno@clisp.org>
21543
21544         include_next: Fix bug introduced on 2011-01-18.
21545         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
21546         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
21547         ac_cv_header_... variable if the second argument is not 'check'.
21548         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
21549         gl_NEXT_HEADERS_INTERNAL.
21550
21551 2011-01-20  Bruno Haible  <bruno@clisp.org>
21552
21553         Allow the user to avoid the GNULIB_TEST_* macros.
21554         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
21555         Suggested by Paul Eggert.
21556
21557 2011-01-14  Jim Meyering  <meyering@redhat.com>
21558
21559         bootstrap: avoid failure when there is no .gitmodules file
21560         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
21561         has been assigned to, even when its value is the empty string.
21562         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
21563         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
21564         Reported by John W. Eaton <jwe@gnu.org>.
21565
21566 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
21567
21568         assume <ctype.h>, ..., <time.h> exist
21569         For years gnulib has been assuming the existence of the headers
21570         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
21571         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
21572         them, since they don't appear to be needed.
21573         * README (Portability guidelines): Document this.
21574         * lib/flock.c: Assume <fcntl.h> exists.
21575         * lib/regex_internal.h: Assume <locale.h> exists.
21576         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
21577         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
21578         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
21579         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
21580         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
21581         * m4/regex.m4 (gl_REGEX): Likewise.
21582         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
21583         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
21584         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
21585         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
21586         * tests/test-argp.c: Likewise.
21587         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
21588
21589         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
21590         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
21591         AA_APPLE_UNIVERSAL_BUILD.  See
21592         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
21593         * NEWS: Document this.
21594
21595 2011-01-19  Eric Blake  <eblake@redhat.com>
21596
21597         c-stack: assume stack overflow if SA_SIGINFO unsupported
21598         * lib/c-stack.c (SIGACTION_WORKS): Rename...
21599         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
21600         sigaction will work.
21601         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
21602         behavior match Linux.
21603         * tests/test-c-stack.c (main): Prefer NULL for pointers.
21604
21605         stdbool-tests: accommodate Haiku
21606         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
21607
21608         binary-io: fix O_TEXT on Haiku
21609         * modules/binary-io (Depends-on): Add fcntl-h.
21610         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
21611         than blindly undefining O_TEXT.
21612         Reported by Scott McCreary.
21613
21614 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
21615
21616         include_next: do not check for standard headers like stddef.h
21617
21618         I found this problem when modifying Emacs to use gnulib.
21619         I noticed that it added HAVE_STDDEF_H to config.h, even though
21620         gnulib always assumes <stddef.h> exists as per README and this
21621         symbol is unnecessary.
21622         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
21623         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
21624         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
21625         faster for headers like stddef.h that are known to exist.
21626         (gl_CHECK_NEXT_HEADERS): Use it.
21627         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
21628         rather than gl_CHECK_NEXT_HEADERS.
21629         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
21630         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
21631
21632 2011-01-18  Eric Blake  <eblake@redhat.com>
21633
21634         ansi-c++-opt: skip C++ dependency style if C++ is unused
21635         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
21636         tests when we know C++ compilation is not desired.
21637         Reported by Scott McCreary.
21638
21639 2011-01-18  Bruno Haible  <bruno@clisp.org>
21640
21641         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
21642         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
21643         (main): Perform test also when getrlimit and setrlimit don't exist or
21644         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
21645         limiting the address space size using setrlimit, compare the address
21646         space size before and after the the test.
21647         * tests/test-dprintf-posix2.c: Likewise.
21648         * tests/test-fprintf-posix3.sh: Update skip messages.
21649         * tests/test-dprintf-posix2.sh: Likewise.
21650         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
21651         * modules/dprintf-posix-tests (Depends-on): Likewise.
21652         Reported by Bruce Korb <bkorb@gnu.org> and
21653         Gary V. Vaughan <gary@gnu.org>.
21654
21655 2011-01-18  Bruno Haible  <bruno@clisp.org>
21656
21657         get-rusage-as: Improvement for Cygwin.
21658         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
21659         areas that are merely reserved.
21660
21661 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
21662
21663         strftime: remove dependencies on multibyte modules
21664
21665         strftime depended on mbrlen, mbsinit, and wchar, but these modules
21666         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
21667         only if __osf__ is defined, and I suspect OSF doesn't need these
21668         other modules.  If my guess is wrong, we'll need to come up with a
21669         variant of strftime that doesn't need the multibyte modules.
21670
21671         I discovered this problem when attempting modify Emacs to use the
21672         strftime module.  With the previous gnulib, this caused Emacs to
21673         need 31 new files, ranging from lib/config.charset to
21674         m4/wint_t.m4.  This was overkill and I expect would be offputting
21675         to the Emacs maintainers.  After this change, only 6 new files are
21676         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
21677         stdbool.m4, and tm_gmtoff.m4.
21678
21679         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
21680         Suggested by Bruno Haible in
21681         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
21682         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
21683         and do not check for wchar.h.
21684         * modules/strftime (Files): Remove m4/mbstate_t.m4.
21685         (Depends-on): Remove mbrlen, mbsinit, wchar.
21686
21687 2011-01-18  Bruno Haible  <bruno@clisp.org>
21688
21689         Tests for module 'get-rusage-as'.
21690         * modules/get-rusage-as-tests: New file.
21691         * tests/test-get-rusage-as.c: New file.
21692
21693         New module 'get-rusage-as'.
21694         * modules/get-rusage-as: New file.
21695         * lib/resource-ext.h: New file.
21696         * lib/get-rusage-as.c: New file.
21697
21698 2011-01-17  Eric Blake  <eblake@redhat.com>
21699
21700         sigaction: relax license from LGPLv3+ to LGPLv2+
21701         * modules/sigaction (License): Relax to LGPLv2+.
21702
21703 2011-01-14  Bruno Haible  <bruno@clisp.org>
21704
21705         filemode: Make function declarations usable in C++ mode.
21706         * lib/filemode.h: Enclose function declarations in extern "C" block.
21707         Reported by John W. Eaton <jwe@gnu.org>.
21708
21709 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
21710
21711         save-cwd: no longer include "xgetcwd.h"
21712         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
21713         This avoids a compilation failure in projects that use save-cwd
21714         without also using the xgetcwd module.
21715
21716 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
21717
21718         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
21719         This is so that a program like Emacs, which needs only dtoastr,
21720         does not have to bother with distributing and compiling ftoastr
21721         and ldtoastr.
21722         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
21723         * modules/dtoastr, modules/ldtoastr: New files.
21724         * modules/ftoastr: Now works just for 'float'.
21725         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
21726         (Makefile.am): Remove ftoastr.h (not needed and no effect),
21727         dtoastr.c, ldtoastr.c.
21728
21729 2011-01-11  Jim Meyering  <meyering@redhat.com>
21730
21731         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
21732         There is no need to work around the lack of the fchdir function,
21733         since gnulib can now provide a replacement when required.
21734         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
21735         * modules/save-cwd (Depends-on): Add fchdir.
21736
21737 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
21738
21739         openat, save-cwd: avoid xmalloc
21740
21741         This removes a direct (but undocumented) dependency of openat on
21742         xalloc, along with an indirect dependency via save-cwd.  It also
21743         removes a dependency of save-cwd on xgetcwd, and thereby
21744         indirectly on xalloc.  This change causes the openat substitute
21745         to fall back on save_cwd when memory is tight, and for save_cwd to
21746         fail instead of dying when memory is tight, but that's good enough.
21747         Problem and initial idea for fix reported by Bastien Roucaries in
21748         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
21749
21750         * lib/openat-proc.c: Include stdlib.h (for malloc), not
21751         xalloc.h (for xmalloc).
21752         (openat_proc_name): Use malloc, not xmalloc.
21753         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
21754         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
21755
21756         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
21757         This avoids heap allocation for file names whose lengths are in
21758         the range 512..1023, with the upper bound increasing to at most
21759         4031 depending on the platform's PATH_MAX.  (We do not want
21760         pathmax.h here as it might supply a non-constant PATH_MAX.)
21761         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
21762         Perhaps they should be moved to malloca.h?
21763         (OPENAT_BUFFER_SIZE): Use them.
21764
21765 2011-01-10  Bruno Haible  <bruno@clisp.org>
21766
21767         doc: Update users.txt.
21768         * users.txt: Add recutils.
21769
21770 2011-01-09  Karl Berry  <karl@gnu.org>
21771
21772         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
21773
21774         * doc/configmake.texi: New file.
21775         * doc/gnulib.texi: Include it.
21776         * modules/configmake: Move documentation from here.
21777
21778 2011-01-09  Bruno Haible  <bruno@clisp.org>
21779
21780         Update to Unicode 6.0.0.
21781         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
21782         (get_lbp): Update for Unicode 6.0.0.
21783         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
21784         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
21785         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
21786         U+11001, U+11038..U+11046. Remove U+06DE.
21787         (uc_width): Fix bounds of planes.
21788         * tests/uniwidth/test-uc_width2.sh: Same updates as in
21789         lib/uniwidth/width.c.
21790         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
21791         trailing whitespace removed.
21792         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
21793         without comments, but with the original copyright notice.
21794         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
21795         * lib/unicase/ignorable.h: Likewise.
21796         * lib/unicase/tocasefold.h: Likewise.
21797         * lib/unicase/tolower.h: Likewise.
21798         * lib/unicase/totitle.h: Likewise.
21799         * lib/unicase/toupper.h: Likewise.
21800         * lib/unictype/bidi_of.h: Likewise.
21801         * lib/unictype/blocks.h: Likewise.
21802         * lib/unictype/categ_C.h: Likewise.
21803         * lib/unictype/categ_Cn.h: Likewise.
21804         * lib/unictype/categ_L.h: Likewise.
21805         * lib/unictype/categ_Ll.h: Likewise.
21806         * lib/unictype/categ_Lm.h: Likewise.
21807         * lib/unictype/categ_Lo.h: Likewise.
21808         * lib/unictype/categ_Lu.h: Likewise.
21809         * lib/unictype/categ_M.h: Likewise.
21810         * lib/unictype/categ_Mc.h: Likewise.
21811         * lib/unictype/categ_Me.h: Likewise.
21812         * lib/unictype/categ_Mn.h: Likewise.
21813         * lib/unictype/categ_N.h: Likewise.
21814         * lib/unictype/categ_Nd.h: Likewise.
21815         * lib/unictype/categ_No.h: Likewise.
21816         * lib/unictype/categ_P.h: Likewise.
21817         * lib/unictype/categ_Po.h: Likewise.
21818         * lib/unictype/categ_S.h: Likewise.
21819         * lib/unictype/categ_Sc.h: Likewise.
21820         * lib/unictype/categ_Sk.h: Likewise.
21821         * lib/unictype/categ_Sm.h: Likewise.
21822         * lib/unictype/categ_So.h: Likewise.
21823         * lib/unictype/categ_of.h: Likewise.
21824         * lib/unictype/combining.h: Likewise.
21825         * lib/unictype/ctype_alnum.h: Likewise.
21826         * lib/unictype/ctype_alpha.h: Likewise.
21827         * lib/unictype/ctype_graph.h: Likewise.
21828         * lib/unictype/ctype_lower.h: Likewise.
21829         * lib/unictype/ctype_print.h: Likewise.
21830         * lib/unictype/ctype_punct.h: Likewise.
21831         * lib/unictype/ctype_upper.h: Likewise.
21832         * lib/unictype/decdigit.h: Likewise.
21833         * lib/unictype/digit.h: Likewise.
21834         * lib/unictype/numeric.h: Likewise.
21835         * lib/unictype/pr_alphabetic.h: Likewise.
21836         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
21837         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
21838         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
21839         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
21840         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
21841         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
21842         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
21843         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
21844         * lib/unictype/pr_case_ignorable.h: Likewise.
21845         * lib/unictype/pr_cased.h: Likewise.
21846         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
21847         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
21848         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
21849         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
21850         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
21851         * lib/unictype/pr_combining.h: Likewise.
21852         * lib/unictype/pr_composite.h: Likewise.
21853         * lib/unictype/pr_currency_symbol.h: Likewise.
21854         * lib/unictype/pr_decimal_digit.h: Likewise.
21855         * lib/unictype/pr_deprecated.h: Likewise.
21856         * lib/unictype/pr_format_control.h: Likewise.
21857         * lib/unictype/pr_grapheme_base.h: Likewise.
21858         * lib/unictype/pr_grapheme_extend.h: Likewise.
21859         * lib/unictype/pr_grapheme_link.h: Likewise.
21860         * lib/unictype/pr_id_continue.h: Likewise.
21861         * lib/unictype/pr_id_start.h: Likewise.
21862         * lib/unictype/pr_ideographic.h: Likewise.
21863         * lib/unictype/pr_lowercase.h: Likewise.
21864         * lib/unictype/pr_math.h: Likewise.
21865         * lib/unictype/pr_numeric.h: Likewise.
21866         * lib/unictype/pr_other_alphabetic.h: Likewise.
21867         * lib/unictype/pr_other_id_continue.h: Likewise.
21868         * lib/unictype/pr_other_math.h: Likewise.
21869         * lib/unictype/pr_punctuation.h: Likewise.
21870         * lib/unictype/pr_sentence_terminal.h: Likewise.
21871         * lib/unictype/pr_terminal_punctuation.h: Likewise.
21872         * lib/unictype/pr_unassigned_code_value.h: Likewise.
21873         * lib/unictype/pr_unified_ideograph.h: Likewise.
21874         * lib/unictype/pr_uppercase.h: Likewise.
21875         * lib/unictype/pr_xid_continue.h: Likewise.
21876         * lib/unictype/pr_xid_start.h: Likewise.
21877         * lib/unictype/scripts.h: Likewise.
21878         * lib/unictype/scripts_byname.gperf: Likewise.
21879         * lib/unictype/sy_java_ident.h: Likewise.
21880         * lib/unigbrk/gbrkprop.h: Likewise.
21881         * lib/unilbrk/lbrkprop1.h: Likewise.
21882         * lib/unilbrk/lbrkprop2.h: Likewise.
21883         * lib/uninorm/decomposition-table2.h: Likewise.
21884         * lib/uniwbrk/wbrkprop.h: Likewise.
21885         * tests/unicase/test-cased.c: Likewise.
21886         * tests/unicase/test-ignorable.c: Likewise.
21887         * tests/unicase/test-uc_tolower.c: Likewise.
21888         * tests/unicase/test-uc_totitle.c: Likewise.
21889         * tests/unicase/test-uc_toupper.c: Likewise.
21890         * tests/unictype/test-categ_C.c: Likewise.
21891         * tests/unictype/test-categ_Cn.c: Likewise.
21892         * tests/unictype/test-categ_L.c: Likewise.
21893         * tests/unictype/test-categ_Ll.c: Likewise.
21894         * tests/unictype/test-categ_Lm.c: Likewise.
21895         * tests/unictype/test-categ_Lo.c: Likewise.
21896         * tests/unictype/test-categ_Lu.c: Likewise.
21897         * tests/unictype/test-categ_M.c: Likewise.
21898         * tests/unictype/test-categ_Mc.c: Likewise.
21899         * tests/unictype/test-categ_Me.c: Likewise.
21900         * tests/unictype/test-categ_Mn.c: Likewise.
21901         * tests/unictype/test-categ_N.c: Likewise.
21902         * tests/unictype/test-categ_Nd.c: Likewise.
21903         * tests/unictype/test-categ_No.c: Likewise.
21904         * tests/unictype/test-categ_P.c: Likewise.
21905         * tests/unictype/test-categ_Po.c: Likewise.
21906         * tests/unictype/test-categ_S.c: Likewise.
21907         * tests/unictype/test-categ_Sc.c: Likewise.
21908         * tests/unictype/test-categ_Sk.c: Likewise.
21909         * tests/unictype/test-categ_Sm.c: Likewise.
21910         * tests/unictype/test-categ_So.c: Likewise.
21911         * tests/unictype/test-ctype_alnum.c: Likewise.
21912         * tests/unictype/test-ctype_alpha.c: Likewise.
21913         * tests/unictype/test-ctype_graph.c: Likewise.
21914         * tests/unictype/test-ctype_lower.c: Likewise.
21915         * tests/unictype/test-ctype_print.c: Likewise.
21916         * tests/unictype/test-ctype_punct.c: Likewise.
21917         * tests/unictype/test-ctype_upper.c: Likewise.
21918         * tests/unictype/test-decdigit.h: Likewise.
21919         * tests/unictype/test-digit.h: Likewise.
21920         * tests/unictype/test-numeric.h: Likewise.
21921         * tests/unictype/test-pr_alphabetic.c: Likewise.
21922         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
21923         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
21924         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
21925         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
21926         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
21927         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
21928         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
21929         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
21930         * tests/unictype/test-pr_case_ignorable.c: Likewise.
21931         * tests/unictype/test-pr_cased.c: Likewise.
21932         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
21933         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
21934         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
21935         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
21936         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
21937         * tests/unictype/test-pr_combining.c: Likewise.
21938         * tests/unictype/test-pr_composite.c: Likewise.
21939         * tests/unictype/test-pr_currency_symbol.c: Likewise.
21940         * tests/unictype/test-pr_decimal_digit.c: Likewise.
21941         * tests/unictype/test-pr_deprecated.c: Likewise.
21942         * tests/unictype/test-pr_format_control.c: Likewise.
21943         * tests/unictype/test-pr_grapheme_base.c: Likewise.
21944         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
21945         * tests/unictype/test-pr_grapheme_link.c: Likewise.
21946         * tests/unictype/test-pr_id_continue.c: Likewise.
21947         * tests/unictype/test-pr_id_start.c: Likewise.
21948         * tests/unictype/test-pr_ideographic.c: Likewise.
21949         * tests/unictype/test-pr_lowercase.c: Likewise.
21950         * tests/unictype/test-pr_math.c: Likewise.
21951         * tests/unictype/test-pr_numeric.c: Likewise.
21952         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
21953         * tests/unictype/test-pr_other_id_continue.c: Likewise.
21954         * tests/unictype/test-pr_other_math.c: Likewise.
21955         * tests/unictype/test-pr_punctuation.c: Likewise.
21956         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
21957         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
21958         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
21959         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
21960         * tests/unictype/test-pr_uppercase.c: Likewise.
21961         * tests/unictype/test-pr_xid_continue.c: Likewise.
21962         * tests/unictype/test-pr_xid_start.c: Likewise.
21963         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
21964         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
21965         changes.
21966         * lib/unictype/categ_Cc.h: Likewise.
21967         * lib/unictype/categ_Cf.h: Likewise.
21968         * lib/unictype/categ_Co.h: Likewise.
21969         * lib/unictype/categ_Cs.h: Likewise.
21970         * lib/unictype/categ_Lt.h: Likewise.
21971         * lib/unictype/categ_Nl.h: Likewise.
21972         * lib/unictype/categ_Pc.h: Likewise.
21973         * lib/unictype/categ_Pd.h: Likewise.
21974         * lib/unictype/categ_Pe.h: Likewise.
21975         * lib/unictype/categ_Pf.h: Likewise.
21976         * lib/unictype/categ_Pi.h: Likewise.
21977         * lib/unictype/categ_Ps.h: Likewise.
21978         * lib/unictype/categ_Z.h: Likewise.
21979         * lib/unictype/categ_Zl.h: Likewise.
21980         * lib/unictype/categ_Zp.h: Likewise.
21981         * lib/unictype/categ_Zs.h: Likewise.
21982         * lib/unictype/ctype_blank.h: Likewise.
21983         * lib/unictype/ctype_cntrl.h: Likewise.
21984         * lib/unictype/ctype_digit.h: Likewise.
21985         * lib/unictype/ctype_space.h: Likewise.
21986         * lib/unictype/ctype_xdigit.h: Likewise.
21987         * lib/unictype/mirror.h: Likewise.
21988         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
21989         * lib/unictype/pr_bidi_block_separator.h: Likewise.
21990         * lib/unictype/pr_bidi_common_separator.h: Likewise.
21991         * lib/unictype/pr_bidi_control.h: Likewise.
21992         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
21993         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
21994         * lib/unictype/pr_bidi_european_digit.h: Likewise.
21995         * lib/unictype/pr_bidi_pdf.h: Likewise.
21996         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
21997         * lib/unictype/pr_bidi_whitespace.h: Likewise.
21998         * lib/unictype/pr_dash.h: Likewise.
21999         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
22000         * lib/unictype/pr_diacritic.h: Likewise.
22001         * lib/unictype/pr_extender.h: Likewise.
22002         * lib/unictype/pr_hex_digit.h: Likewise.
22003         * lib/unictype/pr_hyphen.h: Likewise.
22004         * lib/unictype/pr_ids_binary_operator.h: Likewise.
22005         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
22006         * lib/unictype/pr_ignorable_control.h: Likewise.
22007         * lib/unictype/pr_iso_control.h: Likewise.
22008         * lib/unictype/pr_join_control.h: Likewise.
22009         * lib/unictype/pr_left_of_pair.h: Likewise.
22010         * lib/unictype/pr_line_separator.h: Likewise.
22011         * lib/unictype/pr_logical_order_exception.h: Likewise.
22012         * lib/unictype/pr_non_break.h: Likewise.
22013         * lib/unictype/pr_not_a_character.h: Likewise.
22014         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
22015         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
22016         * lib/unictype/pr_other_id_start.h: Likewise.
22017         * lib/unictype/pr_other_lowercase.h: Likewise.
22018         * lib/unictype/pr_other_uppercase.h: Likewise.
22019         * lib/unictype/pr_paired_punctuation.h: Likewise.
22020         * lib/unictype/pr_paragraph_separator.h: Likewise.
22021         * lib/unictype/pr_pattern_syntax.h: Likewise.
22022         * lib/unictype/pr_pattern_white_space.h: Likewise.
22023         * lib/unictype/pr_private_use.h: Likewise.
22024         * lib/unictype/pr_quotation_mark.h: Likewise.
22025         * lib/unictype/pr_radical.h: Likewise.
22026         * lib/unictype/pr_soft_dotted.h: Likewise.
22027         * lib/unictype/pr_space.h: Likewise.
22028         * lib/unictype/pr_titlecase.h: Likewise.
22029         * lib/unictype/pr_variation_selector.h: Likewise.
22030         * lib/unictype/pr_white_space.h: Likewise.
22031         * lib/unictype/pr_zero_width.h: Likewise.
22032         * lib/unictype/sy_c_ident.h: Likewise.
22033         * lib/unictype/sy_c_whitespace.h: Likewise.
22034         * lib/unictype/sy_java_whitespace.h: Likewise.
22035         * lib/uninorm/composition-table.gperf: Likewise.
22036         * lib/uninorm/decomposition-table1.h: Likewise.
22037         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
22038         LB8.
22039         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
22040         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
22041         * modules/unictype/*: Bump version number of expected libunistring
22042         version.
22043
22044 2011-01-09  Bruno Haible  <bruno@clisp.org>
22045
22046         Update to Unicode 5.2.0.
22047         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
22048         trailing whitespace removed.
22049
22050 2011-01-09  Bruno Haible  <bruno@clisp.org>
22051
22052         New Unicode character properties, from Unicode 5.2.0.
22053         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
22054         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
22055         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
22056         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
22057         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
22058         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
22059         uc_is_property_cased, uc_is_property_case_ignorable,
22060         uc_is_property_changes_when_lowercased,
22061         uc_is_property_changes_when_uppercased,
22062         uc_is_property_changes_when_titlecased,
22063         uc_is_property_changes_when_casefolded,
22064         uc_is_property_changes_when_casemapped): New declarations.
22065         * lib/unictype/pr_byname.gperf: Add the new properties.
22066         * modules/unictype/property-byname (Depends-on): Depend on the new
22067         properties modules.
22068         * modules/unictype/property-all (Depends-on): Likewise.
22069         * MODULES.html.sh (Unicode string functions): Add
22070         unictype/property-case-ignorable, unictype/property-cased,
22071         unictype/property-changes-when-casefolded,
22072         unictype/property-changes-when-casemapped,
22073         unictype/property-changes-when-lowercased,
22074         unictype/property-changes-when-titlecased,
22075         unictype/property-changes-when-uppercased.
22076
22077         New module 'unictype/property-changes-when-casemapped'.
22078         * modules/unictype/property-changes-when-casemapped: New file.
22079         * lib/unictype/pr_changes_when_casemapped.c: New file.
22080         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
22081         generated by gen-uni-tables.
22082         * modules/unictype/property-changes-when-casemapped-tests: New file.
22083         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
22084         automatically generated by gen-uni-tables.
22085
22086         New module 'unictype/property-changes-when-casefolded'.
22087         * modules/unictype/property-changes-when-casefolded: New file.
22088         * lib/unictype/pr_changes_when_casefolded.c: New file.
22089         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
22090         generated by gen-uni-tables.
22091         * modules/unictype/property-changes-when-casefolded-tests: New file.
22092         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
22093         automatically generated by gen-uni-tables.
22094
22095         New module 'unictype/property-changes-when-titlecased'.
22096         * modules/unictype/property-changes-when-titlecased: New file.
22097         * lib/unictype/pr_changes_when_titlecased.c: New file.
22098         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
22099         generated by gen-uni-tables.
22100         * modules/unictype/property-changes-when-titlecased-tests: New file.
22101         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
22102         automatically generated by gen-uni-tables.
22103
22104         New module 'unictype/property-changes-when-uppercased'.
22105         * modules/unictype/property-changes-when-uppercased: New file.
22106         * lib/unictype/pr_changes_when_uppercased.c: New file.
22107         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
22108         generated by gen-uni-tables.
22109         * modules/unictype/property-changes-when-uppercased-tests: New file.
22110         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
22111         automatically generated by gen-uni-tables.
22112
22113         New module 'unictype/property-changes-when-lowercased'.
22114         * modules/unictype/property-changes-when-lowercased: New file.
22115         * lib/unictype/pr_changes_when_lowercased.c: New file.
22116         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
22117         generated by gen-uni-tables.
22118         * modules/unictype/property-changes-when-lowercased-tests: New file.
22119         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
22120         automatically generated by gen-uni-tables.
22121
22122         New module 'unictype/property-case-ignorable'.
22123         * modules/unictype/property-case-ignorable: New file.
22124         * lib/unictype/pr_case_ignorable.c: New file.
22125         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
22126         by gen-uni-tables.
22127         * modules/unictype/property-case-ignorable-tests: New file.
22128         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
22129         generated by gen-uni-tables.
22130
22131         New module 'unictype/property-cased'.
22132         * modules/unictype/property-cased: New file.
22133         * lib/unictype/pr_cased.c: New file.
22134         * lib/unictype/pr_cased.h: New file, automatically generated by
22135         gen-uni-tables.
22136         * modules/unictype/property-cased-tests: New file.
22137         * tests/unictype/test-pr_cased.c: New file, automatically generated by
22138         gen-uni-tables.
22139
22140 2011-01-09  Bruno Haible  <bruno@clisp.org>
22141
22142         Update to Unicode 5.2.0.
22143         * lib/gen-uni-tables.c (output_predicate, output_category,
22144         output_combclass, output_bidi_category, output_decimal_digit_test,
22145         output_decimal_digit, output_digit_test, output_digit,
22146         output_numeric_test, output_numeric, output_mirror, output_scripts,
22147         output_scripts_byname, output_blocks, output_ident_category): Fix
22148         comment header.
22149         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
22150         get_wbp.
22151         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
22152         items.
22153         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
22154         Changes_When_Lowercased, Changes_When_Uppercased,
22155         Changes_When_Titlecased, Changes_When_Casefolded,
22156         Changes_When_Casemapped.
22157         (is_property_alphabetic, is_property_default_ignorable_code_point):
22158         Update for Unicode 5.2.0.
22159         (is_property_cased, is_property_case_ignorable,
22160         is_property_changes_when_lowercased,
22161         is_property_changes_when_uppercased,
22162         is_property_changes_when_titlecased,
22163         is_property_changes_when_casefolded,
22164         is_property_changes_when_casemapped): New functions.
22165         (output_properties): Output also the properties cased, case_ignorable,
22166         changes_when_lowercased, changes_when_uppercased,
22167         changes_when_titlecased, changes_when_casefolded,
22168         changes_when_casemapped.
22169         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
22170         Unicode TR#11 revision 17 -> 19.
22171         (LBP_CP): New enumeration value.
22172         (LBP_*): Adjust values accordingly.
22173         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
22174         TR#14 revision 22 -> 24.
22175         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
22176         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
22177         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
22178         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
22179         is_WBP_MIDLETTER.
22180         (output_composition_tables): Allow for 24 bits instead of 16 bits in
22181         the code1 and code2 of each composition rule.
22182         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
22183         * lib/unicase/ignorable.h: Likewise.
22184         * lib/unicase/tocasefold.h: Likewise.
22185         * lib/unicase/tolower.h: Likewise.
22186         * lib/unicase/totitle.h: Likewise.
22187         * lib/unicase/toupper.h: Likewise.
22188         * lib/unictype/bidi_of.h: Likewise.
22189         * lib/unictype/blocks.h: Likewise.
22190         * lib/unictype/categ_C.h: Likewise.
22191         * lib/unictype/categ_Cf.h: Likewise.
22192         * lib/unictype/categ_Cn.h: Likewise.
22193         * lib/unictype/categ_L.h: Likewise.
22194         * lib/unictype/categ_Ll.h: Likewise.
22195         * lib/unictype/categ_Lm.h: Likewise.
22196         * lib/unictype/categ_Lo.h: Likewise.
22197         * lib/unictype/categ_Lu.h: Likewise.
22198         * lib/unictype/categ_M.h: Likewise.
22199         * lib/unictype/categ_Mc.h: Likewise.
22200         * lib/unictype/categ_Mn.h: Likewise.
22201         * lib/unictype/categ_N.h: Likewise.
22202         * lib/unictype/categ_Nd.h: Likewise.
22203         * lib/unictype/categ_Nl.h: Likewise.
22204         * lib/unictype/categ_No.h: Likewise.
22205         * lib/unictype/categ_P.h: Likewise.
22206         * lib/unictype/categ_Pd.h: Likewise.
22207         * lib/unictype/categ_Po.h: Likewise.
22208         * lib/unictype/categ_S.h: Likewise.
22209         * lib/unictype/categ_Sc.h: Likewise.
22210         * lib/unictype/categ_So.h: Likewise.
22211         * lib/unictype/categ_of.h: Likewise.
22212         * lib/unictype/combining.h: Likewise.
22213         * lib/unictype/ctype_alnum.h: Likewise.
22214         * lib/unictype/ctype_alpha.h: Likewise.
22215         * lib/unictype/ctype_graph.h: Likewise.
22216         * lib/unictype/ctype_lower.h: Likewise.
22217         * lib/unictype/ctype_print.h: Likewise.
22218         * lib/unictype/ctype_punct.h: Likewise.
22219         * lib/unictype/ctype_upper.h: Likewise.
22220         * lib/unictype/decdigit.h: Likewise.
22221         * lib/unictype/digit.h: Likewise.
22222         * lib/unictype/numeric.h: Likewise.
22223         * lib/unictype/pr_alphabetic.h: Likewise.
22224         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
22225         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
22226         * lib/unictype/pr_bidi_european_digit.h: Likewise.
22227         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
22228         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
22229         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
22230         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
22231         * lib/unictype/pr_combining.h: Likewise.
22232         * lib/unictype/pr_composite.h: Likewise.
22233         * lib/unictype/pr_currency_symbol.h: Likewise.
22234         * lib/unictype/pr_dash.h: Likewise.
22235         * lib/unictype/pr_decimal_digit.h: Likewise.
22236         * lib/unictype/pr_deprecated.h: Likewise.
22237         * lib/unictype/pr_diacritic.h: Likewise.
22238         * lib/unictype/pr_extender.h: Likewise.
22239         * lib/unictype/pr_grapheme_base.h: Likewise.
22240         * lib/unictype/pr_grapheme_extend.h: Likewise.
22241         * lib/unictype/pr_grapheme_link.h: Likewise.
22242         * lib/unictype/pr_id_continue.h: Likewise.
22243         * lib/unictype/pr_id_start.h: Likewise.
22244         * lib/unictype/pr_ideographic.h: Likewise.
22245         * lib/unictype/pr_ignorable_control.h: Likewise.
22246         * lib/unictype/pr_logical_order_exception.h: Likewise.
22247         * lib/unictype/pr_lowercase.h: Likewise.
22248         * lib/unictype/pr_numeric.h: Likewise.
22249         * lib/unictype/pr_other_alphabetic.h: Likewise.
22250         * lib/unictype/pr_punctuation.h: Likewise.
22251         * lib/unictype/pr_sentence_terminal.h: Likewise.
22252         * lib/unictype/pr_terminal_punctuation.h: Likewise.
22253         * lib/unictype/pr_unassigned_code_value.h: Likewise.
22254         * lib/unictype/pr_unified_ideograph.h: Likewise.
22255         * lib/unictype/pr_uppercase.h: Likewise.
22256         * lib/unictype/pr_xid_continue.h: Likewise.
22257         * lib/unictype/pr_xid_start.h: Likewise.
22258         * lib/unictype/pr_zero_width.h: Likewise.
22259         * lib/unictype/scripts.h: Likewise.
22260         * lib/unictype/scripts_byname.gperf: Likewise.
22261         * lib/unictype/sy_java_ident.h: Likewise.
22262         * lib/unigbrk/gbrkprop.h: Likewise.
22263         * lib/unilbrk/lbrkprop1.h: Likewise.
22264         * lib/unilbrk/lbrkprop2.h: Likewise.
22265         * lib/unilbrk/lbrktables.h: Likewise.
22266         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
22267         LBP_CP. Implement rule LB30.
22268         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
22269         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
22270         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
22271         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
22272         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
22273         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
22274         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
22275         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
22276         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
22277         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
22278         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
22279         bits instead of 16 bits in the code1 and code2 of each composition
22280         rule.
22281         (uc_composition): Update for Unicode 5.2.0.
22282         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
22283         * lib/uninorm/decomposition-table2.h: Likewise.
22284         * lib/uniwbrk/wbrkprop.h: Likewise.
22285         * tests/unicase/test-cased.c: Likewise.
22286         * tests/unicase/test-ignorable.c: Likewise.
22287         * tests/unicase/test-uc_tolower.c: Likewise.
22288         * tests/unicase/test-uc_totitle.c: Likewise.
22289         * tests/unicase/test-uc_toupper.c: Likewise.
22290         * tests/unictype/test-categ_C.c: Likewise.
22291         * tests/unictype/test-categ_Cf.c: Likewise.
22292         * tests/unictype/test-categ_Cn.c: Likewise.
22293         * tests/unictype/test-categ_L.c: Likewise.
22294         * tests/unictype/test-categ_Ll.c: Likewise.
22295         * tests/unictype/test-categ_Lm.c: Likewise.
22296         * tests/unictype/test-categ_Lo.c: Likewise.
22297         * tests/unictype/test-categ_Lu.c: Likewise.
22298         * tests/unictype/test-categ_M.c: Likewise.
22299         * tests/unictype/test-categ_Mc.c: Likewise.
22300         * tests/unictype/test-categ_Mn.c: Likewise.
22301         * tests/unictype/test-categ_N.c: Likewise.
22302         * tests/unictype/test-categ_Nd.c: Likewise.
22303         * tests/unictype/test-categ_Nl.c: Likewise.
22304         * tests/unictype/test-categ_No.c: Likewise.
22305         * tests/unictype/test-categ_P.c: Likewise.
22306         * tests/unictype/test-categ_Pd.c: Likewise.
22307         * tests/unictype/test-categ_Po.c: Likewise.
22308         * tests/unictype/test-categ_S.c: Likewise.
22309         * tests/unictype/test-categ_Sc.c: Likewise.
22310         * tests/unictype/test-categ_So.c: Likewise.
22311         * tests/unictype/test-ctype_alnum.c: Likewise.
22312         * tests/unictype/test-ctype_alpha.c: Likewise.
22313         * tests/unictype/test-ctype_graph.c: Likewise.
22314         * tests/unictype/test-ctype_lower.c: Likewise.
22315         * tests/unictype/test-ctype_print.c: Likewise.
22316         * tests/unictype/test-ctype_punct.c: Likewise.
22317         * tests/unictype/test-ctype_upper.c: Likewise.
22318         * tests/unictype/test-decdigit.h: Likewise.
22319         * tests/unictype/test-digit.h: Likewise.
22320         * tests/unictype/test-numeric.h: Likewise.
22321         * tests/unictype/test-pr_alphabetic.c: Likewise.
22322         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
22323         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
22324         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
22325         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
22326         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
22327         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
22328         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
22329         * tests/unictype/test-pr_combining.c: Likewise.
22330         * tests/unictype/test-pr_composite.c: Likewise.
22331         * tests/unictype/test-pr_currency_symbol.c: Likewise.
22332         * tests/unictype/test-pr_dash.c: Likewise.
22333         * tests/unictype/test-pr_decimal_digit.c: Likewise.
22334         * tests/unictype/test-pr_deprecated.c: Likewise.
22335         * tests/unictype/test-pr_diacritic.c: Likewise.
22336         * tests/unictype/test-pr_extender.c: Likewise.
22337         * tests/unictype/test-pr_grapheme_base.c: Likewise.
22338         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
22339         * tests/unictype/test-pr_grapheme_link.c: Likewise.
22340         * tests/unictype/test-pr_id_continue.c: Likewise.
22341         * tests/unictype/test-pr_id_start.c: Likewise.
22342         * tests/unictype/test-pr_ideographic.c: Likewise.
22343         * tests/unictype/test-pr_ignorable_control.c: Likewise.
22344         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
22345         * tests/unictype/test-pr_lowercase.c: Likewise.
22346         * tests/unictype/test-pr_numeric.c: Likewise.
22347         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
22348         * tests/unictype/test-pr_punctuation.c: Likewise.
22349         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
22350         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
22351         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
22352         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
22353         * tests/unictype/test-pr_uppercase.c: Likewise.
22354         * tests/unictype/test-pr_xid_continue.c: Likewise.
22355         * tests/unictype/test-pr_xid_start.c: Likewise.
22356         * tests/unictype/test-pr_zero_width.c: Likewise.
22357         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
22358         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
22359         changed behaviour: line breaking is now disallowed between a letter
22360         or '=' and '('.
22361         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
22362         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
22363         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
22364         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
22365         * tests/uniwidth/test-uc_width2.sh: Same updates as in
22366         lib/uniwidth/width.c.
22367         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
22368         without comments, but with the original copyright notice.
22369         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
22370         changes.
22371         * lib/unictype/categ_Cc.h: Likewise.
22372         * lib/unictype/categ_Co.h: Likewise.
22373         * lib/unictype/categ_Cs.h: Likewise.
22374         * lib/unictype/categ_Lt.h: Likewise.
22375         * lib/unictype/categ_Me.h: Likewise.
22376         * lib/unictype/categ_Pc.h: Likewise.
22377         * lib/unictype/categ_Pe.h: Likewise.
22378         * lib/unictype/categ_Pf.h: Likewise.
22379         * lib/unictype/categ_Pi.h: Likewise.
22380         * lib/unictype/categ_Ps.h: Likewise.
22381         * lib/unictype/categ_Sk.h: Likewise.
22382         * lib/unictype/categ_Sm.h: Likewise.
22383         * lib/unictype/categ_Z.h: Likewise.
22384         * lib/unictype/categ_Zl.h: Likewise.
22385         * lib/unictype/categ_Zp.h: Likewise.
22386         * lib/unictype/categ_Zs.h: Likewise.
22387         * lib/unictype/ctype_blank.h: Likewise.
22388         * lib/unictype/ctype_cntrl.h: Likewise.
22389         * lib/unictype/ctype_digit.h: Likewise.
22390         * lib/unictype/ctype_space.h: Likewise.
22391         * lib/unictype/ctype_xdigit.h: Likewise.
22392         * lib/unictype/mirror.h: Likewise.
22393         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
22394         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
22395         * lib/unictype/pr_bidi_block_separator.h: Likewise.
22396         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
22397         * lib/unictype/pr_bidi_common_separator.h: Likewise.
22398         * lib/unictype/pr_bidi_control.h: Likewise.
22399         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
22400         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
22401         * lib/unictype/pr_bidi_pdf.h: Likewise.
22402         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
22403         * lib/unictype/pr_bidi_whitespace.h: Likewise.
22404         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
22405         * lib/unictype/pr_format_control.h: Likewise.
22406         * lib/unictype/pr_hex_digit.h: Likewise.
22407         * lib/unictype/pr_hyphen.h: Likewise.
22408         * lib/unictype/pr_ids_binary_operator.h: Likewise.
22409         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
22410         * lib/unictype/pr_iso_control.h: Likewise.
22411         * lib/unictype/pr_join_control.h: Likewise.
22412         * lib/unictype/pr_left_of_pair.h: Likewise.
22413         * lib/unictype/pr_line_separator.h: Likewise.
22414         * lib/unictype/pr_math.h: Likewise.
22415         * lib/unictype/pr_non_break.h: Likewise.
22416         * lib/unictype/pr_not_a_character.h: Likewise.
22417         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
22418         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
22419         * lib/unictype/pr_other_id_continue.h: Likewise.
22420         * lib/unictype/pr_other_id_start.h: Likewise.
22421         * lib/unictype/pr_other_lowercase.h: Likewise.
22422         * lib/unictype/pr_other_math.h: Likewise.
22423         * lib/unictype/pr_other_uppercase.h: Likewise.
22424         * lib/unictype/pr_paired_punctuation.h: Likewise.
22425         * lib/unictype/pr_paragraph_separator.h: Likewise.
22426         * lib/unictype/pr_pattern_syntax.h: Likewise.
22427         * lib/unictype/pr_pattern_white_space.h: Likewise.
22428         * lib/unictype/pr_private_use.h: Likewise.
22429         * lib/unictype/pr_quotation_mark.h: Likewise.
22430         * lib/unictype/pr_radical.h: Likewise.
22431         * lib/unictype/pr_soft_dotted.h: Likewise.
22432         * lib/unictype/pr_space.h: Likewise.
22433         * lib/unictype/pr_titlecase.h: Likewise.
22434         * lib/unictype/pr_variation_selector.h: Likewise.
22435         * lib/unictype/pr_white_space.h: Likewise.
22436         * lib/unictype/sy_c_ident.h: Likewise.
22437         * lib/unictype/sy_c_whitespace.h: Likewise.
22438         * lib/unictype/sy_java_whitespace.h: Likewise.
22439         * modules/uni*/*: Bump version number of expected libunistring version.
22440         Reported by Simon Josefsson.
22441
22442 2011-01-09  Karl Heuer  <kwzh@gnu.org>
22443
22444         useless-if-before-free: fix typo in --help and make the internal,
22445         automatic version date update process work once again.
22446         --help output contained a NUL character instead of the
22447         backslash-zero that was intended.  Also, the "must lie within
22448         the first 8 lines" line is on line 9, and hence not getting
22449         automatically updated.
22450         * build-aux/useless-if-before-free: Fix the former by adding a
22451         backslash, and the latter by condensing the three lines of what-it-does
22452         to a single line, leaving one line of slack for the future.
22453
22454 2011-01-09  Bruno Haible  <bruno@clisp.org>
22455
22456         uniwidth/width: Fix width of U+1D173..U+1D17A.
22457         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
22458         symbolic_width, output_width_property_test): New functions.
22459         (main): Invoke output_nonspacing_property, output_width_property_test.
22460         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
22461         U+1D173..U+1D17A.
22462         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
22463         1.
22464         * modules/uniwidth/*: Bump version number of expected libunistring
22465         version.
22466         * modules/unilbrk/*: Likewise.
22467
22468 2011-01-08  Bruno Haible  <bruno@clisp.org>
22469
22470         uninorm tests: Preserve copyright of Unicode data file.
22471         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
22472         Mention modifications.
22473
22474 2011-01-08  Bruno Haible  <bruno@clisp.org>
22475
22476         gen-uni-tables: Prepare for Unicode 5.2.0.
22477         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
22478         (debug_output_lbp, output_lbp): Update.
22479
22480 2011-01-08  Bruno Haible  <bruno@clisp.org>
22481
22482         unilbrk: Clarify gen-uni-tables.c code.
22483         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
22484         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
22485         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
22486
22487 2011-01-07  Bruno Haible  <bruno@clisp.org>
22488
22489         strtod: Restore errno when successfully parsing Infinity or NaN.
22490         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
22491         restore the original errno.
22492
22493 2011-01-07  Bruno Haible  <bruno@clisp.org>
22494
22495         remove test: Avoid failure on HP-UX 11.
22496         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
22497
22498 2011-01-07  Bruno Haible  <bruno@clisp.org>
22499
22500         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
22501         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
22502         error code.
22503
22504 2011-01-07  Pádraig Brady <P@draigBrady.com>
22505
22506         ignore-value: fixup comments, and add Eric Blake
22507         as an author since he rewrote the macros.
22508         * lib/ignore-value.h (ignore_value):  State that
22509         we now support aggregates.  Also specify exactly
22510         when the GCC warn_unused_result feature was added.
22511
22512 2011-01-06  Eric Blake  <eblake@redhat.com>
22513
22514         ignore-value: support aggregate types
22515         * lib/ignore-value.h (ignore_value): Provide separate gcc
22516         definition.
22517         * modules/ignore-value-tests: New test module.
22518         * tests/test-ignore-value.c: New test.
22519
22520         maint.mk: improve sc_prohibit_strcmp regex
22521         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
22522         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
22523         definition of STRNEQ.
22524
22525         signal: work around Haiku issue with SIGBUS
22526         * lib/siglist.h: Add comment.
22527         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
22528         strsignal's favoring of SIGSEGV.
22529         * tests/test-signal.c (main): Avoid test failure.
22530         * doc/posix-headers/signal.texi (signal.h): Document the issue.
22531         Reported by Scott McCreary.
22532
22533         maint.mk: add pre-release check to ensure submodule commits are public
22534         * top/maint.mk (public-submodule-commit): New rule.
22535         (submodule-checks): New variable.
22536         (alpha beta stable): Depend on the variable.
22537
22538 2011-01-05  Pádraig Brady <P@draigBrady.com>
22539         and Jim Meyering  <meyering@redhat.com>
22540
22541         ignore-value: make ignore_value more generic; deprecate ignore_ptr
22542         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
22543         (ATTRIBUTE_DEPRECATED): Define.
22544         (_ignore_case): New function.
22545         (ignore_value): New macro, to replace the old function.
22546         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
22547         * modules/ignore-value (Depends-on): Add stdint.
22548
22549 2011-01-04  Eric Blake  <eblake@redhat.com>
22550
22551         doc: regenerate INSTALL
22552         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
22553         @firstparagraphindent support, now that autoconf dropped it.
22554         (INSTALL_PRELUDE): Reinstate old macro.
22555         * doc/install.texi: Resync from autoconf.
22556         * doc/INSTALL: Reflect recent autoconf update.
22557         * doc/INSTALL.ISO: Likewise.
22558         * doc/INSTALL.UTF-8: Likewise.
22559         Reported by Karl Berry.
22560
22561 2011-01-04  Bruce Korb  <address@hidden>
22562
22563         git-version-gen: avoid a sub-shell
22564         * build-aux/git-version-gen: Redirect stderr in `...` via
22565         "exec 2>...", rather than via an added sub-shell.
22566
22567 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
22568
22569         git-version-gen: use (...) rather than sh -c '...'
22570         * build-aux/git-version-gen: Rather than hard-coding a shell's name
22571         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
22572
22573 2011-01-03  Jim Meyering  <meyering@redhat.com>
22574
22575         git-version-gen: convert leading TABs to spaces
22576         * build-aux/git-version-gen: Expand leading TABs.
22577
22578         git-version-gen: handle failed "git rev-list"
22579         * build-aux/git-version-gen: Rather than leaking a "fatal" error
22580         from git and proceeding as if it had succeeded but printed no SHA1
22581         checksums, suppress the diagnostic and handle the failure.
22582         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
22583
22584         git-version-gen: include command name in one more diagnostic
22585         * build-aux/git-version-gen: When the required .tarball-version file
22586         was missing or unreadable, you might see the diagnostic from "cat",
22587         but no trace of the name of the invoking script.  Now, you still see
22588         the diagnostic from cat, but also get one from "git-version-gen: ".
22589         Inspired by a patch from Bruce Korb.
22590
22591         update-copyright: adjust test to match changed code
22592         * tests/test-update-copyright.sh: Change test's expected output
22593         to match new actual output.
22594
22595 2011-01-02  Bruno Haible  <bruno@clisp.org>
22596
22597         getlogin_r: Avoid test failure on HP-UX 11.
22598         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
22599         ERANGE when the second argument is zero.
22600         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
22601         portability problem.
22602
22603 2011-01-02  Bruce Korb  <bkorb@gnu.org>
22604
22605         * build-aux/update-copyright: doc Simon's changes
22606
22607 2011-01-02  Simon Josefsson  <simon@josefsson.org>
22608
22609         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
22610         environment variable.
22611
22612 2011-01-02  Bruno Haible  <bruno@clisp.org>
22613
22614         unigbrk: Avoid gcc warnings.
22615         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
22616         unused variable.
22617         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
22618         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
22619         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
22620         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
22621         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
22622         Change type of first argument to 'const char *'.
22623         (main): Remove unused variable.
22624         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
22625         type of first argument to 'const char *'.
22626         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
22627         Likewise.
22628         (main): Change type of variable 's'.
22629         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
22630         to 'int'.
22631
22632 2011-01-02  Bruno Haible  <bruno@clisp.org>
22633
22634         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
22635         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
22636         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
22637         bug.
22638         * lib/pwrite.c: Undo 2010-12-31 patch.
22639         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
22640
22641 2011-01-02  Bruno Haible  <bruno@clisp.org>
22642
22643         pread: Fix test whether it works.
22644         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
22645
22646 2011-01-02  Bruno Haible  <bruno@clisp.org>
22647
22648         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
22649         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
22650         ends in "6". Don't require a specific month name. Try also the locale
22651         names found on HP-UX 11 and Solaris 7.
22652
22653 2011-01-02  Bruno Haible  <bruno@clisp.org>
22654
22655         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
22656         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
22657         C linkage.
22658         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
22659
22660 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
22661
22662         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
22663         for consistency, since the "cluster" term is not used elsewhere.
22664         * lib/unigbrk.in.h: Update name.
22665         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
22666         * lib/unigbrk/u16-grapheme-next.c: Update name.
22667         * lib/unigbrk/u16-grapheme-prev.c: Update name.
22668         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
22669         * lib/unigbrk/u32-grapheme-next.c: Update name.
22670         * lib/unigbrk/u32-grapheme-prev.c: Update name.
22671         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
22672         * lib/unigbrk/u8-grapheme-next.c: Update name.
22673         * lib/unigbrk/u8-grapheme-prev.c: Update name.
22674         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
22675         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
22676         Suggested by Bruno Haible.
22677
22678 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
22679
22680         Remove module 'u8-grapheme-len' as too redundant with
22681         'u8-grapheme-next'.
22682         * modules/unigbrk/u8-grapheme-len: Delete file.
22683         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
22684         * lib/unigbrk.in.h: Remove prototype for deleted function.
22685         * lib/unigbrk/u8-grapheme-len.c: Delete file.
22686         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
22687
22688         Remove module 'u16-grapheme-len' as too redundant with
22689         'u16-grapheme-next'.
22690         * modules/unigbrk/u16-grapheme-len: Delete file.
22691         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
22692         * lib/unigbrk.in.h: Remove prototype for deleted function.
22693         * lib/unigbrk/u16-grapheme-len.c: Delete file.
22694         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
22695
22696         Remove module 'u32-grapheme-len' as too redundant with
22697         'u32-grapheme-next'.
22698         * modules/unigbrk/u32-grapheme-len: Delete file.
22699         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
22700         * lib/unigbrk.in.h: Remove prototype for deleted function.
22701         * lib/unigbrk/u32-grapheme-len.c: Delete file.
22702         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
22703
22704         Suggested by Bruno Haible.
22705
22706 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
22707
22708         * unigbrk.in.h: Fix typo: "ben" => "been".
22709         Reported by Bruno Haible.
22710
22711 2011-01-01  Jim Meyering  <meyering@redhat.com>
22712
22713         maint: update almost all copyright ranges to include 2011
22714         Run the new "make update-copyright" rule.
22715
22716 2011-01-01  Jim Meyering  <meyering@redhat.com>
22717
22718         maint: update-copyright: exempt doc/INSTALL*
22719         * Makefile (update-copyright): Also exclude doc/INSTALL*,
22720         since they are generated.  Suggested by Bruno Haible.
22721
22722 2011-01-01  Jim Meyering  <meyering@redhat.com>
22723
22724         maint: refine the update-copyright rule
22725         * Makefile (update-copyright): Also exclude any file that includes
22726         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
22727         code that merely generates the comment.
22728
22729 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
22730
22731         New module 'u8-grapheme-len'.
22732         * modules/unigbrk/u8-grapheme-len: New file.
22733         * modules/unigbrk/u8-grapheme-len-tests: New file.
22734         * lib/unigbrk.in.h: Add prototype for new function.
22735         * lib/unigbrk/u8-grapheme-len.c: New file.
22736         * tests/unigbrk/test-u8-grapheme-len.c: New file.
22737
22738         New module 'u16-grapheme-len'.
22739         * modules/unigbrk/u16-grapheme-len: New file.
22740         * modules/unigbrk/u16-grapheme-len-tests: New file.
22741         * lib/unigbrk.in.h: Add prototype for new function.
22742         * lib/unigbrk/u16-grapheme-len.c: New file.
22743         * tests/unigbrk/test-u16-grapheme-len.c: New file.
22744
22745         New module 'u32-grapheme-len'.
22746         * modules/unigbrk/u32-grapheme-len: New file.
22747         * modules/unigbrk/u32-grapheme-len-tests: New file.
22748         * lib/unigbrk.in.h: Add prototype for new function.
22749         * lib/unigbrk/u32-grapheme-len.c: New file.
22750         * tests/unigbrk/test-u32-grapheme-len.c: New file.
22751
22752         New module 'u8-grapheme-next'.
22753         * modules/unigbrk/u8-grapheme-next: New file.
22754         * modules/unigbrk/u8-grapheme-next-tests: New file.
22755         * lib/unigbrk.in.h: Add prototype for new function.
22756         * lib/unigbrk/u8-grapheme-next.c: New file.
22757         * tests/unigbrk/test-u8-grapheme-next.c: New file.
22758
22759         New module 'u16-grapheme-next'.
22760         * modules/unigbrk/u16-grapheme-next: New file.
22761         * modules/unigbrk/u16-grapheme-next-tests: New file.
22762         * lib/unigbrk.in.h: Add prototype for new function.
22763         * lib/unigbrk/u16-grapheme-next.c: New file.
22764         * tests/unigbrk/test-u16-grapheme-next.c: New file.
22765
22766         New module 'u32-grapheme-next'.
22767         * modules/unigbrk/u32-grapheme-next: New file.
22768         * modules/unigbrk/u32-grapheme-next-tests: New file.
22769         * lib/unigbrk.in.h: Add prototype for new function.
22770         * lib/unigbrk/u32-grapheme-next.c: New file.
22771         * tests/unigbrk/test-u32-grapheme-next.c: New file.
22772
22773         New module 'u8-grapheme-prev'.
22774         * modules/unigbrk/u8-grapheme-prev: New file.
22775         * modules/unigbrk/u8-grapheme-prev-tests: New file.
22776         * lib/unigbrk.in.h: Add prototype for new function.
22777         * lib/unigbrk/u8-grapheme-prev.c: New file.
22778         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
22779
22780         New module 'u16-grapheme-prev'.
22781         * modules/unigbrk/u16-grapheme-prev: New file.
22782         * modules/unigbrk/u16-grapheme-prev-tests: New file.
22783         * lib/unigbrk.in.h: Add prototype for new function.
22784         * lib/unigbrk/u16-grapheme-prev.c: New file.
22785         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
22786
22787         New module 'u32-grapheme-prev'.
22788         * modules/unigbrk/u32-grapheme-prev: New file.
22789         * modules/unigbrk/u32-grapheme-prev-tests: New file.
22790         * lib/unigbrk.in.h: Add prototype for new function.
22791         * lib/unigbrk/u32-grapheme-prev.c: New file.
22792         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
22793
22794         New module 'u8-grapheme-breaks'.
22795         * modules/unigbrk/u8-grapheme-breaks: New file.
22796         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
22797         * lib/unigbrk.in.h: Add prototype for new function.
22798         * lib/unigbrk/u8-grapheme-breaks.c: New file.
22799         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
22800
22801         New module 'u16-grapheme-breaks'.
22802         * modules/unigbrk/u16-grapheme-breaks: New file.
22803         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
22804         * lib/unigbrk.in.h: Add prototype for new function.
22805         * lib/unigbrk/u16-grapheme-breaks.c: New file.
22806         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
22807
22808         New module 'u32-grapheme-breaks'.
22809         * modules/unigbrk/u32-grapheme-breaks: New file.
22810         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
22811         * lib/unigbrk.in.h: Add prototype for new function.
22812         * lib/unigbrk/u32-grapheme-breaks.c: New file.
22813         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
22814
22815         New module 'ulc-grapheme-breaks'.
22816         * modules/unigbrk/ulc-grapheme-breaks: New file.
22817         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
22818         * m4/locale-ar.m4: New file.
22819         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
22820         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
22821         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
22822
22823 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
22824
22825         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
22826         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
22827         modified how this file was generated before I initially submitted
22828         the module, but failed to regenerate it.  This meant that several
22829         of the level2 entries were wrong.
22830         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
22831         Remove the division-by-2 that is folded into the table now that
22832         gbrkprop.h has been regenerated properly.  Now -1 entries are
22833         handled correctly.
22834
22835         New module 'unigbrk/uc-gbrk-prop-tests'.
22836         * modules/unigbrk/uc-gbrk-prop-tests: New file.
22837         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
22838         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
22839         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
22840
22841 2011-01-01  Bruno Haible  <bruno@clisp.org>
22842
22843         Avoid use of hexadecimal escapes.
22844         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
22845         instead of hexadecimal escapes.
22846
22847 2011-01-01  Jim Meyering  <meyering@redhat.com>
22848
22849         maint: new rule to update copyright year ranges
22850         * Makefile (update-copyright): New rule.
22851
22852         maint: indent with TABs in Makefile
22853         * Makefile: Expand leading sequences of spaces to TABs
22854
22855         version-etc: update the copyright year it reports
22856         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
22857
22858 2010-12-31  Bruno Haible  <bruno@clisp.org>
22859
22860         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
22861         * lib/isfinite.c (zerof, zerod, zerol): New variables.
22862         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
22863         zero.
22864
22865 2010-12-31  Bruno Haible  <bruno@clisp.org>
22866
22867         pwrite: Work around HP-UX 11.11 bug.
22868         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
22869         works and set REPLACE_PWRITE if not.
22870         * lib/pwrite.c (pwrite): Add an implementation that uses the system
22871         function.
22872         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
22873
22874 2010-12-31  Bruno Haible  <bruno@clisp.org>
22875
22876         pread: Work around HP-UX 11 bugs.
22877         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
22878         and set REPLACE_PREAD if not.
22879         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
22880
22881 2010-12-31  Eric Blake  <eblake@redhat.com>
22882
22883         nl_langinfo: fix YESEXPR on Irix 6.5
22884         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
22885         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
22886         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
22887         it.
22888
22889 2010-12-31  Bruno Haible  <bruno@clisp.org>
22890
22891         iconv: Document HP-UX 11 bug.
22892         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
22893
22894 2010-12-31  Bruno Haible  <bruno@clisp.org>
22895
22896         ldexpl: Fix link error on HP-UX 11.
22897         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
22898         LDEXPL_LIBM, using $ISNANL_LIBM.
22899
22900 2010-12-31  Eric Blake  <eblake@redhat.com>
22901
22902         ftello: avoid compilation failure with SunStudio c89
22903         * lib/ftello.c (ftello): Use lseek, not llseek.
22904
22905         tests: avoid failing coreutils tests on cygwin
22906         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
22907         (create_exe_shims_): Return 0 when skipping.
22908
22909 2010-12-31  Bruno Haible  <bruno@clisp.org>
22910
22911         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
22912         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
22913
22914 2010-12-31  Bruno Haible  <bruno@clisp.org>
22915
22916         waitpid: Fix link error in C++ mode.
22917         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
22918
22919 2010-12-31  Bruno Haible  <bruno@clisp.org>
22920
22921         isnan: Use GCC built-ins when possible.
22922         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
22923         __builtin_isnan.
22924         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
22925         (isnan): Define using GCC built-ins for GCC >= 4.0.
22926
22927 2010-12-31  Bruno Haible  <bruno@clisp.org>
22928
22929         isnand: Fix mistake.
22930         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
22931         __builtin_isnand.
22932
22933 2010-12-31  Bruno Haible  <bruno@clisp.org>
22934
22935         open: Avoid C++ error on HP-UX 11.
22936         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
22937
22938 2010-12-31  Bruno Haible  <bruno@clisp.org>
22939
22940         time_r: Add missing declarations on HP-UX 11.
22941         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
22942         instead of HAVE_LOCALTIME_R.
22943         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
22944         HAVE_LOCALTIME_R always.
22945         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
22946         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
22947         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
22948         HAVE_LOCALTIME_R.
22949         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
22950         * doc/posix-functions/localtime_r.texi: Likewise.
22951
22952 2010-12-29  Eric Blake  <eblake@redhat.com>
22953
22954         mountlist: tweak previous commit
22955         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
22956         Reported by Paul Eggert.
22957
22958         mountlist: fix local drive detection on cygwin
22959         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
22960         that works for cygwin.
22961
22962 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
22963
22964         ftoastr, snprintf: ftoastr + snprintf module
22965         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
22966         since the snprintf module now should be good enough here.
22967         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
22968         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
22969         and gl_MODULE_INDICATOR([snprintf]), but the former enables
22970         GNULIB_SNPRINTF only for the test directory, and the latter
22971         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
22972         seems to suffice by itself.
22973
22974 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
22975
22976         alloca: one step towards thread-safety
22977         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
22978         need for a static variable.  All callers changed.  This does not
22979         make the alloca replacement thread-safe, but it's one step.
22980
22981         tests: minor indenting change
22982         * tests/init.sh: Sync from coreutils housekeeping patch
22983         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
22984         to keep lines within 80 columns.
22985
22986 2010-12-28  Jim Meyering  <meyering@redhat.com>
22987
22988         regex: don't infloop on persistent failing calloc
22989         * lib/regexec.c (build_trtable): Return failure indication upon
22990         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
22991         In glibc, this was fixed for version 2.13:
22992         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
22993
22994 2010-12-28  Bruno Haible  <bruno@clisp.org>
22995             Paul Eggert <eggert@cs.ucla.edu>
22996
22997         linkat: Make implementation robust against system behaviour variations.
22998         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
22999         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
23000         way, and to -2 if it needs a generic runtime test.
23001         * lib/linkat.c (solaris_optimized_link_immediate,
23002         solaris_optimized_link_follow): New functions.
23003         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
23004         (check_same_link): Use it.
23005
23006 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
23007
23008         New module 'unigbrk/base'.
23009         * modules/unigbrk/base: New file.
23010         * lib/unigbrk.in.h: New file.
23011
23012         New module 'unigbrk/uc-gbrk-prop'.
23013         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
23014         * modules/unigbrk/uc-gbrk-prop: New file.
23015         * lib/unigbrk/gbrkprop.h: New file.
23016         * lib/unigbrk/uc-gbrk-prop.c: New file.
23017
23018         New module 'unigbrk/uc-is-grapheme-break'.
23019         * modules/unigbrk/uc-is-grapheme-break: New file.
23020         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
23021         * lib/unigbrk/uc-is-grapheme-break.c: New file.
23022         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
23023         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
23024         * tests/unigbrk/GraphemeBreakTest.txt: New file.
23025
23026         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
23027
23028 2010-12-27  Bruno Haible  <bruno@clisp.org>
23029
23030         linkat test: Avoid failure on Solaris 11 2010-11.
23031         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
23032
23033 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
23034
23035         utimens: work around glibc rounding bug on more platforms
23036         * lib/utimens.c (fdutimens): Work around rounding bug even if
23037         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
23038         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
23039
23040 2010-12-27  Bruno Haible  <bruno@clisp.org>
23041
23042         select tests: Improve comments.
23043         * tests/test-select.c (do_select): Add comments.
23044
23045 2010-12-27  Bruno Haible  <bruno@clisp.org>
23046
23047         select tests: Safer way of handling timeout.
23048         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
23049         at every invocation.
23050
23051 2010-12-27  Bruno Haible  <bruno@clisp.org>
23052
23053         select tests: Use 'bool' where appropriate.
23054         * tests/test-select.c (connect_to_socket): Change argument type to
23055         'bool'.
23056
23057 2010-12-27  Bruno Haible  <bruno@clisp.org>
23058
23059         select tests: Use existing modules.
23060         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
23061         (configure.ac): Don't test for unistd.h.
23062         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
23063         declared in <unistd.h>.
23064
23065 2010-12-27  Bruno Haible  <bruno@clisp.org>
23066
23067         mbrtowc: Work around a Solaris 7 bug.
23068         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
23069         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
23070         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
23071         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
23072         MBRTOWC_NULL_ARG1_BUG.
23073         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
23074         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
23075         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
23076         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
23077
23078 2010-12-27  Jim Meyering  <meyering@redhat.com>
23079
23080         read-file.c: tweak syntax
23081         * lib/read-file.c (fread_file): Remove space after "*" in function
23082         definitions.
23083
23084 2010-12-27  Bruno Haible  <bruno@clisp.org>
23085
23086         times test: Avoid gcc warnings on OSF/1.
23087         * tests/test-times.c (main): Cast printf arguments from clock_t to
23088         'long int'.
23089
23090 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
23091
23092         utimens: work around glibc rounding bug on older Linux kernels
23093         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
23094         on Linux with a glibc whose utimes might not work, then work
23095         around a longstanding glibc bug involving rounding rather than
23096         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
23097         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
23098
23099 2010-12-26  Bruno Haible  <bruno@clisp.org>
23100
23101         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
23102         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
23103         _GL_CXXALIAS_SYS.
23104         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23105
23106 2010-12-26  Bruno Haible  <bruno@clisp.org>
23107
23108         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
23109         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
23110         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
23111         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
23112         looking for the declaration.
23113         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
23114         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
23115         problem.
23116         * doc/posix-functions/inet_pton.texi: Likewise.
23117
23118 2010-12-26  Bruno Haible  <bruno@clisp.org>
23119
23120         arpa_inet: Use the common idioms with C++ support.
23121         * lib/arpa_inet.in.h: Include c++defs.h.
23122         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
23123         support.
23124         * modules/arpa_inet (Depends-on): Add c++defs.
23125         (Makefile.am): Substitute the contents of c++defs.h.
23126         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
23127         * modules/arpa_inet-c++-tests: New file.
23128         * tests/test-arpa_inet-c++.cc: New file.
23129
23130 2010-12-25  Bruno Haible  <bruno@clisp.org>
23131
23132         Fix more C++ link errors on Solaris 8.
23133         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
23134         $(LIB_EACCESS).
23135         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
23136         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
23137         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
23138         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
23139         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
23140
23141 2010-12-25  Bruno Haible  <bruno@clisp.org>
23142
23143         printf-posix: Fix link error when a non-GCC compiler is used.
23144         * lib/stdio.in.h (printf): When not using GCC, override printf
23145         correctly.
23146         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23147
23148 2010-12-25  Bruno Haible  <bruno@clisp.org>
23149
23150         strerror_r-posix: Update doc.
23151         * doc/posix-functions/strerror_r.texi: Update doc about the return
23152         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
23153
23154 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
23155
23156         utimens: simplify the logic of the previous change
23157         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
23158         This should not affect whether the test succeeds or fails.
23159
23160         utimens: configure better on hosts with NFS clock skew
23161         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
23162         uses the clock of the local host.  It might use the clock of the
23163         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
23164         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
23165
23166 2010-12-25  Bruno Haible  <bruno@clisp.org>
23167
23168         ptsname test: Avoid failure on Solaris.
23169         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
23170         open a pseudo-terminal; don't use BSD-style ptys.
23171         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
23172
23173 2010-12-25  Bruno Haible  <bruno@clisp.org>
23174
23175         ptsname: Avoid ERANGE failure on some systems.
23176         * lib/ptsname.c (buffer): Increase size.
23177
23178 2010-12-25  Bruno Haible  <bruno@clisp.org>
23179
23180         rename, renameat: Avoid test failures at NFS mounted locations.
23181         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
23182         so that subsequent mkdir calls succeed.
23183
23184 2010-12-25  Bruno Haible  <bruno@clisp.org>
23185
23186         iswblank: Fix C++ link error on Solaris 8.
23187         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
23188         _GL_FUNCDECL_SYS.
23189
23190 2010-12-25  Bruno Haible  <bruno@clisp.org>
23191
23192         unistd: Fix C++ link error on Solaris 8.
23193         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
23194
23195 2010-12-25  Bruno Haible  <bruno@clisp.org>
23196
23197         readlink doc: Mention an old glibc bug.
23198         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
23199
23200 2010-12-25  Bruno Haible  <bruno@clisp.org>
23201
23202         fcntl-h: Fix for use of C++ on glibc systems.
23203         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
23204         also on glibc systems in C++ mode.
23205         Reported by Gary V. Vaughan <gary@gnu.org>.
23206
23207 2010-12-25  Bruno Haible  <bruno@clisp.org>
23208
23209         roundl-ieee: Make it work on OSF/1 5.1 with cc.
23210         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
23211
23212 2010-12-25  Bruno Haible  <bruno@clisp.org>
23213
23214         truncl-ieee: Make it work on OSF/1 5.1 with cc.
23215         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
23216         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
23217         test whether truncl works according to ISO C 99 with IEC 60559.
23218         * m4/truncl-ieee.m4: New file.
23219         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
23220         m4/signbit.m4.
23221         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
23222
23223 2010-12-25  Bruno Haible  <bruno@clisp.org>
23224
23225         ceill-ieee: Make it work on OSF/1 5.1 with cc.
23226         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
23227         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
23228         test whether ceill works according to ISO C 99 with IEC 60559.
23229         * m4/ceill-ieee.m4: New file.
23230         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
23231         m4/signbit.m4.
23232         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
23233
23234 2010-12-25  Bruno Haible  <bruno@clisp.org>
23235
23236         Ensure all prerequisites of <wchar.h> are included.
23237         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
23238         before <wchar.h>.
23239         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
23240         gl_MBRLEN_NUL_RETVAL): Likewise.
23241         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
23242         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
23243         AC_FUNC_MBRTOWC): Likewise.
23244         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
23245         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
23246         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
23247         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
23248         Likewise.
23249         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
23250         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
23251         (gl_WCHAR_H): Improve comments.
23252         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
23253
23254 2010-12-25  Bruno Haible  <bruno@clisp.org>
23255
23256         strtok_r: Fix C syntax error in autoconf macro.
23257         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
23258         characters in test program.
23259
23260 2010-12-24  Bruno Haible  <bruno@clisp.org>
23261
23262         ceil, trunc, round: Fix gcc warnings.
23263         * lib/ceil.c (MIN): Undefine before redefining.
23264         * lib/trunc.c (MIN): Likewise.
23265         * lib/round.c (MIN): Likewise.
23266         Include <math.h> first.
23267
23268 2010-12-24  Bruno Haible  <bruno@clisp.org>
23269
23270         select tests: Avoid failures on OSF/1 5.1.
23271         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
23272         failure of closing the last socket; it may fail with ECONNRESET.
23273
23274 2010-12-24  Eric Blake  <eblake@redhat.com>
23275
23276         stdint: avoid HP-UX 10.20 preprocessor bug
23277         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
23278         than #if.
23279         * tests/test-floor2.c (main): Likewise.
23280         Reported by Peter O'Gorman.
23281
23282         pipe: make obsoletion transition easier
23283         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
23284         * modules/pipe (Files): Include revived file.
23285         (Include): Drop reference, to mirror getdate's behavior.
23286
23287 2010-12-24  Bruno Haible  <bruno@clisp.org>
23288
23289         sys_socket: Hide mismatch of declarations on NonStop Kernel.
23290         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
23291         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
23292         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23293
23294 2010-12-24  Bruno Haible  <bruno@clisp.org>
23295
23296         gethostname: Ensure declaration on NonStop Kernel.
23297         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
23298         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23299
23300 2010-12-24  Bruno Haible  <bruno@clisp.org>
23301
23302         sys_select: Ensure all necessary types on NonStop Kernel.
23303         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
23304         include <sys/time.h>.
23305         * doc/posix-headers/sys_select.texi: Mention that it's missing on
23306         NonStop Kernel.
23307         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23308
23309 2010-12-24  Bruno Haible  <bruno@clisp.org>
23310
23311         sys_select: Remove unneeded include.
23312         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
23313         have <sys/select.h>.
23314
23315 2010-12-24  Bruno Haible  <bruno@clisp.org>
23316
23317         gethostname: Provide a fallback for HOST_NAME_MAX.
23318         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
23319         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
23320         instead.
23321         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23322
23323 2010-12-24  Bruno Haible  <bruno@clisp.org>
23324
23325         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
23326         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
23327         (SA_RESTART): Likewise.
23328         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23329
23330 2010-12-24  Bruno Haible  <bruno@clisp.org>
23331
23332         signal: Define NSIG.
23333         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
23334         * tests/test-signal.c (nsig): New variable.
23335         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23336
23337 2010-12-24  Bruno Haible  <bruno@clisp.org>
23338
23339         rename, renameat: Avoid test failures on OSF/1 5.1.
23340         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
23341         alternative error codes.
23342         * tests/test-renameat.c (main): Likewise.
23343
23344 2010-12-24  Bruno Haible  <bruno@clisp.org>
23345
23346         *printf: Detect large precisions bug on Solaris 10/SPARC.
23347         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
23348         by Paul Eggert.
23349         * tests/test-snprintf-posix.h (test_function): Add this test code here
23350         too.
23351         * tests/test-sprintf-posix.h (test_function): Likewise.
23352         * tests/test-vasnprintf-posix.c (test_function): Likewise.
23353         * tests/test-vasprintf-posix.c (test_function): Likewise.
23354         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
23355         around by gnulib.
23356         * doc/posix-functions/printf.texi: Likewise.
23357         * doc/posix-functions/snprintf.texi: Likewise.
23358         * doc/posix-functions/sprintf.texi: Likewise.
23359         * doc/posix-functions/vfprintf.texi: Likewise.
23360         * doc/posix-functions/vprintf.texi: Likewise.
23361         * doc/posix-functions/vsnprintf.texi: Likewise.
23362         * doc/posix-functions/vsprintf.texi: Likewise.
23363         * doc/posix-functions/dprintf.texi: Undo last commit.
23364         * doc/posix-functions/vdprintf.texi: Likewise.
23365
23366 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
23367
23368         tests: port test-fdutimensat.c to Solaris 8
23369         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
23370         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
23371         On Solaris 8, it fails with errno == ENOSYS, because there is no
23372         futimens (so it can't use the fd), and there is no lutimens (so it
23373         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
23374
23375         vsnprintf: make more consistent with snprintf; doc fixes
23376
23377         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
23378         the byte count return problem was promoted from the snprintf-posix
23379         to the snprintf module.
23380         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
23381         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
23382         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
23383         * tests/test-snprintf.c (main): Check the byte count returned.
23384         * tests/test-vsnprintf.c (main): Likewise.
23385
23386 2010-12-23  Eric Blake  <eblake@redhat.com>
23387
23388         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
23389         * modules/sigpipe (License): Relax license.
23390
23391 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
23392
23393         doc: document Solaris printf bug with large float precisions
23394         * doc/posix-functions/dprintf.texi (dprintf):
23395         * doc/posix-functions/fprintf.texi (fprintf):
23396         * doc/posix-functions/printf.texi (printf):
23397         * doc/posix-functions/snprintf.texi (snprintf):
23398         * doc/posix-functions/sprintf.texi (sprintf):
23399         * doc/posix-functions/vdprintf.texi (vdprintf):
23400         * doc/posix-functions/vfprintf.texi (vfprintf):
23401         * doc/posix-functions/vprintf.texi (vprintf):
23402         * doc/posix-functions/vsnprintf.texi (vsnprintf):
23403         * doc/posix-functions/vsprintf.texi (vsprintf):
23404         Mention that these functions mishandle large floating point
23405         precisions on Solaris 10.  The same bug is also present in Solaris
23406         8, and I assume earlier.  This causes "cd gnulib-tests; make
23407         check" to fail on Solaris 8 (and I assume, later) when building
23408         the latest coreutils, in test-vasprintf-posix's call to
23409         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
23410         the wide flavors (e.g., wprintf) so this patch just updates the
23411         documentation for the narrow ones.
23412
23413         test-posixtm.c: add two tests
23414         * tests/test-posixtm.c: Add two tests, to highlight the
23415         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
23416         around this bug; this is merely to document it.
23417
23418 2010-12-22  Bruno Haible  <bruno@clisp.org>
23419
23420         getlogin_r: Work around portability problem on OSF/1.
23421         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
23422         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
23423         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
23424         test for a truncated result.
23425         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
23426         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
23427         * modules/getlogin_r (Depends-on): Add memchr.
23428         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
23429
23430 2010-12-22  Bruno Haible  <bruno@clisp.org>
23431
23432         ptsname: Avoid test failure on OSF/1 5.1.
23433         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
23434         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
23435         (same_slave): New function.
23436         (main): Use it to compare ptsname's result with the expected file name.
23437
23438 2010-12-22  Bruno Haible  <bruno@clisp.org>
23439
23440         Port extended stdio modules to HP NonStop Kernel.
23441         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
23442         macros.
23443         * lib/fbufmode.c: Update comments.
23444         * lib/fflush.c: Likewise.
23445         * lib/fpurge.c: Likewise.
23446         * lib/freadable.c: Likewise.
23447         * lib/freadahead.c: Likewise.
23448         * lib/freading.c: Likewise.
23449         * lib/freadptr.c: Likewise.
23450         * lib/freadseek.c: Likewise.
23451         * lib/fseeko.c: Likewise.
23452         * lib/fseterr.c: Likewise.
23453         * lib/fwritable.c: Likewise.
23454         * lib/fwriting.c: Likewise.
23455         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23456
23457 2010-12-22  Bruno Haible  <bruno@clisp.org>
23458
23459         ttyname_r: Work around bug on OSF/1 5.1.
23460         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
23461         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
23462         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
23463         present.
23464         * lib/ttyname_r.c (ttyname_r): Update comments.
23465
23466 2010-12-22  Bruno Haible  <bruno@clisp.org>
23467
23468         round: Implement result sign according to IEEE 754.
23469         * lib/round.c (MIN, MINUS_ZERO): New macros.
23470         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
23471         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
23472         * tests/test-round-ieee.c (main): Likewise.
23473         * tests/test-roundl-ieee.c (main): Likewise.
23474
23475         trunc: Implement result sign according to IEEE 754.
23476         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
23477         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
23478         * tests/test-trunc2.c: Include minus-zero.h.
23479         (MINUS_ZERO): New macro.
23480         (trunc_reference): Keep in sync with lib/trunc.c.
23481         * tests/test-truncf2.c: Include minus-zero.h.
23482         (MINUS_ZERO): New macro.
23483         (truncf_reference): Keep in sync with lib/trunc.c.
23484         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
23485         * tests/test-trunc-ieee.c (main): Likewise.
23486         * tests/test-truncl-ieee.c (main): Likewise.
23487
23488         ceil: Implement result sign according to IEEE 754.
23489         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
23490         (FUNC): Return -0.0 for -1 < x < 0.
23491         * tests/test-ceil2.c: Include minus-zero.h.
23492         (MINUS_ZERO): New macro.
23493         (ceil_reference): Keep in sync with lib/ceil.c.
23494         * tests/test-ceilf2.c: Include minus-zero.h.
23495         (MINUS_ZERO): New macro.
23496         (ceilf_reference): Keep in sync with lib/ceil.c.
23497         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
23498         * tests/test-ceil-ieee.c (main): Likewise.
23499         * tests/test-ceill-ieee.c (main): Likewise.
23500
23501         floor: Implement result sign according to IEEE 754.
23502         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
23503         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
23504         * tests/test-floorf2.c (floorf_reference): Likewise.
23505         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
23506         * tests/test-floor-ieee.c (main): Likewise.
23507         * tests/test-floorl-ieee.c (main): Likewise.
23508
23509 2010-12-22  Bruno Haible  <bruno@clisp.org>
23510
23511         getaddrinfo: Update doc.
23512         * doc/posix-functions/gai_strerror.texi: Return type is also different
23513         on AIX and HP-UX.
23514
23515 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
23516
23517         getaddrinfo, inet_ntop: Update doc for Solaris.
23518         * doc/posix-functions/gai_strerror.texi: Return type is also an
23519         issue on Solaris 9 and earlier.
23520         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
23521         on Solaris 10 and earlier.
23522
23523 2010-12-21  Bruno Haible  <bruno@clisp.org>
23524
23525         New module 'roundl-ieee'.
23526         * modules/roundl-ieee: New file.
23527         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
23528         test whether roundl works according to ISO C 99 with IEC 60559.
23529         * m4/roundl-ieee.m4: New file.
23530         * modules/roundl-ieee-tests: New file.
23531         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
23532         * tests/test-roundl.c (main): Remove signbit tests.
23533         * modules/roundl-tests (Depends-on): Remove signbit.
23534         * doc/posix-functions/roundl.texi: Mention the new module.
23535
23536 2010-12-21  Bruno Haible  <bruno@clisp.org>
23537
23538         New module 'truncl-ieee'.
23539         * modules/truncl-ieee: New file.
23540         * modules/truncl-ieee-tests: New file.
23541         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
23542         * tests/test-truncl.c (main): Remove signbit tests.
23543         * modules/truncl-tests (Depends-on): Remove signbit.
23544         * doc/posix-functions/truncl.texi: Mention the new module.
23545
23546 2010-12-21  Bruno Haible  <bruno@clisp.org>
23547
23548         New module 'ceill-ieee'.
23549         * modules/ceill-ieee: New file.
23550         * modules/ceill-ieee-tests: New file.
23551         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
23552         * tests/test-ceill.c (main): Remove signbit tests.
23553         * modules/ceill-tests (Depends-on): Remove signbit.
23554         * doc/posix-functions/ceill.texi: Mention the new module.
23555
23556 2010-12-21  Bruno Haible  <bruno@clisp.org>
23557
23558         New module 'floorl-ieee'.
23559         * modules/floorl-ieee: New file.
23560         * modules/floorl-ieee-tests: New file.
23561         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
23562         * tests/test-floorl.c (main): Remove signbit tests.
23563         * modules/floorl-tests (Depends-on): Remove signbit.
23564         * doc/posix-functions/floorl.texi: Mention the new module.
23565
23566 2010-12-21  Bruno Haible  <bruno@clisp.org>
23567
23568         New module 'round-ieee'.
23569         * modules/round-ieee: New file.
23570         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
23571         whether round works according to ISO C 99 with IEC 60559.
23572         * m4/round-ieee.m4: New file.
23573         * modules/round-ieee-tests: New file.
23574         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
23575         * tests/test-round1.c (main): Remove signbit tests.
23576         * modules/round-tests (Depends-on): Remove 'signbit'.
23577         * doc/posix-functions/round.texi: Mention the new module.
23578
23579 2010-12-21  Bruno Haible  <bruno@clisp.org>
23580
23581         New module 'trunc-ieee'.
23582         * modules/trunc-ieee: New file.
23583         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
23584         whether trunc works according to ISO C 99 with IEC 60559.
23585         * m4/trunc-ieee.m4: New file.
23586         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
23587         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
23588         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
23589         * modules/trunc-ieee-tests: New file.
23590         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
23591         * tests/test-trunc1.c (main): Remove signbit tests.
23592         * modules/trunc-tests (Depends-on): Remove 'signbit'.
23593         * doc/posix-functions/trunc.texi: Mention the new module.
23594
23595 2010-12-21  Bruno Haible  <bruno@clisp.org>
23596
23597         New module 'ceil-ieee'.
23598         * modules/ceil-ieee: New file.
23599         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
23600         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
23601         ISO C 99 with IEC 60559.
23602         * m4/ceil-ieee.m4: New file.
23603         * modules/ceil (Files): Add lib/ceil.c.
23604         (Depends-on): Add 'float'.
23605         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
23606         * lib/math.in.h (ceil): New declaration.
23607         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
23608         REPLACE_CEIL.
23609         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
23610         * modules/ceil-ieee-tests: New file.
23611         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
23612         * tests/test-math-c++.cc: Check the signature of 'ceil'.
23613         * doc/posix-functions/ceil.texi: Mention the new module.
23614
23615 2010-12-21  Bruno Haible  <bruno@clisp.org>
23616
23617         New module 'floor-ieee'.
23618         * modules/floor-ieee: New file.
23619         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
23620         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
23621         ISO C 99 with IEC 60559.
23622         * m4/floor-ieee.m4: New file.
23623         * modules/floor (Files): Add lib/floor.c.
23624         (Depends-on): Add 'float'.
23625         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
23626         * lib/math.in.h (floor): New declaration.
23627         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
23628         REPLACE_FLOOR.
23629         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
23630         * modules/floor-ieee-tests: New file.
23631         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
23632         * tests/test-math-c++.cc: Check the signature of 'floor'.
23633         * doc/posix-functions/floor.texi: Mention the new module.
23634
23635 2010-12-21  Bruno Haible  <bruno@clisp.org>
23636
23637         New module 'roundf-ieee'.
23638         * modules/roundf-ieee: New file.
23639         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
23640         test whether roundf works according to ISO C 99 with IEC 60559.
23641         * m4/roundf-ieee.m4: New file.
23642         * modules/roundf-ieee-tests: New file.
23643         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
23644         * tests/test-roundf1.c (main): Remove signbit tests.
23645         * modules/roundf-tests (Depends-on): Remove 'signbit'.
23646         * doc/posix-functions/roundf.texi: Mention the new module.
23647
23648 2010-12-21  Bruno Haible  <bruno@clisp.org>
23649
23650         New module 'truncf-ieee'.
23651         * modules/truncf-ieee: New file.
23652         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
23653         test whether truncf works according to ISO C 99 with IEC 60559.
23654         * m4/truncf-ieee.m4: New file.
23655         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
23656         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
23657         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
23658         * modules/truncf-ieee-tests: New file.
23659         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
23660         * tests/test-truncf1.c (main): Remove signbit tests.
23661         * modules/truncf-tests (Depends-on): Remove 'signbit'.
23662         * doc/posix-functions/truncf.texi: Mention the new module.
23663
23664 2010-12-21  Bruno Haible  <bruno@clisp.org>
23665
23666         New module 'ceilf-ieee'.
23667         * modules/ceilf-ieee: New file.
23668         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
23669         test whether ceilf works according to ISO C 99 with IEC 60559.
23670         * m4/ceilf-ieee.m4: New file.
23671         * modules/ceilf-ieee-tests: New file.
23672         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
23673         * tests/test-ceilf1.c (main): Remove signbit tests.
23674         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
23675         * doc/posix-functions/ceilf.texi: Mention the new module.
23676
23677 2010-12-21  Bruno Haible  <bruno@clisp.org>
23678
23679         New module 'floorf-ieee'.
23680         * modules/floorf-ieee: New file.
23681         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
23682         test whether floorf works according to ISO C 99 with IEC 60559.
23683         * m4/floorf-ieee.m4: New file.
23684         * modules/floorf-ieee-tests: New file.
23685         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
23686         * tests/test-floorf1.c (main): Remove signbit tests.
23687         * modules/floorf-tests (Depends-on): Remove 'signbit'.
23688         * doc/posix-functions/floorf.texi: Mention the new module.
23689
23690 2010-12-21  Bruno Haible  <bruno@clisp.org>
23691
23692         Support for minus zero in autoconf macros.
23693         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
23694         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
23695         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
23696         * tests/minus-zero.h: Update comments.
23697
23698 2010-12-21  Bruno Haible  <bruno@clisp.org>
23699
23700         Tests for module 'ceil'.
23701         * modules/ceil-tests: New file.
23702         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
23703         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
23704
23705 2010-12-21  Bruno Haible  <bruno@clisp.org>
23706
23707         Tests for module 'floor'.
23708         * modules/floor-tests: New file.
23709         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
23710         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
23711
23712 2010-12-21  Bruno Haible  <bruno@clisp.org>
23713
23714         math: Fix indentation.
23715         * lib/math.in.h (floorf): Fix indentation.
23716
23717 2010-12-21  Bruno Haible  <bruno@clisp.org>
23718
23719         Fix cross-compilation guesses on Solaris.
23720         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
23721         not match "solaris2.10".
23722         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
23723         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
23724         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
23725
23726 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
23727
23728         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
23729         This fixes a problem observed with the latest coreutils snapshot
23730         that caused a test to fail on Solaris 8.  src/csplit.c's call
23731         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
23732         earlier, instead of returning the number of bytes that would have
23733         been generated; this causes csplit to incorrectly report memory
23734         exhaustion.
23735         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
23736         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
23737         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
23738         comments to match.
23739         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
23740         Fix typo in matching older versions of Solaris: "solaris2.10"
23741         is matched by the shell pattern "solaris2.[0-9]*".  This matters
23742         only for guessing while cross-compiling.
23743         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
23744
23745 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
23746
23747         ftoastr: fix comment again
23748         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
23749         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
23750         Also, simplify example a bit by using flags = 0.
23751
23752 2010-12-20  Bruno Haible  <bruno@clisp.org>
23753
23754         round*, trunc*: Update documentation regarding glibc.
23755         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
23756         * doc/posix-functions/round.texi: Likewise.
23757         * doc/posix-functions/roundl.texi: Likewise.
23758         * doc/posix-functions/truncf.texi: Likewise.
23759         * doc/posix-functions/trunc.texi: Likewise.
23760         * doc/posix-functions/truncl.texi: Likewise.
23761
23762 2010-12-20  Bruno Haible  <bruno@clisp.org>
23763
23764         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
23765         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
23766         * doc/posix-functions/round.texi: Likewise.
23767         * doc/posix-functions/roundl.texi: Likewise.
23768
23769 2010-12-20  Bruno Haible  <bruno@clisp.org>
23770
23771         ttyname_r: Add missing declaration on HP-UX 11.
23772         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
23773         HAVE_TTYNAME_R.
23774         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
23775         declared. Set HAVE_TTYNAME_R always.
23776         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
23777         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
23778         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
23779         HAVE_TTYNAME_R.
23780         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
23781
23782 2010-12-20  Bruno Haible  <bruno@clisp.org>
23783
23784         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
23785         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
23786         * doc/posix-functions/getlogin_r.texi: Likewise.
23787         * tests/test-getlogin.c: Include <errno.h>.
23788         (main): Avoid test failure on HP-UX 11.11.
23789         * tests/test-getlogin_r.c (main): Likewise.
23790
23791 2010-12-20  Bruno Haible  <bruno@clisp.org>
23792
23793         getlogin_r: Add missing declaration on HP-UX 11.
23794         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
23795         declared also when it exists as a function.
23796         * doc/posix-functions/getlogin_r.texi: Document this workaround.
23797
23798 2010-12-20  Bruno Haible  <bruno@clisp.org>
23799
23800         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
23801         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
23802         through wcrtomb.
23803
23804 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
23805
23806         ftoastr: fix comment
23807         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
23808         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
23809
23810 2010-12-19  Bruno Haible  <bruno@clisp.org>
23811
23812         isnan: Ensure it is a macro.
23813         * lib/math.in.h (isnan): Define as a macro if not already a macro.
23814         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
23815         Solaris.
23816
23817 2010-12-19  Bruno Haible  <bruno@clisp.org>
23818
23819         ldexpl test: Fix link error on OSF/1 5.1.
23820         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
23821
23822 2010-12-19  Bruno Haible  <bruno@clisp.org>
23823
23824         wctype: Make it work in C++ mode on OSF/1 5.1.
23825         * lib/wctype.in.h (iswblank): Declare but not define here.
23826         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
23827         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
23828         * modules/wctype (Files): Add lib/iswblank.c.
23829
23830 2010-12-19  Bruno Haible  <bruno@clisp.org>
23831
23832         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
23833         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
23834         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
23835
23836 2010-12-19  Bruno Haible  <bruno@clisp.org>
23837
23838         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
23839         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
23840         _POSIX_PII_SOCKET.
23841         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
23842         * doc/posix-functions/recvfrom.texi: Likewise.
23843         * doc/posix-functions/send.texi: Likewise.
23844         * doc/posix-functions/sendto.texi: Likewise.
23845
23846 2010-12-19  Bruno Haible  <bruno@clisp.org>
23847
23848         tcgetsid: Add missing declaration on OSF/1 5.1.
23849         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
23850         HAVE_TCGETSID.
23851         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
23852         Don't set HAVE_TCGETSID.
23853         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
23854         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
23855         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
23856         HAVE_TCGETSID.
23857         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
23858
23859 2010-12-19  Bruno Haible  <bruno@clisp.org>
23860
23861         stdio: Fix problem with popen() declaration on OSF/1 5.1.
23862         * lib/stdio.in.h: During the include_next statement, let recursive
23863         includes of this file include only the system header file.
23864
23865 2010-12-19  Bruno Haible  <bruno@clisp.org>
23866
23867         iconv_open: Fix regression from 2010-12-04.
23868         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
23869         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
23870
23871 2010-12-19  Bruno Haible  <bruno@clisp.org>
23872
23873         stdbool test: Avoid a gcc warning.
23874         * tests/test-stdbool.c (main): Fail if e1 is false.
23875         Reported by Jim Meyering.
23876
23877 2010-12-19  Jim Meyering  <meyering@redhat.com>
23878
23879         setenv: restore to working order
23880         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
23881         mistakenly removed.
23882         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
23883         HAVE_SETENV.
23884         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
23885         HAVE_SETENV.
23886
23887 2010-12-19  Bruno Haible  <bruno@clisp.org>
23888
23889         Document some different function declarations on OSF/1 5.1.
23890         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
23891         * doc/posix-functions/inet_ntop.texi: Likewise.
23892         * doc/posix-functions/gethostname.texi: Likewise.
23893         * lib/unistd.in.h (gethostname): Update comment.
23894
23895 2010-12-19  Bruno Haible  <bruno@clisp.org>
23896
23897         doc: Mention vasprintf-posix module.
23898         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
23899         the 'vasprintf-posix' module.
23900         * doc/glibc-functions/vasprintf.texi: Likewise.
23901
23902 2010-12-19  Bruno Haible  <bruno@clisp.org>
23903
23904         unsetenv: Add missing declaration on OSF/1 5.1.
23905         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
23906         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
23907         Don't set HAVE_UNSETENV. In the test program, set _BSD.
23908         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
23909         not HAVE_UNSETENV.
23910         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
23911         HAVE_UNSETENV.
23912         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
23913
23914 2010-12-19  Bruno Haible  <bruno@clisp.org>
23915
23916         setenv: Add missing declaration on OSF/1 5.1.
23917         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
23918         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
23919         declared. Don't set HAVE_SETENV.
23920         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
23921         not HAVE_SETENV.
23922         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
23923         HAVE_SETENV.
23924         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
23925
23926 2010-12-19  Bruno Haible  <bruno@clisp.org>
23927
23928         nl_langinfo tests: Avoid gcc warning.
23929         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
23930
23931 2010-12-19  Bruno Haible  <bruno@clisp.org>
23932
23933         mknod: Avoid error in C++ mode on OSF/1 with GCC.
23934         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
23935         _GL_CXXALIAS_SYS.
23936
23937 2010-12-19  Bruno Haible  <bruno@clisp.org>
23938
23939         stdbool: Relax test.
23940         * tests/test-stdbool.c (e): Don't require that casts from a variable's
23941         address to 'bool' work in static initializer, for compilers other than
23942         GCC.
23943
23944 2010-12-19  Bruno Haible  <bruno@clisp.org>
23945
23946         ftello: Add missing declaration on OSF/1 5.1.
23947         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
23948         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
23949         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
23950         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
23951         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
23952
23953 2010-12-19  Bruno Haible  <bruno@clisp.org>
23954
23955         fseeko: Add missing declaration on OSF/1 5.1.
23956         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
23957         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
23958         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
23959         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
23960         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
23961
23962 2010-12-19  Bruno Haible  <bruno@clisp.org>
23963
23964         fchdir: Add missing declaration on OSF/1 5.1.
23965         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
23966         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
23967         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
23968         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
23969         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
23970
23971 2010-12-19  Bruno Haible  <bruno@clisp.org>
23972
23973         relocatable-prog-wrapper: Separate from relocatable-prog.
23974         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
23975         uninstall-relocwrapper rule here.
23976         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
23977         Reported by Ian Beckwith <ianb@erislabs.net>.
23978
23979 2010-12-19  Bruno Haible  <bruno@clisp.org>
23980
23981         unistr/u8-mbsnlen: Add missing dependency.
23982         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
23983         Reported by Ian Beckwith <ianb@erislabs.net>.
23984
23985 2010-12-19  Bruno Haible  <bruno@clisp.org>
23986
23987         iconv: Make it possible again to use this module without 'iconv-h'.
23988         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
23989         if it is not defined.
23990         Reported by Ian Beckwith <ianb@erislabs.net>.
23991
23992 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
23993
23994         acl: port to Solaris 8 when copying from tmpfs to ufs
23995         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
23996         error number.  Problem observed on Solaris 8 with latest
23997         coreutils, with "mv A B", where A is on a tmpfs file system and B
23998         is on a ufs file system.  This caused coreutils' mv/part-symlink
23999         test to fail.
24000
24001         tests: set fail=0 at start
24002         * tests/init.sh (setup_): Move fail=0 initialization here ...
24003         (mktempd_): ... from here, so that tests can rely on fail being
24004         set to 0 initially.  This fixes a problem in coreutils; see:
24005         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
24006
24007 2010-12-18  Bruno Haible  <bruno@clisp.org>
24008
24009         memmem-simple: Stylistic changes.
24010         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
24011         Fix preprocessor directive indentation.
24012
24013 2010-12-15  Pádraig Brady <P@draigBrady.com>
24014
24015         memmem, memmem-simple: reorganize and expand empty needle check
24016         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
24017         functional checks to memmem-simple so that one has a fully functional
24018         memmem by using just this module.
24019         Restrict the performance only check to the memmem module.
24020         Also expand the empty needle check to ensure the correct
24021         pointer is returned, not just a non NULL pointer.
24022         * doc/glibc-functions/memmem.texi: Rearrange the portability
24023         documentation to correlate with the rearranged checks.
24024         Clarify exactly how the memmem and memmem-simple modules
24025         relate to each other.
24026
24027 2010-12-15  Pádraig Brady <P@draigBrady.com>
24028             Bruno Haible  <bruno@clisp.org>
24029
24030         Improve cross-compilation guesses for uClibc.
24031         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
24032         that uClibc does not have the glibc bug.
24033         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
24034         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
24035
24036 2010-12-14  Eric Blake  <eblake@redhat.com>
24037
24038         configmake: provide fallbacks for oldest supported autotools
24039         * m4/configmake.m4: New file.
24040         * modules/configmake (Files): Ship it.
24041         (configure.ac): Use it to guarantee fallbacks.
24042
24043 2010-12-13  Pádraig Brady <P@draigBrady.com>
24044
24045         read-file: Improve handling of large files
24046         * lib/read-file.c (fread_file): Minimize realloc()s
24047         for regular files, and better manage sizes around SIZE_MAX.
24048
24049 2010-12-13  Eric Blake  <eblake@redhat.com>
24050
24051         cloexec, fcntl: relax license
24052         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
24053         consent from all contributors.
24054         * modules/fcntl (License): Likewise.
24055
24056 2010-12-10  Bruno Haible  <bruno@clisp.org>
24057
24058         Tests for module 'pipe-posix'.
24059         * modules/pipe-posix-tests: New file.
24060         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
24061
24062 2010-12-10  Bruno Haible  <bruno@clisp.org>
24063
24064         pipe-posix: Make it work in C++ mode.
24065         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
24066         (pipe): Use common idiom, not a macro definition.
24067         * lib/pipe.c: New file.
24068         * m4/pipe.m4: New file.
24069         * modules/pipe-posix (Description): Enhance.
24070         (Files): Add lib/pipe.c, m4/pipe.m4.
24071         (configure.ac): Invoke gl_FUNC_PIPE.
24072         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
24073         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
24074         * tests/test-unistd-c++.cc: Check the signature of pipe.
24075
24076 2010-12-10  Bruno Haible  <bruno@clisp.org>
24077
24078         Rename module 'pipe' to 'spawn-pipe'.
24079         * modules/spawn-pipe: New file, renamed from modules/pipe.
24080         (Files, configure.ac, Makefile.am): Update.
24081         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
24082         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
24083         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
24084         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
24085         "spawn-pipe.h" instead of "pipe.h".
24086         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
24087         to gl_SPAWN_PIPE.
24088         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
24089         (Files, Makefile.am): Update.
24090         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
24091         Update.
24092         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
24093         Include "spawn-pipe.h" instead of "pipe.h".
24094         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
24095         * lib/javacomp.c: Likewise.
24096         * lib/javaversion.c: Likewise.
24097         * lib/pipe-filter-gi.c: Likewise.
24098         * lib/pipe-filter-ii.c: Likewise.
24099         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
24100         * modules/javacomp (Depends-on): Likewise.
24101         * modules/javaversion (Depends-on): Likewise.
24102         * modules/pipe-filter-gi (Depends-on): Likewise.
24103         * modules/pipe-filter-ii (Depends-on): Likewise.
24104         * MODULES.html.sh (Executing programs): Update.
24105         * NEWS: Mention the change.
24106
24107 2010-12-10  Eric Blake  <eblake@redhat.com>
24108
24109         pipe-posix: new module
24110         * modules/pipe-posix: New file.
24111         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
24112         (gl_UNISTD_H): Check for declaration.
24113         * modules/unistd (Makefile.am): Substitute it.
24114         * lib/unistd.in.h (pipe): Provide it for mingw.
24115         * doc/posix-functions/pipe.texi (pipe): Update documentation.
24116         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
24117
24118 2010-12-07  Bruno Haible  <bruno@clisp.org>
24119
24120         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
24121         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
24122         u8_strcmp_gnu.
24123         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
24124
24125 2010-12-06  Bruno Haible  <bruno@clisp.org>
24126
24127         Update internal documentation.
24128         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
24129
24130 2010-12-04  Bruno Haible  <bruno@clisp.org>
24131
24132         Put more information about failed tests into the test return codes.
24133         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
24134         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
24135         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
24136         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
24137         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
24138         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
24139         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
24140         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
24141         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
24142         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
24143         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
24144         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
24145         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
24146         * m4/stdint.m4 (gl_STDINT_H): Likewise.
24147         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
24148         returns a bit mask.
24149         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
24150         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
24151         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
24152         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
24153         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
24154         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
24155         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
24156         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
24157         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
24158         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
24159         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
24160         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
24161         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
24162         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
24163         * m4/link.m4 (gl_FUNC_LINK): Likewise.
24164         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
24165         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
24166         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
24167         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
24168         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
24169         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
24170         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
24171         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
24172         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
24173         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
24174         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
24175         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
24176         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
24177         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
24178         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
24179         gl_PRINTF_PRECISION): Likewise.
24180         * m4/regex.m4 (gl_REGEX): Likewise.
24181         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
24182         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
24183         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
24184         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
24185         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
24186         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
24187         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
24188         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
24189         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
24190         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
24191         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
24192         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
24193         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
24194         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
24195         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
24196         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
24197         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
24198         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
24199         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
24200         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
24201         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
24202         enumerated value.
24203         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
24204
24205 2010-12-04  Bruno Haible  <bruno@clisp.org>
24206
24207         Update for Solaris 11 2010-11.
24208         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
24209         Express, released in November 2010.
24210
24211 2010-12-04  Bruno Haible  <bruno@clisp.org>
24212
24213         nproc: Relax license.
24214         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
24215         and Paul Eggert.
24216         Requested by Ludovic Courtès <ludo@gnu.org>.
24217
24218 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
24219
24220         utimecmp: fine-grained src to nearby coarse-grained dest
24221
24222         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
24223         and the source is on a file system with higher-resolution time
24224         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
24225         not work, and the time stamps are close together, the algorithm to
24226         determine the exact resolution from the read-back mtime was buggy:
24227         it had a "!=" where it should have had an "==".  This bug has been
24228         in the code ever since it was introduced to gnulib.
24229         Problem reported by Dan Jacobson in
24230         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
24231
24232 2010-11-30  Bruno Haible  <bruno@clisp.org>
24233
24234         strerror_r-posix: Fix autoconf test.
24235         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
24236
24237 2010-11-28  Bruno Haible  <bruno@clisp.org>
24238             Paul Eggert  <eggert@cs.ucla.edu>
24239
24240         Tests for module 'getdomainname'.
24241         * modules/getdomainname-tests: New file.
24242         * tests/test-getdomainname.c: New file, based on
24243         tests/test-gethostname.c.
24244
24245 2010-11-28  Bruno Haible  <bruno@clisp.org>
24246             Paul Eggert  <eggert@cs.ucla.edu>
24247
24248         getdomainname: Use the system function when possible.
24249         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
24250         (getdomainname): Replace if needed. Provide the declaration if it is
24251         missing. Don't use _GL_CXXALIAS_SYS_CAST.
24252         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
24253         (getdomainname): When the system has getdomainname, call the system
24254         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
24255         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
24256         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
24257         found in libnsl. Look for the declaration also in <netdb.h>. Replace
24258         the function if its second argument is of type 'int' or if it is found
24259         in libnsl.
24260         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
24261         <sys/systeminfo.h> and sysinfo().
24262         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
24263         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
24264         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
24265         HAVE_GETDOMAINNAME.
24266         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
24267         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
24268         * doc/glibc-functions/getdomainname.texi: Document the problems with
24269         the getdomainname declaration.
24270
24271 2010-11-28  Bruno Haible  <bruno@clisp.org>
24272
24273         sys_socket: Ensure ss_family field on AIX.
24274         * lib/sys_socket.in.h (ss_family): New macro definition.
24275         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
24276         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
24277         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
24278         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
24279         * modules/sys_socket (Makefile.am): Substitute
24280         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
24281         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
24282
24283 2010-11-27  Bruno Haible  <bruno@clisp.org>
24284
24285         readline: Improve configure output.
24286         * m4/readline.m4 (gl_FUNC_READLINE): Make the
24287         "checking for readline..." result understandable.
24288
24289 2010-11-27  Bruno Haible  <bruno@clisp.org>
24290
24291         *printf-posix: Detect a bug on Solaris 10/x86.
24292         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
24293         for floating-point output.
24294         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
24295         directive.
24296         * tests/test-snprintf-posix.h (test_function): Likewise.
24297         * tests/test-sprintf-posix.h (test_function): Likewise.
24298         * tests/test-vasprintf-posix.c (test_function): Likewise.
24299         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
24300         * doc/posix-functions/printf.texi: Likewise.
24301         * doc/posix-functions/snprintf.texi: Likewise.
24302         * doc/posix-functions/sprintf.texi: Likewise.
24303         * doc/posix-functions/vfprintf.texi: Likewise.
24304         * doc/posix-functions/vprintf.texi: Likewise.
24305         * doc/posix-functions/vsnprintf.texi: Likewise.
24306         * doc/posix-functions/vsprintf.texi: Likewise.
24307         * doc/glibc-functions/obstack_printf.texi: Likewise.
24308         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
24309
24310 2010-11-27  Bruno Haible  <bruno@clisp.org>
24311
24312         Fix link error when module libunistring-optional is in use.
24313         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
24314         * modules/striconveha-tests (Makefile.am): Likewise.
24315
24316 2010-11-27  Bruno Haible  <bruno@clisp.org>
24317
24318         regex: Mention link dependencies.
24319         * modules/regex (Link): New section.
24320         * modules/rpmatch (Link): Likewise.
24321         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
24322
24323 2010-11-27  Bruno Haible  <bruno@clisp.org>
24324
24325         ftoastr: Fix compilation error on Solaris.
24326         * lib/ftoastr.c: Include <config.h>.
24327
24328 2010-11-27  Bruno Haible  <bruno@clisp.org>
24329
24330         getloadavg: Update documentation.
24331         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
24332
24333 2010-11-27  Bruno Haible  <bruno@clisp.org>
24334
24335         sys_socket: Fix test whether the functions are declared.
24336         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
24337         not <sys/select.h>.
24338
24339 2010-11-27  Bruno Haible  <bruno@clisp.org>
24340
24341         getpass: Make sure to get system declaration on some platforms.
24342         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
24343         gl_USE_SYSTEM_EXTENSIONS.
24344         * modules/getpass (Depends-on): Add extensions.
24345
24346 2010-11-26  Bruno Haible  <bruno@clisp.org>
24347
24348         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
24349         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
24350         'iconv' module is present.
24351         (ICONV_CONST): New macro.
24352         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
24353         ICONV_CONST.
24354         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
24355         set ICONV_CONST.
24356         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
24357         here.
24358         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
24359         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
24360         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
24361         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
24362         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
24363         present.
24364
24365 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
24366
24367         ftoastr: comment fix
24368         * lib/ftoastr.c: "little" -> "little or no" in comment
24369
24370 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
24371
24372         stdint: port to GCC 4.3 + OSX + Octave
24373         On this platform, stdint.h is buggy and defines int64_t to long
24374         long int.  The replacement defined it to long int, causing
24375         problems with C++ style name mangling.  Instead, trust the system
24376         definition if INT64_MAX is defined, and likewise for the unsigned
24377         variant.   Problem reported by Jarno Rajahalme in
24378         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
24379         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
24380         and don't mess with int64_t and INT64_MAX in this case.
24381         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
24382
24383 2010-11-24  Bruno Haible  <bruno@clisp.org>
24384
24385         doc: Corrections regarding MacOS X 10.4 and 10.5.
24386         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
24387         MacOS X.
24388         Reported by Simon Josefsson.
24389
24390 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
24391
24392         Uninstall ".bin" files installed by relocwrapper.
24393         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
24394         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
24395         unless it is already there.
24396
24397 2010-11-21  Bruno Haible  <bruno@clisp.org>
24398
24399         Update for NetBSD 5.0.
24400         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
24401         NetBSD; the test fails on NetBSD 5.0.
24402         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
24403         about NetBSD.
24404
24405 2010-11-21  Bruno Haible  <bruno@clisp.org>
24406
24407         Update for HP-UX 11.23 and HP-UX 11.31.
24408         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
24409         HP-UX.
24410
24411 2010-11-21  Bruno Haible  <bruno@clisp.org>
24412
24413         Update for MacOS X 10.5.
24414         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
24415         MacOS X; the test fails on MacOS X 10.5.8.
24416         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
24417         about MacOS X.
24418
24419 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
24420
24421         bootstrap: add bootstrap_sync option.
24422         See discussion at
24423         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
24424         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
24425         * build-aux/bootstrap: Accept --bootstrap-sync to update
24426         bootstrap if it is not identical to the local gnulib's
24427         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
24428         enable this by default.  Accept --no-bootstrap-sync to disable
24429         it.
24430
24431 2010-11-20  Bruno Haible  <bruno@clisp.org>
24432
24433         Ensure that <features.h> is included before __GLIBC__ is tested.
24434         * lib/printf-parse.h: Include <features.h>.
24435         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
24436         Reported by Mike Frysinger <vapier@gentoo.org>.
24437
24438         Ensure that <features.h> is included before __GLIBC__ is tested.
24439         * lib/wchar.in.h: Include <features.h>.
24440         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
24441         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
24442         Reported by Mike Frysinger <vapier@gentoo.org>.
24443
24444         Ensure that <features.h> is included before __GLIBC__ is tested.
24445         * lib/arpa_inet.in.h: Include <features.h>.
24446         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
24447         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
24448         Reported by Mike Frysinger <vapier@gentoo.org>.
24449
24450         Ensure that <features.h> is included before __GLIBC__ is tested.
24451         * build-aux/link-warning.h: Include <features.h>.
24452         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
24453         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
24454         Reported by Mike Frysinger <vapier@gentoo.org>.
24455
24456         Ensure that <features.h> is included before __GLIBC__ is tested.
24457         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
24458         Reported by Mike Frysinger <vapier@gentoo.org>.
24459
24460 2010-11-20  Bruno Haible  <bruno@clisp.org>
24461
24462         memmem: Fix autoconf test.
24463         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
24464
24465 2010-11-20  Bruno Haible  <bruno@clisp.org>
24466
24467         Port to uClibc.
24468         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
24469         * lib/fcntl.in.h: Likewise.
24470         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
24471         * lib/mbrtowc.c (mbrtowc): Likewise.
24472         * lib/relocatable.c (find_shared_library_fullname): Likewise.
24473         * lib/strerror_r.c: Likewise.
24474         * lib/unistr/u8-strnlen.c: Likewise.
24475         * lib/vasnprintf.c (decimal_point_char): Likewise.
24476         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
24477         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
24478         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
24479         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
24480         * tests/test-sigaction.c (handler, main): Likewise.
24481         * lib/freading.h: Treat uClibc like a non-glibc platform.
24482         * lib/freading.c: Likewise.
24483         * lib/gettext.h: Likewise.
24484         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
24485         Likewise.
24486         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
24487         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
24488         * lib/propername.c (proper_name_utf8): Likewise.
24489         * lib/spawn.in.h: Likewise.
24490         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
24491         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
24492         mem_cd_iconveh_internal): Likewise.
24493         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
24494         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
24495         strstr, strcasestr): Likewise.
24496         * lib/unicodeio.c (unicode_to_mb): Likewise.
24497         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
24498         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
24499         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
24500         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
24501         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
24502         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
24503         * lib/unistr/u8-stpncpy.c: Likewise.
24504         * lib/vasnprintf.c (VASNPRINTF): Likewise.
24505         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
24506         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
24507         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
24508         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
24509         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
24510         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
24511         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
24512         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
24513         Likewise.
24514         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
24515         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
24516         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
24517         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
24518         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
24519         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
24520         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
24521         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
24522         * tests/test-getopt.h (OPTIND_MIN): Likewise.
24523         * tests/test-striconveha.c (main): Likewise.
24524         * tests/test-vasnprintf-posix.c (test_function): Likewise.
24525         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
24526         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
24527         * doc/posix-functions/getline.texi: Likewise.
24528         Reported by Mike Frysinger <vapier@gentoo.org>.
24529
24530 2010-11-20  Bruno Haible  <bruno@clisp.org>
24531
24532         nproc: Fix condition.
24533         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
24534         HAVE_PTHREAD_AFFINITY_NP.
24535
24536 2010-11-20  Bruno Haible  <bruno@clisp.org>
24537
24538         Fix a comment.
24539         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
24540
24541 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
24542
24543         ftoastr: don't assume snprintf
24544         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
24545         Implement a subset of snprintf here, by using sprintf safely.
24546         * modules/ftoastr (Depends-on): Remove snprintf.
24547
24548 2010-11-19  Jim Meyering  <meyering@redhat.com>
24549
24550         test-rename.h: fix compilation failure
24551         * tests/test-rename.h (test_rename): Add omitted "}".
24552
24553 2010-11-17  Jim Meyering  <meyering@redhat.com>
24554
24555         maint.mk: add a URL discussing the no-@acronym policy
24556         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
24557
24558 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
24559
24560         ftoastr: depend on snprintf, improve comments
24561         * lib/ftoastr.c: Also mention Loitsch's draft.
24562         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
24563         needed in the current implementation, but it might simplify
24564         speeding up the code later.
24565         * modules/ftoastr: Depend on snprintf; this improves portability.
24566         Suggested by Bruno Haible in the same email.
24567
24568         ftoastr: port to hosts lacking strtof and strtold
24569         Problem reported by Bruno Haible in
24570         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
24571         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
24572         environment and strtold (and presumably strtof) are not available.
24573         * modules/ftoastr (Files): Add m4/c-strtod.m4.
24574         (configure.ac): Require gl_C99_STRTOLD.
24575
24576 2010-11-18  Bruno Haible  <bruno@clisp.org>
24577
24578         c-strtold: Avoid link error on AIX 7.
24579         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
24580         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
24581         (gl_C_STRTOLD): Test whether strtold_l exists.
24582         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
24583
24584 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
24585
24586         intprops: new macro INT_BITS_STRLEN_BOUND
24587         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
24588         ftoastr.h.  This exposes an internal of intprops.h that was formerly
24589         not exposed.  Also, it uses a slightly tighter bound than before;
24590         though this makes no practical difference, we might as well be as
24591         tight as we easily can.
24592
24593         ftoastr: new module, for lossless conversion of floats to short strings
24594         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
24595         * modules/ftoastr: New files.
24596
24597 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
24598
24599         bootstrap: port to Solaris sed
24600         * build-aux/bootstrap (get_version): Port to Solaris sed.
24601         See Ralf Wildenhues's note in
24602         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
24603
24604 2010-11-14  Jim Meyering  <meyering@redhat.com>
24605
24606         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
24607         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
24608         and move definition closer to sole use.
24609
24610 2010-11-13  Jim Meyering  <meyering@redhat.com>
24611
24612         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
24613         Now we require at least autoconf-2.59, which means the work-around
24614         is no longer needed.
24615         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
24616         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
24617         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
24618         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
24619         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
24620
24621 2010-11-13  Bruno Haible  <bruno@clisp.org>
24622
24623         rename, renameat: Avoid test failures at NFS mounted locations.
24624         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
24625         functions.
24626         (test_rename): Use assert_nonexistent.
24627         * tests/test-rename.c: Include <dirent.h>.
24628         * tests/test-renameat.c: Likewise.
24629         Reported by Gary V. Vaughan <gary@gnu.org>.
24630
24631         rename, renameat: Document Linux bug with NFS
24632         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
24633         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
24634         * doc/posix-functions/renameat.texi: Likewise.
24635         Suggested by Eric Blake.
24636
24637 2010-11-13  Bruno Haible  <bruno@clisp.org>
24638
24639         rename test: Add comments.
24640         * tests/test-rename.h (test_rename): Add structure and comments.
24641
24642 2010-11-13  Eric Blake  <eblake@redhat.com>
24643
24644         maintainer-makefile: cover a few more files
24645         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
24646         scripts generated within C files, for libvirt.
24647
24648 2010-11-13  Bruno Haible  <bruno@clisp.org>
24649
24650         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
24651         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
24652         character, return the number of bytes that belong together, not always
24653         1.
24654         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
24655         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
24656         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
24657         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
24658         number of bytes of an invalid character.
24659         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
24660         (main): Invoke it.
24661         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
24662         results.
24663         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
24664         malformed byte sequences.
24665         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
24666         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
24667         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
24668         Reported by Ben Pfaff and Paolo Bonzini.
24669
24670 2010-11-13  Bruno Haible  <bruno@clisp.org>
24671
24672         openat: Work around glibc bug with fchownat() and empty file names.
24673         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
24674         (gl_FUNC_FCHOWNAT): Invoke it.
24675         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
24676         * doc/posix-functions/fchownat.texi: Document the glibc bug.
24677         Reported by Gary V. Vaughan <gary@gnu.org>.
24678
24679 2010-11-13  Bruno Haible  <bruno@clisp.org>
24680
24681         openat: Ensure autoconf macro ordering.
24682         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
24683         gl_USE_SYSTEM_EXTENSIONS.
24684         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
24685
24686 2010-11-13  Bruno Haible  <bruno@clisp.org>
24687
24688         Update comments.
24689         * lib/unistr/u8-check.c: Update file name in comments.
24690         * lib/unistr/u8-mblen.c: Likewise.
24691         * lib/unistr/u8-prev.c: Likewise.
24692         * lib/unistr/u8-strmblen.c: Likewise.
24693         * lib/unistr/u8-strmbtouc.c: Likewise.
24694
24695 2010-11-13  Jim Meyering  <meyering@redhat.com>
24696
24697         tests: avoid test failure on Solaris 10 due to lack of PATH export
24698         * tests/test-update-copyright.sh: Don't forget to export PATH.
24699
24700         init.sh: ensure that IFS is defined, just in case...
24701         * tests/init.sh (setup_): Ensure that IFS is defined,
24702         so that saving and restoring it works as expected.  This
24703         appears to be useful at least for an old version of dash
24704         from a long time ago (RH 6).  See here for details:
24705         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
24706
24707         maint.mk: tighten "test a == b" check
24708         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
24709         test to files that contain something like #!/bin/sh.
24710         Without this, coreutils would get two false positives in
24711         the comments of C source files.
24712
24713 2010-11-12  Eric Blake  <eblake@redhat.com>
24714
24715         bootstrap: fix typo in previous attempt
24716         * build-aux/bootstrap (buildreq): Correct the grouping.
24717         Reported by Paul Eggert.
24718
24719         maintainer-makefile: prohibit test x == x
24720         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
24721         Based on a report by Matthias Bolte.
24722
24723         bootstrap: allow FreeBSD gzip
24724         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
24725         which has no '.' and goes to stderr.
24726         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
24727         Reported by Matthias Bolte.
24728
24729         maintainer-makefile: check for i18n setup
24730         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
24731         will likely work.
24732
24733 2010-11-12  Bruno Haible  <bruno@clisp.org>
24734
24735         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
24736         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
24737         * lib/nanosleep.c (nanosleep): Likewise.
24738
24739 2010-11-11  Bruno Haible  <bruno@clisp.org>
24740
24741         fcntl-h: Fix for use of C++ on glibc systems.
24742         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
24743         also on glibc systems in C++ mode.
24744         Reported by Gary V. Vaughan <gary@gnu.org>.
24745
24746 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
24747
24748         mknod: avoid false failure with dash
24749         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
24750
24751 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
24752
24753         unlink: Fix "is it should" typo in diagnostic.
24754         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
24755         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
24756
24757 2010-11-11  Bruno Haible  <bruno@clisp.org>
24758
24759         Tests for module 'strerror_r-posix'.
24760         * modules/strerror_r-posix-tests: New file.
24761         * tests/test-strerror_r.c: New file.
24762         * tests/test-string-c++.cc: Check the signature of strerror_r.
24763
24764         New module 'strerror_r-posix'.
24765         * lib/string.in.h (strerror_r): New declaration.
24766         * lib/strerror_r.c: New file.
24767         * m4/strerror_r.m4: New file.
24768         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
24769         of strerror_r.
24770         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
24771         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
24772         * modules/strerror_r-posix: New file.
24773         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
24774         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
24775         * doc/posix-functions/strerror_r.texi: Mention the new module and the
24776         portability problems.
24777
24778 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
24779
24780         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
24781         line is also considered for output. Quoted function name in shell
24782         command, so temporary files for functions like MyClass::operator()
24783         are removed correctly without errors.
24784
24785 2010-11-09  Bruno Haible  <bruno@clisp.org>
24786
24787         * doc/posix-functions/strerror.texi: List more failing platforms.
24788
24789         * doc/posix-functions/strerror.texi: Add a comment.
24790
24791 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
24792
24793         fdopendir: fix bug on MacOS X when low on file descriptors
24794
24795         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
24796         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
24797         All callers changed.
24798         (fdopendir): Invoke save_cwd at the top level, not after using
24799         multiple dup() calls to use up file descriptors.  Then retry
24800         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
24801         less than the maximum number of open file descriptors, because
24802         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
24803         on Mac OS X 10.6.4 for tar 1.24
24804         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
24805         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
24806         and for tar 1.25
24807         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
24808
24809 2010-11-07  Bruno Haible  <bruno@clisp.org>
24810
24811         vasnprintf: Support I flag on glibc systems.
24812         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
24813         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
24814         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
24815         snprintf function.
24816         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
24817         glibc systems.
24818         * tests/test-vasnprintf-posix3.c: New file.
24819         * modules/vasnprintf-posix-tests (Files): Add it.
24820         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
24821
24822 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
24823
24824         [html] Fix copy/paste bug: Use unique name for compiler warnings.
24825         * MODULES.html.sh: For compiler warnings, use name
24826         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
24827
24828 2010-11-05  Eric Blake  <eblake@redhat.com>
24829
24830         ceil, floor: avoid spurious failure with icc
24831         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
24832         [denormals-as-zero] when optimizing without -mieee-fp option.
24833         * tests/test-floorf2.c (floorf_reference): Likewise.
24834         * tests/test-ceilf1.c (dummy): New function.
24835         (main): Use it to outsmart icc's optimization.
24836         * tests/test-floorf1.c (dummy, main): Likewise.
24837
24838         tests: require working signbit
24839         * modules/ceilf-tests (Depends-on): Add signbit.
24840         * modules/ceill-tests (Depends-on): Likewise.
24841         * modules/floorf-tests (Depends-on): Likewise.
24842         * modules/floorl-tests (Depends-on): Likewise.
24843         * modules/round-tests (Depends-on): Likewise.
24844         * modules/roundf-tests (Depends-on): Likewise.
24845         * modules/roundl-tests (Depends-on): Likewise.
24846         * modules/trunc-tests (Depends-on): Likewise.
24847         * modules/truncf-tests (Depends-on): Likewise.
24848         * modules/truncl-tests (Depends-on): Likewise.
24849
24850         strtod: work around icc bug
24851         * lib/strtod.c (minus_zero): Define to working value.
24852         (strtod): Use it to avoid icc bug.
24853
24854         copysign: enhance tests
24855         * modules/copysign-tests (Files): Add minus-zero.h.
24856         * tests/test-copysign.c (main): Also test zeros.
24857
24858 2010-11-04  Eric Blake  <eblake@redhat.com>
24859
24860         ceil, floor, round, trunc: enhance tests of -0
24861         * tests/test-ceilf1.c (main): Ensure correct sign of result.
24862         * tests/test-ceill.c (main): Likewise.
24863         * tests/test-floorf1.c (main): Likewise.
24864         * tests/test-floorl.c (main): Likewise.
24865         * tests/test-round1.c (main): Likewise.
24866         * tests/test-roundf1.c (main): Likewise.
24867         * tests/test-roundl.c (main): Likewise.
24868         * tests/test-trunc1.c (main): Likewise.
24869         * tests/test-truncf1.c (main): Likewise.
24870         * tests/test-truncl.c (main): Likewise.
24871
24872 2010-11-04  Eric Blake  <eblake@redhat.com>
24873
24874         frexp, tests: work around ICC bug with -zero
24875         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
24876         works with more compilers.
24877         * tests/minus-zero.h: New file.
24878         * modules/ceilf-tests (Files): Include it.
24879         * modules/ceill-tests (Files): Likewise.
24880         * modules/floorf-tests (Files): Likewise.
24881         * modules/floorl-tests (Files): Likewise.
24882         * modules/frexp-nolibm-tests (Files): Likewise.
24883         * modules/frexp-tests (Files): Likewise.
24884         * modules/frexpl-nolibm-tests (Files): Likewise.
24885         * modules/frexpl-tests (Files): Likewise.
24886         * modules/isnan-tests (Files): Likewise.
24887         * modules/isnand-nolibm-tests (Files): Likewise.
24888         * modules/isnand-tests (Files): Likewise.
24889         * modules/isnanf-nolibm-tests (Files): Likewise.
24890         * modules/isnanf-tests (Files): Likewise.
24891         * modules/isnanl-nolibm-tests (Files): Likewise.
24892         * modules/isnanl-tests (Files): Likewise.
24893         * modules/round-tests (Files): Likewise.
24894         * modules/roundf-tests (Files): Likewise.
24895         * modules/roundl-tests (Files): Likewise.
24896         * modules/ldexpl-tests (Files): Likewise.
24897         * modules/signbit-tests (Files): Likewise.
24898         * modules/snprintf-posix-tests (Files): Likewise.
24899         * modules/sprintf-posix-tests (Files): Likewise.
24900         * modules/strtod-tests (Files): Likewise.
24901         * modules/trunc-tests (Files): Likewise.
24902         * modules/truncf-tests (Files): Likewise.
24903         * modules/truncl-tests (Files): Likewise.
24904         * modules/vsnprintf-posix-tests (Files): Likewise.
24905         * modules/vsprintf-posix-tests (Files): Likewise.
24906         * modules/vasnprintf-posix-tests (Files): Likewise.
24907         * modules/vasprintf-posix-tests (Files): Likewise.
24908         * tests/test-ceilf1.c (main): Use it.
24909         * tests/test-ceill.c (main): Likewise.
24910         * tests/test-floorf1.c (main): Likewise.
24911         * tests/test-floorl.c (main): Likewise.
24912         * tests/test-frexp.c (main): Likewise.
24913         * tests/test-frexpl.c (main): Likewise.
24914         * tests/test-isnan.c (main): Likewise.
24915         * tests/test-isnand.h (main): Likewise.
24916         * tests/test-isnanf.h (main): Likewise.
24917         * tests/test-isnanl.h (main): Likewise.
24918         * tests/test-ldexpl.c (main): Likewise.
24919         * tests/test-round.c (main): Likewise.
24920         * tests/test-roundf.c (main): Likewise.
24921         * tests/test-roundl.c (main): Likewise.
24922         * tests/test-signbit.c (test_signbitf, test_signbitd)
24923         (test_signbitl): Likewise.
24924         * tests/test-snprintf-posix.h (test_function): Likewise.
24925         * tests/test-sprintf-posix.h (test_function): Likewise.
24926         * tests/test-strtod.c (main): Likewise.
24927         * tests/test-trunc1.c (main): Likewise.
24928         * tests/test-truncf1.c (main): Likewise.
24929         * tests/test-truncl.c (main): Likewise.
24930
24931         isnanl: work around icc bug
24932         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
24933
24934 2010-11-03  Eric Blake  <eblake@redhat.com>
24935
24936         tests: fix compiler warnings
24937         * tests/test-getopt.h (test_getopt): Fix condition.
24938         * tests/test-getopt_long.h (test_getopt_long): Likewise.
24939         * tests/test-pipe2.c (main): Likewise.
24940         * tests/test-quotearg-simple.c (main): Avoid icc warning.
24941
24942         utimens: fix broken m4 test
24943         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
24944
24945 2010-10-28  Bruno Haible  <bruno@clisp.org>
24946
24947         posix_spawn*, getdtablesize: Relax license.
24948         * modules/posix_spawn (License): Change to LGPLv2+.
24949         * modules/posix_spawnp (License): Likewise.
24950         * modules/posix_spawn-internal (License): Likewise.
24951         * modules/posix_spawnattr_init (License): Likewise.
24952         * modules/posix_spawnattr_getflags (License): Likewise.
24953         * modules/posix_spawnattr_setflags (License): Likewise.
24954         * modules/posix_spawnattr_getpgroup (License): Likewise.
24955         * modules/posix_spawnattr_setpgroup (License): Likewise.
24956         * modules/posix_spawnattr_getschedparam (License): Likewise.
24957         * modules/posix_spawnattr_setschedparam (License): Likewise.
24958         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
24959         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
24960         * modules/posix_spawnattr_getsigdefault (License): Likewise.
24961         * modules/posix_spawnattr_setsigdefault (License): Likewise.
24962         * modules/posix_spawnattr_getsigmask (License): Likewise.
24963         * modules/posix_spawnattr_setsigmask (License): Likewise.
24964         * modules/posix_spawnattr_destroy (License): Likewise.
24965         * modules/posix_spawn_file_actions_init (License): Likewise.
24966         * modules/posix_spawn_file_actions_addclose (License): Likewise.
24967         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
24968         * modules/posix_spawn_file_actions_addopen (License): Likewise.
24969         * modules/posix_spawn_file_actions_destroy (License): Likewise.
24970         * modules/getdtablesize (License): Likewise.
24971         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
24972
24973 2010-10-26  Bruno Haible  <bruno@clisp.org>
24974
24975         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
24976         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
24977         Cygwin and mingw.
24978         Suggested by Eric Blake.
24979
24980 2010-10-26  Bruno Haible  <bruno@clisp.org>
24981
24982         stdio: Work around compilation error due to renameat() on Solaris 10.
24983         * lib/stdio.in.h: Include <unistd.h> on Solaris.
24984         * lib/renameat.c: Don't include <unistd.h> here.
24985         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
24986         Reported by Paul Eggert and Eric Blake.
24987
24988 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
24989
24990         renameat: port to Solaris 10, which declares renameat in unistd.h
24991
24992         * lib/renameat.c: Include unistd.h before stdio.h, because
24993         Solaris 10 declares renameat in unistd.h.  Problem encountered
24994         when building GNU tar 1.24 on Solaris 10.
24995
24996 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
24997
24998         fdopendir: fix C89 compilation
24999         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
25000         compilers.
25001
25002 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
25003
25004         inttostr: simplify by removing unnecessary redundancy
25005         * lib/anytostr.c: Don't include verify.h.
25006         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
25007         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
25008         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
25009         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
25010         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
25011         Likewise.
25012         * modules/inttostr (Depends-on): Remove 'verify'.
25013
25014 2010-10-23  Bruno Haible  <bruno@clisp.org>
25015
25016         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
25017         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
25018         Reported by Eric Blake.
25019
25020 2010-10-23  Bruno Haible  <bruno@clisp.org>
25021
25022         Tests: Fix LOCALE_JA on MirBSD 10.
25023         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
25024         to an UTF-8 locale.
25025         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
25026         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
25027         Reported by Eric Blake.
25028
25029 2010-10-21  Bruno Haible  <bruno@clisp.org>
25030
25031         nl_langinfo test: Avoid test failure on NetBSD 5.
25032         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
25033         Reported by Eric Blake.
25034
25035 2010-10-21  Eric Blake  <eblake@redhat.com>
25036
25037         c-stack: work around libsigsegv 2.8 bug
25038         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
25039         overflow on at least PowerPC64.
25040
25041 2010-10-17  Bruno Haible  <bruno@clisp.org>
25042
25043         userspec: Drop redundant file.
25044         * modules/userspec (Files): Remove lib/inttostr.h.
25045
25046 2010-10-17  Bruno Haible  <bruno@clisp.org>
25047
25048         nl_langinfo tests: Silence some warnings.
25049         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
25050         Reported by Jim Meyering.
25051
25052 2010-10-17  Bruno Haible  <bruno@clisp.org>
25053
25054         Make use of GCC's attribute __alloc_size__.
25055         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
25056         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
25057         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
25058         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
25059         __alloc_size__.
25060         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
25061         Suggested by Jim Meyering.
25062
25063 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
25064
25065         bootstrap: anchor .gitignore entries.
25066         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
25067         with...
25068         (insert_vc_ignore): ... this new function, which prepends `/' to
25069         all .gitignore entries before passing them to
25070         insert_sorted_if_absent.
25071
25072 2010-10-16  Bruno Haible  <bruno@clisp.org>
25073
25074         nextafter: Fix configure check.
25075         * modules/nextafter (configure.ac): Correct expected prototype.
25076
25077 2010-10-16  Bruno Haible  <bruno@clisp.org>
25078
25079         termios: Update documentation.
25080         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
25081
25082 2010-10-16  Bruno Haible  <bruno@clisp.org>
25083
25084         tests: Make them compile with TinyCC.
25085         * tests/test-strstr.c (main): Remove parentheses around array
25086         initializer.
25087
25088 2010-10-15  Eric Blake  <eblake@redhat.com>
25089
25090         ignore-value: make header idempotent
25091         * lib/ignore-value.h: Add double-inclusion guards.
25092         Reported by Stefan Berger.
25093
25094 2010-10-15  Jim Meyering  <meyering@redhat.com>
25095
25096         GNUmakefile: handle "stable" target, not "major"
25097         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
25098         lists in maint.mk and announce-gen.  Without this, "make stable"
25099         would fail to ensure that $(VERSION) is up to date.
25100
25101 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
25102
25103         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
25104         & co.
25105
25106 2010-10-14  Bruno Haible  <bruno@clisp.org>
25107
25108         vasnprintf: Don't set errno to 0.
25109         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
25110         block that sets it to 0.
25111         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
25112
25113 2010-10-14  Bruno Haible  <bruno@clisp.org>
25114
25115         socketlib: Fix.
25116         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
25117         gl_PREREQ_SYS_H_WINSOCK2.
25118         Reported by Ian Beckwith <ianb@erislabs.net>.
25119
25120 2010-10-13  Jim Meyering  <meyering@redhat.com>
25121
25122         test-select-stdin.c: avoid warn_unused_result warnings
25123         * tests/test-select-stdin.c: Include "macros.h".
25124         ASSERT that read and fflush succeed.
25125
25126 2010-10-13  Jim Meyering  <meyering@redhat.com>
25127
25128         git-version-gen: do require git-VC'd files in cwd
25129         * build-aux/git-version-gen: Reject a git version string
25130         if there are no commits associated with the current directory.
25131         This avoids an unlikely false-positive (unrelated dir whose parent
25132         repository also contains a tag matching v*), as pointed out
25133         by Giuseppe Scrivano in
25134         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
25135
25136 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
25137
25138         argv-iter: omit nonconforming declaration
25139         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
25140         enum arg_iter_err declaration, which doesn't conform to C99.
25141         Solaris 10 cc warns about this.
25142
25143 2010-10-13  Eric Blake  <eblake@redhat.com>
25144
25145         termios: fix compilation on mingw
25146         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
25147         (gl_TERMIOS_H): Adjust it on mingw.
25148         * modules/termios (Makefile.am): Substitute new key.
25149         * lib/termios.in.h (includes): Make include_next conditional.
25150         * doc/posix-headers/termios.texi (termios.h): Update
25151         documentation.
25152         Reported by Daniel P. Berrange.
25153
25154 2010-10-13  Jim Meyering  <meyering@redhat.com>
25155
25156         git-version-gen: don't require that .git/ be in the current dir
25157         * build-aux/git-version-gen: Adjust this script so that it works
25158         when run from any working directory beneath the top-level .git/-
25159         containing directory.  Inspired by a patch from Giuseppe Scrivano,
25160         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
25161
25162         test-select: avoid warn_unused_result warnings
25163         * tests/test-select.c: Include "macros.h".
25164         ASSERT that each call to read, write, and pipe succeeds.
25165         While not technically required, also check each "close".
25166         * modules/select-tests (Files): Add tests/macros.h.
25167
25168         test-symlinkat: remove declaration of unused local
25169         * tests/test-symlinkat.c (main): Remove unused local, "buf".
25170
25171         test-inttostr: avoid shadowing warnings
25172         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
25173         and use malloc rather than the stack for the same reason as
25174         mentioned in the comment justifying the other allocation.
25175
25176 2010-10-11  Bruno Haible  <bruno@clisp.org>
25177
25178         stdlib: Allow multiple gnulib generated replacements to coexist.
25179         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
25180         Reported by Sam Steingold <sds@gnu.org>.
25181
25182 2010-10-11  Jim Meyering  <meyering@redhat.com>
25183
25184         fix a documentation typo
25185         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
25186
25187 2010-10-11  Eric Blake  <eblake@redhat.com>
25188
25189         futimens: work around Solaris 11 bug
25190         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
25191         * tests/test-futimens.h (test_futimens): Enhance, rather than
25192         weaken test.
25193         * doc/posix-functions/futimens.texi (futimens): Document the bug.
25194
25195 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
25196
25197         Indentation.
25198         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
25199         higher-level operators more to the left.
25200
25201 2010-10-11  Jim Meyering  <meyering@redhat.com>
25202
25203         test-futimens: avoid unwarranted test failure on Solaris 5.11
25204         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
25205         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
25206         because it tries to dereference the NULL name argument.
25207
25208 2010-10-11  Bruno Haible  <bruno@clisp.org>
25209
25210         Indentation.
25211         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
25212         indentation.
25213
25214 2010-10-11  Jim Meyering  <meyering@redhat.com>
25215
25216         spawn.in.h: make indentation consistent with parentheses
25217         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
25218         Make indentation consistent with parentheses.
25219
25220 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
25221
25222         Fix mismatched parens in previous commit
25223         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
25224         parens.
25225
25226 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
25227
25228         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
25229
25230         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
25231         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
25232         * lib/malloca.c: Include "verify.h".
25233         (verify1): Remove, replacing with a verify call.
25234         * lib/relocwrapper.c (verify1): Likewise.
25235         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
25236         Likewise.
25237         * modules/malloca (Depends-on): Add 'verify'.
25238         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
25239         * modules/vasnprintf (Depends-on): Add 'verify'.
25240         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
25241         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
25242         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
25243         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
25244         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
25245         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
25246         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
25247
25248         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
25249
25250         Formerly the style was sometimes 2*X - 1, because the C standard
25251         was wrongly thought to disallow ?: in integral constant expressions.
25252         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
25253         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
25254         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
25255         * lib/stdint.in.h (_verify_intmax_size): Likewise.
25256         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
25257         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
25258         verify that time_t cannot be floating.
25259
25260 2010-10-08  Eric Blake  <eblake@redhat.com>
25261
25262         time: enforce recent POSIX ruling that time_t is integral
25263         * lib/time.in.h (__time_t_must_be_integral): Detect any
25264         problematic systems, allowing the rest of gnulib to assume POSIX.
25265
25266 2010-10-08  Jim Meyering  <meyering@redhat.com>
25267
25268         fdopendir: fix a bug on systems lacking openat and /proc support
25269         OpenBSD 4.7 is one such system.  The most noticeable effect was
25270         failure of any application making nontrivial use of fts: rm, du,
25271         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
25272           ./rm: traversal failed: `a': Bad file descriptor
25273         Debugging that, you see that even though FD 6 was closed just
25274         prior to the opendir call in fd_clone_opendir, its resulting
25275         dir->dd_fd was 8, rather than the expected value of 6:
25276
25277         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
25278         93                close (fd);
25279         (gdb) n
25280         94                dir = fd_clone_opendir (dupfd);
25281         (gdb) n
25282         95                saved_errno = errno;
25283         (gdb) p dir->dd_fd
25284         $11 = 8
25285
25286         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
25287         The problem is that on OpenBSD, fd_clone_opendir has to resort
25288         to using the old-style save/restore CWD mechanism, due to its
25289         lack of openat/proc support, and *that* would steal the FD (6)
25290         that opendir was supposed to use.
25291
25292         The fix is to squirrel away the desired FD so that save_cwd uses a
25293         different one, and then free the dest FD right before calling opendir.
25294         That guarantees opendir will use the required file descriptor.
25295
25296         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
25297
25298 2010-10-08  Bruno Haible  <bruno@clisp.org>
25299
25300         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
25301         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
25302
25303 2010-10-08  Bruno Haible  <bruno@clisp.org>
25304
25305         nanosleep: Make replacement POSIX compliant.
25306         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
25307         is out of range.
25308         Reported by Jim Meyering.
25309
25310 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
25311
25312         bootstrap: add hook for altering gnulib.mk, for Bison
25313         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
25314         the Bison bootstrapping process can rewrite file names and variables
25315         in this file before later parts of 'bootstrap' use the file.
25316         Bison wants to include lib/gnulib.mk from the top-level makefile,
25317         so it needs the file names in this file to be relative to the top
25318         level, not relative to lib; plus it needs variable names to be
25319         rewritten.
25320         (slurp): Use the new function.
25321
25322         bootstrap: reformat for readability
25323         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
25324
25325 2010-10-08  Eric Blake  <eblake@redhat.com>
25326
25327         docs: update cygwin progress
25328         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
25329         1.7.7.
25330         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
25331         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
25332         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
25333         * doc/posix-functions/carg.texi (carg): Likewise.
25334         * doc/posix-functions/cargf.texi (cargf): Likewise.
25335         * doc/posix-functions/casin.texi (casin): Likewise.
25336         * doc/posix-functions/casinf.texi (casinf): Likewise.
25337         * doc/posix-functions/casinh.texi (casinh): Likewise.
25338         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
25339         * doc/posix-functions/catan.texi (catan): Likewise.
25340         * doc/posix-functions/catanf.texi (catanf): Likewise.
25341         * doc/posix-functions/catanh.texi (catanh): Likewise.
25342         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
25343         * doc/posix-functions/ccos.texi (ccos): Likewise.
25344         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
25345         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
25346         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
25347         * doc/posix-functions/cexp.texi (cexp): Likewise.
25348         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
25349         * doc/posix-functions/cimag.texi (cimag): Likewise.
25350         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
25351         * doc/posix-functions/clog.texi (clog): Likewise.
25352         * doc/posix-functions/clogf.texi (clogf): Likewise.
25353         * doc/posix-functions/conj.texi (conj): Likewise.
25354         * doc/posix-functions/conjf.texi (conjf): Likewise.
25355         * doc/posix-functions/cpow.texi (cpow): Likewise.
25356         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
25357         * doc/posix-functions/cproj.texi (cproj): Likewise.
25358         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
25359         * doc/posix-functions/creal.texi (creal): Likewise.
25360         * doc/posix-functions/crealf.texi (crealf): Likewise.
25361         * doc/posix-functions/csin.texi (csin): Likewise.
25362         * doc/posix-functions/csinf.texi (csinf): Likewise.
25363         * doc/posix-functions/csinh.texi (csinh): Likewise.
25364         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
25365         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
25366         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
25367         * doc/posix-functions/ctan.texi (ctan): Likewise.
25368         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
25369         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
25370         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
25371         * doc/posix-headers/complex.texi (complex.h): Likewise.
25372
25373 2010-10-07  Jim Meyering  <meyering@redhat.com>
25374
25375         parse-datetime: avoid compilation failure on OpenBSD 4.7
25376         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
25377         This works around a compilation failure on OpenBSD 4.7:
25378         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
25379
25380 2010-10-07  Eric Blake  <eblake@redhat.com>
25381
25382         docs: update cygwin progress
25383         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
25384         1.7.6.
25385         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
25386         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
25387         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
25388         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
25389         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
25390         Likewise.
25391         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
25392         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
25393         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
25394         Likewise.
25395         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
25396         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
25397         Likewise.
25398         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
25399         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
25400         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
25401         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
25402         Likewise.
25403         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
25404         Likewise.
25405         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
25406
25407         docs: update parse-datetime history
25408         * doc/parse-datetime.texi (Authors of parse_datetime): Better
25409         documentation of this function's history and alternatives.
25410
25411         cygwin: use more robust version check
25412         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
25413         exclude an eventual cygwin 1.9.1.
25414         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
25415         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
25416         (gl_FUNC_STRCASESTR): Likewise.
25417         Reported by Bruno Haible.
25418
25419 2010-10-06  Bruno Haible  <bruno@clisp.org>
25420
25421         string, sys_select: Avoid #including large headers unless necessary.
25422         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
25423         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
25424         OSF/1, BeOS, Haiku.
25425         Reported by Jim Meyering.
25426
25427 2010-10-05  Eric Blake  <eblake@redhat.com>
25428
25429         memmem, strstr, strcasestr: fix bug with long periodic needle
25430         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
25431         periodic needle having false positive.
25432         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
25433         and cygwin 1.7.7.
25434         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
25435         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
25436         (gl_FUNC_STRCASESTR): Likewise.
25437         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
25438         * tests/test-memmem.c (main): Expose the bug.
25439         * tests/test-strcasestr.c (main): Likewise.
25440         * tests/test-strstr.c (main): Likewise.
25441         * tests/test-c-strcasestr.c (main): Likewise.
25442         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
25443         * doc/posix-functions/strstr.texi (strstr): Likewise.
25444         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
25445         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
25446
25447 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
25448
25449         parse-datetime: do some more renaming
25450         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
25451         parse_datetime, not get_date.  Mention the renaming.
25452         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
25453         in comments.
25454         * m4/bison.m4: Likewise.
25455
25456 2010-10-05  Eric Blake  <eblake@redhat.com>
25457
25458         parse-datetime: better name than get_date
25459         * NEWS: Reword the deprecation notice.
25460         * modules/get_date: Rename to modules/parse-datetime.
25461         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
25462         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
25463         * lib/get_date.y: Rename to lib/parse-datetime.y.
25464         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
25465         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
25466         * doc/getdate.texi: Provide fallback wrapper.
25467         * lib/getdate.h: Move guts, and wrap...
25468         * lib/parse-datetime.h: ...new file.
25469         * lib/parse-datetime.y (get_date): Rename...
25470         (parse_datetime): ...to this.
25471         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
25472         (gl_PARSE_DATETIME): ...to this.
25473         * doc/posix-functions/getdate.texi (get_date): Provide fallback
25474         documentation.
25475         * modules/getdate (Files): Provide fallback docs and header.
25476         (Notice, Depends-on): Update references.
25477         * tests/test-parse-datetime.c: Likewise.
25478         * DEPENDENCIES: Likewise.
25479         * MODULES.html.sh (Date and time <time.h>): Likewise.
25480         * doc/parse-datetime.texi (Date input formats)
25481         (Authors of parse_datetime): Likewise.
25482         * modules/parse-datetime (Files, configure.ac, Makefile.am)
25483         (Include): Likewise.
25484         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
25485         * gnulib-tool: Likewise.
25486         * m4/bison.m4 (gl_BISON): Likewise.
25487         Suggested by Bruno Haible.
25488
25489 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
25490
25491         more ports to Solaris tr, which needs [] around ranges
25492         * gnulib-tool: Solaris tr needs [] around ranges.
25493         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
25494         * tests/test-pipe-filter-gi1.c (main): Likewise.
25495         * tests/test-pipe-filter-ii1.c (main): Likewise.
25496
25497 2010-10-05  Eric Blake  <eblake@redhat.com>
25498
25499         bootstrap: fix Solaris regression
25500         * build-aux/bootstrap (check_versions): Solaris tr still needs []
25501         around ranges.
25502         Reported by Pádraig Brady.
25503
25504         bootstrap: work with pkg-config
25505         * build-aux/bootstrap (check_versions): Also transliterate - in
25506         prerequisite name.
25507         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
25508         prerequisites that were already found, to avoid confusion.
25509         Reported by Justin Clift.
25510
25511         faccessat: remove unused wrappers
25512         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
25513         presence of these wrappers dragged in -lgen on Solaris.
25514         Reported by Clemens Brogi; fix suggested by Paul Eggert.
25515
25516 2010-10-05  Jim Meyering  <meyering@redhat.com>
25517
25518         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
25519         * Makefile (sc_pragma_columns): New syntax-check rule.
25520
25521 2010-10-04  Bruno Haible  <bruno@clisp.org>
25522
25523         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
25524         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
25525         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
25526         Reported by Bruce Korb and Eric Blake.
25527
25528 2010-10-04  Bruno Haible  <bruno@clisp.org>
25529
25530         threadlib: Make option --with-libpth-prefix work.
25531         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
25532         use $LIBPTH, not just -lpth.
25533
25534 2010-10-04  Bruno Haible  <bruno@clisp.org>
25535
25536         Avoid line length limitation from HP NonStop system header files.
25537         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
25538         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
25539         * lib/ctype.in.h: Likewise.
25540         * lib/dirent.in.h: Likewise.
25541         * lib/errno.in.h: Likewise.
25542         * lib/fcntl.in.h: Likewise.
25543         * lib/float.in.h: Likewise.
25544         * lib/getopt.in.h: Likewise.
25545         * lib/iconv.in.h: Likewise.
25546         * lib/inttypes.in.h: Likewise.
25547         * lib/langinfo.in.h: Likewise.
25548         * lib/locale.in.h: Likewise.
25549         * lib/math.in.h: Likewise.
25550         * lib/netdb.in.h: Likewise.
25551         * lib/netinet_in.in.h: Likewise.
25552         * lib/poll.in.h: Likewise.
25553         * lib/pthread.in.h: Likewise.
25554         * lib/pty.in.h: Likewise.
25555         * lib/sched.in.h: Likewise.
25556         * lib/se-selinux.in.h: Likewise.
25557         * lib/search.in.h: Likewise.
25558         * lib/signal.in.h: Likewise.
25559         * lib/spawn.in.h: Likewise.
25560         * lib/stdarg.in.h: Likewise.
25561         * lib/stddef.in.h: Likewise.
25562         * lib/stdint.in.h: Likewise.
25563         * lib/stdio.in.h: Likewise.
25564         * lib/stdlib.in.h: Likewise.
25565         * lib/string.in.h: Likewise.
25566         * lib/strings.in.h: Likewise.
25567         * lib/sys_file.in.h: Likewise.
25568         * lib/sys_ioctl.in.h: Likewise.
25569         * lib/sys_select.in.h: Likewise.
25570         * lib/sys_socket.in.h: Likewise.
25571         * lib/sys_stat.in.h: Likewise.
25572         * lib/sys_time.in.h: Likewise.
25573         * lib/sys_times.in.h: Likewise.
25574         * lib/sys_utsname.in.h: Likewise.
25575         * lib/sys_wait.in.h: Likewise.
25576         * lib/sysexits.in.h: Likewise.
25577         * lib/termios.in.h: Likewise.
25578         * lib/time.in.h: Likewise.
25579         * lib/unistd.in.h: Likewise.
25580         * lib/wchar.in.h: Likewise.
25581         * lib/wctype.in.h: Likewise.
25582         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
25583         * modules/ctype (Makefile.am): Likewise.
25584         * modules/dirent (Makefile.am): Likewise.
25585         * modules/errno (Makefile.am): Likewise.
25586         * modules/fcntl-h (Makefile.am): Likewise.
25587         * modules/float (Makefile.am): Likewise.
25588         * modules/getopt-posix (Makefile.am): Likewise.
25589         * modules/iconv-h (Makefile.am): Likewise.
25590         * modules/inttypes (Makefile.am): Likewise.
25591         * modules/langinfo (Makefile.am): Likewise.
25592         * modules/locale (Makefile.am): Likewise.
25593         * modules/math (Makefile.am): Likewise.
25594         * modules/netdb (Makefile.am): Likewise.
25595         * modules/netinet_in (Makefile.am): Likewise.
25596         * modules/poll-h (Makefile.am): Likewise.
25597         * modules/pthread (Makefile.am): Likewise.
25598         * modules/pty (Makefile.am): Likewise.
25599         * modules/sched (Makefile.am): Likewise.
25600         * modules/search (Makefile.am): Likewise.
25601         * modules/selinux-h (Makefile.am): Likewise.
25602         * modules/signal (Makefile.am): Likewise.
25603         * modules/spawn (Makefile.am): Likewise.
25604         * modules/stdarg (Makefile.am): Likewise.
25605         * modules/stddef (Makefile.am): Likewise.
25606         * modules/stdint (Makefile.am): Likewise.
25607         * modules/stdio (Makefile.am): Likewise.
25608         * modules/stdlib (Makefile.am): Likewise.
25609         * modules/string (Makefile.am): Likewise.
25610         * modules/strings (Makefile.am): Likewise.
25611         * modules/sys_file (Makefile.am): Likewise.
25612         * modules/sys_ioctl (Makefile.am): Likewise.
25613         * modules/sys_select (Makefile.am): Likewise.
25614         * modules/sys_socket (Makefile.am): Likewise.
25615         * modules/sys_stat (Makefile.am): Likewise.
25616         * modules/sys_time (Makefile.am): Likewise.
25617         * modules/sys_times (Makefile.am): Likewise.
25618         * modules/sys_utsname (Makefile.am): Likewise.
25619         * modules/sys_wait (Makefile.am): Likewise.
25620         * modules/sysexits (Makefile.am): Likewise.
25621         * modules/termios (Makefile.am): Likewise.
25622         * modules/time (Makefile.am): Likewise.
25623         * modules/unistd (Makefile.am): Likewise.
25624         * modules/wchar (Makefile.am): Likewise.
25625         * modules/wctype (Makefile.am): Likewise.
25626
25627 2010-10-04  Bruno Haible  <bruno@clisp.org>
25628
25629         read-file tests: Avoid a test failure on NonStop Kernel.
25630         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
25631         a regular file.
25632         Reported by Joachim Schmitz <schmitz@hp.com>.
25633
25634 2010-10-03  Bruno Haible  <bruno@clisp.org>
25635
25636         gnulib-tool: Fixes for --create-testdir with --libtool.
25637         * gnulib-tool (func_get_automake_snippet): Don't augment
25638         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
25639         an executable.
25640         (func_create_testdir): Handle module 'alloca' like func_import.
25641         Reported by Bruce Korb <bruce.korb@gmail.com>.
25642
25643 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
25644
25645         Avoid some lines longer than 80 characters.
25646         * lib/stdint.in.h: Break long comment lines.
25647         * lib/math.in.h: Likewise.
25648         (_GL_NUM_UINT_WORDS): New macro, for readability.
25649         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
25650         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
25651         * lib/stdlib.in.h: Likewise.
25652         * lib/spawn.in.h: Likewise.
25653         * lib/sys_socket.in.h: Update an URL.
25654         * lib/sys_stat.in.h: Break long line.
25655
25656 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
25657
25658         Improve pmccabe2html.
25659         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
25660         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
25661         when the sources change. Remove the line in the HTML about "Used
25662         ranges" (which implied that there might be other unused ranges),
25663         rename "Resume" to "Summary" (easier to understand for more users).
25664         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
25665         styles, and some unnecessary blank lines.
25666
25667 2010-10-03  Bruno Haible  <bruno@clisp.org>
25668             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
25669
25670         acl: Add support for ACLs on NonStop Kernel.
25671         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
25672         Check whether the function aclsort() exists.
25673         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
25674         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
25675         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
25676         (acl_nontrivial [HAVE_ACLSORT]: New function.
25677         (file_has_acl): Implement for NonStop Kernel.
25678         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
25679         (qset_acl): Implement for NonStop Kernel.
25680         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
25681         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
25682         (main): Implement for NonStop Kernel.
25683         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
25684         Kernel. Handle this flavor.
25685         * tests/test-set-mode-acl.sh: Likewise.
25686         * tests/test-copy-acl.sh: Likewise.
25687         * tests/test-copy-file.sh: Likewise.
25688
25689 2010-10-03  Bruno Haible  <bruno@clisp.org>
25690
25691         Info about ACLs on NonStop Kernel.
25692         * doc/acl-resources.txt: Add info about NonStop Kernel.
25693         References by Joachim Schmitz <schmitz@hp.com>.
25694
25695 2010-10-02  Bruno Haible  <bruno@clisp.org>
25696
25697         Define missing EDQUOT on NonStop Kernel.
25698         * lib/errno.in.h (EDQUOT): Assign a value if missing.
25699         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
25700         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
25701         missing.
25702         * doc/posix-headers/errno.texi: Mention the NSK bug.
25703         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
25704         Reported by Joachim Schmitz <schmitz@hp.com>.
25705
25706 2010-10-02  Bruno Haible  <bruno@clisp.org>
25707
25708         Update doc for POSIX:2008.
25709         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
25710         Update URL of POSIX specification.
25711
25712 2010-10-02  Bruno Haible  <bruno@clisp.org>
25713
25714         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
25715         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
25716         from gnulib, not from Automake.
25717
25718 2010-10-02  Bruno Haible  <bruno@clisp.org>
25719
25720         New module 'system-posix'.
25721         * modules/system-posix: New file.
25722         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
25723         module is present.
25724         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
25725         GNULIB_SYSTEM_POSIX.
25726         * modules/stdlib (Depends-on): Remove sys_wait.
25727         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
25728         * doc/posix-functions/system.texi: Mention the new module.
25729         * doc/posix-headers/stdlib.texi: Likewise.
25730         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
25731         define test_sys_wait_macros to a no-op.
25732         Reported by Sam Steingold <sds@gnu.org>.
25733
25734 2010-09-30  Bruno Haible  <bruno@clisp.org>
25735
25736         More renaming from 'getdate' to 'get_date'.
25737         * doc/get_date.texi: Renamed from doc/getdate.texi.
25738         * modules/get_date (Files): Update.
25739         * MODULES.html.sh (Date and time <time.h>): Update.
25740         * DEPENDENCIES: Update.
25741         * gnulib-tool: Update comment.
25742         * m4/bison.m4 (gl_BISON): Likewise.
25743         * m4/get_date.m4 (gl_GET_DATE): Likewise.
25744
25745 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
25746
25747         bootstrap: support ACLOCAL_FLAGS during aclocal
25748         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
25749         can add additional -I dir for third-party .m4 files.
25750
25751 2010-09-30  Eric Blake  <eblake@redhat.com>
25752
25753         bootstrap: use glibtoolize on MacOS
25754         * build-aux/bootstrap (check_versions): Convert libtool into
25755         libtoolize.
25756         (tool search): Move libtool check earlier, and look for
25757         glibtoolize for MacOS.
25758         (gnulib_tool_options): Auto-add --libtool when appropriate.
25759         Reported by Justin Clift.
25760
25761         poll: fix typo that broke test on MacOS
25762         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
25763         Reported by Justin Clift.
25764
25765         getdate: rename to get_date
25766         Note: getdate.h is not renamed, to minimize client impact.
25767         * modules/getdate: Mark obsolete.  Move old contents...
25768         * modules/get_date: ...to new module name.
25769         * modules/getdate-tests: Move...
25770         * modules/get_date-tests: ...here.
25771         * m4/getdate.m4: Move...
25772         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
25773         * lib/getdate.y: Move...
25774         * lib/get_date.y: ...here.
25775         * tests/test-getdate.c: Move...
25776         * tests/test-get_date.c: ...here.
25777         * doc/posix-functions/getdate.texi (getdate): Update name.
25778         * NEWS: Mention the change.
25779
25780 2010-09-29  Bruno Haible  <bruno@clisp.org>
25781
25782         Separate the module 'waitpid' from the module 'sys_wait'.
25783         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
25784         present.
25785         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
25786         gl_MODULE_INDICATOR_FOR_TESTS.
25787         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
25788         * modules/sys_wait (Depends-on): Remove waitpid.
25789         (Makefile.am): Substitute GNULIB_WAITPID.
25790         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
25791         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
25792         signature only if the 'waitpid' module is present.
25793         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
25794         * NEWS: Mention the change.
25795         * modules/grantpt (Depends-on): Add waitpid.
25796         * modules/wait-process (Depends-on): Likewise.
25797
25798 2010-09-29  Bruno Haible  <bruno@clisp.org>
25799
25800         More tests for module 'sys_wait'.
25801         * modules/sys_wait-c++-tests: New file.
25802         * tests/test-sys_wait-c++.cc: New file.
25803         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
25804         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
25805
25806 2010-09-29  Bruno Haible  <bruno@clisp.org>
25807
25808         New module 'waitpid'.
25809         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
25810         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
25811         Don't include <process.h>.
25812         (waitpid): Declare only, using modern idiom.
25813         * m4/waitpid.m4: New file.
25814         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
25815         * modules/waitpid: New file.
25816         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
25817         (Makefile.am): Update.
25818         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
25819
25820 2010-09-28  Bruno Haible  <bruno@clisp.org>
25821
25822         poll: Assume ANSI C.
25823         * lib/poll.c (poll): Use an ANSI C declaration.
25824
25825 2010-09-28  Bruno Haible  <bruno@clisp.org>
25826
25827         poll-h: Create poll.h on all platforms.
25828         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
25829         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
25830         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
25831         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
25832         (gl_REPLACE_POLL_H): Don't set POLL_H.
25833         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
25834         * modules/poll-h (Depends-on): Add include_next.
25835         (Makefile.am): Create poll.h unconditionally. Substitute also
25836         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
25837
25838 2010-09-28  Bruno Haible  <bruno@clisp.org>
25839
25840         Tests for module 'poll-h'.
25841         * modules/poll-h-c++-tests: New file.
25842         * tests/test-poll-h-c++.cc: New file.
25843
25844         Tests for module 'poll-h'.
25845         * modules/poll-h-tests: New file.
25846         * tests/test-poll-h.c: New file.
25847
25848 2010-09-28  Bruno Haible  <bruno@clisp.org>
25849
25850         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
25851         * modules/poll-h (Depends-on): Add 'extensions'.
25852
25853 2010-09-28  Bruno Haible  <bruno@clisp.org>
25854
25855         New module 'poll-h'.
25856         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
25857         (poll): Use modern idiom.
25858         * modules/poll-h: New file.
25859         * modules/poll (Files): Remove lib/poll.in.h.
25860         (Depends-on): Add poll-h.
25861         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
25862         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
25863         * m4/poll_h.m4: New file.
25864         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
25865         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
25866         and invoke gl_REPLACE_POLL_H.
25867         * lib/poll.c: Use common idiom.
25868         * tests/test-poll.c: Likewise.
25869         * doc/posix-headers/poll.texi: Mention the poll-h module.
25870         Suggested by Eric Blake.
25871
25872 2010-09-26  Bruno Haible  <bruno@clisp.org>
25873
25874         sys_wait: Implement WSTOPSIG.
25875         * lib/sys_wait.in.h (WSTOPSIG): New macro.
25876         Reported by Simon Josefsson.
25877
25878 2010-09-26  Simon Josefsson  <simon@josefsson.org>
25879
25880         stdlib, sys_wait: Avoid compilation error on mingw.
25881         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
25882
25883 2010-09-26  Bruno Haible  <bruno@clisp.org>
25884
25885         stdlib tests: Avoid code duplication.
25886         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
25887         * modules/sys_wait-tests (Files): Likewise.
25888         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
25889         * tests/test-stdlib.c: Include test-sys_wait.h.
25890         (main): Invoke test_sys_wait_macros.
25891         * tests/test-sys_wait.c: Include test-sys_wait.h.
25892         (main): Invoke test_sys_wait_macros.
25893
25894 2010-09-25  Simon Josefsson  <simon@josefsson.org>
25895
25896         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
25897         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
25898         sure Windows sockets are working before calling getaddrinfo.
25899         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
25900         * doc/gnulib.texi (Windows sockets): Fix typo.
25901
25902 2010-09-25  Bruno Haible  <bruno@clisp.org>
25903
25904         Tests for module 'regex-quote'.
25905         * modules/regex-quote-tests: New file.
25906         * tests/test-regex-quote.c: New file.
25907
25908         New module 'regex-quote'.
25909         * lib/regex-quote.h: New file.
25910         * lib/regex-quote.c: New file.
25911         * modules/regex-quote: New file.
25912         Suggested by Reuben Thomas <rrt@sc3d.org>.
25913
25914 2010-09-24  Bruno Haible  <bruno@clisp.org>
25915
25916         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
25917         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
25918
25919 2010-09-23  Bruno Haible  <bruno@clisp.org>
25920
25921         setenv: Relax license.
25922         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
25923         Blake.
25924         Requested by Eric Blake.
25925
25926 2010-09-22  Bruno Haible  <bruno@clisp.org>
25927
25928         termios: Relax license.
25929         * modules/termios (License): Change to LGPLv2+.
25930         Requested by Eric Blake.
25931
25932 2010-09-22  Bruno Haible  <bruno@clisp.org>
25933
25934         threadlib: Allow the package to change the default to 'no'.
25935         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
25936         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
25937         Reported by Paul Eggert.
25938
25939 2010-09-22  Pádraig Brady  <P@draigbrady.com>
25940             Bruno Haible  <bruno@clisp.org>
25941
25942         Fix endless loop in mbmemcasecoll.
25943         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
25944         byte.
25945         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
25946
25947 2010-09-22  Bruno Haible  <bruno@clisp.org>
25948
25949         Tests for module 'memcoll'.
25950         * modules/memcoll-tests: New file.
25951         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
25952
25953         memcoll, xmemcoll: Clarify size vs. length.
25954         * modules/memcoll.c (memcoll0): Clarify specification.
25955         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
25956         passed to collate_error.
25957
25958 2010-09-22  Bruno Haible  <bruno@clisp.org>
25959
25960         Tests for module 'memcasecmp'.
25961         * modules/memcasecmp-tests: New file.
25962         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
25963
25964 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
25965
25966         * lib/pthread.in.h: Add split double-inclusion guard, and include
25967         system <pthread.h> if there is one.  Use @@-style as in other
25968         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
25969         pthread.h doesn't.
25970         (pthread_mutexattr_destroy, pthread_mutexattr_init):
25971         (pthread_mutexattr_settype, pthread_mutex_trylock):
25972         New static inline functions, if there's no system <pthread.h>.
25973         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
25974         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
25975         Approximate with mutexes if the system lacks spinlocks, as in
25976         MacOS.
25977         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
25978         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
25979         @@-style.  Check for spinlocks separately.
25980         (gl_PTHREAD_DEFAULTS): New macro.
25981         * modules/pthread: Redo to use a more typical style for in.h files.
25982
25983 2010-09-21  Eric Blake  <eblake@redhat.com>
25984
25985         net_if: enhance tests
25986         * tests/test-net_if.c (main): Move signature checks earlier.
25987         Print failures to stderr.
25988         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
25989         Document the bug that we do not yet fix.
25990
25991 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
25992
25993         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
25994         about gnulib, not GSS.
25995
25996 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
25997
25998         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
25999         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
26000         for Emacs.
26001         * build-aux/pmccabe2html: Make Makefile.am example code more
26002         cut-and-paste friendly.
26003
26004 2010-09-21  Simon Josefsson  <simon@josefsson.org>
26005
26006         * tests/test-net_if.c: New file.
26007         * modules/net_if-tests: New file.
26008
26009 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
26010
26011         pthread: add pthread_spin_destroy
26012         * lib/pthread.in.h (pthread_spin_destroy): New function.
26013
26014 2010-09-19  Bruno Haible  <bruno@clisp.org>
26015
26016         gnulib-tool: Fix --help output.
26017         * gnulib-tool (func_usage): Fix help message.
26018         Reported by Reuben Thomas <rrt@sc3d.org>.
26019
26020 2010-09-18  Jim Meyering  <meyering@redhat.com>
26021
26022         maint.mk: avoid unexpanded \n in two diagnostics
26023         * top/maint.mk (sc_prohibit_always_true_header_tests):
26024         Don't use a literal \n in a halt=... assignment.  It would not be
26025         expanded, and the two \n bytes would appear in the diagnostic output
26026         rather than the desired newline.  Use halt=$$(printf ... instead.
26027         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
26028
26029 2010-09-18  Bruno Haible  <bruno@clisp.org>
26030
26031         netinet_in: Doc tweak.
26032         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
26033         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
26034
26035 2010-09-18  Jim Meyering  <meyering@redhat.com>
26036
26037         init.sh: correct an outdated comment
26038         * tests/init.sh (create_exe_shims_):  s/function/alias/
26039
26040         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
26041         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
26042         a file named "*.exe" is removed between the glob expansion and the
26043         processing of that oddly named file.
26044
26045 2010-09-17  Eric Blake  <eblake@redhat.com>
26046
26047         mirbsd: add some more support
26048         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
26049         in BSD family.
26050         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
26051         devices as OpenBSD.
26052         * m4/host-os.m4 (mirbsd): Add MirBSD.
26053
26054         tests: fix unportable assumption on sys/wait.h
26055         * tests/test-sys_wait.c (main): Relax test.
26056         * tests/test-stdlib.c (main): Likewise.
26057
26058         init.sh: accommodate directory with no .exes
26059         * tests/init.sh: Accomodate directory containing only scripts.
26060
26061         tests: avoid compiler warning
26062         * tests/test-stdlib.c (main): Use the variable.
26063
26064         fdutimens, fdutimensat: update signature, again
26065         * lib/utimens.h (gl_futimens): Delete, and move signature...
26066         (fdutimens): ...here.
26067         (fdutimensat): Rearrange signature.
26068         (lutimensat): Rename variable for clarity.
26069         * lib/fdutimensat.c (fdutimensat): Update signature.
26070         * lib/utimens.c (fdutimens): Likewise.
26071         (gl_futimens): Delete.
26072         (utimens, lutimens): Update callers.
26073         * lib/futimens.c (futimens): Likewise.
26074         * tests/test-fdutimensat.c: Likewise.
26075         * tests/test-utimens.c: Likewise.
26076         * tests/test-futimens.h: Update comment.
26077         * NEWS: Mention this.
26078         Suggested by Paul Eggert.
26079
26080 2010-09-17  Bruno Haible  <bruno@clisp.org>
26081
26082         Take over the maintenance of some older macros from Autoconf.
26083         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
26084         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
26085         GNU Autoconf.
26086         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
26087         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
26088
26089 2010-09-17  Eric Blake  <eblake@redhat.com>
26090
26091         fdutimensat: drop atflag validation
26092         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
26093         with valid fd, to close a race scenario where futimens is
26094         unsupported and FILE was replaced by a symlink.
26095         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
26096         accordingly.
26097         Suggested by Paul Eggert.
26098
26099 2010-09-16  Bruno Haible  <bruno@clisp.org>
26100
26101         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
26102         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
26103
26104 2010-09-16  Bruno Haible  <bruno@clisp.org>
26105
26106         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
26107         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
26108         login_tty exists.
26109         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
26110
26111 2010-09-16  Bruno Haible  <bruno@clisp.org>
26112
26113         login_tty: Make the replacement code work on BSD systems.
26114         * lib/login_tty.c: Include <sys/ioctl.h>.
26115         (login_tty): Use ioctl TIOCSCTTY when available.
26116         * modules/login_tty (Depends-on): Add sys_ioctl.
26117         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
26118
26119 2010-09-16  Bruno Haible  <bruno@clisp.org>
26120
26121         login_tty: Stricter unit test.
26122         * modules/login_tty-tests (Depends-on): Add tcgetsid.
26123         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
26124         and tcgetsid() after login_tty.
26125         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
26126
26127 2010-09-16  Bruno Haible  <bruno@clisp.org>
26128
26129         New module 'tcgetsid'.
26130         * lib/tcgetsid.c: New file.
26131         * m4/tcgetsid.m4: New file.
26132         * modules/tcgetsid: New file.
26133         * modules/termios (Depends-on): Add c++defs, warn-on-use.
26134         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
26135         GNULIB_TCGETSID, HAVE_TCGETSID.
26136         * lib/termios.in.h: Include <sys/types.h>.
26137         (tcgetsid): New declaration.
26138         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
26139         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
26140         * doc/posix-functions/tcgetsid.texi: Mention the new module.
26141         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
26142
26143 2010-09-16  Bruno Haible  <bruno@clisp.org>
26144
26145         Tests for module 'termios'.
26146         * modules/termios-c++-tests: New file.
26147         * modules/termios-tests: New file.
26148         * tests/test-termios-c++.cc: New file.
26149         * tests/test-termios.c: New file.
26150
26151         New module 'termios'.
26152         * modules/termios: New file.
26153         * lib/termios.in.h: New file.
26154         * m4/termios_h.m4: New file.
26155         * doc/posix-headers/termios.texi: Mention the new module.
26156
26157 2010-09-16  Eric Blake  <eblake@redhat.com>
26158
26159         fdutimensat: add an atflag parameter
26160         * lib/fdutimensat.c (fdutimensat): Add new parameter.
26161         * lib/utimens.h (fdutimensat): Update prototype.
26162         * tests/test-fdutimensat.c: Adjust test to match.
26163         * NEWS: Document the change.
26164         Suggested by Paul Eggert.
26165
26166 2010-09-16  Bruno Haible  <bruno@clisp.org>
26167
26168         Fix typos in comments.
26169         * lib/striconveh.h: Fix typo in comment.
26170         * lib/login_tty.c (login_tty): Likewise.
26171
26172 2010-09-15  Bruno Haible  <bruno@clisp.org>
26173
26174         stdlib: clarify MirBSD WEXITSTATUS bug
26175         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
26176         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
26177
26178 2010-09-15  Eric Blake  <eblake@redhat.com>
26179
26180         stdlib: work around MirBSD WEXITSTATUS bug
26181         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
26182         * modules/stdlib (Depends-on): Add sys_wait.
26183         * tests/test-sys_wait.c (main): Enhance test.
26184         * tests/test-stdlib.c (main): Likewise.
26185         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
26186
26187         docs: mention MacOS issue with WEXITSTATUS(constant)
26188         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
26189         issue.
26190         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
26191
26192         strnlen: add tests
26193         * modules/strnlen-tests: New file.
26194         * tests/test-strnlen.c: Likewise.
26195
26196 2010-09-14  Bruno Haible  <bruno@clisp.org>
26197
26198         unistr/base: Avoid link errors when module 'libunistring' is also used.
26199         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
26200         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
26201         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
26202         Declare also when HAVE_LIBUNISTRING is set.
26203         Reported by Pádraig Brady <P@draigbrady.com>.
26204
26205 2010-09-14  Eric Blake  <eblake@redhat.com>
26206
26207         test-rawmemchr: make more robust
26208         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
26209         (Depends-on, configure.ac): Add needed prerequisites to use it.
26210         * modules/memchr-tests (Files, Depends-on, configure.ac):
26211         Likewise, to avoid implicit reliance on memchr module prereqs.
26212         * tests/test-memchr.c (main): Ensure proper masking.
26213         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
26214         reads.
26215
26216         memchr: detect glibc Alpha bug
26217         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
26218         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
26219         Alpha.
26220         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
26221         * tests/test-memchr.c (main): Enhance test.
26222         Reported by Nelson H. F. Beebe.
26223
26224 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
26225
26226         fts, getcwd, glob: audit for dirfd returning -1
26227         * lib/fts.c (opendir): Remove #define; no longer used.
26228         (opendirat): New arg PDIR_FD.  All callers changed.
26229         (fts_build, _opendir2): Use new opendirat to avoid the need for
26230         dirfd, or for checking whether dirfd returns a negative value.
26231         Don't use opendir; always use openat followed by fdopendir.
26232         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
26233         it.
26234         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
26235         returns -1 here.
26236         * modules/fts (Depends-on): Remove dirfd.
26237         * modules/getcwd (Depends-on): Likewise.
26238
26239 2010-09-13  Eric Blake  <eblake@redhat.com>
26240
26241         float: fix broken MirBSD header
26242         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
26243         * doc/posix-headers/float.texi (float.h): Document it.
26244
26245 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
26246
26247         fts: use O_NOFOLLOW to avoid race condition when opening a directory
26248         * lib/fts.c (opendirat): New arg extra_flags.
26249         (__opendir2): Use it to avoid following symlinks when opening
26250         a directory, if symlinks are not supposed to be followed.  See
26251         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
26252
26253         fdopendir: preserve argument fd before returning
26254         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
26255         (fdopendir_with_dup, fd_clone_opendir): New static functions.
26256         (fdopendir): Use them, arranging for FD to be open to the same
26257         directory that it was when it started.  (It might be temporarily
26258         closed while fdopendir is running, so this not thread- or
26259         signal-safe.)  Be careful to do the right thing even when file
26260         descriptors are scarce and dup fails with errno == EMFILE.  See
26261         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
26262
26263 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
26264
26265         regex: Pass the system regex if its only problem is 32-bit regoff_t.
26266         * NEWS: Document change.
26267         * m4/regex.m4: Disable test for regoff_t size.
26268
26269 2010-09-13  Jim Meyering  <meyering@redhat.com>
26270
26271         fts: don't operate on an invalid file descriptor after failed dup
26272         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
26273         negative file descriptor.
26274
26275 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
26276
26277         savedir: add streamsavedir, deprecate fdsavedir
26278         * NEWS: Mention deprecation of fdsavedir.
26279         * lib/savedir.c (streamsavedir): New extern function, whose name
26280         ends in "savedir" to be consistent with the others.  This differs
26281         from savedirstream in that it doesn't close its argument.  The
26282         next version of GNU tar will use this instead of fdsavedir, to
26283         avoid some race conditions and conserve file descriptors.
26284         (savedirstream): Reimplement as a wrapper around streamsavedir.
26285         (fdsavedir): Add a comment deprecating this function.  As far as
26286         I know, only GNU tar used it, and GNU tar doesn't need it any more.
26287         * lib/savedir.h (streamsavedir): New decl.
26288         (fdsavedir): Add a comment deprecating this.
26289
26290 2010-09-10  Bruno Haible  <bruno@clisp.org>
26291
26292         langinfo: Fix last commit.
26293         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
26294         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
26295         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26296
26297 2010-09-10  Bruno Haible  <bruno@clisp.org>
26298
26299         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
26300         * lib/progreloc.c (O_EXEC): Define fallback.
26301
26302 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
26303
26304         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
26305         * NEWS: Document recent changes to fcntl-h.
26306         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
26307         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
26308         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
26309         Similarly for O_SEARCH; this last was already true, but not documented.
26310         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
26311         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
26312         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
26313         Likewise.
26314         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
26315         is zero, not whether it is defined.
26316         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
26317         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
26318         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
26319
26320 2010-09-10  Bruno Haible  <bruno@clisp.org>
26321
26322         langinfo, nl_langinfo: Fix for IRIX 5.3.
26323         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
26324         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
26325         HAVE_LANGINFO_YESEXPR.
26326         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
26327         HAVE_LANGINFO_YESEXPR.
26328         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
26329         HAVE_LANGINFO_T_FMT_AMPM is 0.
26330         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
26331         HAVE_LANGINFO_YESEXPR is 0.
26332         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
26333         NOEXPR.
26334         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
26335         * doc/posix-functions/nl_langinfo.texi: Likewise.
26336         Reported by Eric Blake.
26337
26338 2010-09-10  Bruno Haible  <bruno@clisp.org>
26339
26340         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
26341         * doc/glibc-functions/login_tty.texi: Mention the include file problem
26342         on FreeBSD 8.0 and OpenBSD 4.6.
26343         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
26344         * m4/pty_h.m4 (gl_PTY_H): Likewise.
26345         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
26346         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
26347         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
26348         ac_includes_default.
26349         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
26350
26351 2010-09-09  Eric Blake  <eblake@redhat.com>
26352
26353         strsignal: work around NetBSD bug
26354         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
26355         * lib/string.in.h (includes): Likewise.
26356         * doc/posix-functions/strsignal.texi (strsignal): Document the
26357         bug.
26358         Reported by Nelson H. F. Beebe.
26359
26360         gnulib-tool: work with NetBSD /bin/sh
26361         * gnulib-tool (func_cache_var, func_cache_lookup_module)
26362         (func_get_description, func_get_comment, func_get_status)
26363         (func_get_notice, func_get_applicability, func_get_filelist)
26364         (func_get_dependencies, func_get_autoconf_early_snippet)
26365         (func_get_autoconf_snippet, func_get_automake_snippet)
26366         (func_get_include_directive, func_get_link_directive)
26367         (func_get_license, func_get_maintainer, func_import): Avoid
26368         shell syntax errors from parsing syntax extensions.
26369
26370 2010-09-09  Bruno Haible  <bruno@clisp.org>
26371
26372         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
26373         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
26374         a reliable way to determine whether the 'alias' command works.
26375
26376 2010-09-08  Jim Meyering  <meyering@redhat.com>
26377
26378         init.sh: penalize a set-x-impaired shell; don't disqualify it
26379         * tests/init.sh: Too many shells corrupt application stderr when
26380         you set -x, so we can't afford to disqualify them, since at least
26381         on Irix-6.5, that would disqualify all bourne shells.
26382         Instead, use a two-pass approach.
26383         On the first pass, try to find a shell that meets the stricter
26384         condition that set -x does not corrupt stderr.
26385         If no shell meets the stricter condition, retest each candidate
26386         shell, but without that extra condition.  Finally, when
26387         VERBOSE=yes is requested and set -x might cause trouble, simply
26388         issue a warning and refrain from enabling debug output.
26389
26390 2010-09-08  Eric Blake  <eblake@redhat.com>
26391
26392         unsetenv: fix OpenBSD bug
26393         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
26394         * doc/posix-functions/unsetenv.texi (unsetenv): Update
26395         documentation.
26396         Reported by Jim Meyering.
26397
26398         strtod: work around IRIX 6.5 bug
26399         * lib/strtod.c (strtod): Reparse number on shorter string if
26400         exponent parse was invalid.
26401         * tests/test-strtod.c (main): Add check for "0x1p 2".
26402         Reported by Tom G. Christensen.
26403
26404         getopt: optimize previous patch
26405         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
26406         empty variable.  Speed up awk script.
26407         Reported by Paolo Bonzini.
26408
26409 2010-09-08  Jim Meyering  <meyering@redhat.com>
26410
26411         test.sh: disqualify shells for which set -x corrupts stderr
26412         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
26413         and OpenBSD 4.7.  They make it so with "set -x", environment settings
26414         appear in stderr output.  For example, this command:
26415             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
26416         prints "P=1" on those two systems:
26417
26418 2010-09-08  Bruno Haible  <bruno@clisp.org>
26419
26420         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
26421         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
26422         commands, because some shells ignore redirections when there is an
26423         error in the command lookup.
26424         Reported by Eric Blake.
26425
26426 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
26427
26428         * lib/regex.h: Fix a mention of `regex_compile' (should be
26429         `re_compile_pattern').
26430         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
26431         (re_set_registers): Correct name of parameter in comment.
26432
26433         * doc/regex.texi: Add documentation for missing syntax flags.
26434         Remove commented-out documentation of defunct syntax option
26435         RE_NO_EMPTY_ALTS.
26436         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
26437         Add documentation of re_set_registers.
26438         Document trick to re-use a pattern buffer by setting fastmap manually.
26439         Update documentation of struct re_pattern_buffer per public members.
26440         Uncomment documentation of equivalence class operators and
26441         collating symbol operators, since they are now implemented,
26442         Explain leftmost-longest matching in relation to alternatives.
26443         Tidy documentation of substring matching.
26444         Remove POSIX documentation, which is done better in
26445         glibc, and refer the reader there. Keep BSD API documentation, as
26446         that is not readily available elsewhere.
26447
26448 2010-09-07  Eric Blake  <eblake@redhat.com>
26449
26450         getopt: handle POSIXLY_CORRECT set but not exported
26451         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
26452         export state of POSIXLY_CORRECT, due to bash set -o posix.
26453         Reported by Dustin J. Mitchell.
26454
26455 2010-09-05  Bruno Haible  <bruno@clisp.org>
26456
26457         gnulib-tool: Highlight the changed options.
26458         * gnulib-tool (func_usage): Display the --import, --add-import,
26459         --remove-import explanations in bold font.
26460
26461 2010-09-06  Karl Berry  <karl@gnu.org>
26462
26463         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
26464
26465 2010-09-05  Bruno Haible  <bruno@clisp.org>
26466
26467         uniwidth/width: Update comment.
26468         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
26469         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
26470
26471 2010-09-05  Bruno Haible  <bruno@clisp.org>
26472
26473         isinf, isnan: Relax license.
26474         * modules/isinf (License): Change from GPL to LGPL, with consent from
26475         Ben Pfaff.
26476         * modules/isnan (License): Likewise.
26477         Requested by Ludovic Courtès.
26478
26479 2010-09-04  Bruno Haible  <bruno@clisp.org>
26480
26481         gnulib-tool: Help migration from --import to --add-import or --update.
26482         * gnulib-tool: Emit a verbose error message when --import is used
26483         without any module name.
26484
26485 2010-09-04  Bruno Haible  <bruno@clisp.org>
26486
26487         Update doc about gnulib-tool.
26488         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
26489         'gnulib-tool --update' in more detail.
26490         Reported by Eric Blake.
26491
26492 2010-09-04  Bruno Haible  <bruno@clisp.org>
26493
26494         gnulib-tool: Change --import. New options --add/remove-import.
26495         * gnulib-tool: New options --add-import, --remove-import.
26496         (func_usage): Document them.
26497         (have_associative): Define always.
26498         (func_import): In import mode, don't merge the specified settings with
26499         the cached settings. Implement remove-import mode.
26500         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
26501         Explain when to use them versus --import.
26502         (Simple update): Use --add-import instead of --import.
26503         * NEWS: Mention the change.
26504
26505 2010-09-04  Bruno Haible  <bruno@clisp.org>
26506
26507         * doc/gnulib-tool.texi (Initial import): Update paragraph about
26508         separate gnulib.mk.
26509
26510 2010-09-04  Bruno Haible  <bruno@clisp.org>
26511
26512         gnulib-tool: Don't talk about CVS any more.
26513         * gnulib-tool (func_usage, func_import): Write "version control"
26514         instead of CVS.
26515
26516 2010-09-04  Jim Meyering  <meyering@redhat.com>
26517
26518         maint.mk: avoid obscure sc_copyright_check failure in coreutils
26519         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
26520         false positives (whose names may be ill-chosen) when searching
26521         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
26522         would cause a false-positive.
26523
26524         avoid coreutils "make distcheck" failure
26525         Coreutils tests with an absolute build directory name that contains
26526         a space.  Not quoting this directory name caused a failure.
26527         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
26528         * tests/test-vc-list-files-cvs.sh: Likewise.
26529
26530 2010-09-04  Bruno Haible  <bruno@clisp.org>
26531
26532         gnulib-tool: Avoid error when run in a package without Makefile.am.
26533         * gnulib-tool: When collecting the m4dirs in a package that does not
26534         have a Makefile.am, eliminate those directories that contain no
26535         gnulib-cache.m4. Fix expression that counts these directories.
26536
26537 2010-09-04  Bruno Haible  <bruno@clisp.org>
26538
26539         update-copyright test: Improve output when perl is missing or too old.
26540         * tests/test-update-copyright.sh: Move test of Perl version down after
26541         the test whether Perl exists. Provide an explanation relating Perl's
26542         error message to Automake's SKIP: message.
26543
26544 2010-09-04  Bruno Haible  <bruno@clisp.org>
26545
26546         Don't augment PATH in TESTS_ENVIRONMENT.
26547         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
26548         set abs_aux_dir instead of augmenting PATH.
26549         * modules/vc-list-files-tests (Makefile.am): Likewise.
26550         * tests/test-update-copyright.sh: Augment PATH here.
26551         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
26552         path_prepend_.
26553         * tests/test-vc-list-files-git.sh: Likewise.
26554
26555 2010-09-04  Jim Meyering  <meyering@redhat.com>
26556
26557         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
26558         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
26559
26560 2010-09-04  Bruno Haible  <bruno@clisp.org>
26561
26562         strdup: Fix compilation error in C++ mode.
26563         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
26564         the macro.
26565
26566 2010-09-04  Bruno Haible  <bruno@clisp.org>
26567
26568         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
26569         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
26570         macro into a function.
26571         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
26572
26573 2010-09-04  Bruno Haible  <bruno@clisp.org>
26574
26575         Set PATH_SEPARATOR the same way autoconf does.
26576         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
26577         the value of PATH_SEPARATOR the same way autoconf-generated configure
26578         scripts do.
26579         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
26580         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
26581
26582 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
26583
26584         Set PATH_SEPARATOR the same way autoconf does.
26585         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
26586         the same way autoconf-generated configure scripts do.
26587         * posix-modules: Likewise.
26588
26589 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
26590
26591         hash: fix safe_hasher const typo
26592         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
26593         const; otherwise, there is a type error later.
26594
26595 2010-09-02  Jim Meyering  <meyering@redhat.com>
26596
26597         test-update-copyright.sh: require perl 5.8.0
26598         * tests/test-update-copyright.sh: Require 5.8.0,
26599         which Tom G. Christensen has confirmed is adequate,
26600         while 5.6.1 is not.
26601
26602 2010-09-02  Eric Blake  <eblake@redhat.com>
26603
26604         tests: init.sh improvements for re-exec'ing with zsh
26605         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
26606         -vx through shell re-exec.
26607         Reported by Tom G. Christensen.
26608
26609         wctype: fix typo in previous commit
26610         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
26611         Reported by Ludovic Courtès.
26612
26613 2010-09-02  Jim Meyering  <meyering@redhat.com>
26614
26615         test-update-copyright.sh: skip test if Perl is too old
26616         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
26617         Reported by Tom G. Christensen.
26618
26619 2010-09-02  Bruno Haible  <bruno@clisp.org>
26620
26621         wctype: Avoid compilation error on IRIX 6.5.30.
26622         * lib/wctype.in.h (iswblank): Declare with a replacement if
26623         REPLACE_ISWBLANK is set.
26624         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
26625         declared. Set REPLACE_ISWBLANK.
26626         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
26627         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
26628         * doc/posix-headers/wctype.texi: Likewise.
26629         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26630
26631 2010-09-01  Bruno Haible  <bruno@clisp.org>
26632
26633         New module 'socketlib'.
26634         * modules/socketlib: New file.
26635         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
26636         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
26637         * modules/sockets (Depends-on): Add socketlib.
26638         Suggested by Sam Steingold <sds@gnu.org>.
26639
26640 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
26641
26642         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
26643
26644         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
26645         when one needs search access to a directory but not read access.
26646         On systems where it is available, it works in some cases where
26647         O_RDONLY does not, namely on directories that are searchable but
26648         not readable, and which need only to be searchable.  If O_SEARCH
26649         is not available, fall back to the traditional method of using
26650         O_RDONLY.
26651
26652         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
26653         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
26654         when opening a directory that needs only to be searchable.
26655         * lib/chdir-safer.c (chdir_no_follow): Likewise.
26656         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
26657         * lib/openat-proc.c (openat_proc_name): Likewise.
26658         * lib/openat.c (openat_needs_fchdir): Likewise.
26659         * lib/save-cwd.c (save_cwd): Likewise.
26660         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
26661
26662 2010-08-28  Bruno Haible  <bruno@clisp.org>
26663
26664         New module 'host-cpu-c-abi'.
26665         * modules/host-cpu-c-abi: New file.
26666         * m4/host-cpu-c-abi.m4: New file, based on part of
26667         clisp/src/m4/general.m4.
26668         Requested by Sam Steingold <sds@gnu.org>.
26669
26670 2010-08-31  Eric Blake  <eblake@redhat.com>
26671         and Jim Meyering  <meyering@redhat.com>
26672
26673         hash: factor, and guard against misbehaving hasher function
26674         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
26675         of table->hasher's return value.  Also protect against a hash value
26676         so large that adding it to table->bucket results in a NULL pointer.
26677         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
26678         Use it in place of open-coded check-and-abort.
26679
26680 2010-08-30  Bruno Haible  <bruno@clisp.org>
26681
26682         hash: silence spurious clang warning
26683         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
26684         Reported by Eric Blake.
26685
26686 2010-08-30  Eric Blake  <eblake@redhat.com>
26687
26688         strstr, memmem, strcasestr: avoid leaked shell message
26689         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
26690         FreeBSD.
26691         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
26692         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
26693
26694         tests: silence clang warning
26695         * tests/test-malloca.c (do_allocation): Avoid dead store.
26696
26697 2010-08-29  Bruno Haible  <bruno@clisp.org>
26698
26699         gettext: Fix recent mistake.
26700         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
26701
26702 2010-08-29  Bruno Haible  <bruno@clisp.org>
26703
26704         selinux-h: Offer a --without-selinux option.
26705         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
26706         --without-selinux was specified, skip all tests and define
26707         HAVE_SELINUX_SELINUX_H to 0.
26708         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
26709         set LIB_SELINUX to empty.
26710         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
26711         gl_LIBSELINUX. If --without-selinux was specified, replace
26712         selinux/context.h.
26713         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
26714
26715 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26716             Bruno Haible  <bruno@clisp.org>
26717
26718         Make the module 'realloc-gnu' work again on AIX and OSF/1.
26719         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
26720         of HAVE_REALLOC.
26721         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
26722         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
26723         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
26724         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
26725
26726 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26727             Bruno Haible  <bruno@clisp.org>
26728
26729         Make the module 'calloc-gnu' work again on AIX and OSF/1.
26730         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
26731         HAVE_CALLOC.
26732         * lib/xmalloc.c: Update accordingly.
26733         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
26734         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
26735         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
26736
26737 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26738             Bruno Haible  <bruno@clisp.org>
26739
26740         Make the module 'malloc-gnu' work again on AIX and OSF/1.
26741         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
26742         HAVE_MALLOC.
26743         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
26744         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
26745         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
26746
26747 2010-08-29  Bruno Haible  <bruno@clisp.org>
26748
26749         Update modules list.
26750         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
26751         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
26752         (String handling <string.h>): Add astrxfrm.
26753         (File system functions): Add readlinkat.
26754
26755 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26756
26757         Tests for module 'realloc-gnu'.
26758         * modules/realloc-gnu-tests: New file.
26759         * tests/test-realloc-gnu.c: New file.
26760
26761         Tests for module 'calloc-gnu'.
26762         * modules/calloc-gnu-tests: New file.
26763         * tests/test-calloc-gnu.c: New file.
26764
26765         Tests for module 'malloc-gnu'.
26766         * modules/malloc-gnu-tests: New file.
26767         * tests/test-malloc-gnu.c: New file.
26768
26769 2010-08-28  Bruno Haible  <bruno@clisp.org>
26770
26771         Rename module 'realloc' -> 'realloc-gnu'.
26772         * modules/realloc-gnu: New file, copied from modules/realloc.
26773         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
26774         obsolete.
26775         * modules/mgetgroups (Depends-on): Update.
26776         * doc/posix-functions/realloc.texi: Update.
26777         * NEWS: Mention the change.
26778
26779         Rename module 'calloc' -> 'calloc-gnu'.
26780         * modules/calloc-gnu: New file, copied from modules/calloc.
26781         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
26782         obsolete.
26783         * doc/posix-functions/calloc.texi: Update.
26784         * NEWS: Mention the change.
26785
26786         Rename module 'malloc' -> 'malloc-gnu'.
26787         * modules/malloc-gnu: New file, copied from modules/malloc.
26788         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
26789         obsolete.
26790         * modules/argp (Depends-on): Update.
26791         * modules/regex (Depends-on): Update.
26792         * doc/posix-functions/malloc.texi: Update.
26793         * NEWS: Mention the change.
26794
26795 2010-08-28  Eric Blake  <eblake@redhat.com>
26796
26797         pread, pwrite: add missing dependency
26798         * modules/pread (Depends-on): Add extensions.
26799         * modules/pwrite (Depends-on): Likewise.
26800
26801 2010-08-28  Bruno Haible  <bruno@clisp.org>
26802
26803         unistr/u*-strchr: Fix tests dependencies.
26804         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
26805         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
26806         Reported by Ian Beckwith <ianb@erislabs.net>.
26807
26808 2010-08-28  Bruno Haible  <bruno@clisp.org>
26809
26810         read-file: Don't occupy too much unused memory.
26811         * lib/read-file.c (fread_file): Shrink the buffer at the end.
26812
26813 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
26814             Eric Blake  <eblake@redhat.com>
26815             Bruno Haible  <bruno@clisp.org>
26816
26817         read-file: Avoid memory reallocations with regular files.
26818         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
26819         (fread_file): With regular files, use the remaining length as the
26820         initial buffer size.  Check against overflow.
26821         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
26822         sys_stat.
26823
26824 2010-08-28  Bruno Haible  <bruno@clisp.org>
26825
26826         ftello: Relax license.
26827         * modules/ftello (License): Relax to LGPLv2+.
26828         Reported by Eric Blake.
26829
26830 2010-08-28  Bruno Haible  <bruno@clisp.org>
26831
26832         Avoid relocwrapper link errors due to gnulib replacement functions.
26833         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
26834         function.
26835         Reported by Ben Pfaff <blp@cs.stanford.edu>.
26836
26837 2010-08-28  Bruno Haible  <bruno@clisp.org>
26838
26839         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
26840         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
26841         defined.
26842         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
26843         Suggested by Eric Blake.
26844
26845 2010-08-28  Bruno Haible  <bruno@clisp.org>
26846
26847         sys_socket, netdb: Ensure socklen_t gets defined.
26848         * modules/sys_socket (Depends-on): Add socklen.
26849         * modules/netdb (Depends-on): Likewise.
26850         * modules/getaddrinfo (Depends-on): Remove socklen.
26851         * modules/getsockopt (Depends-on): Likewise.
26852         * modules/setsockopt (Depends-on): Likewise.
26853         * tests/test-sys_socket.c: Check that socklen_t is defined.
26854         * tests/test-netdb.c: Likewise.
26855         * m4/socklen.m4: Update comments.
26856         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26857
26858 2010-08-27  Eric Blake  <eblake@redhat.com>
26859
26860         login_tty: add missing dependency
26861         * modules/login_tty (Depends-on): Add pty.
26862
26863 2010-08-26  Eric Blake  <eblake@redhat.com>
26864
26865         lib-symbol-versions: fix m4 quoting
26866         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
26867         format for AC_LINK_IFELSE.
26868
26869         glob: fix compile test
26870         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
26871
26872         btowc: fix missing file
26873         * modules/btowc (Files): Also ship locale-fr.m4.
26874
26875         lseek: fix link test
26876         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
26877         AC_LINK_IFELSE.
26878
26879         include_next: silence autoconf 2.68 warning
26880         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
26881         AC_COMPILE_IFELSE as special.
26882         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
26883         autoconf < 2.68.
26884
26885         acl: fix compilation test
26886         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
26887         AC_COMPILE_IFELSE.
26888
26889 2010-08-26  Bruno Haible  <bruno@clisp.org>
26890
26891         Modernize AC_TRY_RUN invocations.
26892         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
26893         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
26894         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
26895         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
26896         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
26897         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
26898         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
26899         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
26900         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
26901         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
26902         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
26903         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
26904         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
26905         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
26906         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
26907         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
26908         gl_MBRLEN_NUL_RETVAL): Likewise.
26909         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
26910         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
26911         Likewise.
26912         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
26913         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
26914         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
26915         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
26916         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
26917         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
26918         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
26919         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
26920         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
26921         Likewise.
26922         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
26923         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
26924         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
26925         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
26926         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
26927         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
26928         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
26929         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
26930         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
26931         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
26932
26933 2010-08-26  Bruno Haible  <bruno@clisp.org>
26934
26935         Modernize AC_TRY_LINK invocations.
26936         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
26937         AC_TRY_LINK.
26938         * m4/argp.m4 (gl_ARGP): Likewise.
26939         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
26940         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
26941         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
26942         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
26943         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
26944         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
26945         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
26946         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
26947         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
26948         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
26949         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
26950         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
26951         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
26952         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
26953         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
26954         * m4/hostent.m4 (gl_HOSTENT): Likewise.
26955         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
26956         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
26957         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
26958         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
26959         Likewise.
26960         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
26961         Likewise.
26962         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
26963         Likewise.
26964         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
26965         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
26966         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
26967         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
26968         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
26969         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
26970         * m4/servent.m4 (gl_SERVENT): Likewise.
26971         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
26972         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
26973         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
26974         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
26975         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
26976         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
26977         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
26978         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
26979         * modules/tsearch-tests (configure.ac): Likewise.
26980
26981 2010-08-26  Bruno Haible  <bruno@clisp.org>
26982
26983         Modernize AC_TRY_COMPILE invocations.
26984         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
26985         AC_TRY_COMPILE.
26986         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
26987         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
26988         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
26989         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
26990         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
26991         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
26992         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
26993         * m4/lock.m4 (gl_LOCK): Likewise.
26994         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
26995         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
26996         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
26997         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
26998         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
26999         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
27000         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
27001         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
27002         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
27003         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
27004         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
27005         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
27006         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
27007         extraneous semicolon.
27008
27009 2010-08-26  Jim Meyering  <meyering@redhat.com>
27010
27011         stat-time: relax license LGPL
27012         * modules/stat-time (License): Change from GPL to LGPL,
27013         with consent from all contributors, for use in libguile.
27014         Requested by Ludovic Courtès.
27015
27016 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
27017
27018         poll: return immediately on POLLHUP.
27019         * lib/poll.c (poll): Always set timeout before wait_timeout is
27020         computed.
27021
27022 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27023
27024         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
27025         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
27026         rmdir ("dir/.//"), unlinkat.
27027
27028 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
27029
27030         stdbool: avoid spurious failure with modern xlc
27031         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
27032
27033 2010-08-24  Bruno Haible  <bruno@clisp.org>
27034
27035         getloadavg: simplify code
27036         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
27037         gl_have_func. Update comments.
27038
27039 2010-08-24  Eric Blake  <eblake@redhat.com>
27040
27041         getloadavg: don't define SVR4 on cygwin
27042         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
27043         only define SVR4 when -lkvm is required.
27044         Reported by Yaakov Selkowitz.
27045
27046 2010-08-24  Bruno Haible  <bruno@clisp.org>
27047
27048         priv-set: fix comment
27049         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
27050
27051 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
27052
27053         priv-set: fix comments
27054         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
27055         to match code, as suggested by David Bartley in:
27056         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
27057
27058 2010-08-23  Eric Blake  <eblake@redhat.com>
27059
27060         stdbool: avoid rejecting clang
27061         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
27062         * tests/test-stdbool.c: Enable more tests if using the system
27063         <stdbool.h> instead of the gnulib replacement.
27064         (main): Move xlc bug test to a runtime test for all compilers.
27065         Reported by Anders Kaseorg.
27066
27067         argz: fix shell quoting issue
27068         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
27069         Reported by Charles Wilson.
27070
27071 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
27072             Erik Faye-Lund <kusmabite@gmail.com>
27073
27074         poll, select: handle ERROR_BROKEN_PIPE.
27075         * lib/poll.c (win32_compute_revents): Return POLLHUP when
27076         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
27077         * lib/select.c (win32_compute_revents): Do not mark a pipe
27078         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
27079
27080 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
27081
27082         fts: allow compilation with C++
27083         * lib/fts_.h: Specify extern "C" linkage with C++.
27084
27085 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27086
27087         Fix gnulib-tool sed script de-commentation for AIX sed.
27088         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
27089         sed.
27090
27091 2010-08-17  Eric Blake  <eblake@redhat.com>
27092
27093         test-stddef: test for (some) offsetof bugs
27094         * tests/test-stddef.c: Enhance test to ensure correct type of
27095         offsetof.
27096         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
27097         that we are not fixing at this time.
27098
27099 2010-08-15  Bruno Haible  <bruno@clisp.org>
27100
27101         stpncpy: Allow stpncpy to be defined as a macro.
27102         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
27103         if it's already correctly declared.
27104         * lib/string.in.h (stpncpy): Undefine before redefining.
27105         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
27106
27107 2010-08-14  Bruno Haible  <bruno@clisp.org>
27108
27109         Rename module 'memxfrm' to 'amemxfrm'.
27110         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
27111         (amemxfrm): Renamed from memxfrm.
27112         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
27113         (amemxfrm): Renamed from memxfrm.
27114         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
27115         * NEWS: Mention the change.
27116         * MODULES.html.sh (String handling <string.h>): Update.
27117         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
27118         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
27119         * lib/unicase/u16-casexfrm.c: Likewise.
27120         * lib/unicase/u32-casexfrm.c: Likewise.
27121         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
27122         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
27123         * lib/uninorm/u16-normxfrm.c: Likewise.
27124         * lib/uninorm/u32-normxfrm.c: Likewise.
27125         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
27126         memxfrm.
27127         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
27128         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
27129         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
27130         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
27131         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
27132         Suggested by Paul Eggert.
27133
27134 2010-08-14  Bruno Haible  <bruno@clisp.org>
27135
27136         Tests for module 'astrxfrm'.
27137         * modules/astrxfrm-tests: New file.
27138         * tests/test-astrxfrm.c: New file.
27139
27140         New module 'astrxfrm'.
27141         * lib/astrxfrm.h: New file.
27142         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
27143         * modules/astrxfrm: New file.
27144
27145 2010-08-14  Reuben Thomas <rrt@sc3d.org>
27146
27147         regex: Tweak doc.
27148         * doc/regex.texi (Overview): Don't mention regex.c.
27149         (GNU Regular Expression Compiling): Likewise.
27150         (Match-end-of-line Operator): Mention 'not_eol'.
27151
27152 2010-08-14  Brian Gough  <bjg@gnu.org>
27153             Bruno Haible  <bruno@clisp.org>
27154
27155         git-merge-changelog: add doc relating to use with bzr and hg.
27156         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
27157
27158 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
27159
27160         pthread: fix pthread.h creation for srcdir != builddir
27161         * modules/pthread (Makefile.am): Fix the rule to work also in a
27162         non-srcdir build.
27163
27164 2010-08-13  Karl Berry  <karl@gnu.org>
27165
27166         * doc/regex.texi (Predefined Syntaxes): @smallexample.
27167         * doc/posix-*/*: force line break before @url of POSIX
27168         specifications.
27169         Suggested by Werner Lemberg.
27170
27171 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
27172
27173         strtod: fix const diagnostic
27174         * lib/strtod.c (strtod): Don't assign const char * to char *,
27175         as this elicits a warning from GCC when warnings are enabled.
27176
27177 2010-08-10  Pádraig Brady <P@draigbrady.com>
27178         and Eric Blake  <eblake@redhat.com>
27179
27180         copy-acl: ignore ENOTSUP on HP-UX
27181         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
27182         so that it is available for HP-UX.
27183         * lib/copy-acl.c (qcopy_acl): Use it.
27184         Reported by Patrick M. Callahan.
27185
27186 2010-08-10  Eric Blake  <eblake@redhat.com>
27187
27188         open, chown: relax license
27189         * modules/open (License): Change to LGPLv2+, with consent by all
27190         authors, for use in augeas.
27191         * modules/chown (License): Likewise.
27192         * modules/lchown (Likewise): Likewise.
27193         Requested by Adam Stokes.
27194
27195 2010-08-09  Karl Berry  <karl@gnu.org>
27196
27197         * build-aux/ar-lib: new file, import from Automake.
27198         * config/srclist.txt: autocheck for updates.
27199
27200 2010-08-09  Eric Blake  <eblake@redhat.com>
27201
27202         readlinkat: adjust client modules
27203         * modules/areadlinkat (Depends-on): Use readlinkat, not
27204         symlinkat.
27205         * modules/areadlinkat-with-size (Depends-on): Likewise.
27206
27207         mknod: be more vocal about danger of running tests as root
27208         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
27209         root, since that is just asking for problems.
27210         Suggested by Bruno Haible, based on a report by Rainer Tammer.
27211
27212         readlinkat: split into its own module
27213         * modules/symlinkat: Split readlinkat...
27214         * modules/readlinkat: ...into separate module.
27215         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
27216         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
27217         * lib/symlinkat.c (readlinkat): Move...
27218         * lib/readlinkat.c: ...into new file.
27219         * modules/symlinkat-tests: Split readlinkat test...
27220         * modules/readlinkat-tests: ...into separate module.
27221         * tests/test-symlinkat.c: Split...
27222         * tests/test-readlinkat.c: ...into new file.
27223         * NEWS: Document the split.
27224         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
27225         * lib/unistd.in.h (readlinkat): Likewise.
27226         Suggested by Bruno Haible.
27227
27228 2010-08-08  Bruno Haible  <bruno@clisp.org>
27229
27230         memxfrm: Speed up.
27231         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
27232         that usually only one call to strxfrm is necessary for each string
27233         part.
27234         Reported by Paul Eggert <eggert@cs.ucla.edu>.
27235
27236 2010-08-07  Karl Berry  <karl@gnu.org>
27237
27238         * doc/posix-headers/limits.texi,
27239         * doc/posix-functions/malloc.texi,
27240         * doc/posix-functions/strsignal.texi: missing @item.
27241         * doc/ld-version-script.texi: spurious leading i.
27242         * doc/regex.texi (Interval Operators): no commas inside @var.
27243
27244 2010-08-01  Bruno Haible  <bruno@clisp.org>
27245
27246         Integrate the regex documentation.
27247         * doc/gnulib.texi: Define 'cn' index.
27248         (Regular expressions): New a chapter that includes regex.texi and
27249         regexprops-generic.texi.
27250         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
27251         syntax.
27252
27253         Whitespace cleanup.
27254         * doc/regex.texi: Remove trailing spaces.
27255
27256         Add regex documentation.
27257         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
27258         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
27259         Written by Kathy A. Hargreaves and Karl Berry.
27260
27261 2010-08-01  Bruno Haible  <bruno@clisp.org>
27262
27263         link: Update documentation.
27264         * doc/posix-functions/link.texi: Update regarding Solaris.
27265
27266 2010-07-31  Bruno Haible  <bruno@clisp.org>
27267
27268         Update modules list.
27269         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
27270         (String handling <string.h>): Add memcmp2, memxfrm.
27271         (Container data structures): Add xlist, xsublist, xoset.
27272         (Core language properties): Add alignof, unused-parameter.
27273         (Process control, Numeric conversion functions <stdlib.h>): Renamed
27274         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
27275         (Unibyte characters <ctype.h>): New section.
27276         (String handling <string.h>): New section.
27277         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
27278         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
27279         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
27280         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
27281         tan, tanh, tanl, y0, y1, yn.
27282         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
27283         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
27284         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
27285         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
27286         unlockpt, vdprintf, vdprintf-posix.
27287         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
27288         (File system functions): Add concat-filename, sys_file, sys_ioctl,
27289         xconcat-filename.
27290         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
27291         getdtablesize, pipe2, pipe2-safer.
27292         (Security): New section.
27293         (Networking functions): Add accept4.
27294         (Signal handling): Add sigpipe.
27295         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
27296         mbmemcasecoll.
27297         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
27298         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
27299         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
27300         pipe-filter-ii.
27301         (Misc): Add argp-version-etc, login_tty, parse-duration.
27302
27303 2010-07-31  Bruno Haible  <bruno@clisp.org>
27304
27305         Improve doc in MODULES.html.
27306         * modules/linkat (Description): Add the word "function".
27307         * modules/mkfifo (Description): Likewise.
27308         * modules/mknod (Description): Likewise.
27309         * modules/remove (Description): Likewise.
27310         * modules/renameat (Description): Likewise.
27311         * modules/stat (Description): Likewise.
27312         * modules/symlink (Description): Likewise.
27313         * modules/unlink (Description): Likewise.
27314
27315 2010-07-31  Bruno Haible  <bruno@clisp.org>
27316
27317         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
27318         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
27319         option --enable/disable-c++ instead of --enable/disable-cxx.
27320         * NEWS: Mention the change.
27321
27322 2010-07-31  Bruno Haible  <bruno@clisp.org>
27323
27324         readlink, areadlink: Relax test a bit.
27325         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
27326         alternative to ENOTDIR.
27327         * tests/test-areadlink.h (test_areadlink): Likewise.
27328         Reported by Rainer Tammer.
27329
27330 2010-07-31  Bruno Haible  <bruno@clisp.org>
27331
27332         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
27333         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
27334         character, perform the search using U_STRCHR.
27335         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
27336         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
27337         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
27338         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
27339         Suggested by Paolo Bonzini.
27340
27341 2010-07-31  Bruno Haible  <bruno@clisp.org>
27342
27343         unistr/u*-strstr: Fix dependencies.
27344         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
27345         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
27346         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
27347
27348 2010-07-31  Bruno Haible  <bruno@clisp.org>
27349
27350         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
27351         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
27352         the beginning of the loop.
27353         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
27354         cases in 'switch' statement.
27355
27356         unistr/u8-strchr: Fix several bugs.
27357         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
27358         the string. When not found, return NULL, not a pointer near the end.
27359
27360         More tests for unistr/u8-strchr.
27361         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
27362         that the function does not read past the first occurrence of the byte
27363         being searched.
27364         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
27365         * tests/unistr/test-u16-strchr.c (main): New function.
27366         * tests/unistr/test-u32-strchr.c (main): New function.
27367
27368 2010-07-31  Bruno Haible  <bruno@clisp.org>
27369
27370         posix-modules: Ignore backup files of documentation files.
27371         * posix-modules: grep only through files named *.texi.
27372
27373 2010-07-31  Bruno Haible  <bruno@clisp.org>
27374
27375         symlinkat: Fix documentation.
27376         * doc/posix-functions/readlinkat.texi: Fix module name.
27377
27378 2010-07-31  Bruno Haible  <bruno@clisp.org>
27379
27380         fchownat: Replace also when chown has the trailing slash bug.
27381         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
27382         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
27383         introduced on 2010-04-10.
27384         Reported by Rainer Tammer.
27385
27386 2010-07-31  Bruno Haible  <bruno@clisp.org>
27387
27388         linkat: Work around AIX 7.1 bug.
27389         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
27390         whether linkat handles trailing slash correctly. If not, replace linkat
27391         and define LINKAT_TRAILING_SLASH_BUG.
27392         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
27393         check whether (fd1,file1) points to a directory if file1 or file2 ends
27394         in a slash. Code taken from lib/link.c.
27395         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
27396         Reported by Rainer Tammer.
27397
27398 2010-07-31  Bruno Haible  <bruno@clisp.org>
27399
27400         Correctly determine whether pow is available in libc on AIX 7 with xlc.
27401         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
27402         This disables an xlc optimization that was causing wrong test results.
27403         Reported by Rainer Tammer.
27404
27405 2010-07-31  Bruno Haible  <bruno@clisp.org>
27406
27407         iconv: Work around AIX 6.1..7.1 bug.
27408         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
27409         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
27410         cross-compiling, guess no on all versions of AIX.
27411         Reported by Rainer Tammer.
27412
27413 2010-07-31  Bruno Haible  <bruno@clisp.org>
27414
27415         readlink: Relax test a bit.
27416         * tests/test-readlink.h (test_readlink): Allow different errno value
27417         when readlink is called with a file name that ends in / and refers to
27418         a file.
27419         Suggested by Eric Blake.
27420         Reported by Rainer Tammer.
27421
27422 2010-07-31  Bruno Haible  <bruno@clisp.org>
27423
27424         copysign: Does not require -lm on glibc systems.
27425         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
27426         gl_COMMON_DOUBLE_MATHFUNC.
27427         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
27428
27429 2010-07-31  Bruno Haible  <bruno@clisp.org>
27430
27431         duplocale: Work around AIX 7.1 bug.
27432         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
27433         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
27434         * lib/duplocale.c (rpl_duplocale): Update comment.
27435         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
27436         Reported by Rainer Tammer.
27437
27438 2010-07-30  Bruno Haible  <bruno@clisp.org>
27439
27440         dirfd: Avoid link error on AIX 7.1.
27441         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
27442         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
27443         exist, set REPLACE_DIRFD.
27444         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
27445         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
27446         * doc/posix-functions/dirfd.texi: Update.
27447         Reported by Rainer Tammer.
27448
27449 2010-07-30  Eric Blake  <eblake@redhat.com>
27450
27451         strtod: next round of AIX fixes
27452         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
27453         exponent.
27454         * tests/test-strtod.c (main): Enhance tests.
27455         * doc/posix-functions/strtod.texi (strtod): Document next bug.
27456         Reported by Rainer Tammer.
27457
27458         futimens: fix configure check
27459         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
27460         Reported by Bruno Haible.
27461
27462 2010-07-30  Bruno Haible  <bruno@clisp.org>
27463
27464         getline: Update regarding AIX.
27465         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
27466         Reported by Rainer Tammer.
27467
27468 2010-07-30  Bruno Haible  <bruno@clisp.org>
27469
27470         wcwidth: Drop replacement on AIX 7.
27471         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
27472         AIX 7.
27473         Reported by Rainer Tammer.
27474
27475 2010-07-30  Bruno Haible  <bruno@clisp.org>
27476
27477         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
27478         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
27479         a 'char *'.
27480         Reported by Rainer Tammer.
27481
27482 2010-07-30  Bruno Haible  <bruno@clisp.org>
27483
27484         unlink: Update regarding AIX.
27485         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
27486         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
27487         Reported by Rainer Tammer.
27488
27489 2010-07-30  Bruno Haible  <bruno@clisp.org>
27490
27491         symlink: Update regarding AIX.
27492         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
27493         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
27494         Reported by Rainer Tammer.
27495
27496 2010-07-30  Bruno Haible  <bruno@clisp.org>
27497
27498         strndup: Update regarding AIX.
27499         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
27500         AIX 7.
27501         Reported by Rainer Tammer.
27502
27503 2010-07-30  Bruno Haible  <bruno@clisp.org>
27504
27505         stat: Update regarding AIX.
27506         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
27507         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
27508         Reported by Rainer Tammer.
27509
27510 2010-07-30  Bruno Haible  <bruno@clisp.org>
27511
27512         truncl: Fix autoconf test.
27513         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
27514         whether truncl works.
27515         Reported by Rainer Tammer.
27516
27517 2010-07-30  Bruno Haible  <bruno@clisp.org>
27518
27519         round: Update regarding AIX.
27520         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
27521         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
27522         Reported by Rainer Tammer.
27523
27524 2010-07-30  Bruno Haible  <bruno@clisp.org>
27525
27526         rename: Update regarding AIX.
27527         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
27528         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
27529         Reported by Rainer Tammer.
27530
27531 2010-07-30  Bruno Haible  <bruno@clisp.org>
27532
27533         printf.m4: Update regarding AIX.
27534         * m4/printf.m4: Update comments regarding AIX.
27535         Reported by Rainer Tammer.
27536
27537 2010-07-30  Bruno Haible  <bruno@clisp.org>
27538
27539         iconv: Update regarding AIX.
27540         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
27541         AIX 7.
27542         Reported by Rainer Tammer.
27543
27544 2010-07-30  Bruno Haible  <bruno@clisp.org>
27545
27546         getopt: Update regarding AIX.
27547         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
27548         no on AIX.
27549         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
27550         Reported by Rainer Tammer.
27551
27552 2010-07-30  Bruno Haible  <bruno@clisp.org>
27553
27554         ldexpl; Update regarding AIX.
27555         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
27556         on AIX 7.
27557         Reported by Rainer Tammer.
27558
27559 2010-07-30  Bruno Haible  <bruno@clisp.org>
27560
27561         frexpl: Update regarding AIX.
27562         * m4/frexpl.m4 (gl_FUNC_FREXPL_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         open, fopen: Update regarding AIX.
27569         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
27570         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
27571         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
27572         * doc/posix-functions/fopen.texi: Likewise.
27573         Reported by Rainer Tammer.
27574
27575 2010-07-30  Bruno Haible  <bruno@clisp.org>
27576
27577         chown: Update doc regarding AIX.
27578         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
27579         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
27580         Reported by Rainer Tammer.
27581
27582 2010-07-30  Eric Blake  <eblake@redhat.com>
27583
27584         strtod: fix bug in replacement function on AIX
27585         * lib/strtod.c (strtod): Special case broken "0x" parse in
27586         underlying strtod.
27587         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
27588         * doc/posix-functions/strtod.texi (strtod): Likewise.
27589         Reported by Rainer Tammer.
27590
27591 2010-07-30  Bruno Haible  <bruno@clisp.org>
27592
27593         mbrlen: Fix cross-compilation guess for AIX.
27594         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
27595         guess. Leftover from 2008-12-22.
27596
27597 2010-07-30  Bruno Haible  <bruno@clisp.org>
27598
27599         mbrtowc: Fix cross-compilation guess for AIX.
27600         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
27601         guess. Leftover from 2008-12-21.
27602
27603 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
27604
27605         init.sh: work around trap limitation of some shells
27606         * tests/init.sh (setup_): Move exit trap outside of shell function.
27607
27608 2010-07-29  Eric Blake  <eblake@redhat.com>
27609
27610         strtod: aid debugging
27611         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
27612         understanding why strtod is rejected.
27613
27614 2010-07-28  Bruno Haible  <bruno@clisp.org>
27615
27616         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
27617         * lib/unistr/u8-chr.c: Include <string.h>.
27618         * tests/unistr/test-u8-chr.c: Likewise.
27619         * tests/unistr/test-u16-chr.c: Likewise.
27620         * tests/unistr/test-u32-chr.c: Likewise.
27621         * tests/unistr/test-u8-strchr.c: Likewise.
27622         * tests/unistr/test-u16-strchr.c: Likewise.
27623         * tests/unistr/test-u32-strchr.c: Likewise.
27624         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
27625         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
27626         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
27627         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
27628
27629 2010-07-28  Bruno Haible  <bruno@clisp.org>
27630
27631         Use spaces for indentation, not tabs.
27632         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
27633
27634 2010-07-27  Bruno Haible  <bruno@clisp.org>
27635
27636         mbspcasecmp: Fix function specification.
27637         * lib/string.in.h (mbspcasecmp): Fix specification comment.
27638         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
27639         Reported by Eric Blake <eblake@redhat.com>.
27640
27641 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
27642
27643         timespec: use cast and not conditional, as truncation isn't possible
27644         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
27645         instead of a conditional.  Comment about the situation in more detail.
27646         This undoes most of the 2009-10-29 patch.
27647
27648 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
27649
27650         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
27651         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
27652         * lib/unistr/u8-strchr.c: Likewise.
27653         * modules/unistr/u8-chr: Depend on memchr.
27654
27655         unistr/u*-strchr: add tests
27656         * modules/unistr/u8-strchr-tests: New file.
27657         * modules/unistr/u16-strchr-tests: New file.
27658         * modules/unistr/u32-strchr-tests: New file.
27659         * tests/unistr/test-strchr.h: New file.
27660         * tests/unistr/test-u8-strchr.c: New file.
27661         * tests/unistr/test-u16-strchr.c: New file.
27662         * tests/unistr/test-u32-strchr.c: New file.
27663
27664         unistr/u*-chr: test multibyte sequences more
27665         * tests/unistr/test-chr.h: Do complete testing of the characters in the
27666         test vector.
27667         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
27668         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
27669         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
27670
27671         unistr/u*-chr: test multibyte sequences
27672         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
27673
27674         unistr/u*-chr: prepare for multibyte tests
27675         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
27676         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
27677         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
27678         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
27679         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
27680         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
27681
27682 2010-07-18  Bruno Haible  <bruno@clisp.org>
27683
27684         unistr/u8-strchr: Optimize non-ASCII argument case.
27685         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
27686         because the first byte often matches anyway.
27687         Reported by Pádraig Brady <P@draigbrady.com>.
27688
27689 2010-07-15  Karl Berry  <karl@gnu.org>
27690
27691         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
27692
27693 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
27694
27695         getcwd: on Solaris, work better if ancestors are inaccessible
27696         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
27697         buffer and size, try again with a large buffer.  This works better
27698         on Solaris, since its getcwd succeeds even if the path to the root
27699         is inaccessible, and this is helpful in common cases such as .zfs
27700         hidden directories.  Problem reported by J Chapman Flack in
27701         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
27702         Use system getcwd if it's declared, not merely if it's partly
27703         working; use the partly-working test only to avoid needless effort
27704         if the system getcwd fails.
27705         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
27706         comment that was already obsolete and is now even more obsolete.
27707         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
27708         now might call strdup.
27709
27710 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
27711
27712         pthread: Add enough so that coreutils/src/sort.c compiles.
27713         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
27714         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
27715         gnulib. Include <sched.h> and <time.h>, as per POSIX.
27716         Include <sys/types.h>, in case it defines pthread_t.
27717         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
27718         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
27719         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
27720         (pthread_rwlockattr_t, pthread_spinlock_t):
27721         New typedefs, if HAVE_PTHREAD_T is not defined.
27722         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
27723         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
27724         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
27725         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
27726         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
27727         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
27728         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
27729         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
27730         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
27731         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
27732         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
27733         New macros.
27734         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
27735         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
27736         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
27737         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
27738         (pthread_spin_unlock): New dummy functions.
27739         (pthread_create): Return EAGAIN; don't set errno.
27740         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
27741         require AC_C_INLINE.
27742         * modules/pthread (Depends-on): Add sched, time.
27743         (pthread.h): Use AM_V_GEN.
27744
27745 2010-07-13  Bruno Haible  <bruno@clisp.org>
27746
27747         striconveh: Don't malloc memory if the result buffer is sufficient.
27748         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
27749         buffer if its size is sufficient.
27750         Reported by Ludovic Courtès <ludo@gnu.org>.
27751
27752 2010-07-13  Bruno Haible  <bruno@clisp.org>
27753
27754         strtod: Add safety check.
27755         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
27756
27757 2010-07-12  Bruno Haible  <bruno@clisp.org>
27758
27759         Unify tests that set gl_cv_func_ldexpl_no_libm.
27760         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
27761         gl_FUNC_LDEXPL.
27762         (gl_FUNC_LDEXPL): Invoke it.
27763         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
27764
27765 2010-07-12  Bruno Haible  <bruno@clisp.org>
27766
27767         Unify tests that set gl_cv_func_ldexp_no_libm.
27768         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
27769         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
27770         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
27771         (configure.ac): Simply invoke gl_FUNC_LDEXP.
27772         * modules/strtod (Files): Add m4/ldexp.m4.
27773
27774 2010-07-12  Bruno Haible  <bruno@clisp.org>
27775
27776         Unify tests that set gl_cv_func_frexpl_no_libm.
27777         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
27778         gl_FUNC_FREXPL_NO_LIBM.
27779         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
27780         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
27781
27782 2010-07-12  Bruno Haible  <bruno@clisp.org>
27783
27784         Unify tests that set gl_cv_func_frexp_no_libm.
27785         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
27786         gl_FUNC_FREXP_NO_LIBM.
27787         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
27788         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
27789
27790 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
27791
27792         memcoll: clarify sizes versus lengths, document better, and tweak perf
27793         * lib/memcoll.c (strcoll_loop, memcoll0):
27794         Improve quality of descriptive comments.  Name variables
27795         consistently as to whether they are lengths (which do not include
27796         terminating null) versus sizes (which do).
27797         * lib/xmemcoll.c (xmemcoll0): Likewise.
27798         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
27799         returned when s1size == 0; this is easier to compile and saves
27800         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
27801
27802 2010-07-12  Bruno Haible  <bruno@clisp.org>
27803
27804         Tests for module '_Exit'.
27805         * modules/_Exit-tests: New file.
27806         * tests/test-_Exit.sh: New file.
27807         * tests/test-_Exit.c: New file.
27808
27809         New module '_Exit'.
27810         * lib/stdlib.in.h (__attribute__): New macro.
27811         (_Exit): New declaration.
27812         * lib/_Exit.c: New file.
27813         * m4/_Exit.m4: New file.
27814         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
27815         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
27816         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
27817         * modules/_Exit: New file.
27818         * tests/test-stdlib-c++.cc (_Exit): Check signature.
27819         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
27820
27821 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
27822
27823         strtod: make it more-accurate typically, and don't require libm
27824         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
27825         Include limits.h.  Don't include string.h.
27826         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
27827         (locale_isspace): New function, so that no casts are needed to
27828         check whether *s is a space.
27829         (ldexp): Provide an unused dummy if not available.
27830         (scale_radix_exp, parse_number, underlying_strtod): New functions.
27831         (strtod): Use them.  This implementation prefers to use the
27832         underlying strtod if available, falling back on our own code
27833         only to fix known bugs.  This is more likely to produce an
27834         accurate result.  Also, it avoids the use of libm functions.
27835         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
27836         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
27837         was absent, but it caused a test failure with coreutils.
27838         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
27839         with libm.
27840         * modules/strtod (Makefile.am, Link): libm is no longer needed.
27841         * modules/strtod-tests (Makefile.am): Likewise.
27842
27843 2010-07-11  Pádraig Brady  <P@draigBrady.com>
27844             Bruno Haible  <bruno@clisp.org>
27845
27846         unistr/u8-strchr: Optimize ASCII argument case.
27847         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
27848
27849 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
27850
27851         (x)memcoll: minor tweaks
27852         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
27853         is after the type that it qualifies.
27854         (memcoll0): Likewise.
27855         * lib/memcoll.h (memcoll0): Likewise.
27856         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
27857         * lib/xmemcoll.h (xmemcoll0): Likewise.
27858         * lib/memcoll.c (memcoll0): Correct the comment.  This function
27859         differs from memcoll in that the NUL byte is part of the argument.
27860         Omit the abort-checks, as performance is a real issue here.  Plus,
27861         the checks were wrong anyway (an off-by-one error).  Omit local
27862         variable 'diff', as it's a bit clearer that way.
27863         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
27864         no longer needed.
27865
27866 2010-07-08  Chen Guo <chenguo4@yahoo.com>
27867
27868         (x)memcoll: speedup when input is known to be NUL delimited
27869         * lib/memcoll.c: Include stdlib.
27870         (memcoll0): New function.
27871         (strcoll_loop): New function, refactored for use in both memcoll
27872         and memcoll0.
27873         * lib/memcoll.h (memcoll0): Add prototype.
27874         * lib/xmemcoll.c (xmemcoll0): New function.
27875         (collate_error): New function, refactored for use in both xmemcoll
27876         and xmemcoll0.
27877         * lib/xmemcoll.h (xmemcoll0): Add prototype.
27878         * m4/memcoll.m4: add inline invocation.
27879
27880 2010-07-06  Pádraig Brady  <P@draigBrady.com>
27881
27882         * build-aux/bootstrap: Remove any local translations
27883         from the translation project synchronization directory,
27884         so that local only translations are not distributed.
27885
27886 2010-07-04  Bruno Haible  <bruno@clisp.org>
27887
27888         fsusage: Clarify which code applies to which platforms.
27889         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
27890         platform.
27891         * lib/fsusage.c (get_fs_usage): Likewise.
27892
27893 2010-07-04  Bruno Haible  <bruno@clisp.org>
27894
27895         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
27896         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
27897         Reported by Martin Lambers <marlam@marlam.de>.
27898
27899 2010-07-04  Jim Meyering  <meyering@redhat.com>
27900
27901         hash: once again explicitly disallow insertion of NULL
27902         * lib/hash.c (hash_insert0): Reinstate just-removed test:
27903         inserting a NULL pointer cannot work with these functions.
27904         Add a comment with details.
27905         This reverts part of the 2010-07-01 commit, 5bef1a35
27906         "hash: extend module to deal with non-pointer keys".
27907
27908 2010-07-01  Bruno Haible  <bruno@clisp.org>
27909
27910         stdbool: Update doc.
27911         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
27912         Info from Christian Weisgerber <naddy@mips.inka.de>.
27913
27914 2010-07-01  Jim Meyering  <meyering@redhat.com>
27915
27916         hash: extend module to deal with non-pointer keys
27917         * lib/hash.c (hash_insert0): New interface, much like hash_insert
27918         but that allows insertion of non-pointer entries.
27919         Do not disallow an ENTRY value of NULL.
27920         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
27921         * lib/hash.h (hash_insert0): Declare.
27922
27923 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
27924
27925         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
27926         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
27927         not present (i.e. with autoconf 2.59 and when using gettextize, not
27928         gnulib), require AC_GNU_SOURCE instead.
27929
27930 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
27931
27932         idpriv-drop: Fix tests.
27933         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
27934         not to the test-idpriv-droptemp program.
27935
27936 2010-06-29  Bruno Haible  <bruno@clisp.org>
27937
27938         string: Fix syntax error with g++ 2.96.
27939         * lib/string.in.h (__pure__): Remove definition.
27940         (_GL_ATTRIBUTE_PURE): New macro.
27941         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
27942         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
27943         Reported by Christian Weisgerber <naddy@mips.inka.de>.
27944
27945 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
27946
27947         unitypes: Fix bug introduced on 2010-05-18.
27948         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
27949
27950 2010-06-22  Eric Blake  <eblake@redhat.com>
27951
27952         memmem: slight optimization
27953         * lib/str-two-way.h (critical_factorization): Update comments.
27954         Reduce work during factorization phase.
27955         Reported by Carlos Bueno <carlos@bueno.org>.
27956
27957 2010-06-21  Bruno Haible  <bruno@clisp.org>
27958
27959         Fix HAVE_CALLOC_POSIX misnomer.
27960         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
27961         !HAVE_CALLOC_POSIX.
27962         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
27963         HAVE_CALLOC_POSIX.
27964         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
27965         instead of HAVE_CALLOC_POSIX.
27966         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
27967         HAVE_CALLOC_POSIX.
27968
27969         Use modern idiom for calloc() replacement.
27970         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
27971         AC_FUNC_CALLOC.
27972         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
27973         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
27974         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
27975         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
27976         (gl_REPLACE_CALLOC): New macro.
27977
27978 2010-06-21  Bruno Haible  <bruno@clisp.org>
27979
27980         Fix HAVE_REALLOC_POSIX misnomer.
27981         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
27982         !HAVE_REALLOC_POSIX.
27983         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
27984         HAVE_REALLOC_POSIX.
27985         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
27986         instead of HAVE_REALLOC_POSIX.
27987         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
27988         HAVE_REALLOC_POSIX.
27989
27990         Use modern idiom for realloc() replacement.
27991         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
27992         AC_FUNC_REALLOC.
27993         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
27994         Autoconf's AC_FUNC_REALLOC.
27995         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
27996         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
27997         (gl_REPLACE_REALLOC): New macro.
27998         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
27999
28000 2010-06-21  Bruno Haible  <bruno@clisp.org>
28001
28002         Fix HAVE_MALLOC_POSIX misnomer.
28003         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
28004         !HAVE_MALLOC_POSIX.
28005         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
28006         HAVE_MALLOC_POSIX.
28007         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
28008         instead of HAVE_MALLOC_POSIX.
28009         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
28010         HAVE_MALLOC_POSIX.
28011
28012         Use modern idiom for malloc() replacement.
28013         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
28014         AC_FUNC_MALLOC.
28015         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
28016         Autoconf's AC_FUNC_MALLOC.
28017         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
28018         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
28019         (gl_REPLACE_MALLOC): New macro.
28020         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
28021
28022 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
28023
28024         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
28025         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
28026         This macro takes 3 arguments, not 4.
28027
28028 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
28029
28030         ipv6: fix detection under mingw
28031         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
28032         in6_addr.
28033
28034 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
28035
28036         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
28037         that strtod() works when cross-compiling to a glibc version known
28038         to work.
28039
28040 2010-06-15  Bruno Haible  <bruno@clisp.org>
28041
28042         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
28043
28044 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
28045
28046         select: Correct timeout.
28047         * lib/select.c (rpl_select): Compute wait_timeout correctly.
28048
28049 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
28050
28051         git-version-gen: init shell var to avoid env var influence
28052         * build-aux/git-version-gen (v): Init shell var to empty.
28053
28054 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
28055
28056         priv-set: Don't assume that priv.h exists merely because getppriv does.
28057         See Jan Andersen's bug report about AIX 5L in
28058         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
28059         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
28060         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
28061         * lib/priv-set.h: Likewise.
28062         * tests/test-priv-set.c: Likewise.
28063
28064 2010-06-13  Bruno Haible  <bruno@clisp.org>
28065
28066         relocatable: Make it easier to test whether to install wrappers.
28067         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
28068         RELOCATABLE_VIA_WRAPPER.
28069
28070 2010-06-13  Bruno Haible  <bruno@clisp.org>
28071
28072         gnulib-tool: Display specified modules and dependencies differently.
28073         * gnulib-tool (func_show_module_list): New function.
28074         (func_import, func_create_testdir): Invoke it.
28075         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
28076
28077 2010-06-13  Bruno Haible  <bruno@clisp.org>
28078
28079         gnulib-tool: Align code of func_import and func_create_testdir.
28080         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
28081         specified_modules.
28082
28083 2010-06-12  Jim Meyering  <meyering@redhat.com>
28084
28085         test-inttostr: avoid spurious failure on Solaris 9
28086         * tests/test-inttostr.c (main): Skip the test when snprintf fails
28087         to accept "%ju".  Reported by Bruno Haible.
28088
28089 2010-06-11  Jim Meyering  <meyering@redhat.com>
28090
28091         test-sys_socket: mark variables as used more readably
28092         * tests/test-sys_socket.c (main): Mark otherwise unused variables
28093         as "used" explicitly via (void) statement casts.  This is more
28094         readable than using them in an artificial return expression.
28095         Suggestion from Bruno Haible.
28096
28097 2010-06-11  Bruno Haible  <bruno@clisp.org>
28098
28099         Avoid some more warnings from "gcc -Wwrite-strings".
28100         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
28101         to 'const char *'.
28102         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
28103         * tests/test-c-strcasestr.c (main): Likewise.
28104         * tests/test-mbscasestr1.c (main): Likewise.
28105         * tests/test-mbscasestr2.c (main): Likewise.
28106         * tests/test-memmem.c (main): Likewise.
28107         * tests/test-strstr.c (main): Likewise.
28108         * tests/test-strcasestr.c (main): Likewise.
28109
28110 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28111
28112         init.sh: change framework_failure_ to fail with status 99, not 1
28113         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
28114         automake's parallel-tests rule that this is an unexpected failure,
28115         even if the test is listed in XFAIL_TESTS.
28116
28117 2010-06-11  Jim Meyering  <meyering@redhat.com>
28118
28119         test-inttostr: avoid warnings about 4-6KB literal strings
28120         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
28121         Include "macros.h", for its definition of ASSERT.
28122         (CK): s/assert/ASSERT/
28123         * modules/inttostr-tests (Files): Add macros.h.
28124
28125         init.sh: don't use $ME_ or skip_ before they are defined
28126         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
28127         their first uses.  Also hoist their companions: warn_, fail_,
28128         framework_failure_, $stderr_fileno.  Prompted by a patch from
28129         Stefano Lattarini.
28130
28131         test-sys_socket: avoid set-but-not-used warnings from gcc
28132         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
28133         avoid warning about set-but-not-used variables.
28134
28135         test-xvasprintf: avoid 'const' discard warnings
28136         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
28137         "const" when assigning from literal strings.
28138         (test_xasprintf): Add "void" in function argument list to placate
28139         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
28140
28141         tests: avoid compilation warnings in argmatch and exclude tests...
28142         in packages that define ARGMATCH_DIE_DECL, like coreutils.
28143         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
28144         Since it always exits, declare with the "noreturn" attribute.
28145         * tests/test-argmatch.c: Likewise.
28146
28147         tests: avoid 'const' discard warnings in mbsstr tests
28148         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
28149         * tests/test-mbsstr2.c (main): Likewise.
28150
28151         test-verify: avoid warning from gcc's -Wmissing-declarations
28152         * tests/test-verify.c (function): Declare to be static.
28153
28154         test-inttostr.c: include <string.h> for use of strcmp
28155         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
28156
28157         test-linkat: avoid failed assertion on "other" architectures
28158         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
28159         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
28160         sparc: https://bugs.launchpad.net/bugs/591968
28161
28162 2010-06-11  Jim Meyering  <meyering@redhat.com>
28163
28164         printf.m4: avoid autoconf's "Expanded Before Required" warning
28165         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
28166         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
28167         autoconf warning.
28168
28169 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
28170
28171         Replacement header templates are now named with ".in", not "_".
28172         * doc/gnulib-intro.texi: Correct.
28173
28174 2010-06-10  Jim Meyering  <meyering@redhat.com>
28175
28176         inttostr-tests: depend on snprintf, not snprintf-posix
28177         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
28178         snprintf-posix, to avoid this aclocal failure:
28179           missing file gnulib-tests/vasnprintf.c
28180           configure.ac:45: error: expected source file, required through \
28181           AC_LIBSOURCES, not found
28182
28183 2010-06-10  Jim Meyering  <meyering@redhat.com>
28184
28185         inttostr: add a new function, inttostr, and tests
28186         The namesake function was not available.  The existence of the
28187         template file, inttostr.c makes its addition nontrivial.
28188         * lib/anytostr.c: Rename from inttostr.c.
28189         (anytostr): Rename from inttostr.
28190         * lib/inttostr.c: New file.
28191         * modules/inttostr (Files): Add anytostr.c.
28192         (Makefile.am): Set lib_SOURCES instead of ...
28193         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
28194         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
28195         * lib/offtostr.c: Likewise.
28196         * lib/uinttostr.c: Likewise.
28197         * lib/umaxtostr.c: Likewise.
28198         * modules/inttostr-tests: New file.
28199         * tests/test-inttostr.c: New file.  Test these functions.
28200
28201 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
28202             Bruno Haible  <bruno@clisp.org>
28203
28204         Add "Extending Gnulib" chapter to manual.
28205         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
28206         chapter.
28207         (Extending Gnulib): New chapter.
28208         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
28209         chapter.
28210
28211 2010-06-09  Bruno Haible  <bruno@clisp.org>
28212
28213         Avoid relocwrapper link errors due to gnulib replacement functions.
28214         * lib/areadlink.c: Use the system's malloc, realloc functions.
28215         (areadlink): Set errno to ENOMEM explicitly.
28216         * modules/areadlink (Depends-on): Remove malloc-posix.
28217         Reported by Ben Pfaff <blp@cs.stanford.edu>.
28218
28219 2010-06-09  Bruno Haible  <bruno@clisp.org>
28220
28221         Avoid relocwrapper link errors due to gnulib replacement functions.
28222         * lib/canonicalize-lgpl.c: Use the system's malloc function.
28223         * lib/malloca.c: Likewise.
28224         * lib/relocatable.c: Likewise.
28225         * lib/progreloc.c: Use the system's malloc, sprintf functions.
28226         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
28227         * lib/setenv.c: Use the system's malloc, realloc functions.
28228         * lib/strerror.c: Use the system's sprintf function.
28229         Reported by Ben Pfaff <blp@cs.stanford.edu>.
28230
28231 2010-06-04  Bruno Haible  <bruno@clisp.org>
28232
28233         Prefer documented low-level autoconf macro names.
28234         * m4/lib-link.m4: Use m4_translit instead of translit.
28235         * m4/environ.m4: Likewise.
28236         * m4/mathfunc.m4: Likewise.
28237         * m4/onceonly.m4: Likewise.
28238         * m4/stdint.m4: Likewise.
28239         Suggested by Eric Blake.
28240
28241 2010-06-04  Martin Lambers  <marlam@marlam.de>
28242             Bruno Haible  <bruno@clisp.org>
28243
28244         havelib: Allow library names with '+' characters.
28245         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
28246         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
28247
28248 2010-06-09  Bruno Haible  <bruno@clisp.org>
28249
28250         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
28251         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
28252         realloc failed.
28253
28254 2010-06-08  Peter Simons  <simons@cryp.to>
28255
28256         maint.mk: make the news-check rule more configurable
28257         * top/maint.mk (news-check-lines-spec): New variable.
28258         (news-check): Use "sed -n 1,10p" in place of "head".
28259
28260 2010-06-07  Jim Meyering  <meyering@redhat.com>
28261
28262         do-release-commit-and-tag: fix typo in --help
28263         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
28264
28265         regex: avoid new dead-code warning with gcc-4.6.0
28266         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
28267         if-block containing a while-loop.  It's been unused for at least
28268         5 years.
28269
28270 2010-06-05  Bruno Haible  <bruno@clisp.org>
28271
28272         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
28273         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
28274
28275 2010-06-04  Bruno Haible  <bruno@clisp.org>
28276
28277         Update to GNU gettext 0.18.1.
28278         * modules/gettext (configure.ac): Require gettext infrastructure from
28279         version 0.18.1.
28280
28281 2010-06-03  Bruno Haible  <bruno@clisp.org>
28282
28283         Don't use AC_LIBOBJ with file names in subdirectories.
28284         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
28285         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
28286         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
28287         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
28288         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
28289         gl_LIBUNISTRING_LIBSOURCE.
28290         (Makefile.am): Augment lib_SOURCES here, conditionally.
28291         * NEWS: Drop requirement for Automake option 'subdir-objects'.
28292
28293 2010-06-03  Bruno Haible  <bruno@clisp.org>
28294
28295         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
28296         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
28297         expansion does not end with a newline.
28298         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
28299         unnecessary newline.
28300
28301 2010-06-03  Bruno Haible  <bruno@clisp.org>
28302
28303         Reduce dependencies.
28304         * tests/test-quotearg.h: New file, extracted from
28305         tests/test-quotearg.c.
28306         * tests/test-quotearg-simple.c: New file, extracted from
28307         tests/test-quotearg.c.
28308         * tests/test-quotearg.c: Don't include <ctype.h>.
28309         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
28310         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
28311         use_quote_double_quotes, use_quotearg_colon): Moved to
28312         tests/test-quotearg.h.
28313         (results_g, flag_results, custom_quotes, custom_results): Moved
28314         to tests/test-quotearg-simple.c.
28315         (main): Moved the part that does not depend on gettext to
28316         tests/test-quotearg-simple.c. Return 77 if the test cannot be
28317         performed.
28318         * modules/quotearg-simple: New file.
28319         * modules/quotearg-simple-tests: New file.
28320         * modules/quotearg (Depends-on): Add quotearg-simple.
28321         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
28322         (Files): Add tests/test-quotearg.h.
28323         Reported by Paolo Bonzini.
28324
28325 2010-06-03  Bruno Haible  <bruno@clisp.org>
28326
28327         Reduce dependencies.
28328         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
28329
28330 2010-06-03  Bruno Haible  <bruno@clisp.org>
28331
28332         time: Undefine more broken macros.
28333         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
28334         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
28335         Reported by Eric Blake.
28336
28337 2010-06-03  Bruno Haible  <bruno@clisp.org>
28338
28339         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
28340         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
28341         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
28342         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
28343         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
28344         Reported by Ludovic Courtès <ludo@gnu.org>.
28345
28346 2010-06-02  Eric Blake  <eblake@redhat.com>
28347
28348         time: work with mingw + pthreads-win32 library
28349         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
28350         if timespec is defined only in pthread.h.
28351         * modules/time (Makefile.am): Substitute it.
28352         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
28353         <pthread.h>, when needed.
28354         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
28355         from the library.
28356
28357 2010-05-31  Bruno Haible  <bruno@clisp.org>
28358
28359         Avoid expanding two macros in the wrong order.
28360         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
28361         gl_LIBUNISTRING if it is defined.
28362         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
28363         autoconf >= 2.64.
28364         Reported by Ludovic Courtès <ludo@gnu.org>.
28365
28366 2010-05-27  Jim Meyering  <meyering@redhat.com>
28367
28368         maint.mk: also prohibit "#undef" of always-defined symbols
28369         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
28370         Allow more than one space before the symbol name.
28371         (sc_prohibit_always-defined_macros): Use grep's -E, now that
28372         the regexp uses alternation.
28373
28374 2010-05-26  Eric Blake  <eblake@redhat.com>
28375
28376         maint.mk: avoid echo -e
28377         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
28378         Convert all uses of echo -* to printf.
28379         Reported by Matthias Bolte.
28380
28381 2010-05-25  Bruno Haible  <bruno@clisp.org>
28382
28383         Update to GNU gettext 0.18, part 2.
28384         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
28385         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
28386
28387 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28388
28389         Add missing include in test-pwrite.c.
28390         * tests/test-pwrite.c: Include string.h, for strcmp.
28391
28392 2010-05-24  Bruno Haible  <bruno@clisp.org>
28393
28394         * NEWS: Mention requirement for Automake option 'subdir-objects'.
28395
28396 2010-05-24  Bruno Haible  <bruno@clisp.org>
28397
28398         Don't use conversion with transliteration in u{8,16,32}_strcoll.
28399         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
28400         iconveh_error argument.
28401         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
28402         U_STRCONV_TO_LOCALE.
28403         * lib/unistr/u16-strcoll.c: Likewise.
28404         * lib/unistr/u32-strcoll.c: Likewise.
28405         * modules/unistr/u8-strcoll (Depends-on): Add
28406         uniconv/u8-strconv-to-enc, localcharset. Remove
28407         uniconv/u8-strconv-to-locale.
28408         (configure.ac): Bump version number.
28409         * modules/unistr/u16-strcoll (Depends-on): Add
28410         uniconv/u16-strconv-to-enc, localcharset. Remove
28411         uniconv/u16-strconv-to-locale.
28412         (configure.ac): Bump version number.
28413         * modules/unistr/u32-strcoll (Depends-on): Add
28414         uniconv/u32-strconv-to-enc, localcharset. Remove
28415         uniconv/u32-strconv-to-locale.
28416         (configure.ac): Bump version number.
28417
28418 2010-05-24  Bruno Haible  <bruno@clisp.org>
28419
28420         Avoid a test failure on NetBSD 5.0.
28421         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
28422         an iconv() bug.
28423
28424 2010-05-24  Bruno Haible  <bruno@clisp.org>
28425
28426         Adjust #include directive style.
28427         * modules/regex (Includes): Recommend to write <regex.h>.
28428
28429 2010-05-24  Bruno Haible  <bruno@clisp.org>
28430
28431         regex: Don't require alloca.
28432         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
28433         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
28434         only inside if (0).
28435
28436 2010-05-23  Jim Meyering  <meyering@redhat.com>
28437
28438         test-renameat.c: include <sys/stat.h>
28439         * tests/test-renameat.c: Include <sys/stat.h>; required for
28440         definition of S_IS* macros.
28441
28442 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
28443
28444         Update maintainer documentation for 'relocatable-prog' module.
28445         * doc/relocatable-maint.texi: Update.
28446         Comments by Bruno Haible.
28447
28448 2010-05-23  Bruno Haible  <bruno@clisp.org>
28449
28450         git-merge-changelog: Enable --split-merged-entry by default.
28451         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
28452         (usage): Don't mention this option any more.
28453         Reported by Ralf Wildenhues.
28454
28455 2010-05-23  Jim Meyering  <meyering@redhat.com>
28456
28457         test-pwrite: do not leave behind a test file named "out"
28458         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
28459         The trivial-looking use of init.sh is really necessary.
28460         It ensures that the temporary file, "out", is created in
28461         a temporary directory, and removed upon termination.
28462         * tests/test-pwrite.sh: Re-add file.
28463         * modules/pwrite-tests: Reference it.
28464
28465 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28466
28467         Fix output redirection buglet in init.sh.
28468         * tests/init.sh: Fix redirection of stderr.
28469
28470 2010-05-20  Simon Josefsson  <simon@josefsson.org>
28471
28472         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
28473
28474 2010-05-17  Simon Josefsson  <simon@josefsson.org>
28475
28476         * modules/valgrind-tests: New file.
28477         * m4/valgrind-tests.m4: New file.
28478         * doc/valgrind-tests.texi: New file.
28479         * doc/gnulib.texi (Running self-tests under valgrind): New
28480         section.
28481
28482 2010-05-19  Bruno Haible  <bruno@clisp.org>
28483
28484         Clean up dead code in recent commit.
28485         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
28486         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
28487         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
28488         Suggested by Paolo Bonzini.
28489
28490 2010-05-19  Bruno Haible  <bruno@clisp.org>
28491
28492         Avoid valgrind error reports from libunistring.
28493         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
28494         * modules/libunistring (Files): Add it.
28495         * modules/libunistring-optional (Files): Likewise.
28496
28497 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
28498             Bruno Haible  <bruno@clisp.org>
28499
28500         New module 'libunistring-optional'.
28501         * modules/libunistring-optional: New file.
28502         * m4/libunistring-base.m4: New file.
28503         * m4/libunistring-optional.m4: New file.
28504         * lib/unicase.in.h: Renamed from lib/unicase.h.
28505         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
28506         * lib/unictype.in.h: Renamed from lib/unictype.h.
28507         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
28508         * lib/uniname.in.h: Renamed from lib/uniname.h.
28509         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
28510         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
28511         * lib/unistr.in.h: Renamed from lib/unistr.h.
28512         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
28513         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
28514         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
28515         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
28516         gl_LIBUNISTRING. If the library was found, determine the installed
28517         version and set LIBUNISTRING_VERSION.
28518         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
28519         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
28520         handle a configuration option --with-included-libunistring.
28521         * modules/libunistring (Files): Add m4/absolute-header.m4.
28522         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
28523         Add m4/libunistring-base.m4.
28524         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28525         (Makefile.am): Build unicase.h from unicase.in.h.
28526         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
28527         Add m4/libunistring-base.m4.
28528         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28529         (Makefile.am): Build uniconv.h from uniconv.in.h.
28530         * modules/unictype/base (Files): Use unictype.in.h instead of
28531         unictype.h. Add m4/libunistring-base.m4.
28532         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28533         (Makefile.am): Build unictype.h from unictype.in.h.
28534         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
28535         Add m4/libunistring-base.m4.
28536         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28537         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
28538         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
28539         Add m4/libunistring-base.m4.
28540         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28541         (Makefile.am): Build uniname.h from uniname.in.h.
28542         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
28543         Add m4/libunistring-base.m4.
28544         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28545         (Makefile.am): Build uninorm.h from uninorm.in.h.
28546         * modules/unistdio/base (Files): Use unistdio.in.h instead of
28547         unistdio.h. Add m4/libunistring-base.m4.
28548         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28549         (Makefile.am): Build unistdio.h from unistdio.in.h.
28550         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
28551         Add m4/libunistring-base.m4.
28552         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28553         (Makefile.am): Build unistr.h from unistr.in.h.
28554         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
28555         Add m4/libunistring-base.m4.
28556         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28557         (Makefile.am): Build unitypes.h from unitypes.in.h.
28558         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
28559         Add m4/libunistring-base.m4.
28560         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28561         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
28562         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
28563         uniwidth.h. Add m4/libunistring-base.m4.
28564         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28565         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
28566         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
28567         instead of augmenting lib_SOURCES.
28568         * modules/unicase/empty-suffix-context: Likewise.
28569         * modules/unicase/locale-language: Likewise.
28570         * modules/unicase/tolower: Likewise.
28571         * modules/unicase/totitle: Likewise.
28572         * modules/unicase/toupper: Likewise.
28573         * modules/unicase/u8-casecmp: Likewise.
28574         * modules/unicase/u8-casecoll: Likewise.
28575         * modules/unicase/u8-casefold: Likewise.
28576         * modules/unicase/u8-casexfrm: Likewise.
28577         * modules/unicase/u8-ct-casefold: Likewise.
28578         * modules/unicase/u8-ct-tolower: Likewise.
28579         * modules/unicase/u8-ct-totitle: Likewise.
28580         * modules/unicase/u8-ct-toupper: Likewise.
28581         * modules/unicase/u8-is-cased: Likewise.
28582         * modules/unicase/u8-is-casefolded: Likewise.
28583         * modules/unicase/u8-is-lowercase: Likewise.
28584         * modules/unicase/u8-is-titlecase: Likewise.
28585         * modules/unicase/u8-is-uppercase: Likewise.
28586         * modules/unicase/u8-prefix-context: Likewise.
28587         * modules/unicase/u8-suffix-context: Likewise.
28588         * modules/unicase/u8-tolower: Likewise.
28589         * modules/unicase/u8-totitle: Likewise.
28590         * modules/unicase/u8-toupper: Likewise.
28591         * modules/unicase/u16-casecmp: Likewise.
28592         * modules/unicase/u16-casecoll: Likewise.
28593         * modules/unicase/u16-casefold: Likewise.
28594         * modules/unicase/u16-casexfrm: Likewise.
28595         * modules/unicase/u16-ct-casefold: Likewise.
28596         * modules/unicase/u16-ct-tolower: Likewise.
28597         * modules/unicase/u16-ct-totitle: Likewise.
28598         * modules/unicase/u16-ct-toupper: Likewise.
28599         * modules/unicase/u16-is-cased: Likewise.
28600         * modules/unicase/u16-is-casefolded: Likewise.
28601         * modules/unicase/u16-is-lowercase: Likewise.
28602         * modules/unicase/u16-is-titlecase: Likewise.
28603         * modules/unicase/u16-is-uppercase: Likewise.
28604         * modules/unicase/u16-prefix-context: Likewise.
28605         * modules/unicase/u16-suffix-context: Likewise.
28606         * modules/unicase/u16-tolower: Likewise.
28607         * modules/unicase/u16-totitle: Likewise.
28608         * modules/unicase/u16-toupper: Likewise.
28609         * modules/unicase/u32-casecmp: Likewise.
28610         * modules/unicase/u32-casecoll: Likewise.
28611         * modules/unicase/u32-casefold: Likewise.
28612         * modules/unicase/u32-casexfrm: Likewise.
28613         * modules/unicase/u32-ct-casefold: Likewise.
28614         * modules/unicase/u32-ct-tolower: Likewise.
28615         * modules/unicase/u32-ct-totitle: Likewise.
28616         * modules/unicase/u32-ct-toupper: Likewise.
28617         * modules/unicase/u32-is-cased: Likewise.
28618         * modules/unicase/u32-is-casefolded: Likewise.
28619         * modules/unicase/u32-is-lowercase: Likewise.
28620         * modules/unicase/u32-is-titlecase: Likewise.
28621         * modules/unicase/u32-is-uppercase: Likewise.
28622         * modules/unicase/u32-prefix-context: Likewise.
28623         * modules/unicase/u32-suffix-context: Likewise.
28624         * modules/unicase/u32-tolower: Likewise.
28625         * modules/unicase/u32-totitle: Likewise.
28626         * modules/unicase/u32-toupper: Likewise.
28627         * modules/unicase/ulc-casecmp: Likewise.
28628         * modules/unicase/ulc-casecoll: Likewise.
28629         * modules/unicase/ulc-casexfrm: Likewise.
28630         * modules/uniconv/u8-conv-from-enc: Likewise.
28631         * modules/uniconv/u8-conv-to-enc: Likewise.
28632         * modules/uniconv/u8-strconv-from-enc: Likewise.
28633         * modules/uniconv/u8-strconv-from-locale: Likewise.
28634         * modules/uniconv/u8-strconv-to-enc: Likewise.
28635         * modules/uniconv/u8-strconv-to-locale: Likewise.
28636         * modules/uniconv/u16-conv-from-enc: Likewise.
28637         * modules/uniconv/u16-conv-to-enc: Likewise.
28638         * modules/uniconv/u16-strconv-from-enc: Likewise.
28639         * modules/uniconv/u16-strconv-from-locale: Likewise.
28640         * modules/uniconv/u16-strconv-to-enc: Likewise.
28641         * modules/uniconv/u16-strconv-to-locale: Likewise.
28642         * modules/uniconv/u32-conv-from-enc: Likewise.
28643         * modules/uniconv/u32-conv-to-enc: Likewise.
28644         * modules/uniconv/u32-strconv-from-enc: Likewise.
28645         * modules/uniconv/u32-strconv-from-locale: Likewise.
28646         * modules/uniconv/u32-strconv-to-enc: Likewise.
28647         * modules/uniconv/u32-strconv-to-locale: Likewise.
28648         * modules/unictype/bidicategory-byname: Likewise.
28649         * modules/unictype/bidicategory-name: Likewise.
28650         * modules/unictype/bidicategory-of: Likewise.
28651         * modules/unictype/bidicategory-test: Likewise.
28652         * modules/unictype/block-list: Likewise.
28653         * modules/unictype/block-test: Likewise.
28654         * modules/unictype/category-C: Likewise.
28655         * modules/unictype/category-Cc: Likewise.
28656         * modules/unictype/category-Cf: Likewise.
28657         * modules/unictype/category-Cn: Likewise.
28658         * modules/unictype/category-Co: Likewise.
28659         * modules/unictype/category-Cs: Likewise.
28660         * modules/unictype/category-L: Likewise.
28661         * modules/unictype/category-Ll: Likewise.
28662         * modules/unictype/category-Lm: Likewise.
28663         * modules/unictype/category-Lo: Likewise.
28664         * modules/unictype/category-Lt: Likewise.
28665         * modules/unictype/category-Lu: Likewise.
28666         * modules/unictype/category-M: Likewise.
28667         * modules/unictype/category-Mc: Likewise.
28668         * modules/unictype/category-Me: Likewise.
28669         * modules/unictype/category-Mn: Likewise.
28670         * modules/unictype/category-N: Likewise.
28671         * modules/unictype/category-Nd: Likewise.
28672         * modules/unictype/category-Nl: Likewise.
28673         * modules/unictype/category-No: Likewise.
28674         * modules/unictype/category-P: Likewise.
28675         * modules/unictype/category-Pc: Likewise.
28676         * modules/unictype/category-Pd: Likewise.
28677         * modules/unictype/category-Pe: Likewise.
28678         * modules/unictype/category-Pf: Likewise.
28679         * modules/unictype/category-Pi: Likewise.
28680         * modules/unictype/category-Po: Likewise.
28681         * modules/unictype/category-Ps: Likewise.
28682         * modules/unictype/category-S: Likewise.
28683         * modules/unictype/category-Sc: Likewise.
28684         * modules/unictype/category-Sk: Likewise.
28685         * modules/unictype/category-Sm: Likewise.
28686         * modules/unictype/category-So: Likewise.
28687         * modules/unictype/category-Z: Likewise.
28688         * modules/unictype/category-Zl: Likewise.
28689         * modules/unictype/category-Zp: Likewise.
28690         * modules/unictype/category-Zs: Likewise.
28691         * modules/unictype/category-and: Likewise.
28692         * modules/unictype/category-and-not: Likewise.
28693         * modules/unictype/category-byname: Likewise.
28694         * modules/unictype/category-name: Likewise.
28695         * modules/unictype/category-none: Likewise.
28696         * modules/unictype/category-of: Likewise.
28697         * modules/unictype/category-or: Likewise.
28698         * modules/unictype/category-test: Likewise.
28699         * modules/unictype/combining-class: Likewise.
28700         * modules/unictype/ctype-alnum: Likewise.
28701         * modules/unictype/ctype-alpha: Likewise.
28702         * modules/unictype/ctype-blank: Likewise.
28703         * modules/unictype/ctype-cntrl: Likewise.
28704         * modules/unictype/ctype-digit: Likewise.
28705         * modules/unictype/ctype-graph: Likewise.
28706         * modules/unictype/ctype-lower: Likewise.
28707         * modules/unictype/ctype-print: Likewise.
28708         * modules/unictype/ctype-punct: Likewise.
28709         * modules/unictype/ctype-space: Likewise.
28710         * modules/unictype/ctype-upper: Likewise.
28711         * modules/unictype/ctype-xdigit: Likewise.
28712         * modules/unictype/decimal-digit: Likewise.
28713         * modules/unictype/digit: Likewise.
28714         * modules/unictype/mirror: Likewise.
28715         * modules/unictype/numeric: Likewise.
28716         * modules/unictype/property-alphabetic: Likewise.
28717         * modules/unictype/property-ascii-hex-digit: Likewise.
28718         * modules/unictype/property-bidi-arabic-digit: Likewise.
28719         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
28720         * modules/unictype/property-bidi-block-separator: Likewise.
28721         * modules/unictype/property-bidi-boundary-neutral: Likewise.
28722         * modules/unictype/property-bidi-common-separator: Likewise.
28723         * modules/unictype/property-bidi-control: Likewise.
28724         * modules/unictype/property-bidi-embedding-or-override: Likewise.
28725         * modules/unictype/property-bidi-eur-num-separator: Likewise.
28726         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
28727         * modules/unictype/property-bidi-european-digit: Likewise.
28728         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
28729         * modules/unictype/property-bidi-left-to-right: Likewise.
28730         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
28731         * modules/unictype/property-bidi-other-neutral: Likewise.
28732         * modules/unictype/property-bidi-pdf: Likewise.
28733         * modules/unictype/property-bidi-segment-separator: Likewise.
28734         * modules/unictype/property-bidi-whitespace: Likewise.
28735         * modules/unictype/property-byname: Likewise.
28736         * modules/unictype/property-combining: Likewise.
28737         * modules/unictype/property-composite: Likewise.
28738         * modules/unictype/property-currency-symbol: Likewise.
28739         * modules/unictype/property-dash: Likewise.
28740         * modules/unictype/property-decimal-digit: Likewise.
28741         * modules/unictype/property-default-ignorable-code-point: Likewise.
28742         * modules/unictype/property-deprecated: Likewise.
28743         * modules/unictype/property-diacritic: Likewise.
28744         * modules/unictype/property-extender: Likewise.
28745         * modules/unictype/property-format-control: Likewise.
28746         * modules/unictype/property-grapheme-base: Likewise.
28747         * modules/unictype/property-grapheme-extend: Likewise.
28748         * modules/unictype/property-grapheme-link: Likewise.
28749         * modules/unictype/property-hex-digit: Likewise.
28750         * modules/unictype/property-hyphen: Likewise.
28751         * modules/unictype/property-id-continue: Likewise.
28752         * modules/unictype/property-id-start: Likewise.
28753         * modules/unictype/property-ideographic: Likewise.
28754         * modules/unictype/property-ids-binary-operator: Likewise.
28755         * modules/unictype/property-ids-trinary-operator: Likewise.
28756         * modules/unictype/property-ignorable-control: Likewise.
28757         * modules/unictype/property-iso-control: Likewise.
28758         * modules/unictype/property-join-control: Likewise.
28759         * modules/unictype/property-left-of-pair: Likewise.
28760         * modules/unictype/property-line-separator: Likewise.
28761         * modules/unictype/property-logical-order-exception: Likewise.
28762         * modules/unictype/property-lowercase: Likewise.
28763         * modules/unictype/property-math: Likewise.
28764         * modules/unictype/property-non-break: Likewise.
28765         * modules/unictype/property-not-a-character: Likewise.
28766         * modules/unictype/property-numeric: Likewise.
28767         * modules/unictype/property-other-alphabetic: Likewise.
28768         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
28769         * modules/unictype/property-other-grapheme-extend: Likewise.
28770         * modules/unictype/property-other-id-continue: Likewise.
28771         * modules/unictype/property-other-id-start: Likewise.
28772         * modules/unictype/property-other-lowercase: Likewise.
28773         * modules/unictype/property-other-math: Likewise.
28774         * modules/unictype/property-other-uppercase: Likewise.
28775         * modules/unictype/property-paired-punctuation: Likewise.
28776         * modules/unictype/property-paragraph-separator: Likewise.
28777         * modules/unictype/property-pattern-syntax: Likewise.
28778         * modules/unictype/property-pattern-white-space: Likewise.
28779         * modules/unictype/property-private-use: Likewise.
28780         * modules/unictype/property-punctuation: Likewise.
28781         * modules/unictype/property-quotation-mark: Likewise.
28782         * modules/unictype/property-radical: Likewise.
28783         * modules/unictype/property-sentence-terminal: Likewise.
28784         * modules/unictype/property-soft-dotted: Likewise.
28785         * modules/unictype/property-space: Likewise.
28786         * modules/unictype/property-terminal-punctuation: Likewise.
28787         * modules/unictype/property-test: Likewise.
28788         * modules/unictype/property-titlecase: Likewise.
28789         * modules/unictype/property-unassigned-code-value: Likewise.
28790         * modules/unictype/property-unified-ideograph: Likewise.
28791         * modules/unictype/property-uppercase: Likewise.
28792         * modules/unictype/property-variation-selector: Likewise.
28793         * modules/unictype/property-white-space: Likewise.
28794         * modules/unictype/property-xid-continue: Likewise.
28795         * modules/unictype/property-xid-start: Likewise.
28796         * modules/unictype/property-zero-width: Likewise.
28797         * modules/unictype/scripts: Likewise.
28798         * modules/unictype/syntax-c-ident: Likewise.
28799         * modules/unictype/syntax-c-whitespace: Likewise.
28800         * modules/unictype/syntax-java-ident: Likewise.
28801         * modules/unictype/syntax-java-whitespace: Likewise.
28802         * modules/unilbrk/u8-possible-linebreaks: Likewise.
28803         * modules/unilbrk/u8-width-linebreaks: Likewise.
28804         * modules/unilbrk/u16-possible-linebreaks: Likewise.
28805         * modules/unilbrk/u16-width-linebreaks: Likewise.
28806         * modules/unilbrk/u32-possible-linebreaks: Likewise.
28807         * modules/unilbrk/u32-width-linebreaks: Likewise.
28808         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
28809         * modules/unilbrk/ulc-width-linebreaks: Likewise.
28810         * modules/uniname/uniname: Likewise.
28811         * modules/uninorm/canonical-decomposition: Likewise.
28812         * modules/uninorm/composition: Likewise.
28813         * modules/uninorm/decomposing-form: Likewise.
28814         * modules/uninorm/decomposition: Likewise.
28815         * modules/uninorm/filter: Likewise.
28816         * modules/uninorm/nfc: Likewise.
28817         * modules/uninorm/nfd: Likewise.
28818         * modules/uninorm/nfkc: Likewise.
28819         * modules/uninorm/nfkd: Likewise.
28820         * modules/uninorm/u8-normalize: Likewise.
28821         * modules/uninorm/u8-normcmp: Likewise.
28822         * modules/uninorm/u8-normcoll: Likewise.
28823         * modules/uninorm/u8-normxfrm: Likewise.
28824         * modules/uninorm/u16-normalize: Likewise.
28825         * modules/uninorm/u16-normcmp: Likewise.
28826         * modules/uninorm/u16-normcoll: Likewise.
28827         * modules/uninorm/u16-normxfrm: Likewise.
28828         * modules/uninorm/u32-normalize: Likewise.
28829         * modules/uninorm/u32-normcmp: Likewise.
28830         * modules/uninorm/u32-normcoll: Likewise.
28831         * modules/uninorm/u32-normxfrm: Likewise.
28832         * modules/unistdio/u8-asnprintf: Likewise.
28833         * modules/unistdio/u8-asprintf: Likewise.
28834         * modules/unistdio/u8-snprintf: Likewise.
28835         * modules/unistdio/u8-sprintf: Likewise.
28836         * modules/unistdio/u8-u8-asnprintf: Likewise.
28837         * modules/unistdio/u8-u8-asprintf: Likewise.
28838         * modules/unistdio/u8-u8-snprintf: Likewise.
28839         * modules/unistdio/u8-u8-sprintf: Likewise.
28840         * modules/unistdio/u8-u8-vasnprintf: Likewise.
28841         * modules/unistdio/u8-u8-vasprintf: Likewise.
28842         * modules/unistdio/u8-u8-vsnprintf: Likewise.
28843         * modules/unistdio/u8-u8-vsprintf: Likewise.
28844         * modules/unistdio/u8-vasnprintf: Likewise.
28845         * modules/unistdio/u8-vasprintf: Likewise.
28846         * modules/unistdio/u8-vsnprintf: Likewise.
28847         * modules/unistdio/u8-vsprintf: Likewise.
28848         * modules/unistdio/u16-asnprintf: Likewise.
28849         * modules/unistdio/u16-asprintf: Likewise.
28850         * modules/unistdio/u16-snprintf: Likewise.
28851         * modules/unistdio/u16-sprintf: Likewise.
28852         * modules/unistdio/u16-u16-asnprintf: Likewise.
28853         * modules/unistdio/u16-u16-asprintf: Likewise.
28854         * modules/unistdio/u16-u16-snprintf: Likewise.
28855         * modules/unistdio/u16-u16-sprintf: Likewise.
28856         * modules/unistdio/u16-u16-vasnprintf: Likewise.
28857         * modules/unistdio/u16-u16-vasprintf: Likewise.
28858         * modules/unistdio/u16-u16-vsnprintf: Likewise.
28859         * modules/unistdio/u16-u16-vsprintf: Likewise.
28860         * modules/unistdio/u16-vasnprintf: Likewise.
28861         * modules/unistdio/u16-vasprintf: Likewise.
28862         * modules/unistdio/u16-vsnprintf: Likewise.
28863         * modules/unistdio/u16-vsprintf: Likewise.
28864         * modules/unistdio/u32-asnprintf: Likewise.
28865         * modules/unistdio/u32-asprintf: Likewise.
28866         * modules/unistdio/u32-snprintf: Likewise.
28867         * modules/unistdio/u32-sprintf: Likewise.
28868         * modules/unistdio/u32-u32-asnprintf: Likewise.
28869         * modules/unistdio/u32-u32-asprintf: Likewise.
28870         * modules/unistdio/u32-u32-snprintf: Likewise.
28871         * modules/unistdio/u32-u32-sprintf: Likewise.
28872         * modules/unistdio/u32-u32-vasnprintf: Likewise.
28873         * modules/unistdio/u32-u32-vasprintf: Likewise.
28874         * modules/unistdio/u32-u32-vsnprintf: Likewise.
28875         * modules/unistdio/u32-u32-vsprintf: Likewise.
28876         * modules/unistdio/u32-vasnprintf: Likewise.
28877         * modules/unistdio/u32-vasprintf: Likewise.
28878         * modules/unistdio/u32-vsnprintf: Likewise.
28879         * modules/unistdio/u32-vsprintf: Likewise.
28880         * modules/unistdio/ulc-asnprintf: Likewise.
28881         * modules/unistdio/ulc-asprintf: Likewise.
28882         * modules/unistdio/ulc-fprintf: Likewise.
28883         * modules/unistdio/ulc-snprintf: Likewise.
28884         * modules/unistdio/ulc-sprintf: Likewise.
28885         * modules/unistdio/ulc-vasnprintf: Likewise.
28886         * modules/unistdio/ulc-vasprintf: Likewise.
28887         * modules/unistdio/ulc-vfprintf: Likewise.
28888         * modules/unistdio/ulc-vsnprintf: Likewise.
28889         * modules/unistdio/ulc-vsprintf: Likewise.
28890         * modules/unistr/u8-check: Likewise.
28891         * modules/unistr/u8-chr: Likewise.
28892         * modules/unistr/u8-cmp: Likewise.
28893         * modules/unistr/u8-cmp2: Likewise.
28894         * modules/unistr/u8-cpy: Likewise.
28895         * modules/unistr/u8-cpy-alloc: Likewise.
28896         * modules/unistr/u8-endswith: Likewise.
28897         * modules/unistr/u8-mblen: Likewise.
28898         * modules/unistr/u8-mbsnlen: Likewise.
28899         * modules/unistr/u8-mbtouc: Likewise.
28900         * modules/unistr/u8-mbtouc-unsafe: Likewise.
28901         * modules/unistr/u8-mbtoucr: Likewise.
28902         * modules/unistr/u8-move: Likewise.
28903         * modules/unistr/u8-next: Likewise.
28904         * modules/unistr/u8-prev: Likewise.
28905         * modules/unistr/u8-set: Likewise.
28906         * modules/unistr/u8-startswith: Likewise.
28907         * modules/unistr/u8-stpcpy: Likewise.
28908         * modules/unistr/u8-stpncpy: Likewise.
28909         * modules/unistr/u8-strcat: Likewise.
28910         * modules/unistr/u8-strchr: Likewise.
28911         * modules/unistr/u8-strcmp: Likewise.
28912         * modules/unistr/u8-strcoll: Likewise.
28913         * modules/unistr/u8-strcpy: Likewise.
28914         * modules/unistr/u8-strcspn: Likewise.
28915         * modules/unistr/u8-strdup: Likewise.
28916         * modules/unistr/u8-strlen: Likewise.
28917         * modules/unistr/u8-strmblen: Likewise.
28918         * modules/unistr/u8-strmbtouc: Likewise.
28919         * modules/unistr/u8-strncat: Likewise.
28920         * modules/unistr/u8-strncmp: Likewise.
28921         * modules/unistr/u8-strncpy: Likewise.
28922         * modules/unistr/u8-strnlen: Likewise.
28923         * modules/unistr/u8-strpbrk: Likewise.
28924         * modules/unistr/u8-strrchr: Likewise.
28925         * modules/unistr/u8-strspn: Likewise.
28926         * modules/unistr/u8-strstr: Likewise.
28927         * modules/unistr/u8-strtok: Likewise.
28928         * modules/unistr/u8-to-u16: Likewise.
28929         * modules/unistr/u8-to-u32: Likewise.
28930         * modules/unistr/u8-uctomb: Likewise.
28931         * modules/unistr/u16-check: Likewise.
28932         * modules/unistr/u16-chr: Likewise.
28933         * modules/unistr/u16-cmp: Likewise.
28934         * modules/unistr/u16-cmp2: Likewise.
28935         * modules/unistr/u16-cpy: Likewise.
28936         * modules/unistr/u16-cpy-alloc: Likewise.
28937         * modules/unistr/u16-endswith: Likewise.
28938         * modules/unistr/u16-mblen: Likewise.
28939         * modules/unistr/u16-mbsnlen: Likewise.
28940         * modules/unistr/u16-mbtouc: Likewise.
28941         * modules/unistr/u16-mbtouc-unsafe: Likewise.
28942         * modules/unistr/u16-mbtoucr: Likewise.
28943         * modules/unistr/u16-move: Likewise.
28944         * modules/unistr/u16-next: Likewise.
28945         * modules/unistr/u16-prev: Likewise.
28946         * modules/unistr/u16-set: Likewise.
28947         * modules/unistr/u16-startswith: Likewise.
28948         * modules/unistr/u16-stpcpy: Likewise.
28949         * modules/unistr/u16-stpncpy: Likewise.
28950         * modules/unistr/u16-strcat: Likewise.
28951         * modules/unistr/u16-strchr: Likewise.
28952         * modules/unistr/u16-strcmp: Likewise.
28953         * modules/unistr/u16-strcoll: Likewise.
28954         * modules/unistr/u16-strcpy: Likewise.
28955         * modules/unistr/u16-strcspn: Likewise.
28956         * modules/unistr/u16-strdup: Likewise.
28957         * modules/unistr/u16-strlen: Likewise.
28958         * modules/unistr/u16-strmblen: Likewise.
28959         * modules/unistr/u16-strmbtouc: Likewise.
28960         * modules/unistr/u16-strncat: Likewise.
28961         * modules/unistr/u16-strncmp: Likewise.
28962         * modules/unistr/u16-strncpy: Likewise.
28963         * modules/unistr/u16-strnlen: Likewise.
28964         * modules/unistr/u16-strpbrk: Likewise.
28965         * modules/unistr/u16-strrchr: Likewise.
28966         * modules/unistr/u16-strspn: Likewise.
28967         * modules/unistr/u16-strstr: Likewise.
28968         * modules/unistr/u16-strtok: Likewise.
28969         * modules/unistr/u16-to-u32: Likewise.
28970         * modules/unistr/u16-to-u8: Likewise.
28971         * modules/unistr/u16-uctomb: Likewise.
28972         * modules/unistr/u32-check: Likewise.
28973         * modules/unistr/u32-chr: Likewise.
28974         * modules/unistr/u32-cmp: Likewise.
28975         * modules/unistr/u32-cmp2: Likewise.
28976         * modules/unistr/u32-cpy: Likewise.
28977         * modules/unistr/u32-cpy-alloc: Likewise.
28978         * modules/unistr/u32-endswith: Likewise.
28979         * modules/unistr/u32-mblen: Likewise.
28980         * modules/unistr/u32-mbsnlen: Likewise.
28981         * modules/unistr/u32-mbtouc: Likewise.
28982         * modules/unistr/u32-mbtouc-unsafe: Likewise.
28983         * modules/unistr/u32-mbtoucr: Likewise.
28984         * modules/unistr/u32-move: Likewise.
28985         * modules/unistr/u32-next: Likewise.
28986         * modules/unistr/u32-prev: Likewise.
28987         * modules/unistr/u32-set: Likewise.
28988         * modules/unistr/u32-startswith: Likewise.
28989         * modules/unistr/u32-stpcpy: Likewise.
28990         * modules/unistr/u32-stpncpy: Likewise.
28991         * modules/unistr/u32-strcat: Likewise.
28992         * modules/unistr/u32-strchr: Likewise.
28993         * modules/unistr/u32-strcmp: Likewise.
28994         * modules/unistr/u32-strcoll: Likewise.
28995         * modules/unistr/u32-strcpy: Likewise.
28996         * modules/unistr/u32-strcspn: Likewise.
28997         * modules/unistr/u32-strdup: Likewise.
28998         * modules/unistr/u32-strlen: Likewise.
28999         * modules/unistr/u32-strmblen: Likewise.
29000         * modules/unistr/u32-strmbtouc: Likewise.
29001         * modules/unistr/u32-strncat: Likewise.
29002         * modules/unistr/u32-strncmp: Likewise.
29003         * modules/unistr/u32-strncpy: Likewise.
29004         * modules/unistr/u32-strnlen: Likewise.
29005         * modules/unistr/u32-strpbrk: Likewise.
29006         * modules/unistr/u32-strrchr: Likewise.
29007         * modules/unistr/u32-strspn: Likewise.
29008         * modules/unistr/u32-strstr: Likewise.
29009         * modules/unistr/u32-strtok: Likewise.
29010         * modules/unistr/u32-to-u16: Likewise.
29011         * modules/unistr/u32-to-u8: Likewise.
29012         * modules/unistr/u32-uctomb: Likewise.
29013         * modules/uniwbrk/u8-wordbreaks: Likewise.
29014         * modules/uniwbrk/u16-wordbreaks: Likewise.
29015         * modules/uniwbrk/u32-wordbreaks: Likewise.
29016         * modules/uniwbrk/ulc-wordbreaks: Likewise.
29017         * modules/uniwbrk/wordbreak-property: Likewise.
29018         * modules/uniwidth/u8-strwidth: Likewise.
29019         * modules/uniwidth/u8-width: Likewise.
29020         * modules/uniwidth/u16-strwidth: Likewise.
29021         * modules/uniwidth/u16-width: Likewise.
29022         * modules/uniwidth/u32-strwidth: Likewise.
29023         * modules/uniwidth/u32-width: Likewise.
29024         * modules/uniwidth/width: Likewise.
29025         * modules/unicase/cased-tests (Makefile.am): Link all test programs
29026         with $(LIBUNISTRING).
29027         * modules/unicase/ignorable-tests: Likewise.
29028         * modules/unicase/locale-language-tests: Likewise.
29029         * modules/unicase/tolower-tests: Likewise.
29030         * modules/unicase/totitle-tests: Likewise.
29031         * modules/unicase/toupper-tests: Likewise.
29032         * modules/unicase/u8-casecmp-tests: Likewise.
29033         * modules/unicase/u8-casecoll-tests: Likewise.
29034         * modules/unicase/u8-casefold-tests: Likewise.
29035         * modules/unicase/u8-is-cased-tests: Likewise.
29036         * modules/unicase/u8-is-casefolded-tests: Likewise.
29037         * modules/unicase/u8-is-lowercase-tests: Likewise.
29038         * modules/unicase/u8-is-titlecase-tests: Likewise.
29039         * modules/unicase/u8-is-uppercase-tests: Likewise.
29040         * modules/unicase/u8-tolower-tests: Likewise.
29041         * modules/unicase/u8-totitle-tests: Likewise.
29042         * modules/unicase/u8-toupper-tests: Likewise.
29043         * modules/unicase/u16-casecmp-tests: Likewise.
29044         * modules/unicase/u16-casecoll-tests: Likewise.
29045         * modules/unicase/u16-casefold-tests: Likewise.
29046         * modules/unicase/u16-is-cased-tests: Likewise.
29047         * modules/unicase/u16-is-casefolded-tests: Likewise.
29048         * modules/unicase/u16-is-lowercase-tests: Likewise.
29049         * modules/unicase/u16-is-titlecase-tests: Likewise.
29050         * modules/unicase/u16-is-uppercase-tests: Likewise.
29051         * modules/unicase/u16-tolower-tests: Likewise.
29052         * modules/unicase/u16-totitle-tests: Likewise.
29053         * modules/unicase/u16-toupper-tests: Likewise.
29054         * modules/unicase/u32-casecmp-tests: Likewise.
29055         * modules/unicase/u32-casecoll-tests: Likewise.
29056         * modules/unicase/u32-casefold-tests: Likewise.
29057         * modules/unicase/u32-is-cased-tests: Likewise.
29058         * modules/unicase/u32-is-casefolded-tests: Likewise.
29059         * modules/unicase/u32-is-lowercase-tests: Likewise.
29060         * modules/unicase/u32-is-titlecase-tests: Likewise.
29061         * modules/unicase/u32-is-uppercase-tests: Likewise.
29062         * modules/unicase/u32-tolower-tests: Likewise.
29063         * modules/unicase/u32-totitle-tests: Likewise.
29064         * modules/unicase/u32-toupper-tests: Likewise.
29065         * modules/unicase/ulc-casecmp-tests: Likewise.
29066         * modules/unicase/ulc-casecoll-tests: Likewise.
29067         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
29068         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
29069         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
29070         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
29071         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
29072         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
29073         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
29074         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
29075         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
29076         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
29077         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
29078         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
29079         * modules/unictype/bidicategory-byname-tests: Likewise.
29080         * modules/unictype/bidicategory-name-tests: Likewise.
29081         * modules/unictype/bidicategory-of-tests: Likewise.
29082         * modules/unictype/bidicategory-test-tests: Likewise.
29083         * modules/unictype/block-list-tests: Likewise.
29084         * modules/unictype/block-of-tests: Likewise.
29085         * modules/unictype/block-test-tests: Likewise.
29086         * modules/unictype/category-C-tests: Likewise.
29087         * modules/unictype/category-Cc-tests: Likewise.
29088         * modules/unictype/category-Cf-tests: Likewise.
29089         * modules/unictype/category-Cn-tests: Likewise.
29090         * modules/unictype/category-Co-tests: Likewise.
29091         * modules/unictype/category-Cs-tests: Likewise.
29092         * modules/unictype/category-L-tests: Likewise.
29093         * modules/unictype/category-Ll-tests: Likewise.
29094         * modules/unictype/category-Lm-tests: Likewise.
29095         * modules/unictype/category-Lo-tests: Likewise.
29096         * modules/unictype/category-Lt-tests: Likewise.
29097         * modules/unictype/category-Lu-tests: Likewise.
29098         * modules/unictype/category-M-tests: Likewise.
29099         * modules/unictype/category-Mc-tests: Likewise.
29100         * modules/unictype/category-Me-tests: Likewise.
29101         * modules/unictype/category-Mn-tests: Likewise.
29102         * modules/unictype/category-N-tests: Likewise.
29103         * modules/unictype/category-Nd-tests: Likewise.
29104         * modules/unictype/category-Nl-tests: Likewise.
29105         * modules/unictype/category-No-tests: Likewise.
29106         * modules/unictype/category-P-tests: Likewise.
29107         * modules/unictype/category-Pc-tests: Likewise.
29108         * modules/unictype/category-Pd-tests: Likewise.
29109         * modules/unictype/category-Pe-tests: Likewise.
29110         * modules/unictype/category-Pf-tests: Likewise.
29111         * modules/unictype/category-Pi-tests: Likewise.
29112         * modules/unictype/category-Po-tests: Likewise.
29113         * modules/unictype/category-Ps-tests: Likewise.
29114         * modules/unictype/category-S-tests: Likewise.
29115         * modules/unictype/category-Sc-tests: Likewise.
29116         * modules/unictype/category-Sk-tests: Likewise.
29117         * modules/unictype/category-Sm-tests: Likewise.
29118         * modules/unictype/category-So-tests: Likewise.
29119         * modules/unictype/category-Z-tests: Likewise.
29120         * modules/unictype/category-Zl-tests: Likewise.
29121         * modules/unictype/category-Zp-tests: Likewise.
29122         * modules/unictype/category-Zs-tests: Likewise.
29123         * modules/unictype/category-and-not-tests: Likewise.
29124         * modules/unictype/category-and-tests: Likewise.
29125         * modules/unictype/category-byname-tests: Likewise.
29126         * modules/unictype/category-name-tests: Likewise.
29127         * modules/unictype/category-none-tests: Likewise.
29128         * modules/unictype/category-of-tests: Likewise.
29129         * modules/unictype/category-or-tests: Likewise.
29130         * modules/unictype/category-test-withtable-tests: Likewise.
29131         * modules/unictype/combining-class-tests: Likewise.
29132         * modules/unictype/ctype-alnum-tests: Likewise.
29133         * modules/unictype/ctype-alpha-tests: Likewise.
29134         * modules/unictype/ctype-blank-tests: Likewise.
29135         * modules/unictype/ctype-cntrl-tests: Likewise.
29136         * modules/unictype/ctype-digit-tests: Likewise.
29137         * modules/unictype/ctype-graph-tests: Likewise.
29138         * modules/unictype/ctype-lower-tests: Likewise.
29139         * modules/unictype/ctype-print-tests: Likewise.
29140         * modules/unictype/ctype-punct-tests: Likewise.
29141         * modules/unictype/ctype-space-tests: Likewise.
29142         * modules/unictype/ctype-upper-tests: Likewise.
29143         * modules/unictype/ctype-xdigit-tests: Likewise.
29144         * modules/unictype/decimal-digit-tests: Likewise.
29145         * modules/unictype/digit-tests: Likewise.
29146         * modules/unictype/mirror-tests: Likewise.
29147         * modules/unictype/numeric-tests: Likewise.
29148         * modules/unictype/property-alphabetic-tests: Likewise.
29149         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
29150         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
29151         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
29152         * modules/unictype/property-bidi-block-separator-tests: Likewise.
29153         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
29154         * modules/unictype/property-bidi-common-separator-tests: Likewise.
29155         * modules/unictype/property-bidi-control-tests: Likewise.
29156         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
29157         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
29158         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
29159         * modules/unictype/property-bidi-european-digit-tests: Likewise.
29160         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
29161         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
29162         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
29163         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
29164         * modules/unictype/property-bidi-pdf-tests: Likewise.
29165         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
29166         * modules/unictype/property-bidi-whitespace-tests: Likewise.
29167         * modules/unictype/property-byname-tests: Likewise.
29168         * modules/unictype/property-combining-tests: Likewise.
29169         * modules/unictype/property-composite-tests: Likewise.
29170         * modules/unictype/property-currency-symbol-tests: Likewise.
29171         * modules/unictype/property-dash-tests: Likewise.
29172         * modules/unictype/property-decimal-digit-tests: Likewise.
29173         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
29174         * modules/unictype/property-deprecated-tests: Likewise.
29175         * modules/unictype/property-diacritic-tests: Likewise.
29176         * modules/unictype/property-extender-tests: Likewise.
29177         * modules/unictype/property-format-control-tests: Likewise.
29178         * modules/unictype/property-grapheme-base-tests: Likewise.
29179         * modules/unictype/property-grapheme-extend-tests: Likewise.
29180         * modules/unictype/property-grapheme-link-tests: Likewise.
29181         * modules/unictype/property-hex-digit-tests: Likewise.
29182         * modules/unictype/property-hyphen-tests: Likewise.
29183         * modules/unictype/property-id-continue-tests: Likewise.
29184         * modules/unictype/property-id-start-tests: Likewise.
29185         * modules/unictype/property-ideographic-tests: Likewise.
29186         * modules/unictype/property-ids-binary-operator-tests: Likewise.
29187         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
29188         * modules/unictype/property-ignorable-control-tests: Likewise.
29189         * modules/unictype/property-iso-control-tests: Likewise.
29190         * modules/unictype/property-join-control-tests: Likewise.
29191         * modules/unictype/property-left-of-pair-tests: Likewise.
29192         * modules/unictype/property-line-separator-tests: Likewise.
29193         * modules/unictype/property-logical-order-exception-tests: Likewise.
29194         * modules/unictype/property-lowercase-tests: Likewise.
29195         * modules/unictype/property-math-tests: Likewise.
29196         * modules/unictype/property-non-break-tests: Likewise.
29197         * modules/unictype/property-not-a-character-tests: Likewise.
29198         * modules/unictype/property-numeric-tests: Likewise.
29199         * modules/unictype/property-other-alphabetic-tests: Likewise.
29200         * modules/unictype/property-other-default-ignorable-code-point-tests:
29201         Likewise.
29202         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
29203         * modules/unictype/property-other-id-continue-tests: Likewise.
29204         * modules/unictype/property-other-id-start-tests: Likewise.
29205         * modules/unictype/property-other-lowercase-tests: Likewise.
29206         * modules/unictype/property-other-math-tests: Likewise.
29207         * modules/unictype/property-other-uppercase-tests: Likewise.
29208         * modules/unictype/property-paired-punctuation-tests: Likewise.
29209         * modules/unictype/property-paragraph-separator-tests: Likewise.
29210         * modules/unictype/property-pattern-syntax-tests: Likewise.
29211         * modules/unictype/property-pattern-white-space-tests: Likewise.
29212         * modules/unictype/property-private-use-tests: Likewise.
29213         * modules/unictype/property-punctuation-tests: Likewise.
29214         * modules/unictype/property-quotation-mark-tests: Likewise.
29215         * modules/unictype/property-radical-tests: Likewise.
29216         * modules/unictype/property-sentence-terminal-tests: Likewise.
29217         * modules/unictype/property-soft-dotted-tests: Likewise.
29218         * modules/unictype/property-space-tests: Likewise.
29219         * modules/unictype/property-terminal-punctuation-tests: Likewise.
29220         * modules/unictype/property-test-tests: Likewise.
29221         * modules/unictype/property-titlecase-tests: Likewise.
29222         * modules/unictype/property-unassigned-code-value-tests: Likewise.
29223         * modules/unictype/property-unified-ideograph-tests: Likewise.
29224         * modules/unictype/property-uppercase-tests: Likewise.
29225         * modules/unictype/property-variation-selector-tests: Likewise.
29226         * modules/unictype/property-white-space-tests: Likewise.
29227         * modules/unictype/property-xid-continue-tests: Likewise.
29228         * modules/unictype/property-xid-start-tests: Likewise.
29229         * modules/unictype/property-zero-width-tests: Likewise.
29230         * modules/unictype/scripts-tests: Likewise.
29231         * modules/unictype/syntax-c-ident-tests: Likewise.
29232         * modules/unictype/syntax-c-whitespace-tests: Likewise.
29233         * modules/unictype/syntax-java-ident-tests: Likewise.
29234         * modules/unictype/syntax-java-whitespace-tests: Likewise.
29235         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
29236         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
29237         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
29238         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
29239         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
29240         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
29241         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
29242         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
29243         * modules/uniname/uniname-tests: Likewise.
29244         * modules/uninorm/canonical-decomposition-tests: Likewise.
29245         * modules/uninorm/compat-decomposition-tests: Likewise.
29246         * modules/uninorm/composition-tests: Likewise.
29247         * modules/uninorm/decomposing-form-tests: Likewise.
29248         * modules/uninorm/decomposition-tests: Likewise.
29249         * modules/uninorm/filter-tests: Likewise.
29250         * modules/uninorm/nfc-tests: Likewise.
29251         * modules/uninorm/nfd-tests: Likewise.
29252         * modules/uninorm/nfkc-tests: Likewise.
29253         * modules/uninorm/nfkd-tests: Likewise.
29254         * modules/uninorm/u8-normcmp-tests: Likewise.
29255         * modules/uninorm/u8-normcoll-tests: Likewise.
29256         * modules/uninorm/u16-normcmp-tests: Likewise.
29257         * modules/uninorm/u16-normcoll-tests: Likewise.
29258         * modules/uninorm/u32-normcmp-tests: Likewise.
29259         * modules/uninorm/u32-normcoll-tests: Likewise.
29260         * modules/unistdio/u8-asnprintf-tests: Likewise.
29261         * modules/unistdio/u8-vasnprintf-tests: Likewise.
29262         * modules/unistdio/u8-vasprintf-tests: Likewise.
29263         * modules/unistdio/u8-vsnprintf-tests: Likewise.
29264         * modules/unistdio/u8-vsprintf-tests: Likewise.
29265         * modules/unistdio/u16-asnprintf-tests: Likewise.
29266         * modules/unistdio/u16-vasnprintf-tests: Likewise.
29267         * modules/unistdio/u16-vasprintf-tests: Likewise.
29268         * modules/unistdio/u16-vsnprintf-tests: Likewise.
29269         * modules/unistdio/u16-vsprintf-tests: Likewise.
29270         * modules/unistdio/u32-asnprintf-tests: Likewise.
29271         * modules/unistdio/u32-vasnprintf-tests: Likewise.
29272         * modules/unistdio/u32-vasprintf-tests: Likewise.
29273         * modules/unistdio/u32-vsnprintf-tests: Likewise.
29274         * modules/unistdio/u32-vsprintf-tests: Likewise.
29275         * modules/unistdio/ulc-asnprintf-tests: Likewise.
29276         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
29277         * modules/unistdio/ulc-vasprintf-tests: Likewise.
29278         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
29279         * modules/unistdio/ulc-vsprintf-tests: Likewise.
29280         * modules/unistr/u8-check-tests: Likewise.
29281         * modules/unistr/u8-chr-tests: Likewise.
29282         * modules/unistr/u8-cmp-tests: Likewise.
29283         * modules/unistr/u8-cmp2-tests: Likewise.
29284         * modules/unistr/u8-cpy-alloc-tests: Likewise.
29285         * modules/unistr/u8-cpy-tests: Likewise.
29286         * modules/unistr/u8-mblen-tests: Likewise.
29287         * modules/unistr/u8-mbsnlen-tests: Likewise.
29288         * modules/unistr/u8-mbtouc-tests: Likewise.
29289         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
29290         * modules/unistr/u8-mbtoucr-tests: Likewise.
29291         * modules/unistr/u8-move-tests: Likewise.
29292         * modules/unistr/u8-next-tests: Likewise.
29293         * modules/unistr/u8-prev-tests: Likewise.
29294         * modules/unistr/u8-set-tests: Likewise.
29295         * modules/unistr/u8-stpcpy-tests: Likewise.
29296         * modules/unistr/u8-stpncpy-tests: Likewise.
29297         * modules/unistr/u8-strcat-tests: Likewise.
29298         * modules/unistr/u8-strcmp-tests: Likewise.
29299         * modules/unistr/u8-strcoll-tests: Likewise.
29300         * modules/unistr/u8-strcpy-tests: Likewise.
29301         * modules/unistr/u8-strdup-tests: Likewise.
29302         * modules/unistr/u8-strlen-tests: Likewise.
29303         * modules/unistr/u8-strmblen-tests: Likewise.
29304         * modules/unistr/u8-strmbtouc-tests: Likewise.
29305         * modules/unistr/u8-strncat-tests: Likewise.
29306         * modules/unistr/u8-strncmp-tests: Likewise.
29307         * modules/unistr/u8-strncpy-tests: Likewise.
29308         * modules/unistr/u8-strnlen-tests: Likewise.
29309         * modules/unistr/u8-to-u16-tests: Likewise.
29310         * modules/unistr/u8-to-u32-tests: Likewise.
29311         * modules/unistr/u8-uctomb-tests: Likewise.
29312         * modules/unistr/u16-check-tests: Likewise.
29313         * modules/unistr/u16-chr-tests: Likewise.
29314         * modules/unistr/u16-cmp-tests: Likewise.
29315         * modules/unistr/u16-cmp2-tests: Likewise.
29316         * modules/unistr/u16-cpy-alloc-tests: Likewise.
29317         * modules/unistr/u16-cpy-tests: Likewise.
29318         * modules/unistr/u16-mblen-tests: Likewise.
29319         * modules/unistr/u16-mbsnlen-tests: Likewise.
29320         * modules/unistr/u16-mbtouc-tests: Likewise.
29321         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
29322         * modules/unistr/u16-mbtoucr-tests: Likewise.
29323         * modules/unistr/u16-move-tests: Likewise.
29324         * modules/unistr/u16-next-tests: Likewise.
29325         * modules/unistr/u16-prev-tests: Likewise.
29326         * modules/unistr/u16-set-tests: Likewise.
29327         * modules/unistr/u16-stpcpy-tests: Likewise.
29328         * modules/unistr/u16-stpncpy-tests: Likewise.
29329         * modules/unistr/u16-strcat-tests: Likewise.
29330         * modules/unistr/u16-strcmp-tests: Likewise.
29331         * modules/unistr/u16-strcoll-tests: Likewise.
29332         * modules/unistr/u16-strcpy-tests: Likewise.
29333         * modules/unistr/u16-strdup-tests: Likewise.
29334         * modules/unistr/u16-strlen-tests: Likewise.
29335         * modules/unistr/u16-strmblen-tests: Likewise.
29336         * modules/unistr/u16-strmbtouc-tests: Likewise.
29337         * modules/unistr/u16-strncat-tests: Likewise.
29338         * modules/unistr/u16-strncmp-tests: Likewise.
29339         * modules/unistr/u16-strncpy-tests: Likewise.
29340         * modules/unistr/u16-strnlen-tests: Likewise.
29341         * modules/unistr/u16-to-u32-tests: Likewise.
29342         * modules/unistr/u16-to-u8-tests: Likewise.
29343         * modules/unistr/u16-uctomb-tests: Likewise.
29344         * modules/unistr/u32-check-tests: Likewise.
29345         * modules/unistr/u32-chr-tests: Likewise.
29346         * modules/unistr/u32-cmp-tests: Likewise.
29347         * modules/unistr/u32-cmp2-tests: Likewise.
29348         * modules/unistr/u32-cpy-alloc-tests: Likewise.
29349         * modules/unistr/u32-cpy-tests: Likewise.
29350         * modules/unistr/u32-mblen-tests: Likewise.
29351         * modules/unistr/u32-mbsnlen-tests: Likewise.
29352         * modules/unistr/u32-mbtouc-tests: Likewise.
29353         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
29354         * modules/unistr/u32-mbtoucr-tests: Likewise.
29355         * modules/unistr/u32-move-tests: Likewise.
29356         * modules/unistr/u32-next-tests: Likewise.
29357         * modules/unistr/u32-prev-tests: Likewise.
29358         * modules/unistr/u32-set-tests: Likewise.
29359         * modules/unistr/u32-stpcpy-tests: Likewise.
29360         * modules/unistr/u32-stpncpy-tests: Likewise.
29361         * modules/unistr/u32-strcat-tests: Likewise.
29362         * modules/unistr/u32-strcmp-tests: Likewise.
29363         * modules/unistr/u32-strcoll-tests: Likewise.
29364         * modules/unistr/u32-strcpy-tests: Likewise.
29365         * modules/unistr/u32-strdup-tests: Likewise.
29366         * modules/unistr/u32-strlen-tests: Likewise.
29367         * modules/unistr/u32-strmblen-tests: Likewise.
29368         * modules/unistr/u32-strmbtouc-tests: Likewise.
29369         * modules/unistr/u32-strncat-tests: Likewise.
29370         * modules/unistr/u32-strncmp-tests: Likewise.
29371         * modules/unistr/u32-strncpy-tests: Likewise.
29372         * modules/unistr/u32-strnlen-tests: Likewise.
29373         * modules/unistr/u32-to-u16-tests: Likewise.
29374         * modules/unistr/u32-to-u8-tests: Likewise.
29375         * modules/unistr/u32-uctomb-tests: Likewise.
29376         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
29377         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
29378         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
29379         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
29380         * modules/uniwidth/u8-strwidth-tests: Likewise.
29381         * modules/uniwidth/u8-width-tests: Likewise.
29382         * modules/uniwidth/u16-strwidth-tests: Likewise.
29383         * modules/uniwidth/u16-width-tests: Likewise.
29384         * modules/uniwidth/u32-strwidth-tests: Likewise.
29385         * modules/uniwidth/u32-width-tests: Likewise.
29386         * modules/uniwidth/width-tests: Likewise.
29387
29388 2010-05-18  Richard Jones  <rjones@redhat.com>
29389
29390         doc: users.txt: list hivex
29391         * users.txt: Add hivex.
29392
29393 2010-05-18  Richard Jones  <rjones@redhat.com>
29394
29395         doc: users.txt: list febootstrap
29396         * users.txt: Add febootstrap.
29397
29398 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
29399
29400         bootstrap: fix an error when gnulib is not used as a git submodule
29401         * build-aux/bootstrap (gnulib_path): If its length is zero then
29402         assign "gnulib" to it.
29403         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
29404
29405 2010-05-16  Bruno Haible  <bruno@clisp.org>
29406
29407         Avoid autoconf warnings about AM_ICONV.
29408         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
29409         2.64.
29410
29411 2010-05-16  Bruno Haible  <bruno@clisp.org>
29412
29413         absolute-header: Make the macro usable in more situations.
29414         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
29415         from gl_ABSOLUTE_HEADER.
29416         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
29417
29418 2010-05-16  James Youngman  <jay@gnu.org>
29419
29420         doc: update users.txt
29421         * users.txt: Add CSSC.
29422
29423 2010-05-16  Jim Meyering  <meyering@redhat.com>
29424
29425         init.sh: fix an error in the previous change; add more comments
29426         * tests/init.sh: Compare exit code in loop against 9, not 2.
29427         Patch by Bruno Haible.
29428         Make the two tests more similar by adding an empty "then" clause.
29429         Add comments.
29430
29431         init.sh: avoid unnecessary shell re-exec
29432         * tests/init.sh: Improve the re-exec-required check to first test the
29433         current shell.  If it passes the test, do not search for a shell that
29434         does pass, and do not re-exec.  This test is particularly contorted to
29435         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
29436         of $(...) evokes a syntax error and causes immediate shell exit with
29437         status 2.  Bruno Haible reported that the re-exec made it impossible
29438         to single-step through any init.sh-using script.
29439
29440 2010-05-16  Bruno Haible  <bruno@clisp.org>
29441
29442         Fix collision between gnulib's and libintl's printf replacements.
29443         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
29444         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
29445         (printf): When using GNU C, map the __printf__ function to rpl_printf
29446         via __asm__. When not using GNU C, define rpl_printf instead of
29447         __printf__.
29448         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
29449         commit.
29450         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
29451         commit.
29452         * m4/asm-underscore.m4: New file.
29453         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
29454         * modules/stdio (Files): Add m4/asm-underscore.m4.
29455         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
29456         Reported by Ben Pfaff.
29457
29458 2010-05-16  Bruno Haible  <bruno@clisp.org>
29459
29460         verify: Avoid skipping the test on openSUSE 11.0.
29461         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
29462
29463 2010-05-13  Bruno Haible  <bruno@clisp.org>
29464
29465         Avoid useless warnings from G++.
29466         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
29467         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
29468         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
29469
29470 2010-05-11  Jim Meyering  <meyering@redhat.com>
29471
29472         maint.mk: tweak preceding change
29473         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
29474         regexps tighter by anchoring at EOL, and make the new group "shy"
29475         for slightly decreased overhead.
29476
29477 2010-05-11  Eric Blake  <eblake@redhat.com>
29478
29479         maint.mk: gnulib doesn't guarantee NSIG
29480         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
29481
29482 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
29483
29484         test-pwrite.c: Remove unused variable declaration.
29485         * tests/test-pwrite.c (main): Remove read_buf declaration.
29486
29487         Remove useless test-pwrite.sh file.
29488         * tests/test-pwrite.sh: Delete file.
29489         * modules/pwrite-tests: Remove references.
29490         Reported by Bruno Haible.
29491
29492 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
29493
29494         init.sh: fix a typo
29495         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
29496
29497 2010-05-10  Jim Meyering  <meyering@redhat.com>
29498
29499         maint.mk: avoid using a temporary file in the always-defined-macros check
29500         * top/maint.mk (.re-defmac): Remove rule.
29501         (gl_trap_): Remove definition.
29502         (sc_prohibit_always-defined_macros): Rewrite not to create and
29503         depend on a temporary file.  Instead, depend on GNU grep's ability
29504         to read a list of regular expressions from stdin when given "-f -".
29505
29506 2010-05-09  Bruno Haible  <bruno@clisp.org>
29507
29508         Update to GNU gettext 0.18, part 1.
29509         * m4/gettext.m4: Update to GNU gettext 0.18.
29510         * m4/intl.m4: Likewise.
29511         * m4/po.m4: Likewise.
29512         * modules/gettext (Files): Add m4/fcntl-o.m4.
29513         (configure.ac): Require gettext infrastructure from version 0.18.
29514
29515 2010-05-09  Jim Meyering  <meyering@redhat.com>
29516
29517         init.sh: enable MALLOC_PERTURB_
29518         * tests/init.sh: Enable glibc's malloc-perturbing option.
29519
29520         maint.mk: improve sc_cross_check_PATH_usage_in_tests
29521         With my recent change in init.sh from the two-line form:
29522             -#   : ${srcdir=.}
29523             -#   . "$srcdir/init.sh"; path_prepend_ .
29524             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
29525         I noticed that using the one-line form would cause this test
29526         to fail with a false-positive, or to stop working altogether,
29527         depending on whether help-version changed or all the tests did.
29528         * top/maint.mk (_hv_regex): Remove this definition.
29529         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
29530         (_hv_regex_strong): Use a stronger regex to check for conformance.
29531         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
29532         Give a separate diagnostic for lack of conforming use.
29533
29534         maint.mk: prohibit definition of symbols defined by gnulib
29535         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
29536         definition of symbols defined by gnulib.
29537
29538 2010-05-09  Bruno Haible  <bruno@clisp.org>
29539
29540         acl: Avoid test failure on Cygwin-hosted mingw.
29541         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
29542
29543 2010-05-09  Bruno Haible  <bruno@clisp.org>
29544
29545         error: Use system's fcntl function.
29546         * lib/error.c (fcntl): Undefine.
29547
29548 2010-05-09  Jim Meyering  <meyering@redhat.com>
29549
29550         verify: adjust formatting to be more consistent
29551         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
29552         argument-list '('s, and after one comma.
29553
29554 2010-05-09  Bruno Haible  <bruno@clisp.org>
29555
29556         error: More reliable output on mingw.
29557         * lib/error.c: Include <windows.h>.
29558         (is_open): New function.
29559         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
29560         defined.
29561
29562 2010-05-09  Bruno Haible  <bruno@clisp.org>
29563
29564         vasnprintf: Fix syntax errors in libintl build on mingw.
29565         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
29566         pad_ourselves and prec_ourselves after use.
29567
29568 2010-05-08  Bruno Haible  <bruno@clisp.org>
29569
29570         * lib/config.charset: Update comments for Cygwin 1.7.
29571         * lib/localcharset.c: Likewise.
29572
29573 2010-05-07  Jim Meyering  <meyering@redhat.com>
29574
29575         init.sh: improve comments
29576         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
29577         . "${srcdir=.}/init.sh"; path_prepend_ .
29578         Add a note about path_prepend_ and the alternative of using
29579         TESTS_ENVIRONMENT.
29580
29581 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
29582
29583         exclude: Unescape hashed patterns in wildcard mode.
29584         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
29585         to the hash list.
29586         * tests/test-exclude8.sh: New test case.
29587         * modules/exclude-tests: Add new test.
29588
29589 2010-05-05  Eric Blake  <eblake@redhat.com>
29590
29591         verify: automate tests
29592         * modules/verify-tests: New module.
29593         * tests/test-verify.sh: New file.
29594         * tests/test-verify.c: Guard each negative test with a unique id.
29595         Also avoid warning about unused left hand of comma expressions.
29596
29597 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
29598
29599         Further improvements to verify.h, suggested by Eric Blake.
29600         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
29601         the GL_* versions, to avoid collision with OpenGL.
29602         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
29603         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
29604         than testing merely whether it's defined.
29605
29606         Modify verify.h to pacify gcc -Wredundant_decls.
29607         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
29608         These use the prefix "GL_" since they're likely to be useful elsewhere.
29609         We may need to break them out into a different .h file.
29610         (__COUNTER__): Define to 0 if the compiler doesn't support it.
29611         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
29612         of verify_function__.
29613
29614 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
29615
29616         Tests for module pwrite.
29617         * modules/pwrite-tests: New file.
29618         * tests/test-pwrite.sh: New file.
29619         * tests/test-pwrite.c: New file.
29620
29621         New module pwrite.
29622         * lib/unistd.in.h (pwrite): New declaration.
29623         * lib/pwrite.c: New file, from glibc with modifications.
29624         * m4/pwrite.m4: New file.
29625         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
29626         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
29627         REPLACE_PWRITE.
29628         * modules/pwrite: New file.
29629         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
29630         REPLACE_PWRITE.
29631         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
29632         * doc/posix-functions/pwrite.texi: Mention the new module.
29633
29634 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
29635
29636         pread: Update documentation.
29637         * doc/posix-functions/pread.texi: Mention the 'pread' module.
29638
29639 2010-05-04  Eric Blake  <eblake@redhat.com>
29640
29641         docs: update cygwin progress
29642         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
29643         this bug.
29644         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
29645         Added in cygwin 1.7.2.
29646         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
29647         Likewise.
29648         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
29649         Likewise.
29650         * doc/glibc-functions/dup3.texi (dup3): Likewise.
29651         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
29652         * doc/glibc-functions/accept4.texi (accept4): Likewise.
29653         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
29654         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
29655         Mention nproc module.
29656         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
29657         bug in cygwin 1.7.5 addition.
29658         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
29659         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
29660         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
29661         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
29662         1.7.5.
29663         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
29664         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
29665         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
29666         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
29667         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
29668         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
29669         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
29670         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
29671         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
29672         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
29673         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
29674         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
29675         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
29676         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
29677         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
29678         Likewise.
29679         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
29680         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
29681         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
29682         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
29683         Likewise.
29684         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
29685         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
29686         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
29687         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
29688         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
29689         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
29690         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
29691         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
29692         Likewise.
29693         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
29694         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
29695         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
29696         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
29697         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
29698         Likewise.
29699         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
29700         Likewise.
29701         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
29702         Likewise.
29703         * doc/glibc-functions/xdrrec_endofrecord.texi
29704         (xdrrec_endofrecord): Likewise.
29705         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
29706         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
29707         Likewise.
29708         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
29709         Likewise.
29710
29711 2010-05-04  Jim Meyering  <meyering@redhat.com>
29712
29713         gendocs.sh: make its "-s FILE" option more useful
29714         * build-aux/gendocs.sh: When honoring the -s FILE option, update
29715         $PACKAGE to reflect the probably-different basename of "FILE".
29716
29717 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
29718
29719         bootstrap: don't ignore download_po_files failure
29720         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
29721         failure.
29722
29723 2010-05-03  Jim Meyering  <meyering@redhat.com>
29724
29725         maint.mk: allow to pass options to gendocs.sh
29726         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
29727         (gendocs_options_): New overridable variable.
29728
29729         gnu-web-doc-update: don't ignore configure or build failure
29730         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
29731
29732         announce-gen: backslash-escape '@'s in --help output
29733         * build-aux/announce-gen: Fix syntax errors.
29734
29735         maint.mk, announce-gen: allow project-specific announcement mail headers
29736         * top/maint.mk (translation_project_): Define default.
29737         (announcement_Cc_, announcement_mail_headers_): Likewise.
29738         (announcement): Invoke announce-gen with new --mail-headers option.
29739         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
29740
29741         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
29742         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
29743         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
29744         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
29745         line in the "err2" output file when running "make check" in verbose
29746         mode (i.e., with set -x enabled).
29747
29748 2010-05-03  Bruno Haible  <bruno@clisp.org>
29749
29750         wctob: Fix for weird platforms.
29751         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
29752         argument value.
29753
29754 2010-05-03  Jim Meyering  <meyering@redhat.com>
29755
29756         maint.mk: prohibit unwarranted use of <strings.h>
29757         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
29758         strings.h in a file that does not also use strcasecmp, strncasecmp,
29759         ffs or ffsll.
29760
29761         maint.mk: remove obsolete comments
29762         * top/maint.mk: Remove stale, commented-out rules.
29763
29764 2010-05-02  Bruno Haible  <bruno@clisp.org>
29765
29766         wcwidth: Declare also when it's aliased.
29767         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
29768         macro.
29769
29770 2010-05-02  Bruno Haible  <bruno@clisp.org>
29771
29772         Fix regression from 2010-04-25.
29773         * gnulib-tool (func_modules_transitive_closure): Check the status of
29774         all modules, not only of the tests that are of the form foo-tests where
29775         foo is a module.
29776
29777 2010-05-02  Bruno Haible  <bruno@clisp.org>
29778
29779         wctob: Work around nasty Cygwin 1.7.2 bug.
29780         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
29781         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
29782
29783 2010-05-01  Bruno Haible  <bruno@clisp.org>
29784
29785         fpurge: Sharper test.
29786         * tests/test-fpurge.c (main): Add one more ftell check.
29787         * modules/fpurge-tests (Depends-on): Add ftell.
29788         Suggested by Eric Blake.
29789
29790 2010-05-01  Bruno Haible  <bruno@clisp.org>
29791
29792         ftello: Another test.
29793         * tests/test-ftello3.c: New file.
29794         * modules/ftello-tests (Files): Add it.
29795         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
29796         MOSTLYCLEANFILES.
29797
29798         ftell: Another test.
29799         * tests/test-ftell3.c: New file.
29800         * modules/ftell-tests (Files): Add it.
29801         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
29802         MOSTLYCLEANFILES.
29803
29804 2010-05-01  Bruno Haible  <bruno@clisp.org>
29805
29806         ftell, ftello: Work around Solaris bug.
29807         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
29808         * lib/ftello.c: Include stdio-impl.h.
29809         (ftello): On Solaris, when _IOWRT is set, compute the result without
29810         looking at _IOREAD.
29811         * modules/ftello (Files): Add lib/stdio-impl.h.
29812         * doc/posix-functions/ftell.texi: Mention Solaris bug.
29813         * doc/posix-functions/ftello.texi: Likewise.
29814         Reported by Eric Blake.
29815
29816 2010-05-01  Bruno Haible  <bruno@clisp.org>
29817
29818         freading: Adapt to special meaning of _IOREAD flag on Solaris.
29819         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
29820         the _IOWRT flag is also set.
29821
29822 2010-05-01  Bruno Haible  <bruno@clisp.org>
29823
29824         Fix doc about a HP-UX stdio bug.
29825         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
29826         * doc/posix-functions/ftello.texi: Likewise.
29827
29828 2010-05-01  Bruno Haible  <bruno@clisp.org>
29829
29830         lseek test: Fix failure on Solaris.
29831         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
29832         output.
29833
29834 2010-04-30  Jim Meyering  <meyering@redhat.com>
29835
29836         bootstrap: don't ignore failure to generate po*/Makevars
29837         * build-aux/bootstrap (with_gettext): Don't ignore failure
29838         to create po/Makevars or runtime-po/Makevars.
29839
29840 2010-04-29  Eric Blake  <eblake@redhat.com>
29841
29842         headers: relax license to LGPLv2+
29843         * modules/fcntl-h (License): Relax license.
29844         * modules/getopt-posix (License): Likewise.
29845         * modules/locale (License): Likewise.
29846         * modules/math (License): Likewise.
29847         * modules/pty (License): Likewise.
29848         * modules/sched (License): Likewise.
29849         * modules/search (License): Likewise.
29850         * modules/spawn (License): Likewise.
29851         * modules/stdarg (License): Likewise.
29852         * modules/sysexits (License): Likewise.
29853
29854 2010-04-29  Jim Meyering  <meyering@redhat.com>
29855
29856         inttypes: relax license to LGPLv2+
29857         * modules/inttypes (License): Relax license.
29858
29859 2010-04-29  Simon Josefsson  <simon@josefsson.org>
29860
29861         * top/maint.mk (indent): Run twice to produce idempotent results.
29862
29863 2010-04-28  Bruno Haible  <bruno@clisp.org>
29864
29865         getdate: Generate getdate.c in the source directory.
29866         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
29867         MOSTLYCLEANFILES.
29868         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
29869
29870 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
29871
29872         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
29873         is not declared as a const *; avoid warnings in that case.
29874
29875 2010-04-28  Eric Blake  <eblake@redhat.com>
29876
29877         canonicalize-lgpl: avoid compiler warning
29878         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
29879         declaration' / 'extraneous semicolon' warning with some compilers.
29880         Reported by Andreas Gruenbacher.
29881
29882 2010-04-28  Jim Meyering  <meyering@redhat.com>
29883
29884         init.sh: ensure a more reliable exit status when exiting via trap
29885         * tests/init.sh (setup_): Don't rely on $? in signal handler.
29886         Inspired by patches from Dmitry V. Levin.
29887         Also trap on signal 3 (SIGQUIT).
29888
29889 2010-04-27  Bruno Haible  <bruno@clisp.org>
29890
29891         Update doc about utimes().
29892         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
29893         'utimens' module.
29894         Reported by Andreas Gruenbacher <agruen@suse.de>.
29895
29896 2010-04-27  Eric Blake  <eblake@redhat.com>
29897
29898         full-read, full-write: relax license
29899         * modules/full-read (License): Drop to LGPLv2+.
29900         * modules/full-write (License): Likewise.
29901         * modules/safe-read (License): Likewise.
29902         * modules/safe-write (License): Likewise.
29903
29904         pthread: mention library for linking
29905         * modules/pthread (Link): Mention $(LIB_PTHREAD).
29906
29907 2010-04-27  Jim Meyering  <meyering@redhat.com>
29908
29909         maint.mk: fix a bug introduced in last change
29910         * top/maint.mk (gl_assured_headers_): Now that all names are on
29911         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
29912         is not anchored to end of word, it should be adequate.
29913
29914         maint.mk: avoid side-effect in latest syntax-check
29915         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
29916         to run commands via $(shell...), and hence to incur cost only when
29917         the new rule is actually run.
29918
29919         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
29920         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
29921         and use that to create a regexp used to detect all #if HAVE_..._H uses.
29922         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
29923         (gl_assured_headers_, az_, AZ_): Define.
29924         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
29925
29926 2010-04-26  Jim Meyering  <jim@meyering.net>
29927             Bruno Haible  <bruno@clisp.org>
29928
29929         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
29930         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
29931         Prompted by an exchange with Gilles Espinasse.
29932
29933 2010-04-26  Jim Meyering  <meyering@redhat.com>
29934
29935         git-version-gen: aesthetic tweak
29936         * build-aux/git-version-gen: Use "$nl" rather than a literal,
29937         so that the command remains on a single line.
29938
29939 2010-04-26  Eric Blake  <eblake@redhat.com>
29940
29941         git-version-gen: allow use on EBCDIC hosts
29942         * build-aux/git-version-gen (dirty): Use literal rather than tying
29943         ourselves to ascii.
29944         Reported by Steve Goetze.
29945
29946 2010-04-25  Bruno Haible  <bruno@clisp.org>
29947
29948         netdb: Add support for GNULIB_POSIXCHECK.
29949         * lib/netdb.in.h: Include warn-on-use.h.
29950         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
29951         functions are used when GNULIB_POSIXCHECK is defined and the
29952         getaddrinfo module is not in use.
29953         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
29954         freeaddrinfo, gai_strerror, getnameinfo are declared.
29955         * modules/netdb (Depends-on): Add warn-on-use.
29956         (Makefile.am): Include warn-on-use.h in netdb.h.
29957
29958 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
29959
29960         build: avoid "make check" failure without .git/ directory
29961         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
29962         there is no .git/ directory.
29963
29964 2010-04-25  Bruno Haible  <bruno@clisp.org>
29965
29966         ptsname: Fix misuse of ttyname_r.
29967         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
29968         of errno.
29969
29970 2010-04-25  Bruno Haible  <bruno@clisp.org>
29971
29972         ttyname_r: Make it work on Solaris 10.
29973         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
29974         if the system function has the POSIX declaration. Test whether the
29975         function fails if the buffer is less than 128 bytes large.
29976         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
29977         system's ttyname_r function. Provide a reasonably large buffer.
29978         * modules/ttyname_r (Depends-on): Add extensions.
29979         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
29980
29981 2010-04-25  Bruno Haible  <bruno@clisp.org>
29982
29983         Use the 'extensions' module for some more functions on Solaris.
29984         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
29985         module.
29986         * doc/posix-functions/ctime_r.texi: Likewise.
29987         * doc/posix-functions/getgrgid_r.texi: Likewise.
29988         * doc/posix-functions/getgrnam_r.texi: Likewise.
29989         * doc/posix-functions/getpwnam_r.texi: Likewise.
29990         * doc/posix-functions/getpwuid_r.texi: Likewise.
29991         * doc/posix-functions/readdir_r.texi: Likewise.
29992         * doc/posix-functions/sigwait.texi: Likewise.
29993         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
29994         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
29995
29996 2010-04-25  Bruno Haible  <bruno@clisp.org>
29997
29998         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
29999         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
30000         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
30001         * lib/ttyname_r.c: Include <limits.h>.
30002         (ttyname_r): Define using the system's ttyname_r function, if it exists
30003         and not on Solaris.
30004         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
30005         set.
30006         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
30007         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
30008         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
30009         Reported by Simon Josefsson.
30010
30011 2010-04-25  Bruno Haible  <bruno@clisp.org>
30012
30013         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
30014         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
30015         * doc/posix-functions/ctime_r.texi: Likewise.
30016         * doc/posix-functions/getgrgid_r.texi: Likewise.
30017         * doc/posix-functions/getgrnam_r.texi: Likewise.
30018         * doc/posix-functions/getlogin_r.texi: Likewise.
30019         * doc/posix-functions/getpwnam_r.texi: Likewise.
30020         * doc/posix-functions/getpwuid_r.texi: Likewise.
30021         * doc/posix-functions/readdir_r.texi: Likewise.
30022         * doc/posix-functions/sigwait.texi: Likewise.
30023         * doc/posix-functions/ttyname_r.texi: Likewise.
30024         Reported by Simon Josefsson.
30025
30026 2010-04-25  Bruno Haible  <bruno@clisp.org>
30027
30028         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
30029         * gnulib-tool (func_usage): Document that --with-*-tests options apply
30030         also to --create-testdir.
30031         (func_acceptable): Don't consider the status of *-tests modules here.
30032         (func_modules_transitive_closure): Consider it here, before including a
30033         test module.
30034         (func_import, func_create_testdir): Set inc_all_direct_tests,
30035         inc_all_indirect_tests.
30036         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
30037         --create-testdir and --create-megatestdir.
30038
30039 2010-04-25  Bruno Haible  <bruno@clisp.org>
30040
30041         gnulib-tool: Add --without-*-tests options.
30042         * gnulib-tool (func_usage): Document the --without-*-tests options.
30043         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
30044         excl_unportable_tests): New variables.
30045         Fail if they are specified with --import or --update.
30046         (func_acceptable): Respect the excl_*_tests variables.
30047         (func_import): Set the excl_*_tests variables to empty.
30048
30049 2010-04-25  Simon Josefsson  <simon@josefsson.org>
30050             Bruno Haible  <bruno@clisp.org>
30051
30052         Work around a MacOS X 10.4 bug with openpty.
30053         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
30054         * tests/test-openpty.c (main): Close the master side explicitly.
30055
30056 2010-04-25  Bruno Haible  <bruno@clisp.org>
30057
30058         strnlen: Fix a C++ test error on MacOS X and Solaris.
30059         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
30060         the function is not declared.
30061         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
30062         Simon Josefsson.
30063
30064 2010-04-24  Bruno Haible  <bruno@clisp.org>
30065
30066         Avoid a gcc warning.
30067         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
30068         of correct type for %08lx directive.
30069         Reported by Eric Blake.
30070
30071 2010-04-24  Bruno Haible  <bruno@clisp.org>
30072
30073         vasnprintf: Correct errno value in case of out-of-memory.
30074         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
30075         or sprintf. Use the errno value from SNPRINTF or sprintf.
30076         Reported by Ian Beckwith <ianb@erislabs.net>.
30077
30078 2010-04-24  Bruno Haible  <bruno@clisp.org>
30079
30080         ansi-c++-opt: Find correct compiler when cross-compiling.
30081         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
30082         AC_CHECK_PROGS.
30083         Reported by Simon Josefsson.
30084
30085 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
30086
30087         vc-list-files: Add support for subversion
30088         * build-aux/vc-list-files: Use "svn list" to generate the list of
30089         files controlled by subversion.
30090
30091 2010-04-23  Jim Meyering  <meyering@redhat.com>
30092
30093         vc-list-files tests: convert to use init.sh
30094         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
30095         path_prepend_.
30096         Use Exit, not exit.
30097         Use skip_ rather than open coding it.
30098         Remove trap set-up and compare definitions.
30099         * tests/test-vc-list-files-git.sh: Likewise.
30100         * modules/vc-list-files-tests (Files): Add tests/init.sh.
30101
30102 2010-04-22  Simon Josefsson  <simon@josefsson.org>
30103
30104         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
30105         backup files.
30106
30107 2010-04-21  Simon Josefsson  <simon@josefsson.org>
30108
30109         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
30110
30111 2010-04-20  Eric Blake  <eblake@redhat.com>
30112
30113         tests: be robust to ignored SIGPIPE
30114         * tests/test-select-in.sh: Consume all output.
30115         * tests/test-lseek.sh: Check correct exit status, while avoiding
30116         EPIPE.
30117
30118 2010-04-20  Simon Josefsson  <simon@josefsson.org>
30119             Bruno Haible  <bruno@clisp.org>
30120
30121         visibility: Don't use -fvisibility if it leads to a warning.
30122         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
30123         yes, don't pretend that visibility works if it leads to a warning.
30124         Reported by Mike Gran <spk121@yahoo.com>.
30125
30126 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
30127
30128         * build-aux/bootstrap: Use "git -h" for testing for supported options
30129         instead of "git --help".  The short-form option only shows a summary,
30130         and doesn't layout the full man page.  Grep for the full option name
30131         in the summary, too.
30132
30133 2010-04-19  Bruno Haible  <bruno@clisp.org>
30134
30135         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
30136         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
30137         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
30138         mention of RELOCATABLE_STRIP.
30139         Reported by Sylvain Beucler <beuc@beuc.net>.
30140
30141 2010-04-19  Bruno Haible  <bruno@clisp.org>
30142
30143         * lib/diffseq.h: Fix typo in comment.
30144         Reported by Eric Blake.
30145
30146 2010-04-19  Bruno Haible  <bruno@clisp.org>
30147
30148         ioctl: Move autoconf macro to a .m4 file.
30149         * m4/ioctl.m4: New file, extracted from modules/ioctl.
30150         * modules/ioctl (Files): Add it.
30151         (configure.ac): Simply invoke gl_FUNC_IOCTL.
30152         Reported by Ian Beckwith <ianb@erislabs.net>.
30153
30154 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
30155             Bruno Haible  <bruno@clisp.org>
30156
30157         diffseq: Accommodate use-case with abstract arrays.
30158         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
30159         is not defined.
30160         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
30161         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
30162
30163 2010-04-18  Bruno Haible  <bruno@clisp.org>
30164
30165         * doc/posix-headers/stdbool.texi: More precise wording.
30166
30167 2010-04-17  Jim Meyering  <meyering@redhat.com>
30168
30169         maint.mk: use gnu-style indentation in an embedded perl script
30170         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
30171         Rename variable: s/two/last_two_bytes/
30172
30173 2010-04-16  Eric Blake  <eblake@redhat.com>
30174
30175         test-stdbool: skip test that fails with Solaris CC
30176         * tests/test-stdbool.c (f): Skip test that causes compilation
30177         error under buggy C++ compiler.
30178         * lib/stdbool.in.h: Document the limitation.
30179         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
30180
30181         setenv: allow compilation with C++
30182         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
30183         register keyword.
30184
30185         stdint: allow test to pass with C++
30186         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
30187
30188         getopt: allow compilation with C++
30189         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
30190         struct.
30191         * lib/getopt.c (_getopt_internal_r): Use correct type.
30192         Reported by Dagobert Michelson, via Joel E. Denny.
30193
30194 2010-04-16  Bruno Haible  <bruno@clisp.org>
30195
30196         Override netdb.h always.
30197         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
30198         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
30199         Reported by Ludovic Courtès <ludo@gnu.org>.
30200
30201 2010-04-15  Bruno Haible  <bruno@clisp.org>
30202
30203         openpty: Fix mistake from 2010-03-21.
30204         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
30205         Reported by Simon Josefsson.
30206
30207 2010-04-15  Eric Blake  <eblake@redhat.com>
30208
30209         test-forkpty: fix expected signature
30210         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
30211         Reported by Simon Josefsson.
30212
30213 2010-04-15  Jim Meyering  <meyering@redhat.com>
30214
30215         maint.mk: texinfo_suffix_re_: correct the default regexp
30216         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
30217
30218         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
30219         make it configurable via texinfo_suffix_re_.
30220
30221 2010-04-14  Eric Blake  <eblake@redhat.com>
30222
30223         strtok_r: relax license to LGPLv2+
30224         * modules/strtok_r (License): Relax license.
30225         Reported by Matthias Bolte.
30226
30227 2010-04-14  Simon Josefsson  <simon@josefsson.org>
30228
30229         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
30230         version 1.4.4 by default instead of requiring the libgcrypt
30231         version used during build.  This makes it possible to use the
30232         application with older but still binary compatible libgcrypt
30233         versions.
30234
30235 2010-04-13  Eric Blake  <eblake@redhat.com>
30236
30237         getopt-gnu: match recent glibc fixes and posix ruling
30238         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
30239         '+' handling, when requesting extensions.
30240         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
30241         'W;' handling.
30242         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
30243         * doc/posix-functions/getopt.texi (getopt): Document this.
30244         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
30245         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
30246         Likewise.
30247
30248         getopt: merge bug fixes from glibc
30249         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
30250         diagnostics.  Honor '+:' correctly.  Reject ';'.
30251
30252         getopt-posix: detect MacOS bug
30253         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
30254         optind when missing a required argument.
30255         * doc/posix-functions/getopt.texi (getopt): Document the bug.
30256         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
30257         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
30258         Likewise.
30259
30260         getopt-posix: avoid spurious failure on Solaris
30261         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
30262         an indicator that setting optind=1 is sufficient for reset.
30263
30264         getopt-posix: avoid spurious failure on FreeBSD
30265         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
30266         in POSIX mode, since the m4 test uses it.
30267
30268         gnulib-tool: silence warning on BSD sh
30269         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
30270
30271 2010-04-13  Jim Meyering  <meyering@redhat.com>
30272
30273         doc: users.txt: GNU patch now uses gnulib
30274         * users.txt: Add patch.
30275
30276 2010-04-12  Jim Meyering  <meyering@redhat.com>
30277
30278         maint.mk: generate more concise timing data for syntax-check rules
30279         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
30280         " done" from each line that reports a syntax-check test duration.
30281
30282 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
30283
30284         git-version-gen: use "git update-index..." rather than "git status"
30285         * build-aux/git-version-gen: Use git update-index --refresh, not
30286         "git status".  With some versions of git, "git status" would fail
30287         to update the index and result in an unwarranted "-dirty" suffix.
30288
30289 2010-04-11  Jim Meyering  <meyering@redhat.com>
30290
30291         openat: correct formatting (no semantic change)
30292         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
30293         Suggested by Bruno Haible.
30294
30295 2010-04-11  Bruno Haible  <bruno@clisp.org>
30296
30297         Stricter declaration checking in testdirs.
30298         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
30299         If for_tests is true, augment AM_CPPFLAGS to define
30300         GNULIB_STRICT_CHECKING.
30301         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
30302         GNULIB_STRICT_CHECKING is defined, verify that the function is
30303         declared.
30304
30305 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
30306             Bruno Haible  <bruno@clisp.org>
30307
30308         libunistring: Improve configure output.
30309         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
30310         Don't say "consider installing GNU libunistring" when checking again
30311         with libiconv.
30312
30313 2010-04-11  Bruno Haible  <bruno@clisp.org>
30314
30315         libunistring: Correct value of $LTLIBUNISTRING.
30316         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
30317         correct the value of $LTLIBUNISTRING.
30318
30319 2010-04-11  Bruno Haible  <bruno@clisp.org>
30320
30321         havelib: Add static libraries to LIBS in the right order.
30322         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
30323         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
30324
30325 2010-04-11  Bruno Haible  <bruno@clisp.org>
30326
30327         libunistring: Detect libunistring also when it depends on libiconv.
30328         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
30329         the second AC_LIB_HAVE_LINKFLAGS invocation.
30330
30331 2010-04-11  James Youngman  <jay@gnu.org>
30332
30333         close-stream: declare local scalars to be "const"
30334         * lib/close-stream.c (close_stream): Make boolean variables const
30335         to document the fact that we set but do not change them.
30336
30337 2010-04-11  Bruno Haible  <bruno@clisp.org>
30338
30339         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
30340
30341 2010-04-11  Jim Meyering  <meyering@redhat.com>
30342
30343         maint.mk: don't include dist-check.mk
30344         * top/maint.mk: Remove bogus include directive.
30345
30346         maint.mk: improve empty-line-at-EOF check
30347         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
30348         solution, rather than tail+Perl-based one.  The latter would read
30349         a few kilobytes from the end of each file, and did not handle empty
30350         files properly.
30351
30352         maint.mk: print the elapsed time for each syntax-check rule
30353         * top/maint.mk (sc_m_rules_): Save start time in a file.
30354         (sc_z_rules_): New rules: remove temp file and print elapsed time.
30355         (local-check): Interpose the .z rules
30356
30357 2010-04-11  Jim Meyering  <meyering@redhat.com>
30358
30359         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
30360         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
30361         empty file with one that ends in an empty line.
30362
30363 2010-04-10  Bruno Haible  <bruno@clisp.org>
30364
30365         mkdir: Make it work on mingw64.
30366         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
30367         * lib/mkdir.c: Update comment.
30368         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
30369
30370 2010-04-10  Bruno Haible  <bruno@clisp.org>
30371
30372         Don't override improved macro from newer autoconf.
30373         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
30374         autoconf >= 2.62.
30375         Reported by Joel E. Denny <jdenny@clemson.edu>.
30376
30377 2010-04-10  Jim Meyering  <meyering@redhat.com>
30378
30379         maint.mk: new syntax-check rule: prohibit empty lines at end of file
30380         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
30381
30382         maint.mk: correct a diagnostic
30383         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
30384         in diagnostic; now use $prohibit.
30385
30386 2010-04-10  Bruno Haible  <address@hidden>
30387
30388         fchownat: Fix a C++ test error on Solaris 8.
30389         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
30390         the function does not exist.
30391
30392 2010-04-10  Bruno Haible  <bruno@clisp.org>
30393
30394         vasnprintf: Add more tests.
30395         * tests/test-vasnprintf-posix.c: Include <errno.h>.
30396         (test_function): Test converting an invalid wide string.
30397
30398         vasnprintf: Correct handling of unconvertible wide string arguments.
30399         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
30400         VASNPRINTF.
30401         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
30402         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
30403         smaller than the expected maximum need for the directive. Set errno to
30404         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
30405         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
30406         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
30407         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
30408         * modules/vasnprintf (Files): Add m4/printf.m4.
30409         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
30410
30411 2010-04-10  Bruno Haible  <bruno@clisp.org>
30412
30413         vasnprintf: Fix crash in %ls directive.
30414         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
30415         string is passed as argument to %ls, with no precision and no width.
30416         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
30417
30418 2010-04-10  Bruno Haible  <bruno@clisp.org>
30419
30420         vasnprintf: Fix multiple test failures on mingw.
30421         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
30422         _snprintf, or snwprintf, not _snwprintf.
30423
30424 2010-04-10  Bruno Haible  <bruno@clisp.org>
30425
30426         write: Fix a C++ test error on mingw.
30427         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
30428
30429 2010-04-10  Bruno Haible  <bruno@clisp.org>
30430
30431         vasnprintf test: Reduce code duplication.
30432         * tests/test-vasnprintf.c (test_function): New function, extracted from
30433         test_vasnprintf.
30434         (test_vasnprintf, test_asnprintf): Invoke it.
30435
30436 2010-04-10  Bruno Haible  <bruno@clisp.org>
30437
30438         strnlen: Fix warning in C++ mode on MacOS X.
30439         * lib/string.in.h (strnlen): Use the modern idiom.
30440         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
30441         defining strnlen as a macro already in <config.h>.
30442         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
30443         REPLACE_STRNLEN.
30444         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
30445         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
30446
30447 2010-04-08  James Youngman  <jay@gnu.org>
30448
30449         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
30450         the example.
30451
30452 2010-04-09  Jim Meyering  <meyering@redhat.com>
30453
30454         maint.mk: print better diagnostic when there is no $(_hv_file)
30455         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
30456         announce that when $(_hv_file) (aka help-version) does not exist.
30457
30458         init.sh: run tr in the "C" locale to avoid multibyte interpretation
30459         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
30460         not try to interpret its random input bytes.  Jarno Rajahalme reported
30461         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
30462         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
30463         (mktempd_): Likewise, just in case.
30464
30465         ftruncate: add two years to projected module removal date: 2012
30466         * m4/ftruncate.m4: Adjust comments.
30467
30468         ftruncate: mark module as obsolete; even MinGW provides it, now
30469         * modules/ftruncate (Status): Obsolete.
30470         (Notice): Say that.
30471         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
30472         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
30473
30474 2010-04-08  Bruno Haible  <bruno@clisp.org>
30475
30476         Fix side effects from tests-related modules.
30477         * modules/dprintf-posix (Comment): New section.
30478         * modules/fprintf-posix (Comment): Likewise.
30479         * modules/obstack-printf-posix (Comment): Likewise.
30480         * modules/printf-posix (Comment): Likewise.
30481         * modules/snprintf-posix (Comment): Likewise.
30482         * modules/sprintf-posix (Comment): Likewise.
30483         * modules/vasnprintf-posix (Comment): Likewise.
30484         * modules/vasprintf-posix (Comment): Likewise.
30485         * modules/vdprintf-posix (Comment): Likewise.
30486         * modules/vfprintf-posix (Comment): Likewise.
30487         * modules/vprintf-posix (Comment): Likewise.
30488         * modules/vsnprintf-posix (Comment): Likewise.
30489         * modules/vsprintf-posix (Comment): Likewise.
30490         * modules/xprintf-posix (Comment): Likewise.
30491         * modules/xvasprintf-posix (Comment): Likewise.
30492         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
30493         * modules/floorf-tests (Depends-on): Likewise.
30494         * modules/round-tests (Depends-on): Likewise.
30495         * modules/roundf-tests (Depends-on): Likewise.
30496         * modules/trunc-tests (Depends-on): Likewise.
30497         * modules/truncf-tests (Depends-on): Likewise.
30498         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
30499         'fprintf-posix' module is not present.
30500         * tests/test-floorf2.c (check): Likewise.
30501         * tests/test-trunc2.c (check): Likewise.
30502         * tests/test-truncf2.c (check): Likewise.
30503         * tests/test-round2.c (equal): Likewise.
30504         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
30505
30506 2010-04-07  Karl Berry  <karl@gnu.org>
30507
30508         * config/srclist.txt,
30509         * config/srclistvars.sh,
30510         * config/srclist-update: doc fixes.
30511
30512 2010-04-07  Jim Meyering  <meyering@redhat.com>
30513
30514         maint.mk: add a PATH crosschecking syntax-check rule
30515         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
30516         Useful if you use a test like the one in help-version (coreutils,
30517         diffutils, grep, gzip) that ensures $(VERSION) matches what is
30518         printed by prog --version.
30519
30520 2010-04-06  Bruno Haible  <bruno@clisp.org>
30521
30522         Fix link error on mingw.
30523         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
30524         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
30525
30526 2010-04-06  Bruno Haible  <bruno@clisp.org>
30527
30528         Assume rmdir exists.
30529         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
30530
30531 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
30532
30533         doc: update users.txt
30534         * users.txt: Add gcal.
30535
30536 2010-04-06  Jim Meyering  <meyering@redhat.com>
30537
30538         init.sh: simply unset TMPDIR rather than risking env -i
30539         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
30540         although it probably works fine on all Unix-based systems, some
30541         systems (Cygwin?) cannot tolerate a totally cleared environment.
30542         Suggestion from Eric Blake.
30543
30544 2010-04-06  Jim Meyering  <meyering@redhat.com>
30545
30546         init.sh: portability fix: use env's POSIX-specified -i option not -u
30547         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
30548         than unportable env -u.  Solaris 5.11's env lacks support for -u.
30549
30550 2010-04-05  Bruno Haible  <bruno@clisp.org>
30551
30552         btowc: Work around Cygwin 1.7.2 bug.
30553         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
30554         does not map NUL to 0.
30555         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
30556
30557 2010-04-05  Bruno Haible  <bruno@clisp.org>
30558
30559         Make the multithread modules work on Cygwin 1.7.2.
30560         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
30561         imported symbols can be declared weak, so that it returns "no" on
30562         Cygwin 1.7.2.
30563
30564 2010-04-05  Bruno Haible  <bruno@clisp.org>
30565
30566         Use the module 'strncat'.
30567         * modules/unistr/u8-strncat (Depends-on): Add strncat.
30568
30569         Tests for module 'strncat'.
30570         * modules/strncat-tests: New file.
30571         * tests/test-strncat.c: New file.
30572
30573         New module 'strncat'.
30574         * lib/string.in.h (strncat): New declaration.
30575         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
30576         * m4/strncat.m4: New file, based on m4/memchr.m4.
30577         * modules/strncat: New file.
30578         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
30579         is declared.
30580         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
30581         REPLACE_STRNCAT.
30582         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
30583         REPLACE_STRNCAT.
30584         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
30585         module.
30586         * tests/test-string-c++.cc: Check signature of strncat.
30587
30588 2010-04-05  Jim Meyering  <meyering@redhat.com>
30589
30590         xstrtoumax-tests: convert to use init.sh
30591         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
30592         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
30593         Use Exit, not exit.
30594         Remove uses of $EXEEXT and "./" to run a program in the current dir.
30595
30596         xstrtoimax-tests: convert to use init.sh
30597         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
30598         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
30599         Use Exit, not exit.
30600         Remove uses of $EXEEXT and "./" to run a program in the current dir.
30601
30602 2010-04-05  Bruno Haible  <bruno@clisp.org>
30603
30604         sys_socket: Avoid #define replacements in C++ mode.
30605         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
30606         warning to the function if possible, rather than #defining the symbol
30607         to a dysfunctional alias.
30608
30609 2010-04-05  Bruno Haible  <bruno@clisp.org>
30610
30611         fseeko: Fix C++ test error on mingw.
30612         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
30613         gl_FUNC_FSEEKO.
30614         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
30615         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
30616         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
30617         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
30618
30619 2010-04-05  Bruno Haible  <bruno@clisp.org>
30620
30621         duplocale: Improve test output.
30622         * tests/test-duplocale.c (main): Print reason for skipped test.
30623
30624 2010-04-05  Bruno Haible  <bruno@clisp.org>
30625
30626         Assume rmdir exists.
30627         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
30628         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
30629
30630 2010-04-05  Bruno Haible  <bruno@clisp.org>
30631
30632         Fix link error on Solaris 8 with cc.
30633         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
30634
30635 2010-04-05  Bruno Haible  <bruno@clisp.org>
30636
30637         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
30638         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
30639
30640 2010-04-05  Bruno Haible  <bruno@clisp.org>
30641
30642         vasprintf: Update documentation.
30643         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
30644
30645 2010-04-05  Bruno Haible  <bruno@clisp.org>
30646
30647         ptsname: Improve test.
30648         * tests/test-ptsname.c (main): Also try the various master names of BSD
30649         systems.
30650
30651 2010-04-05  Bruno Haible  <bruno@clisp.org>
30652
30653         memchr: Avoid a possible C++ test error.
30654         * lib/string.in.h (memchr): Provide declaration if function is missing.
30655         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
30656         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
30657         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
30658         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
30659
30660 2010-04-05  Bruno Haible  <bruno@clisp.org>
30661
30662         strtok_r: Improve idiom.
30663         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
30664         AC_LIBOBJ is used.
30665
30666 2010-04-05  Bruno Haible  <bruno@clisp.org>
30667
30668         strdup: Improve idiom.
30669         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
30670         AC_LIBOBJ is used.
30671         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
30672         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
30673         when AC_LIBOBJ is used.
30674
30675 2010-04-05  Bruno Haible  <bruno@clisp.org>
30676
30677         mbsinit, mbrtowc, wcrtomb: Improve idioms.
30678         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
30679         don't set REPLACE_MBSINIT to 1.
30680         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
30681         don't set REPLACE_MBRTOWC to 1.
30682         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
30683         exist, don't set REPLACE_MBSRTOWCS to 1.
30684         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
30685         exist, don't set REPLACE_MBSNRTOWCS to 1.
30686         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
30687         don't set REPLACE_WCRTOMB to 1.
30688         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
30689         exist, don't set REPLACE_WCSRTOMBS to 1.
30690         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
30691         exist, don't set REPLACE_WCSNRTOMBS to 1.
30692
30693 2010-04-05  Bruno Haible  <bruno@clisp.org>
30694
30695         ldexpl: Improve idiom.
30696         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
30697         make sure to set HAVE_DECL_LDEXPL to 0.
30698
30699 2010-04-05  Jim Meyering  <meyering@redhat.com>
30700
30701         xstrtol-tests: convert to use init.sh
30702         * modules/xstrtol-tests (Files): Add tests/init.sh.
30703         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
30704         Use Exit, not exit.
30705         Remove uses of $EXEEXT and "./" to run a program in the current dir.
30706
30707         atexit-tests: convert to use init.sh
30708         * modules/atexit-tests (Files): Add tests/init.sh.
30709         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
30710         Use Exit, not exit.
30711         Remove uses of $EXEEXT and "./" to run a program in the current dir.
30712
30713         init.sh: fix typo
30714         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
30715
30716         init.sh: make it easier for a test script to write to the tty, ...
30717         when using automake's parallel-tests mode.
30718         * tests/init.sh (stderr_fileno_): Define overridable variable.
30719         (warn_): New function, to use it.
30720         (fail_, skip_, framework_failure_): Use warn_.
30721
30722 2010-04-04  Bruno Haible  <bruno@clisp.org>
30723
30724         btowc: Avoid warning.
30725         * lib/btowc.c: Include <stdlib.h>.
30726         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
30727
30728 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
30729             Bruno Haible  <bruno@clisp.org>
30730
30731         wchar: Port to NetBSD 1.5.
30732         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
30733         * lib/wctype.in.h (WEOF): Likewise.
30734
30735 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
30736             Bruno Haible  <bruno@clisp.org>
30737
30738         Port extended stdio to NetBSD 1.5.
30739         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
30740         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
30741         older.
30742
30743 2010-04-04  Bruno Haible  <bruno@clisp.org>
30744
30745         string: Remove unused substitution.
30746         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
30747         HAVE_DECL_STRERROR.
30748         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
30749
30750 2010-04-04  Bruno Haible  <bruno@clisp.org>
30751
30752         strtod: Avoid a possible C++ test error.
30753         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
30754         set REPLACE_STRTOD.
30755
30756 2010-04-04  Bruno Haible  <bruno@clisp.org>
30757
30758         strerror: Update documentation.
30759         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
30760
30761 2010-04-04  Bruno Haible  <bruno@clisp.org>
30762
30763         stdio: Fix some C++ test errors on Solaris 8 with GCC.
30764         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
30765         _GL_CXXALIAS_SYS_CAST.
30766
30767 2010-04-04  Bruno Haible  <bruno@clisp.org>
30768
30769         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
30770         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
30771         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
30772         REPLACE_FREXPL to 1.
30773         * doc/posix-functions/frexpl.texi: Update documentation.
30774
30775 2010-04-04  Bruno Haible  <bruno@clisp.org>
30776
30777         math: Fix some C++ test errors on Solaris 8 and Cygwin.
30778         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
30779
30780 2010-04-04  Bruno Haible  <bruno@clisp.org>
30781
30782         Implement nanosleep for native Windows.
30783         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
30784
30785 2010-04-04  Bruno Haible  <bruno@clisp.org>
30786
30787         math: Fix some C++ test errors on Solaris 8.
30788         * lib/math.in.h (truncf, trunc): Use simpler idiom.
30789
30790 2010-04-04  Bruno Haible  <bruno@clisp.org>
30791
30792         math: Fix some C++ test errors on Cygwin.
30793         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
30794         truncl): Provide declaration if the system does not have it.
30795         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
30796         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
30797         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
30798         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
30799         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
30800         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
30801         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
30802         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
30803         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
30804         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
30805         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
30806         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
30807         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
30808         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
30809         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
30810         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
30811         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
30812         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
30813         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
30814         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
30815         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
30816         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
30817
30818 2010-04-04  Bruno Haible  <bruno@clisp.org>
30819
30820         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
30821         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
30822         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
30823         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
30824         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
30825         * m4/isinf.m4 (gl_ISINF): Likewise.
30826         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
30827
30828 2010-04-04  Bruno Haible  <bruno@clisp.org>
30829
30830         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
30831         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
30832
30833 2010-04-04  Bruno Haible  <bruno@clisp.org>
30834
30835         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
30836         * modules/tmpfile (configure.ac): Update.
30837
30838         tmpfile: Fix C++ test error on mingw.
30839         * lib/stdio.in.h (tmpfile): New declaration.
30840         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
30841         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
30842         * modules/tmpfile (Depends-on): Add stdio.
30843         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
30844         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
30845         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
30846         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
30847         REPLACE_TMPFILE.
30848         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
30849
30850 2010-04-04  Bruno Haible  <bruno@clisp.org>
30851
30852         ioctl: Fix C++ test error on mingw.
30853         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
30854         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
30855         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
30856
30857 2010-04-03  Bruno Haible  <bruno@clisp.org>
30858
30859         wcwidth: Fix C++ test error on mingw.
30860         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
30861         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
30862         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
30863
30864 2010-04-03  Bruno Haible  <bruno@clisp.org>
30865
30866         nanosleep: Fix C++ test error on mingw.
30867         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
30868         * lib/time.in.h (nanosleep): Use modern idiom.
30869         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
30870         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
30871         REPLACE_NANOSLEEP to 1.
30872         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
30873         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
30874
30875 2010-04-03  Bruno Haible  <bruno@clisp.org>
30876
30877         strptime: Fix C++ test error on mingw.
30878         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
30879         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
30880         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
30881         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
30882         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
30883         not REPLACE_STRPTIME.
30884         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
30885         REPLACE_STRPTIME.
30886
30887 2010-04-03  Bruno Haible  <bruno@clisp.org>
30888
30889         timegm: Fix C++ test error on mingw.
30890         * lib/time.in.h (timegm): Use modern idiom.
30891         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
30892         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
30893         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
30894         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
30895
30896 2010-04-03  Bruno Haible  <bruno@clisp.org>
30897
30898         timegm: Assume declaration if function exists.
30899         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
30900         if it exists. Don't clobber ac_cv_func_timegm.
30901
30902 2010-04-03  Bruno Haible  <bruno@clisp.org>
30903
30904         time_r: Fix C++ test error on mingw.
30905         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
30906         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
30907         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
30908         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
30909         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
30910
30911 2010-04-03  Bruno Haible  <bruno@clisp.org>
30912
30913         time_r: Minor updates.
30914         * modules/time_r (Description): Mention the provided functions.
30915         * lib/time_r.c: Don't include <string.h>.
30916         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
30917         * doc/posix-functions/localtime_r.texi: Likewise.
30918
30919 2010-04-03  Bruno Haible  <bruno@clisp.org>
30920
30921         time: Fix regression introduced on 2010-03-08.
30922         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
30923         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
30924
30925 2010-04-03  Jim Meyering  <meyering@redhat.com>
30926
30927         maint.mk: don't silently disable project-specific syntax-check rules
30928         * top/maint.mk (_prohibit_regexp): Define, to help people realize
30929         that they need to convert their project-specific syntax-check rules
30930         to use the new _sc_search_regexp.
30931
30932 2010-04-03  Bruno Haible  <bruno@clisp.org>
30933
30934         fchdir: Fix regression introduced on 2010-03-08.
30935         * lib/unistd.in.h (fchdir): Fix declaration.
30936         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
30937         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
30938         REPLACE_FCHDIR.
30939         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
30940         REPLACE_FCHDIR.
30941
30942 2010-04-03  Bruno Haible  <bruno@clisp.org>
30943
30944         getpagesize: Fix C++ test error on mingw.
30945         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
30946         system does not declare the function.
30947         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
30948         declared.
30949         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
30950         HAVE_DECL_GETPAGESIZE.
30951         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
30952
30953 2010-04-03  Bruno Haible  <bruno@clisp.org>
30954
30955         stdio: Make C++ tests work on mingw.
30956         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
30957         does not declare the function.
30958
30959 2010-04-03  Bruno Haible  <bruno@clisp.org>
30960
30961         ftello: Fix C++ test error on mingw.
30962         * lib/stdio.in.h (ftello): Use modern idiom.
30963         * lib/ftello.c (ftello): Renamed from rpl_ftello.
30964         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
30965         is missing and that it needs to be replaced.
30966         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
30967         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
30968         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
30969
30970 2010-04-03  Bruno Haible  <bruno@clisp.org>
30971
30972         fseeko: Fix C++ test error on mingw.
30973         * lib/stdio.in.h (fseeko): Use modern idiom.
30974         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
30975         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
30976         is missing and that it needs to be replaced.
30977         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
30978         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
30979         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
30980
30981 2010-04-03  Bruno Haible  <bruno@clisp.org>
30982
30983         mkstemp: Fix C++ test error on mingw.
30984         * lib/stdlib.in.h (mkstemp): Use modern idiom.
30985         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
30986         function is missing and that it needs to be replaced.
30987         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
30988         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
30989
30990 2010-04-03  Bruno Haible  <bruno@clisp.org>
30991
30992         stpncpy: Fix C++ test error on mingw.
30993         * lib/string.in.h (stpncpy): Use modern idiom.
30994         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
30995         function is missing and that it needs to be replaced.
30996         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
30997         REPLACE_STPNCPY.
30998         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
30999
31000 2010-04-03  Bruno Haible  <bruno@clisp.org>
31001
31002         sys_stat: Fix C++ test error on mingw.
31003         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
31004         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
31005
31006 2010-04-03  Bruno Haible  <bruno@clisp.org>
31007
31008         pty: Update doc.
31009         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
31010
31011 2010-04-03  Bruno Haible  <bruno@clisp.org>
31012
31013         unistd: Fix C++ test error on mingw.
31014         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
31015
31016 2010-04-03  Bruno Haible  <bruno@clisp.org>
31017
31018         Update doc regarding mingw.
31019         * doc/glibc-functions/openpty.texi: Update regarding mingw.
31020         * doc/glibc-functions/login_tty.texi: Likewise.
31021         * doc/glibc-functions/forkpty.texi: Likewise.
31022
31023 2010-04-03  Bruno Haible  <bruno@clisp.org>
31024
31025         stdlib: Avoid compilation failure of c-strtold on mingw.
31026         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
31027
31028 2010-04-03  Bruno Haible  <bruno@clisp.org>
31029
31030         locale: Make C++ tests work on Cygwin and mingw.
31031         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
31032         cannot provide the function.
31033         Reported by Simon Josefsson.
31034
31035 2010-04-03  Bruno Haible  <bruno@clisp.org>
31036
31037         localename: Port to MacOS X 10.6.
31038         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
31039         memory layout of the locales in MacOS X 10.6 as well.
31040         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
31041
31042 2010-04-02  Bruno Haible  <bruno@clisp.org>
31043
31044         gnulib-tool: Ensure that long-running tests are executed last.
31045         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
31046         running tests after the one for the other tests.
31047
31048 2010-04-02  Bruno Haible  <bruno@clisp.org>
31049
31050         gnulib-tool: Ensure the tests in the main directory are executed first.
31051         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
31052         start with the current directory.
31053
31054 2010-04-02  Bruno Haible  <bruno@clisp.org>
31055
31056         Tests for module 'havelib', moved here from GNU gettext.
31057         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
31058         modifications.
31059         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
31060         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
31061         with modifications.
31062         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
31063         modifications.
31064         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
31065         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
31066         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
31067         with modifications.
31068         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
31069         with modifications.
31070         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
31071         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
31072         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
31073         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
31074         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
31075         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
31076         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
31077         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
31078         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
31079         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
31080         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
31081         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
31082         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
31083         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
31084         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
31085         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
31086         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
31087         with modifications.
31088         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
31089         with modifications.
31090         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
31091         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
31092         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
31093         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
31094         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
31095         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
31096         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
31097         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
31098         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
31099         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
31100         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
31101         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
31102         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
31103         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
31104         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
31105         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
31106         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
31107         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
31108         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
31109         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
31110         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
31111         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
31112         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
31113         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
31114         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
31115         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
31116         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
31117         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
31118         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
31119         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
31120         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
31121         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
31122         * tests/havelib/rpathx/rpathx.c: New file, from
31123         gettext/autoconf-lib-link.
31124         * tests/havelib/rpathx/Makefile.am: New file, from
31125         gettext/autoconf-lib-link.
31126         * tests/havelib/rpathx/configure.ac: New file, from
31127         gettext/autoconf-lib-link with modifications.
31128         * tests/havelib/rpathy/rpathy.c: New file, from
31129         gettext/autoconf-lib-link.
31130         * tests/havelib/rpathy/Makefile.am: New file, from
31131         gettext/autoconf-lib-link.
31132         * tests/havelib/rpathy/configure.ac: New file, from
31133         gettext/autoconf-lib-link with modifications.
31134         * tests/havelib/rpathz/rpathz.c: New file, from
31135         gettext/autoconf-lib-link.
31136         * tests/havelib/rpathz/Makefile.am: New file, from
31137         gettext/autoconf-lib-link.
31138         * tests/havelib/rpathz/configure.ac: New file, from
31139         gettext/autoconf-lib-link with modifications.
31140         * tests/havelib/rpathlx/usex.c: New file, from
31141         gettext/autoconf-lib-link.
31142         * tests/havelib/rpathlx/Makefile.am: New file, from
31143         gettext/autoconf-lib-link.
31144         * tests/havelib/rpathlx/configure.ac: New file, from
31145         gettext/autoconf-lib-link with modifications.
31146         * tests/havelib/rpathly/usey.c: New file, from
31147         gettext/autoconf-lib-link.
31148         * tests/havelib/rpathly/Makefile.am: New file, from
31149         gettext/autoconf-lib-link.
31150         * tests/havelib/rpathly/configure.ac: New file, from
31151         gettext/autoconf-lib-link with modifications.
31152         * tests/havelib/rpathlz/usez.c: New file, from
31153         gettext/autoconf-lib-link.
31154         * tests/havelib/rpathlz/Makefile.am: New file, from
31155         gettext/autoconf-lib-link.
31156         * tests/havelib/rpathlz/configure.ac: New file, from
31157         gettext/autoconf-lib-link with modifications.
31158         * tests/havelib/rpathlyx/usey.c: New file, from
31159         gettext/autoconf-lib-link.
31160         * tests/havelib/rpathlyx/Makefile.am: New file, from
31161         gettext/autoconf-lib-link.
31162         * tests/havelib/rpathlyx/configure.ac: New file, from
31163         gettext/autoconf-lib-link with modifications.
31164         * tests/havelib/rpathlzyx/usez.c: New file, from
31165         gettext/autoconf-lib-link.
31166         * tests/havelib/rpathlzyx/Makefile.am: New file, from
31167         gettext/autoconf-lib-link.
31168         * tests/havelib/rpathlzyx/configure.ac: New file, from
31169         gettext/autoconf-lib-link with modifications.
31170         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
31171         with modifications.
31172
31173 2010-04-02  Bruno Haible  <bruno@clisp.org>
31174
31175         gnulib-tool: Create distributed built sources also for the tests.
31176         * gnulib-tool (func_create_testdir): Also generate distributed built
31177         sources in the tests directory.
31178
31179 2010-04-02  Bruno Haible  <bruno@clisp.org>
31180
31181         gnulib-tool: Obey user's environment variables.
31182         * gnulib-tool (func_create_testdir): When creating built sources,
31183         respect the environment variables for autoconf, automake, etc. given by
31184         the user.
31185
31186 2010-04-02  Bruno Haible  <bruno@clisp.org>
31187
31188         gnulib-tool: Provide the value of --m4-base to modules.
31189         * gnulib-tool (func_import, func_create_testdir): Emit a definition
31190         of gl_m4_base.
31191
31192 2010-04-02  Eric Blake  <eblake@redhat.com>
31193
31194         maint.mk: fix some fallout
31195         * NEWS: Document the incompatible change, and its effect on cfg.mk.
31196         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
31197
31198 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
31199
31200         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
31201         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
31202         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
31203         (sc_cast_of_x_alloc_return_value): Likewise.
31204         (sc_cast_of_alloca_return_value): Likewise.
31205         (sc_space_tab): Likewise.
31206         (sc_prohibit_atoi_atof): Likewise.
31207         (sc_prohibit_magic_number_exit): Likewise.
31208         (sc_error_exit_success): Likewise.
31209         (sc_file_system): Likewise.
31210         (sc_prohibit_have_config_h): Likewise.
31211         (sc_require_config_h): Likewise.
31212         (sc_prohibit_HAVE_MBRTOWC): Likewise.
31213         (sc_obsolete_symbols): Likewise.
31214         (sc_changelog): Likewise.
31215         (sc_program_name): Likewise.
31216         (sc_the_the): Likewise.
31217         (sc_trailing_blank): Likewise.
31218         (sc_two_space_separator_in_usage): Likewise.
31219         (sc_useless_cpp_parens): Likewise.
31220         (sc_GPL_version): Likewise.
31221         (sc_GFDL_version): Likewise.
31222         (sc_texinfo_acronym): Likewise.
31223         (sc_prohibit_cvs_keyword): Likewise.
31224         (sc_prohibit_stat_st_blocks): Likewise.
31225         (sc_prohibit_S_IS_definition): Likewise.
31226         (sc_redundant_const): Likewise.
31227         (sc_makefile_TAB_only_indentation): Likewise.
31228         (sc_m4_quote_check): Likewise.
31229         (sc_makefile_path_separator_check): Likewise.
31230         (sc_copyright_check): Likewise.
31231         (sc_Wundef_boolean): Likewise.
31232         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
31233
31234         maint.mk: match 0 or more whitespace-before-function-call '('
31235         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
31236         that have zero or two-and-more spaces between the function name
31237         and the open parenthesis.
31238         (sc_error_message_warn_fatal): Likewise.
31239         (sc_error_message_uppercase): Likewise.
31240         (sc_error_message_period): Likewise.
31241
31242 2010-03-31  Eric Blake  <eblake@redhat.com>
31243
31244         maint.mk: check for [ as well as test
31245         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
31246         Based on a libvirt report by Matthias Bolte.
31247
31248         gnumakefile: don't squelch _version output
31249         * top/GNUmakefile (_version): Create one-shot dependency rather
31250         than using $(shell) when version must be regenerated.
31251         (_autoreconf): Run verbosely, by default.
31252
31253         sys_time: avoid compiler warnings
31254         * lib/sys_time.in.h (includes): Ensure gcc pragma is
31255         unconditional, fixing regression from 2010-03-29.
31256         Reported by Simon Josefsson.
31257
31258 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
31259
31260         maint.mk: s/_header_without_use/_sc_header_without_use/
31261         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
31262         (sc_prohibit_assert_without_use): Use the new name.
31263         (sc_prohibit_close_stream_without_use): Likewise.
31264         (sc_prohibit_getopt_without_use): Likewise.
31265         (sc_prohibit_quotearg_without_use): Likewise.
31266         (sc_prohibit_quote_without_use): Likewise.
31267         (sc_prohibit_long_options_without_use): Likewise.
31268         (sc_prohibit_inttostr_without_use): Likewise.
31269         (sc_prohibit_ignore_value_without_use): Likewise.
31270         (sc_prohibit_error_without_use): Likewise.
31271         (sc_prohibit_xalloc_without_use): Likewise.
31272         (sc_prohibit_hash_without_use): Likewise.
31273         (sc_prohibit_hash_pjw_without_use): Likewise.
31274         (sc_prohibit_safe_read_without_use): Likewise.
31275         (sc_prohibit_argmatch_without_use): Likewise.
31276         (sc_prohibit_canonicalize_without_use): Likewise.
31277         (sc_prohibit_root_dev_ino_without_use): Likewise.
31278         (sc_prohibit_openat_without_use): Likewise.
31279         (sc_prohibit_c_ctype_without_use): Likewise.
31280         (sc_prohibit_signal_without_use): Likewise.
31281         (sc_prohibit_intprops_without_use): Likewise.
31282
31283 2010-03-30  Eric Blake  <eblake@redhat.com>
31284
31285         maint: improve module indicators
31286         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
31287         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
31288         columns, and avoid extra macro expansion.
31289
31290         fdopendir: work around FreeBSD bug
31291         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
31292         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
31293         * modules/dirent (Makefile.am): Substitute it.
31294         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
31295         declaration.
31296         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
31297         fix.
31298         Reported by Christian Weisgerber <naddy@mips.inka.de>.
31299
31300 2010-03-29  Bruno Haible  <bruno@clisp.org>
31301
31302         Emit #pragma system_header after the inclusion guard, not before.
31303         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
31304         guard that spans the entire file, not before. This enables an
31305         optimization in GCC's preprocessor.
31306         * lib/ctype.in.h: Likewise.
31307         * lib/dirent.in.h: Likewise.
31308         * lib/errno.in.h: Likewise.
31309         * lib/float.in.h: Likewise.
31310         * lib/getopt.in.h: Likewise.
31311         * lib/iconv.in.h: Likewise.
31312         * lib/langinfo.in.h: Likewise.
31313         * lib/locale.in.h: Likewise.
31314         * lib/math.in.h: Likewise.
31315         * lib/netdb.in.h: Likewise.
31316         * lib/netinet_in.in.h: Likewise.
31317         * lib/pty.in.h: Likewise.
31318         * lib/sched.in.h: Likewise.
31319         * lib/se-selinux.in.h: Likewise.
31320         * lib/search.in.h: Likewise.
31321         * lib/spawn.in.h: Likewise.
31322         * lib/stdarg.in.h: Likewise.
31323         * lib/stdint.in.h: Likewise.
31324         * lib/string.in.h: Likewise.
31325         * lib/strings.in.h: Likewise.
31326         * lib/sys_file.in.h: Likewise.
31327         * lib/sys_ioctl.in.h: Likewise.
31328         * lib/sys_time.in.h: Likewise.
31329         * lib/sys_times.in.h: Likewise.
31330         * lib/sys_utsname.in.h: Likewise.
31331         * lib/sys_wait.in.h: Likewise.
31332         * lib/sysexits.in.h: Likewise.
31333         * lib/wctype.in.h: Likewise.
31334
31335 2010-03-28  James Youngman  <jay@gnu.org>
31336
31337         save-cwd: don't leak a file descriptor when the caller execs.
31338         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
31339         saved file descriptor.
31340         * modules/save-cwd (Depends-on): Depend on cloexec.
31341
31342 2010-03-29  Bruno Haible  <bruno@clisp.org>
31343
31344         Remove vestiges of fts-lgpl module.
31345         * lib/fts_.h: Assume GNULIB_FTS is 1.
31346         * lib/fts.c: Likewise.
31347         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
31348
31349 2010-03-28  Bruno Haible  <bruno@clisp.org>
31350
31351         Fix definition of tests witness macro.
31352         * gnulib-tool (func_import): Fix definition of witness macro.
31353
31354 2010-03-28  Bruno Haible  <bruno@clisp.org>
31355
31356         Fix ioctl's protoype on glibc systems.
31357         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
31358         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
31359         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
31360         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
31361         signature. If not, arrange to replace the ioctl function.
31362         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
31363         REPLACE_IOCTL.
31364         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
31365         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
31366         Reported by Ludovic Courtès <ludo@gnu.org>.
31367
31368 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
31369
31370         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
31371         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
31372         made it so grep -r --include=GLOB* ... did not work.
31373
31374 2010-03-26  Jim Meyering  <meyering@redhat.com>
31375             Eric Blake  <eblake@redhat.com>
31376
31377         maint.mk: prohibit use of test's -o and -a operators
31378         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
31379
31380 2010-03-28  Bruno Haible  <bruno@clisp.org>
31381
31382         Remove unused GNULIB_XYZ macro definitions.
31383         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
31384         invocation.
31385
31386 2010-03-28  Bruno Haible  <bruno@clisp.org>
31387
31388         Mark privileged tests modules.
31389         * modules/idpriv-drop-tests (Status): New section.
31390         * modules/idpriv-droptemp-tests (Status): New section.
31391
31392 2010-03-28  Bruno Haible  <bruno@clisp.org>
31393
31394         Split C++ tests into separate tests modules.
31395         * modules/dirent-c++-tests: New file, extracted from
31396         modules/dirent-tests.
31397         * modules/dirent-tests: Depend on it.
31398         * modules/fcntl-h-c++-tests: New file, extracted from
31399         modules/fcntl-h-tests.
31400         * modules/fcntl-h-tests: Depend on it.
31401         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
31402         * modules/glob-tests: Depend on it.
31403         * modules/iconv-h-c++-tests: New file, extracted from
31404         modules/iconv-h-tests.
31405         * modules/iconv-h-tests: Depend on it.
31406         * modules/langinfo-c++-tests: New file, extracted from
31407         modules/langinfo-tests.
31408         * modules/langinfo-tests: Depend on it.
31409         * modules/locale-c++-tests: New file, extracted from
31410         modules/locale-tests.
31411         * modules/locale-tests: Depend on it.
31412         * modules/math-c++-tests: New file, extracted from modules/math-tests.
31413         * modules/math-tests: Depend on it.
31414         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
31415         * modules/pty-tests: Depend on it.
31416         * modules/search-c++-tests: New file, extracted from
31417         modules/search-tests.
31418         * modules/search-tests: Depend on it.
31419         * modules/signal-c++-tests: New file, extracted from
31420         modules/signal-tests.
31421         * modules/signal-tests: Depend on it.
31422         * modules/spawn-c++-tests: New file, extracted from
31423         modules/spawn-tests.
31424         * modules/spawn-tests: Depend on it.
31425         * modules/stdio-c++-tests: New file, extracted from
31426         modules/stdio-tests.
31427         * modules/stdio-tests: Depend on it.
31428         * modules/stdlib-c++-tests: New file, extracted from
31429         modules/stdlib-tests.
31430         * modules/stdlib-tests: Depend on it.
31431         * modules/string-c++-tests: New file, extracted from
31432         modules/string-tests.
31433         * modules/string-tests: Depend on it.
31434         * modules/sys_ioctl-c++-tests: New file, extracted from
31435         modules/sys_ioctl-tests.
31436         * modules/sys_ioctl-tests: Depend on it.
31437         * modules/sys_select-c++-tests: New file, extracted from
31438         modules/sys_select-tests.
31439         * modules/sys_select-tests: Depend on it.
31440         * modules/sys_socket-c++-tests: New file, extracted from
31441         modules/sys_socket-tests.
31442         * modules/sys_socket-tests: Depend on it.
31443         * modules/sys_stat-c++-tests: New file, extracted from
31444         modules/sys_stat-tests.
31445         * modules/sys_stat-tests: Depend on it.
31446         * modules/sys_time-c++-tests: New file, extracted from
31447         modules/sys_time-tests.
31448         * modules/sys_time-tests: Depend on it.
31449         * modules/time-c++-tests: New file, extracted from modules/time-tests.
31450         * modules/time-tests: Depend on it.
31451         * modules/unistd-c++-tests: New file, extracted from
31452         modules/unistd-tests.
31453         * modules/unistd-tests: Depend on it.
31454         * modules/wchar-c++-tests: New file, extracted from
31455         modules/wchar-tests.
31456         * modules/wchar-tests: Depend on it.
31457         * modules/wctype-c++-tests: New file, extracted from
31458         modules/wctype-tests.
31459         * modules/wctype-tests: Depend on it.
31460         Reported by Simon Josefsson.
31461
31462 2010-03-28  Bruno Haible  <bruno@clisp.org>
31463
31464         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
31465         * gnulib-tool (func_exists_module): New function, extracted from
31466         func_verify_module.
31467         (func_verify_module): Use it.
31468         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
31469         'foo' only if 'foo' exists.
31470         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
31471         module.
31472
31473 2010-03-28  Bruno Haible  <bruno@clisp.org>
31474
31475         gnulib-tool: Add support for special categories of tests.
31476         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
31477         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
31478         (func_usage): Document them.
31479         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
31480         inc_unportable_tests, inc_all_tests): New variables.
31481         (func_acceptable): Consider these variables.
31482         (func_modules_transitive_closure): Make it work when the 'Status' field
31483         consists of multiple words.
31484         (func_import): Store and restore the values of inc_cxx_tests,
31485         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
31486         inc_all_tests in gnulib-comp.m4.
31487         (func_create_testdir): Set inc_all_tests to true.
31488         * doc/gnulib.texi (Extra tests modules): New section.
31489         Suggested by Jim Meyering.
31490
31491 2010-03-28  Bruno Haible  <bruno@clisp.org>
31492
31493         ansi-c++-opt: Allow turning off the C++ build by default.
31494         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
31495         gl_CXX_CHOICE_DEFAULT_NO is defined.
31496         Requested by Eric Blake.
31497
31498 2010-03-28  Bruno Haible  <bruno@clisp.org>
31499
31500         unistd: Avoid #define replacements in C++ mode.
31501         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
31502         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
31503         setsockopt, shutdown, select): In C++, attach a warning to the function
31504         if possible, rather than #defining the symbol to a dysfunctional alias.
31505         Reported by John W. Eaton <jwe@gnu.org>.
31506
31507 2010-03-28  Bruno Haible  <bruno@clisp.org>
31508
31509         Fix link errors on mingw.
31510         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
31511         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
31512         $(LIBSOCKET).
31513         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
31514         $(LIBSOCKET).
31515
31516 2010-03-28  Bruno Haible  <bruno@clisp.org>
31517             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31518
31519         lib-ignore: Determine different options for different compilers.
31520         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
31521         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
31522         Add comments.
31523         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
31524         * NEWS: Mention the change.
31525
31526 2010-03-27  Bruno Haible  <bruno@clisp.org>
31527
31528         Remove unused GNULIB_XYZ macro definitions.
31529         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
31530         * modules/fseek (configure.ac): Likewise.
31531         * modules/ioctl (configure.ac): Likewise.
31532         * modules/open (configure.ac): Likewise.
31533         * modules/stdlib-safer (configure.ac): Likewise.
31534
31535 2010-03-27  Bruno Haible  <bruno@clisp.org>
31536
31537         Add a remark about certain modules.
31538         * modules/malloc (Comment): New section.
31539         * modules/realloc (Comment): Likewise.
31540         * modules/sigpipe (Comment): Likewise.
31541
31542 2010-03-27  Bruno Haible  <bruno@clisp.org>
31543
31544         Resolve conflict between the two kinds of module indicators.
31545         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
31546         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
31547         * modules/canonicalize (configure.ac): Invoke
31548         gl_MODULE_INDICATOR_FOR_TESTS.
31549         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
31550         GNULIB_XYZ.
31551         * tests/test-dirent-c++.cc: Likewise.
31552         * tests/test-dirent-safer.c: Likewise.
31553         * tests/test-dup2.c: Likewise.
31554         * tests/test-fchdir.c: Likewise.
31555         * tests/test-fcntl-h-c++.cc: Likewise.
31556         * tests/test-getopt.c: Likewise.
31557         * tests/test-getopt.h: Likewise.
31558         * tests/test-langinfo-c++.cc: Likewise.
31559         * tests/test-locale-c++.cc: Likewise.
31560         * tests/test-math-c++.cc: Likewise.
31561         * tests/test-pty-c++.cc: Likewise.
31562         * tests/test-search-c++.cc: Likewise.
31563         * tests/test-signal-c++.cc: Likewise.
31564         * tests/test-spawn-c++.cc: Likewise.
31565         * tests/test-stdio-c++.cc: Likewise.
31566         * tests/test-stdlib-c++.cc: Likewise.
31567         * tests/test-string-c++.cc: Likewise.
31568         * tests/test-sys_ioctl-c++.cc: Likewise.
31569         * tests/test-sys_select-c++.cc: Likewise.
31570         * tests/test-sys_socket-c++.cc: Likewise.
31571         * tests/test-sys_stat-c++.cc: Likewise.
31572         * tests/test-sys_time-c++.cc: Likewise.
31573         * tests/test-time-c++.cc: Likewise.
31574         * tests/test-unistd-c++.cc: Likewise.
31575         * tests/test-wchar-c++.cc: Likewise.
31576         * tests/uninorm/test-u8-nfc.c: Likewise.
31577         * tests/uninorm/test-u8-nfd.c: Likewise.
31578         * tests/uninorm/test-u8-nfkc.c: Likewise.
31579         * tests/uninorm/test-u8-nfkd.c: Likewise.
31580         * tests/uninorm/test-u16-nfc.c: Likewise.
31581         * tests/uninorm/test-u16-nfd.c: Likewise.
31582         * tests/uninorm/test-u16-nfkc.c: Likewise.
31583         * tests/uninorm/test-u16-nfkd.c: Likewise.
31584         * tests/uninorm/test-u32-nfc.c: Likewise.
31585         * tests/uninorm/test-u32-nfc-big.c: Likewise.
31586         * tests/uninorm/test-u32-nfd.c: Likewise.
31587         * tests/uninorm/test-u32-nfd-big.c: Likewise.
31588         * tests/uninorm/test-u32-nfkc.c: Likewise.
31589         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
31590         * tests/uninorm/test-u32-nfkd.c: Likewise.
31591         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
31592         * tests/uninorm/test-u32-normalize-big.c: Likewise.
31593
31594 2010-03-27  Bruno Haible  <bruno@clisp.org>
31595
31596         Distinguish two kinds of module indicators.
31597         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
31598         gl_MODULE_INDICATOR.
31599         (gl_MODULE_INDICATOR): New macro.
31600         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
31601         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
31602         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
31603         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
31604         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
31605         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
31606         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
31607         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
31608         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
31609         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
31610         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
31611         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
31612         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
31613         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
31614         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
31615         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
31616         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
31617         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
31618         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
31619         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
31620         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
31621         * modules/cloexec (configure.ac): Likewise.
31622         * modules/getopt-gnu (configure.ac): Likewise.
31623         * modules/uninorm/u8-normalize (configure.ac): Likewise.
31624         * modules/uninorm/u16-normalize (configure.ac): Likewise.
31625         * modules/uninorm/u32-normalize (configure.ac): Likewise.
31626         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
31627
31628 2010-03-27  Bruno Haible  <bruno@clisp.org>
31629
31630         New module description field 'Comment'.
31631         * gnulib-tool: New option --extract-comment.
31632         (func_usage): Document it.
31633         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
31634         (func_get_comment): New function.
31635         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
31636
31637 2010-03-27  Bruno Haible  <bruno@clisp.org>
31638
31639         Addendum to 2010-02-07 commit.
31640         * gnulib-tool (func_usage): Document --extract-applicability option.
31641
31642 2010-03-27  Bruno Haible  <bruno@clisp.org>
31643
31644         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
31645         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
31646         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
31647         rather than link errors.
31648
31649 2010-03-27  Bruno Haible  <bruno@clisp.org>
31650
31651         Avoid side effects from tests-related modules on the compilation of lib.
31652         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
31653         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
31654         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
31655         parameter. Emit into AM_CPPFLAGS a definition of the designated C
31656         macro.
31657         (func_import): Define a witness macro. Assign it a value that depends
31658         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
31659         tests-related modules.
31660         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
31661         Reported by Jim Meyering.
31662
31663 2010-03-27  Bruno Haible  <bruno@clisp.org>
31664
31665         Factorize common .m4 code.
31666         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
31667         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
31668         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
31669         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
31670         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
31671         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
31672         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
31673         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
31674         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
31675         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
31676         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
31677         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
31678         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
31679         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
31680         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
31681         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
31682         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
31683         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
31684         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
31685         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
31686         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
31687         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
31688         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
31689         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
31690         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
31691         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
31692         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
31693         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
31694         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
31695         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
31696         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
31697         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
31698
31699 2010-03-27  Bruno Haible  <bruno@clisp.org>
31700
31701         Fix a compilation error on Cygwin with g++ >= 4.3.
31702         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
31703         if it is undefined or if we alias it to chmod.
31704         (lstat): Don't warn about the use of this function if it is undefined
31705         or if we alias it to stat.
31706         Reported by Simon Josefsson.
31707
31708 2010-03-27  Bruno Haible  <bruno@clisp.org>
31709
31710         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
31711         * modules/getlogin (configure.ac): Update.
31712
31713         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
31714         * modules/getlogin_r (configure.ac): Update.
31715
31716         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
31717         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
31718         * modules/inet_ntop (configure.ac): Update.
31719
31720         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
31721         * modules/inet_pton (configure.ac): Update.
31722
31723         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
31724         * modules/mbslen (configure.ac): Update.
31725
31726         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
31727         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
31728         * modules/forkpty (configure.ac): Update.
31729         * modules/openpty (configure.ac): Update.
31730
31731 2010-03-26  Simon Josefsson  <simon@josefsson.org>
31732
31733         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
31734         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
31735
31736 2010-03-25  Eric Blake  <eblake@redhat.com>
31737
31738         maint: use pragma consistently across replacement headers
31739         * lib/ctype.in.h (system_header): Hoist for consistent placement.
31740         * lib/dirent.in.h (system_header): Likewise.
31741         * lib/errno.in.h (system_header): Likewise.
31742         * lib/float.in.h (system_header): Likewise.
31743         * lib/getopt.in.h (system_header): Likewise.
31744         * lib/iconv.in.h (system_header): Likewise.
31745         * lib/inttypes.in.h (system_header): Likewise.
31746         * lib/langinfo.in.h (system_header): Likewise.
31747         * lib/locale.in.h (system_header): Likewise.
31748         * lib/math.in.h (system_header): Likewise.
31749         * lib/netdb.in.h (system_header): Likewise.
31750         * lib/netinet_in.in.h (system_header): Likewise.
31751         * lib/pty.in.h (system_header): Likewise.
31752         * lib/sched.in.h (system_header): Likewise.
31753         * lib/se-selinux.in.h (system_header): Likewise.
31754         * lib/search.in.h (system_header): Likewise.
31755         * lib/spawn.in.h (system_header): Likewise.
31756         * lib/stdarg.in.h (system_header): Likewise.
31757         * lib/stdint.in.h (system_header): Likewise.
31758         * lib/string.in.h (system_header): Likewise.
31759         * lib/strings.in.h (system_header): Likewise.
31760         * lib/sys_file.in.h (system_header): Likewise.
31761         * lib/sys_ioctl.in.h (system_header): Likewise.
31762         * lib/sys_socket.in.h (system_header): Likewise.
31763         * lib/sys_times.in.h (system_header): Likewise.
31764         * lib/sys_utsname.in.h (system_header): Likewise.
31765         * lib/sys_wait.in.h (system_header): Likewise.
31766         * lib/sysexits.in.h (system_header): Likewise.
31767         * lib/unistd.in.h (system_header): Likewise.
31768         * lib/wctype.in.h (system_header): Likewise.
31769
31770         arpa/inet: fix mingw compilation warning
31771         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
31772         Reported by Matthew Bolte.
31773
31774 2010-03-25  Bruno Haible  <bruno@clisp.org>
31775
31776         Avoid collision between gnulib wrapper and libintl wrapper.
31777         * lib/printf.c (printf): Don't define if a printf wrapper is already
31778         defined in intl/printf.c.
31779         Reported by Michel Boaventura <michel@michelboaventura.com>.
31780
31781 2010-03-25  Bruno Haible  <bruno@clisp.org>
31782
31783         Use ANSI C.
31784         * lib/readutmp.h (getutent): Provide ANSI C prototype.
31785
31786 2010-03-25  Bruno Haible  <bruno@clisp.org>
31787
31788         Minor formatting changes.
31789         * lib/acosl.c: Insert space before function argument list.
31790         * lib/argz.c: Likewise.
31791         * lib/asinl.c: Likewise.
31792         * lib/expl.c: Likewise.
31793         * lib/gen-uni-tables.c: Likewise.
31794         * lib/gettext.h: Likewise.
31795         * lib/glthread/lock.h: Likewise.
31796         * lib/tanl.c: Likewise.
31797         * lib/uniname/uniname.c: Likewise.
31798         * tests/test-idpriv-drop.c: Likewise.
31799         * tests/test-idpriv-droptemp.c: Likewise.
31800         * tests/test-lock.c: Likewise.
31801         * tests/test-tls.c: Likewise.
31802         * lib/argp-help.c: Insert space before function-like macro argument
31803         list.
31804         * lib/memcmp.c: Likewise.
31805         * tests/test-base64.c: Likewise.
31806         * lib/localename.c: Insert space before sizeof's argument list.
31807         * lib/safe-alloc.h: Likewise.
31808         * lib/file-set.h: Insert space before macro argument list.
31809         * tests/test-argp.c: Likewise.
31810         * lib/argp-namefrob.h: Insert space before function parameter list.
31811         * lib/getaddrinfo.c: Likewise.
31812         * lib/netdb.in.h: Likewise.
31813         * lib/parse-duration.h: Likewise.
31814         * lib/parse-duration.c: Likewise.
31815         * lib/poll.c: Likewise.
31816         * lib/select.c: Likewise.
31817         * lib/trim.h: Likewise.
31818         * tests/test-usleep.c: Likewise.
31819         * lib/ldexpl.c: Insert space before function parameter list and before
31820         function argument list.
31821         * lib/logl.c: Likewise.
31822         * lib/sqrtl.c: Likewise.
31823         * lib/trim.c: Likewise.
31824         * lib/cosl.c: Use GNU style indentation. Insert space before function
31825         argument list.
31826         * lib/sinl.c: Likewise.
31827         * lib/tsearch.c: Insert space after 'for'.
31828         Reported by Jim Meyering.
31829
31830 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
31831
31832         * maint.mk (sc_Wundef_boolean): Check for the presence of the
31833         config header before grepping, as it's not present before
31834         autoreconf/configure are run.  Reported by Simon Josefsson.
31835
31836 2010-03-23  Bruno Haible  <bruno@clisp.org>
31837
31838         pt_chown: Make it work with automake < 1.11.
31839         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
31840         Reported by Simon Josefsson.
31841
31842 2010-03-23  Bruno Haible  <bruno@clisp.org>
31843
31844         pt_chown: Don't depend on GPLed modules.
31845         * lib/pt_chown.c: Don't include idpriv.h.
31846         (main): Don't drop privileges.
31847         * modules/pt_chown (Depends-on): Remove idpriv-drop.
31848         Reported by Simon Josefsson.
31849
31850 2010-03-24  Simon Josefsson  <simon@josefsson.org>
31851
31852         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
31853         suggestions from karl@freefriends.org (Karl Berry).
31854
31855 2010-03-22  Eric Blake  <eblake@redhat.com>
31856
31857         gethostname: further tweaks
31858         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
31859         are overriding gethostname.
31860         Suggested by Bruno Haible.
31861
31862 2010-03-21  Bruno Haible  <bruno@clisp.org>
31863
31864         Fix comments.
31865         * lib/forkpty.c (rpl_forkpty): Fix comment.
31866         * lib/openpty.c (rpl_openpty): Likewise.
31867         Reported by Eric Blake.
31868
31869 2010-03-22  Eric Blake  <eblake@redhat.com>
31870
31871         gethostname: fix build on mingw
31872         * lib/unistd.in.h (includes): Work around fact that mingw
31873         <winsock2.h> re-includes <unistd.h>, by avoiding any
31874         redeclarations if we are being included by <winsock2.h>.
31875         Reported by Matthias Bolte.
31876
31877 2010-03-21  Bruno Haible  <bruno@clisp.org>
31878
31879         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
31880         * lib/forkpty.c (forkpty): New replacement function, from glibc with
31881         modifications.
31882         * lib/pty.in.h (forkpty): Update declaration. Add comments.
31883         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
31884         provide the replacement.
31885         * modules/forkpty (Depends-on): Add openpty, login_tty.
31886         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
31887         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
31888         * doc/glibc-functions/forkpty.texi: More supported platforms.
31889         * config/srclist.txt: Add forkpty.c (commented).
31890
31891 2010-03-21  Bruno Haible  <bruno@clisp.org>
31892
31893         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
31894         (Makefile.am): Verify that PTY_LIB is defined.
31895
31896         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
31897
31898 2010-03-21  Bruno Haible  <bruno@clisp.org>
31899
31900         Tests for module 'login_tty'.
31901         * modules/login_tty-tests: New file.
31902         * tests/test-login_tty.c: New file.
31903
31904         New module 'login_tty'.
31905         * lib/login_tty.c: New file.
31906         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
31907         * modules/login_tty: New file.
31908         * doc/glibc-functions/login_tty.texi: Mention the new module.
31909
31910 2010-03-21  Bruno Haible  <bruno@clisp.org>
31911
31912         login_tty: Documentation.
31913         * doc/glibc-functions/login_tty.texi: New file.
31914         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
31915
31916 2010-03-21  Bruno Haible  <bruno@clisp.org>
31917
31918         pty: Consistent macro naming.
31919         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
31920         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
31921         * modules/pty (configure.ac): Update.
31922
31923 2010-03-21  Bruno Haible  <bruno@clisp.org>
31924
31925         Tests for openpty: Make stricter.
31926         * tests/test-openpty.c (main): Add test of canonical processing and
31927         erase.
31928         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
31929
31930         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
31931         * lib/openpty.c (openpty): New replacement function.
31932         * lib/pty.in.h: Include <termios.h>.
31933         (openpty): Update declaration. Add comments.
31934         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
31935         is not declared, arrange to provide the replacement. Check for _getpty
31936         and posix_openpt.
31937         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
31938         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
31939         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
31940         * modules/pty-tests (test_pty_c___LDADD): New variable.
31941         * doc/glibc-functions/openpty.texi: More supported platforms.
31942
31943 2010-03-21  Bruno Haible  <bruno@clisp.org>
31944
31945         setenv: Tweaks.
31946         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
31947         the test program.
31948         * doc/posix-functions/setenv.texi: Update platforms list.
31949
31950 2010-03-21  Bruno Haible  <bruno@clisp.org>
31951
31952         New module 'unlockpt'.
31953         * lib/unlockpt.c: New file, from glibc with modifications.
31954         * m4/unlockpt.m4: New file.
31955         * modules/unlockpt: New file.
31956         * lib/stdlib.in.h (unlockpt): New declaration.
31957         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
31958         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
31959         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
31960         HAVE_UNLOCKPT.
31961         * doc/posix-functions/unlockpt.texi: Mention the new module.
31962         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
31963         * config/srclist.txt: Add unlockpt.c (commented).
31964
31965 2010-03-21  Jim Meyering  <meyering@redhat.com>
31966
31967         maint.mk: prohibit inclusion of "intprops.h" without use
31968         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
31969
31970 2010-03-21  Bruno Haible  <bruno@clisp.org>
31971
31972         New module 'grantpt'.
31973         * lib/grantpt.c: New file, from glibc with modifications.
31974         * m4/grantpt.m4: New file.
31975         * modules/grantpt: New file.
31976         * lib/stdlib.in.h (grantpt): New declaration.
31977         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
31978         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
31979         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
31980         HAVE_GRANTPT.
31981         * doc/posix-functions/grantpt.texi: Mention the new module.
31982         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
31983         * config/srclist.txt: Add grantpt.c (commented).
31984
31985 2010-03-21  Bruno Haible  <bruno@clisp.org>
31986
31987         New module 'pt_chown'.
31988         * lib/pt_chown.c: New file, from glibc with modifications.
31989         * lib/pty-private.h: New file, from glibc with modifications.
31990         * modules/pt_chown: New file.
31991         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
31992
31993 2010-03-21  Bruno Haible  <bruno@clisp.org>
31994
31995         Tests for module 'ptsname'.
31996         * modules/ptsname-tests: New file.
31997         * tests/test-ptsname.c: New file.
31998
31999         New module 'ptsname'.
32000         * lib/ptsname.c: New file, from glibc with modifications.
32001         * m4/ptsname.m4: New file.
32002         * modules/ptsname: New file.
32003         * lib/stdlib.in.h (ptsname): New declaration.
32004         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
32005         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
32006         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
32007         HAVE_PTSNAME.
32008         * doc/posix-functions/ptsname.texi: Mention the new module.
32009         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
32010         * config/srclist.txt: Add ptsname.c (commented).
32011
32012 2010-03-21  Bruno Haible  <bruno@clisp.org>
32013
32014         Tests for module 'ttyname_r'.
32015         * modules/ttyname_r-tests: New file.
32016         * tests/test-ttyname_r.c: New file.
32017
32018         New module 'ttyname_r'.
32019         * lib/ttyname_r.c: New file.
32020         * m4/ttyname_r.m4: New file.
32021         * modules/ttyname_r: New file.
32022         * lib/unistd.in.h (ttyname_r): New declaration.
32023         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
32024         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
32025         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
32026         HAVE_TTYNAME_R.
32027         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
32028         * doc/posix-functions/ttyname_r.texi: Mention the new module.
32029
32030 2010-03-20  Bruno Haible  <bruno@clisp.org>
32031
32032         signal: Undefine macro definitions in C++ mode.
32033         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
32034         sigfillset): Undefine macro definitions from the system header in C++
32035         mode.
32036         Reported by John W. Eaton <jwe@gnu.org>.
32037
32038 2010-03-20  Bruno Haible  <bruno@clisp.org>
32039
32040         Ensure no #include statements inside extern "C" { ... }.
32041         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
32042         contain #include statements.
32043         * lib/time.in.h: Likewise.
32044
32045 2010-03-20  Bruno Haible  <bruno@clisp.org>
32046
32047         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
32048         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
32049         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
32050         Reported by John W. Eaton <jwe@gnu.org>.
32051
32052 2010-03-20  Bruno Haible  <bruno@clisp.org>
32053
32054         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
32055         Reported by Jim Meyering.
32056
32057 2010-03-20  Bruno Haible  <bruno@clisp.org>
32058
32059         pipe: Set errno upon failure.
32060         * lib/pipe.h: Specify that when -1 is returned, errno is set.
32061         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
32062         errno value in error message.
32063
32064 2010-03-20  Bruno Haible  <bruno@clisp.org>
32065             Jim Meyering  <meyering@redhat.com>
32066
32067         lchown: Avoid "unused variable" warning.
32068         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
32069
32070 2010-03-20  Bruno Haible  <bruno@clisp.org>
32071
32072         Work around unlink() bug on MacOS X 10.5.6.
32073         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
32074         attempting to unlink a parent directory.
32075         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
32076         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
32077         activate for the replacement function.
32078         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
32079
32080 2010-03-20  Bruno Haible  <bruno@clisp.org>
32081
32082         Fix link errors on Solaris 8.
32083         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
32084         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
32085
32086 2010-03-19  Jim Meyering  <meyering@redhat.com>
32087
32088         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
32089         The _LIBC implementation of build_range_exp correctly honors the
32090         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
32091         However, the non-_LIBC implementation would ignore that syntax-bit
32092         flag and return REG_ERANGE unconditionally.
32093         This change makes it honor that flag.
32094         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
32095         Make two pointer parameters "const".
32096         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
32097         (parse_bracket_exp): Update caller.
32098
32099         regex.m4: correct the reversed range endpoint ([b-a]) test
32100         * m4/regex.m4: When requiring that [b-a] evoke failure,
32101         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
32102         test pass once again for x86-based systems.
32103
32104 2010-03-19  Bruno Haible  <bruno@clisp.org>
32105
32106         scandir: Fix link error on Solaris 8.
32107         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
32108         macros.
32109
32110 2010-03-19  Bruno Haible  <bruno@clisp.org>
32111
32112         getusershell: Fix documentation.
32113         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
32114         module.
32115         * doc/glibc-functions/setusershell.texi: Likewise.
32116
32117         getusershell: Provide declaration, missing on Solaris 9.
32118         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
32119         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
32120         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
32121         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
32122         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
32123         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
32124         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
32125         HAVE_GETUSERSHELL.
32126         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
32127
32128 2010-03-19  Bruno Haible  <bruno@clisp.org>
32129
32130         wctype: Provide iswblank function.
32131         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
32132         exists and is fine.
32133         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
32134         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
32135         * tests/test-wctype.c (main): Re-enable the iswblank tests.
32136         * doc/posix-functions/iswblank.texi: Update.
32137
32138 2010-03-19  Bruno Haible  <bruno@clisp.org>
32139
32140         Tests of module 'pty' in C++ mode.
32141         * modules/pty-tests: New file.
32142         * tests/test-pty-c++.cc: New file.
32143         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
32144
32145 2010-03-19  Eric Blake  <eblake@redhat.com>
32146
32147         logb: fix documentation
32148         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
32149         1.5 declaration bug.
32150
32151         forkpty, openpty: prefer glibc's const-safe prototype
32152         * lib/forkpty.c (rpl_forkpty): New file.
32153         * lib/openpty.c (rpl_openpty): Likewise.
32154         * modules/forkpty (Files): Distribute it.
32155         * modules/openpty (Files): Likewise.
32156         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
32157         check...
32158         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
32159         replacement for for non-const BSD signature.
32160         * modules/pty (Makefile.am): Substitute witnesses.
32161         * lib/pty.in.h (forkpty, openpty): Declare replacements.
32162         * tests/test-forkpty.c: Update signature check.
32163         * tests/test-openpty.c: Likewise.
32164         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
32165         * doc/glibc-functions/openpty.texi (openpty): Likewise.
32166
32167         forkpty, openpty: split functions into new modules
32168         * modules/pty (Makefile.am): Substitute new witnesses.
32169         (Libraries): Move library detection...
32170         * modules/forkpty: ...into new module.
32171         * modules/openpty: Another new module.
32172         * modules/pty-tests: Rename and split...
32173         * modules/forkpty-tests: ...to this...
32174         * modules/openpty-tests: ...and this.
32175         * tests/test-pty.c: Rename and split...
32176         * tests/test-forkpty.c: ...to this...
32177         * tests/test-openpty.c: ...and this.
32178         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
32179         (gl_PTY): Split library searching...
32180         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
32181         (gl_FORKPTY, gl_OPENPTY): New macros.
32182         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
32183         * NEWS: Mention the split.
32184         * MODULES.html.sh (Misc): Document the modules.
32185         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
32186         * doc/glibc-functions/openpty.texi (openpty): Likewise.
32187
32188         pty: improve replacement header
32189         * lib/pty.in.h: New file.
32190         * modules/pty (Files): Ship it.
32191         (Makefile.am): Always build replacement.
32192         * m4/pty.m4: Rename...
32193         * m4/pty_h.m4: ...to this.
32194         (gl_PTY): Modernize setting of witness macros; update check of
32195         forkpty to take proper advantage of cache.
32196         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
32197
32198         getopt: avoid compiler warning
32199         * lib/getopt.c (attribute_hidden): Remove unused macro.
32200
32201 2010-03-18  Bruno Haible  <bruno@clisp.org>
32202
32203         Fix link errors on Solaris 8.
32204         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
32205         * modules/search-tests (test_search_c___LDADD): Likewise.
32206         * modules/signal-tests (test_signal_c___LDADD): Likewise.
32207         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
32208         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
32209         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
32210         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
32211         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
32212         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
32213
32214 2010-03-18  Bruno Haible  <bruno@clisp.org>
32215
32216         Fix bug introduced on 2010-03-14.
32217         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
32218         (gl_SPAWN_H): Require it.
32219         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
32220         Reported by Simon Josefsson.
32221
32222 2010-03-18  Bruno Haible  <bruno@clisp.org>
32223
32224         Fix typo introduced on 2009-12-31.
32225         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
32226         posix_spawn_file_actions_adddup2.
32227
32228 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
32229         and Eric Blake  <eblake@redhat.com>
32230
32231         test-vc-list-files-git: make more robust
32232         * tests/test-vc-list-files-git.sh: Unset problematic environment
32233         variables.  Chain commands together.
32234
32235 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
32236
32237         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
32238         `AC_CHECK_DECL' invocation.
32239
32240 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
32241
32242         * lib/inttostr.c (inttostr): Make sure the invocation of verify
32243         appears before executable statements. Suggested by Petr Sumbera
32244         <Petr.Sumbera@Sun.COM>.
32245
32246 2010-03-14  Bruno Haible  <bruno@clisp.org>
32247
32248         * tests/test-flock.c (test_exclusive): Comment out a test that causes
32249         portability problems. Instead use a simpler test.
32250         (main): Check that invalid arguments are rejected only on Linux.
32251
32252 2010-03-14  Bruno Haible  <bruno@clisp.org>
32253
32254         Fix bug introduced on 2009-12-31.
32255         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
32256         gl_PREREQ_SYS_H_WINSOCK2 always.
32257         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
32258         SYS_SOCKET_H variable.
32259         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
32260         Update comments.
32261         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
32262         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
32263         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
32264         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
32265         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
32266
32267 2010-03-14  Bruno Haible  <bruno@clisp.org>
32268
32269         Fix values returned by sinl, cosl.
32270         * lib/trigl.h: Add specification comments.
32271         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
32272         that combines the values from the precomputed table with the values of
32273         the Chebyshev polynomials.
32274
32275 2010-03-14  Bruno Haible  <bruno@clisp.org>
32276
32277         Fix compilation error when modules 'posix_spawn[p]' are not used.
32278         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
32279         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
32280
32281 2010-03-14  Bruno Haible  <bruno@clisp.org>
32282
32283         Fix compilation error on mingw when module 'time_r' is not used.
32284         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
32285         is 1.
32286         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
32287         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
32288         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
32289         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
32290
32291 2010-03-14  Bruno Haible  <bruno@clisp.org>
32292
32293         Fix compilation error with Sun C.
32294         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
32295         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
32296         instead of GCC specific ULONG_LONG_MAX.
32297         * lib/xstrtoll.c: Likewise.
32298         * lib/xstrtoull.c: Likewise.
32299
32300 2010-03-13  Bruno Haible  <bruno@clisp.org>
32301
32302         Allow the user to disable C++ code and tests.
32303         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
32304         (gl_PROG_ANSI_CXX): Require it.
32305
32306 2010-03-13  Bruno Haible  <bruno@clisp.org>
32307
32308         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
32309         cases.
32310
32311 2010-03-13  Bruno Haible  <bruno@clisp.org>
32312
32313         Test that gnulib does not break the standard C++ headers.
32314         * tests/test-locale-c++2.cc: New file.
32315         * modules/locale-tests (Files): Add it.
32316         (Makefile.am): Compile it for test-locale-c++.
32317         * tests/test-math-c++2.cc: New file.
32318         * modules/math-tests (Files): Add it.
32319         (Makefile.am): Compile it for test-math-c++.
32320         * tests/test-signal-c++2.cc: New file.
32321         * modules/signal-tests (Files): Add it.
32322         (Makefile.am): Compile it for test-signal-c++.
32323         * tests/test-stdio-c++2.cc: New file.
32324         * modules/stdio-tests (Files): Add it.
32325         (Makefile.am): Compile it for test-stdio-c++.
32326         * tests/test-stdlib-c++2.cc: New file.
32327         * modules/stdlib-tests (Files): Add it.
32328         (Makefile.am): Compile it for test-stdlib-c++.
32329         * tests/test-string-c++2.cc: New file.
32330         * modules/string-tests (Files): Add it.
32331         (Makefile.am): Compile it for test-string-c++.
32332         * tests/test-time-c++2.cc: New file.
32333         * modules/time-tests (Files): Add it.
32334         (Makefile.am): Compile it for test-time-c++.
32335         Reported by John W. Eaton <jwe@gnu.org>.
32336
32337 2010-03-13  Bruno Haible  <bruno@clisp.org>
32338
32339         * gnulib-tool (func_usage): Clarify which options are available for
32340         --create-testdir and --create-megatestdir.
32341
32342 2010-03-13  Bruno Haible  <bruno@clisp.org>
32343
32344         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
32345         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
32346         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
32347         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
32348         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
32349         when appropriate.
32350         Reported by Jim Meyering.
32351
32352 2010-03-12  Simon Josefsson  <simon@josefsson.org>
32353
32354         * gnulib-tool (func_import): Explain origin of code.
32355
32356 2010-03-12  Bruno Haible  <bruno@clisp.org>
32357
32358         Fix problem with automake's definition of CXXLINK.
32359         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
32360         Reported by Simon Josefsson and Ludovic Courtès.
32361
32362 2010-03-12  Bruno Haible  <bruno@clisp.org>
32363
32364         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
32365         stable releases.
32366
32367 2010-03-11  Bruno Haible  <bruno@clisp.org>
32368
32369         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
32370         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
32371         whether the system provides one variant or multiple variants of the
32372         function.
32373         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
32374         C++ compilers.
32375         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
32376         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
32377         Reported by Jim Meyering.
32378
32379 2010-03-09  Simon Josefsson  <simon@josefsson.org>
32380
32381         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
32382
32383 2010-03-08  Bruno Haible  <bruno@clisp.org>
32384
32385         gnulib-tool: Add support for --libtool in --create-testdir.
32386         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
32387         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
32388
32389 2010-03-08  Eric Blake  <eblake@redhat.com>
32390
32391         gnulib-tool.texi: mention possibility of git submodule
32392         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
32393         submodules.
32394         * doc/.gitignore: Ignore another generated file.
32395
32396 2010-03-08  Karl Berry  <karl@gnu.org>
32397
32398         * doc/gnulib-tool.texi (VCS Issues): Mention third option
32399         of committing gnulib files while skipping others.
32400
32401 2010-03-07  Bruno Haible  <bruno@clisp.org>
32402
32403         Tests of module 'wctype' in C++ mode.
32404         * tests/test-wctype-c++.cc: New file.
32405         * modules/wctype-tests (Files): Add it and tests/signature.h.
32406         (Depends-on): Add ansi-c++-opt.
32407         (Makefile.am): Arrange to compile and run test-wctype-c++.
32408
32409         Tests of module 'wchar' in C++ mode.
32410         * tests/test-wchar-c++.cc: New file.
32411         * modules/wchar-tests (Files): Add it and tests/signature.h.
32412         (Depends-on): Add ansi-c++-opt.
32413         (Makefile.am): Arrange to compile and run test-wchar-c++.
32414         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
32415         gl_MODULE_INDICATOR.
32416
32417         Tests of module 'unistd' in C++ mode.
32418         * tests/test-unistd-c++.cc: New file.
32419         * modules/unistd-tests (Files): Add it and tests/signature.h.
32420         (Depends-on): Add ansi-c++-opt.
32421         (Makefile.am): Arrange to compile and run test-unistd-c++.
32422         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
32423         gl_MODULE_INDICATOR.
32424
32425         Tests of module 'time' in C++ mode.
32426         * tests/test-time-c++.cc: New file.
32427         * modules/time-tests (Files): Add it and tests/signature.h.
32428         (Depends-on): Add ansi-c++-opt.
32429         (Makefile.am): Arrange to compile and run test-time-c++.
32430         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
32431
32432         Tests of module 'sys_time' in C++ mode.
32433         * tests/test-sys_time-c++.cc: New file.
32434         * modules/sys_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-sys_time-c++.
32437         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
32438         gl_MODULE_INDICATOR.
32439
32440         Tests of module 'sys_stat' in C++ mode.
32441         * tests/test-sys_stat-c++.cc: New file.
32442         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
32443         (Depends-on): Add ansi-c++-opt.
32444         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
32445         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
32446         gl_MODULE_INDICATOR.
32447
32448         Tests of module 'sys_socket' in C++ mode.
32449         * tests/test-sys_socket-c++.cc: New file.
32450         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
32451         (Depends-on): Add ansi-c++-opt.
32452         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
32453         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
32454         gl_MODULE_INDICATOR.
32455
32456         Tests of module 'sys_select' in C++ mode.
32457         * tests/test-sys_select-c++.cc: New file.
32458         * modules/sys_select-tests (Files): Add it and tests/signature.h.
32459         (Depends-on): Add ansi-c++-opt.
32460         (Makefile.am): Arrange to compile and run test-sys_select-c++.
32461         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
32462         gl_MODULE_INDICATOR.
32463
32464         Tests of module 'sys_ioctl' in C++ mode.
32465         * tests/test-sys_ioctl-c++.cc: New file.
32466         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
32467         (Depends-on): Add ansi-c++-opt.
32468         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
32469         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
32470         gl_MODULE_INDICATOR.
32471
32472         Tests of module 'string' in C++ mode.
32473         * tests/test-string-c++.cc: New file.
32474         * modules/string-tests (Files): Add it and tests/signature.h.
32475         (Depends-on): Add ansi-c++-opt.
32476         (Makefile.am): Arrange to compile and run test-string-c++.
32477         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
32478         gl_MODULE_INDICATOR.
32479
32480         Tests of module 'stdlib' in C++ mode.
32481         * tests/test-stdlib-c++.cc: New file.
32482         * modules/stdlib-tests (Files): Add it and tests/signature.h.
32483         (Depends-on): Add ansi-c++-opt.
32484         (Makefile.am): Arrange to compile and run test-stdlib-c++.
32485         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
32486         gl_MODULE_INDICATOR.
32487
32488         Tests of module 'stdio' in C++ mode.
32489         * tests/test-stdio-c++.cc: New file.
32490         * modules/stdio-tests (Files): Add it and tests/signature.h.
32491         (Depends-on): Add ansi-c++-opt.
32492         (Makefile.am): Arrange to compile and run test-stdio-c++.
32493         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
32494         gl_MODULE_INDICATOR.
32495
32496         Tests of module 'spawn' in C++ mode.
32497         * tests/test-spawn-c++.cc: New file.
32498         * modules/spawn-tests (Files): Add it and tests/signature.h.
32499         (Depends-on): Add ansi-c++-opt.
32500         (Makefile.am): Arrange to compile and run test-spawn-c++.
32501         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
32502         gl_MODULE_INDICATOR.
32503
32504         Tests of module 'signal' in C++ mode.
32505         * tests/test-signal-c++.cc: New file.
32506         * modules/signal-tests (Files): Add it and tests/signature.h.
32507         (Depends-on): Add ansi-c++-opt.
32508         (Makefile.am): Arrange to compile and run test-signal-c++.
32509         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
32510         gl_MODULE_INDICATOR.
32511
32512         Tests of module 'search' in C++ mode.
32513         * tests/test-search-c++.cc: New file.
32514         * modules/search-tests (Files): Add it and tests/signature.h.
32515         (Depends-on): Add ansi-c++-opt.
32516         (Makefile.am): Arrange to compile and run test-search-c++.
32517         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
32518         gl_MODULE_INDICATOR.
32519
32520         Tests of module 'math' in C++ mode.
32521         * tests/test-math-c++.cc: New file.
32522         * modules/math-tests (Files): Add it and tests/signature.h.
32523         (Depends-on): Add ansi-c++-opt.
32524         (Makefile.am): Arrange to compile and run test-math-c++.
32525         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
32526
32527         Tests of module 'locale' in C++ mode.
32528         * tests/test-locale-c++.cc: New file.
32529         * modules/locale-tests (Files): Add it and tests/signature.h.
32530         (Depends-on): Add ansi-c++-opt.
32531         (Makefile.am): Arrange to compile and run test-locale-c++.
32532         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
32533         gl_MODULE_INDICATOR.
32534
32535         Tests of module 'langinfo' in C++ mode.
32536         * tests/test-langinfo-c++.cc: New file.
32537         * modules/langinfo-tests (Files): Add it and tests/signature.h.
32538         (Depends-on): Add ansi-c++-opt.
32539         (Makefile.am): Arrange to compile and run test-langinfo-c++.
32540         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
32541         gl_MODULE_INDICATOR.
32542
32543         Tests of module 'iconv-h' in C++ mode.
32544         * tests/test-iconv-h-c++.cc: New file.
32545         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
32546         (Depends-on): Add ansi-c++-opt.
32547         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
32548
32549         Tests of module 'glob' in C++ mode.
32550         * tests/test-glob-c++.cc: New file.
32551         * modules/glob-tests (Files): Add it.
32552         (Depends-on): Add ansi-c++-opt.
32553         (Makefile.am): Arrange to compile and run test-glob-c++.
32554
32555         Tests of module 'fcntl-h' in C++ mode.
32556         * tests/test-fcntl-h-c++.cc: New file.
32557         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
32558         (Depends-on): Add ansi-c++-opt.
32559         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
32560         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
32561         gl_MODULE_INDICATOR.
32562
32563         Tests of module 'dirent' in C++ mode.
32564         * tests/test-dirent-c++.cc: New file.
32565         * modules/dirent-tests (Files): Add it and tests/signature.h.
32566         (Depends-on): Add ansi-c++-opt.
32567         (Makefile.am): Arrange to compile and run test-dirent-c++.
32568         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
32569         gl_MODULE_INDICATOR.
32570
32571         New module 'ansi-c++-opt'.
32572         * modules/ansi-c++-opt: New file.
32573         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
32574
32575         Document C++ namespace mode.
32576         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
32577
32578         wctype: Avoid #define replacements in C++ mode.
32579         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
32580         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
32581         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
32582         In C++, define a namespaced alias symbol.
32583         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
32584         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
32585         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
32586         rule.
32587
32588         wchar: Avoid #define replacements in C++ mode.
32589         * lib/wchar.in.h: Include c++defs.h.
32590         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
32591         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
32592         symbol.
32593         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
32594         * modules/wchar (Depends-on): Add c++defs.
32595         (Makefile.am): Update wchar.h rule.
32596
32597         unistd: Avoid #define replacements in C++ mode.
32598         * lib/unistd.in.h: Include c++defs.h.
32599         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
32600         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
32601         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
32602         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
32603         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
32604         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
32605         symbol.
32606         (environ): Update.
32607         * modules/unistd (Depends-on): Add c++defs.
32608         (Makefile.am): Update unistd.h rule.
32609
32610         time: Avoid #define replacements in C++ mode.
32611         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
32612         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
32613         define a namespaced alias symbol.
32614         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
32615         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
32616         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
32617         * modules/time (Depends-on): Add c++defs, warn-on-use.
32618         (Makefile.am): Update time.h rule.
32619         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
32620         * modules/nanosleep (configure.ac): Likewise.
32621         * modules/strptime (configure.ac): Likewise.
32622         * modules/timegm (configure.ac): Likewise.
32623
32624         sys_time: Avoid #define replacements in C++ mode.
32625         * lib/sys_time.in.h: Include c++defs.h.
32626         (gettimeofday): In C++, define a namespaced alias symbol.
32627         * modules/sys_time (Depends-on): Add c++defs.
32628         (Makefile.am): Update sys/time.h rule.
32629
32630         sys_stat: Avoid #define replacements in C++ mode.
32631         * lib/sys_stat.in.h: Include c++defs.h.
32632         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
32633         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
32634         namespaced alias symbol.
32635         In C++, define a namespaced alias symbol.
32636         * modules/sys_stat (Depends-on): Add c++defs.
32637         (Makefile.am): Update sys/stat.h rule.
32638
32639         sys_socket: Avoid #define replacements in C++ mode.
32640         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
32641         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
32642         definitions also when the system has a <sys/socket.h>.
32643         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
32644         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
32645         In C++, define a namespaced alias symbol.
32646         * modules/sys_socket (Depends-on): Add c++defs.
32647         (Makefile.am): Update sys/socket.h rule.
32648
32649         sys_select: Avoid #define replacements in C++ mode.
32650         * lib/sys_select.in.h: Include c++defs.h. Enable the function
32651         definitions also when the system has a <sys/select.h>.
32652         (select): In C++, define a namespaced alias symbol.
32653         * modules/sys_select (Depends-on): Add c++defs.
32654         (Makefile.am): Update sys/select.h rule.
32655
32656         sys_ioctl: Avoid #define replacements in C++ mode.
32657         * lib/sys_ioctl.in.h: Include c++defs.h.
32658         (ioctl): In C++, define a namespaced alias symbol.
32659         * modules/sys_ioctl (Depends-on): Add c++defs.
32660         (Makefile.am): Update sys/ioctl.h rule.
32661
32662         string: Avoid #define replacements in C++ mode.
32663         * lib/string.in.h: Include c++defs.h.
32664         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
32665         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
32666         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
32667         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
32668         strsignal, strverscmp): In C++, define a namespaced alias symbol.
32669         * modules/string (Depends-on): Add c++defs.
32670         (Makefile.am): Update string.h rule.
32671
32672         stdlib: Avoid #define replacements in C++ mode.
32673         * lib/stdlib.in.h: Include c++defs.h.
32674         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
32675         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
32676         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
32677         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
32678         symbol.
32679         * modules/stdlib (Depends-on): Add c++defs.
32680         (Makefile.am): Update stdlib.h rule.
32681
32682         stdio: Avoid #define replacements in C++ mode.
32683         * lib/stdio.in.h: Include c++defs.h.
32684         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
32685         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
32686         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
32687         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
32688         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
32689         namespaced alias symbol.
32690         * modules/stdio (Depends-on): Add c++defs.
32691         (Makefile.am): Update stdio.h rule.
32692
32693         spawn: Avoid #define replacements in C++ mode.
32694         * lib/spawn.in.h: Include c++defs.h.
32695         (posix_spawn, posix_spawnp, posix_spawnattr_init,
32696         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
32697         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
32698         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
32699         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
32700         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
32701         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
32702         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
32703         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
32704         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
32705         In C++, define a namespaced alias symbol.
32706         * modules/spawn (Depends-on): Add c++defs.
32707         (Makefile.am): Update spawn.h rule.
32708
32709         signal: Avoid #define replacements in C++ mode.
32710         * lib/signal.in.h: Include c++defs.h.
32711         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
32712         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
32713         namespaced alias symbol.
32714         * modules/signal (Depends-on): Add c++defs.
32715         (Makefile.am): Update signal.h rule.
32716
32717         search: Avoid #define replacements in C++ mode.
32718         * lib/search.in.h: Include c++defs.h.
32719         (_gl_search_compar_fn, _gl_search_action_fn): New types.
32720         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
32721         symbol.
32722         * modules/search (Depends-on): Add c++defs.
32723         (Makefile.am): Update search.h rule.
32724
32725         math: Avoid #define replacements in C++ mode.
32726         * lib/math.in.h: Include c++defs.h.
32727         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
32728         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
32729         trunc, truncl): In C++, define a namespaced alias symbol.
32730         * modules/math (Depends-on): Add c++defs.
32731         (Makefile.am): Update math.h rule.
32732
32733         locale: Avoid #define replacements in C++ mode.
32734         * lib/locale.in.h: Include c++defs.h.
32735         (duplocale): In C++, define a namespaced alias symbol.
32736         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
32737         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
32738         * modules/locale (Depends-on): Add c++defs.
32739         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
32740
32741         langinfo: Avoid #define replacements in C++ mode.
32742         * lib/langinfo.in.h: Include c++defs.h.
32743         (nl_langinfo): In C++, define a namespaced alias symbol.
32744         * modules/langinfo (Depends-on): Add c++defs.
32745         (Makefile.am): Update langinfo.h rule.
32746
32747         iconv-h: Avoid #define replacements in C++ mode.
32748         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
32749         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
32750         symbol.
32751         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
32752         whenever iconv is present.
32753         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
32754         (Makefile.am): Update iconv.h rule.
32755
32756         glob: Avoid #define replacements in C++ mode.
32757         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
32758         (_gl_glob_errfunc_fn): New type.
32759         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
32760         symbol.
32761         * modules/glob (Depends-on): Add c++defs, warn-on-use.
32762         (Makefile.am): Update glob.h rule.
32763
32764         fcntl-h: Avoid #define replacements in C++ mode.
32765         * lib/fcntl.in.h: Include c++defs.h.
32766         (fcntl, open, openat): In C++, define a namespaced alias symbol.
32767         * modules/fcntl-h (Depends-on): Add c++defs.
32768         (Makefile.am): Update fcntl.h rule.
32769
32770         dirent: Avoid #define replacements in C++ mode.
32771         * lib/dirent.in.h: Include c++defs.h.
32772         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
32773         namespaced alias symbol.
32774         (dirfd): Update declaration.
32775         * modules/dirent (Depends-on): Add c++defs.
32776         (Makefile.am): Update dirent.h rule.
32777
32778         ctype: Make it usable in C++ code.
32779         * lib/ctype.in.h: Include c++defs.h.
32780         (isblank): Declare as extern "C".
32781         * modules/ctype (Depends-on): Add c++defs.
32782         (Makefile.am): Update ctype.h rule.
32783
32784         New module 'c++defs'.
32785         * modules/c++defs: New file.
32786         * build-aux/c++defs.h: New file.
32787         Reported by John W. Eaton <jwe@gnu.org>.
32788
32789 2010-03-07  Bruno Haible  <bruno@clisp.org>
32790
32791         logb: Provide missing declaration for Cygwin.
32792         * lib/math.in.h (logb): New declaration.
32793         * m4/logb.m4: New file.
32794         * modules/logb (Files): Add m4/logb.m4.
32795         (Depends-on): Add math.
32796         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
32797         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
32798         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
32799         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
32800         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
32801
32802 2010-03-07  Bruno Haible  <bruno@clisp.org>
32803
32804         Fix test-cond link error.
32805         * tests/test-cond.c: Include <stdio.h>.
32806
32807 2010-03-07  Bruno Haible  <bruno@clisp.org>
32808
32809         Fix test-dirent-safer link error.
32810         * modules/dirent-safer-tests (Makefile.am): Define
32811         test_dirent_safer_LDADD.
32812
32813 2010-03-07  Bruno Haible  <bruno@clisp.org>
32814
32815         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
32816         among default module list.
32817
32818 2010-03-07  Bruno Haible  <bruno@clisp.org>
32819
32820         Fix link error on platforms with GNU libiconv.
32821         * modules/unistr/u8-strcoll-tests (Makefile): Define
32822         test_u8_strcoll_LDADD.
32823         * modules/unistr/u16-strcoll-tests (Makefile): Define
32824         test_u16_strcoll_LDADD.
32825         * modules/unistr/u32-strcoll-tests (Makefile): Define
32826         test_u32_strcoll_LDADD.
32827
32828 2010-03-07  Bruno Haible  <bruno@clisp.org>
32829
32830         Use POSIX declarations for socket functions.
32831         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
32832         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
32833         rpl_sendto): Change declaration to match POSIX.
32834         * lib/connect.c (rpl_connect): Likewise.
32835         * lib/accept.c (rpl_accept): Likewise.
32836         * lib/bind.c (rpl_bind): Likewise.
32837         * lib/getpeername.c (rpl_getpeername): Likewise.
32838         * lib/getsockname.c (rpl_getsockname): Likewise.
32839         * lib/recv.c (rpl_recv): Likewise.
32840         * lib/send.c (rpl_send): Likewise.
32841         * lib/recvfrom.c (rpl_recvfrom): Likewise.
32842         * lib/sendto.c (rpl_sendto): Likewise.
32843
32844 2010-03-06  Bruno Haible  <bruno@clisp.org>
32845
32846         Clarify access, euidaccess, faccessat.
32847         * doc/posix-functions/faccessat.texi: Mention security problem under
32848         "Other problems", not "Portability problems".
32849         * doc/posix-functions/access.texi: Likewise. Mention a related security
32850         problem.
32851         * doc/glibc-functions/euidaccess.texi: Mention security problems.
32852         * lib/euidaccess.c: Add comments about platforms.
32853         * lib/unistd.in.h (access, euidaccess): Add warnings.
32854
32855 2010-03-07  Bruno Haible  <bruno@clisp.org>
32856
32857         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
32858         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
32859         (POSIX_SPAWN_SETSCHEDULER): Likewise.
32860         (POSIX_SPAWN_USEVFORK): Define in a way that works when
32861         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
32862         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
32863         declare when POSIX_SPAWN_SETSCHEDULER is zero.
32864         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
32865         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
32866         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
32867         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
32868         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
32869         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
32870         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
32871         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
32872         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
32873         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
32874         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
32875         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
32876         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
32877         Likewise.
32878         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
32879         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
32880         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
32881         Likewise.
32882         * tests/test-spawn.c (main): Make it work when
32883         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
32884
32885 2010-03-07  Bruno Haible  <bruno@clisp.org>
32886
32887         Fix incorrect Makefile.am generation in German locale.
32888         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
32889         Execute sed command with character range in C locale.
32890
32891 2010-03-06  Bruno Haible  <bruno@clisp.org>
32892
32893         Tests for module 'iconv-h'.
32894         * modules/iconv-h-tests: New file.
32895         * tests/test-iconv-h.c: New file.
32896
32897         New module 'iconv-h'.
32898         * modules/iconv-h: New file.
32899         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
32900         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
32901         (configure.ac): Remove gl_ICONV_H.
32902         (Makefile.am): Remove rule for iconv.h.
32903
32904 2010-03-06  Bruno Haible  <bruno@clisp.org>
32905
32906         More consistent naming of *.m4 files.
32907         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
32908         * modules/wctype (Files): Update.
32909
32910         More consistent naming of *.m4 files.
32911         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
32912         * modules/wchar (Files): Update.
32913
32914 2010-03-06  Jim Meyering  <meyering@redhat.com>
32915
32916         euidaccess: relax license to LGPLv2+
32917         * modules/euidaccess (License): Relax to LGPLv2+.
32918
32919 2010-03-06  Bruno Haible  <bruno@clisp.org>
32920
32921         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
32922         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
32923         (Makefile.am): Augment lib_SOURCES instead.
32924
32925 2010-03-04  Jim Meyering  <meyering@redhat.com>
32926
32927         utime: remove obsolete module
32928         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
32929         unnecessary for years, and has been marked as obsolete for 10 months.
32930         * modules/utime: Remove file.
32931         * lib/utime.c: Remove file.
32932         * m4/utime.m4: Remove file.
32933         * m4/utimes-null.m4: Remove file.
32934         * doc/posix-functions/utime.texi (utime): Remove reference to
32935         the module.  Move the sole "fixed by gnulib" item into the
32936         "problems not fixed by Gnulib" list.
32937         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
32938
32939 2010-03-05  Simon Josefsson  <simon@josefsson.org>
32940
32941         * modules/exit (License): Relax license to LGPLv2+.
32942         (Status): Mark as obsolete.
32943         * NEWS: Mention deprecated 'exit' module.
32944         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
32945         of now obsolete 'exit'.
32946
32947 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32948
32949         fts-lgpl: remove unused module
32950         * modules/fts-lgpl: Remove.
32951         * MODULES.html.sh (func_all_modules): Adjust.
32952         * check-module (find_included_lib_files): Adjust.
32953         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
32954
32955 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
32956
32957         copy-acl: enhance Solaris ACL error handling
32958         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
32959         * lib/set-mode-acl.c (qset_acl): Likewise.
32960
32961 2010-03-02  Bruno Haible  <bruno@clisp.org>
32962
32963         spawn: Don't override the system defined values on FreeBSD 8.
32964         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
32965         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
32966         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
32967         if HAVE_POSIX_SPAWN is 1.
32968         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
32969
32970 2010-03-01  Bruno Haible  <bruno@clisp.org>
32971
32972         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
32973         regarding Automake.
32974
32975 2010-02-25  Bruno Haible  <bruno@clisp.org>
32976
32977         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
32978         * gnulib-tool: Define 'echo' as a function only before the ksh alias
32979         setting, not afterwards.
32980         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
32981
32982 2010-02-24  Eric Blake  <eblake@redhat.com>
32983
32984         bootstrap, git-version-gen: use timestamp
32985         * build-aux/git-version-gen (scriptversion): Force UTC.
32986         * build-aux/bootstrap (scriptversion): New variable.
32987
32988         bootstrap: allow older git
32989         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
32990         older than 1.6.4.  Requested by the libvirt project.
32991
32992 2010-02-23  Eric Blake  <eblake@redhat.com>
32993
32994         warn-on-use: work with old autoconf
32995         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
32996         AS_VAR semantics of autoconf 2.60.
32997         Reported by Bruno Haible.
32998
32999         bootstrap: improve some comments
33000         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
33001         clarification comments.
33002
33003         gettimeofday: provide correct function
33004         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
33005         when replacement is declared, otherwise provide gettimeofday.
33006         Reported by Michael Goffioul.
33007
33008 2010-02-23  Jim Meyering  <meyering@redhat.com>
33009
33010         lib-ignore: relax license to "unlimited", not LGPLv2+
33011         * modules/lib-ignore (License): Relax to "unlimited".
33012
33013 2010-02-23  Jim Meyering  <meyering@redhat.com>
33014
33015         lib-ignore: relax license to LGPLv2+
33016         * modules/lib-ignore (License): Relax to LGPLv2+.
33017
33018 2010-02-22  Eric Blake  <eblake@redhat.com>
33019
33020         lseek: avoid bash 3.2 broken pipe bug
33021         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
33022         warning from bash 3.2.
33023         Reported by Ben Pfaff, with analysis from Bruno Haible.
33024
33025         bootstrap: support non-FSF copyright holder
33026         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
33027         bootstrap.conf override of COPYRIGHT_HOLDER.
33028         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
33029
33030         bootstrap: interoperate with gettext 0.14.1
33031         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
33032
33033         bootstrap: allow for alternate submodule location
33034         * build-aux/bootstrap (gnulib_path): New variable; use instead of
33035         hardcoding submodule location.
33036         (gnulib_mk): Allow direct use of Makefile.am.
33037
33038         bootstrap: use GNULIB_SRCDIR to reduce disk usage
33039         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
33040         rather than reconfiguring where the submodule points.
33041
33042         gettimeofday: restore support for platforms that lack function
33043         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
33044         replacement if function is missing.
33045         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
33046         * modules/sys_time (Makefile.am): Substitute it.
33047         * lib/sys_time.in.h (gettimeofday): Check it.
33048         Reported by Michael Goffioul.
33049
33050 2010-02-21  Bruno Haible  <bruno@clisp.org>
33051
33052         * lib/stdio.in.h (obstack_printf): Fix typo.
33053
33054 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
33055
33056         vc-list-files: use bzr ls's -R option
33057         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
33058         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
33059
33060 2010-02-21  Jim Meyering  <meyering@redhat.com>
33061
33062         init.sh: fix EXEEXT shims to work also for names like test-prog
33063         * tests/init.sh: Re-exec a better shell, when needed.
33064         If the current shell lacks support for posix $(...), an init.sh-using
33065         test will now try to find a shell that supports that.  If EXEEXT is
33066         nonempty, we also require support for hyphen-in-alias-name and shell
33067         substitutions like ${var#glob}.  Failure to find such a shell results
33068         in a skipped test.
33069
33070 2010-02-21  Bruno Haible  <bruno@clisp.org>
33071
33072         Really work around around "broken pipe" error message from bash 3.2.
33073         * gnulib-tool (func_reset_sigpipe): Remove function.
33074         (echo): In bash 3.2, define to a function that uses printf.
33075         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
33076
33077 2010-02-20  Bruno Haible  <bruno@clisp.org>
33078
33079         Restore support for automake 1.9.6 with autoconf 2.61.
33080         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
33081         Reported by James Youngman <jay@gnu.org>.
33082
33083 2010-02-20  Bruno Haible  <bruno@clisp.org>
33084
33085         Improve *printf warning condition.
33086         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
33087         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
33088         and the function is overridden due to SIGPIPE emulation.
33089
33090 2010-02-20  Bruno Haible  <bruno@clisp.org>
33091
33092         * lib/stdio.in.h: Tweak comments.
33093
33094 2010-02-19  Bruno Haible  <bruno@clisp.org>
33095
33096         Make it easier to find modules. New gnulib-tool option '--find'.
33097         * gnulib-tool: New option --find.
33098         (func_usage): Document it.
33099         (func_sanitize_modulelist): New function, extracted from
33100         func_all_modules.
33101         (func_all_modules): Invoke it.
33102         * doc/gnulib-tool.texi (Which modules?): New node.
33103
33104 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
33105
33106         * lib/sys_select.in.h: Provide select replacement even if
33107         sys/select.h exists on a system, for Interix.
33108
33109 2010-02-18  Jim Meyering  <meyering@redhat.com>
33110
33111         init.sh: don't use $(...) just yet
33112         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
33113         to accommodate e.g., Solaris' /bin/sh.
33114
33115 2010-02-17  Bruno Haible  <bruno@clisp.org>
33116
33117         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
33118         Reported by Ludovic Courtès <ludo@gnu.org>.
33119
33120 2010-02-16  Simon Josefsson  <simon@josefsson.org>
33121
33122         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
33123         linking with -lintl.
33124
33125 2010-02-17  Simon Josefsson  <simon@josefsson.org>
33126
33127         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
33128         if not provided by the system's netdb.h.  Reported by
33129         ludo@gnu.org (Ludovic Courtès).
33130
33131 2010-02-15  Jim Meyering  <meyering@redhat.com>
33132
33133         init.sh: improve portability and efficiency
33134         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
33135         "dummy" in a for loop.
33136         Use '!', not '^' to select the complement of a character set used
33137         in a "case" statement.
33138         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
33139         Suggestions from Eric Blake.
33140
33141         init.sh: automatically accommodate programs with the .exe suffix
33142         Automatically arrange for an invocation of "prog" to execute the
33143         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
33144         may use the simpler "prog", yet still work when built on a system
33145         that requires specifying the added suffix.
33146         Do this by constructing a function named "prog" that invokes
33147         "prog.exe" for each .exe file in selected directories.
33148         * tests/init.sh (find_exe_basenames_): New function.
33149         (create_exe_shim_functions_): New function.
33150         (path_prepend_): Use it.
33151
33152         maint.mk: mark syntax-check sc_*.m rules as .PHONY
33153         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
33154         "make -t syntax-check" doesn't create a ton of sc_*.m files.
33155
33156 2010-02-14  Jim Meyering  <meyering@redhat.com>
33157
33158         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
33159         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
33160         (sc_prohibit_hash_pjw_without_use): New rule.
33161
33162         maint.mk: allow the default upload destination dir to be overridden
33163         * top/maint.mk (upload_dest_dir_): Define with a default that
33164         preserves the status quo.
33165         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
33166         Reported by Peter Simons.
33167
33168         maint.mk: prohibit inclusion of "hash.h" without_use
33169         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
33170
33171 2010-02-10  Jim Meyering  <meyering@redhat.com>
33172
33173         maint.mk: prohibit inclusion of "ignore-value.h" without_use
33174         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
33175
33176 2010-02-09  Eric Blake  <ebb9@byu.net>
33177         and Bruno Haible  <bruno@clisp.org>
33178
33179         obstack-printf-posix: ensure declaration
33180         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
33181         extracted from gl_FUNC_OBSTACK_PRINTF.
33182         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
33183         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
33184         Likewise.
33185         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
33186         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
33187         0.
33188
33189 2010-02-08  Bruno Haible  <bruno@clisp.org>
33190
33191         gnulib-tool: Fix typo in 2010-02-07 commit.
33192         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
33193         Reported by Eric Blake.
33194
33195 2010-02-07  Bruno Haible  <bruno@clisp.org>
33196
33197         gnulib-tool: Fix up caching patches.
33198         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
33199         option --no-cache. Use associative arrays when supported by the shell.
33200         (sed_comments): New variable.
33201         (modcache): Renamed from do_cache.
33202         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
33203         abbreviate unnecessarily.
33204         (have_associative): New variable.
33205         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
33206         way also for ksh and zsh.
33207         (func_init_sed_convert_to_cache_statements): New function, extracted
33208         from func_cache_lookup_module. Add support for associative arrays.
33209         Don't set the c_MODULE_cached variable here. Ignore all lines before
33210         the first field header. Remove only the final newline, not all trailing
33211         newlines. Support empty fields correctly. Limit the use of 'eval' to
33212         assignments.
33213         (func_get_description, func_get_status, func_get_notice,
33214         func_get_applicability, func_get_filelist, func_get_dependencies,
33215         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
33216         func_get_automake_snippet, func_get_include_directive,
33217         func_get_link_directive, func_get_license, func_get_maintainer):
33218         Update documentation. List the unoptimized code first. Add support for
33219         associative arrays. Limit the use of 'eval' to assignments.
33220         (func_get_applicability): Undo stylistic pessimisations.
33221         (func_get_automake_snippet, func_get_include_directive): Reduce code
33222         duplication.
33223         (func_modules_transitive_closure, func_modules_add_dummy,
33224         func_modules_notice, func_modules_to_filelist, func_add_file,
33225         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
33226         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
33227         func_create_testdir, func_create_megatestdir): Update documentation.
33228
33229 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33230
33231         * gnulib-tool (func_cache_lookup_module): Store the module name
33232         belonging to the cache variable; error out if two different
33233         module names map to the same cache variable name.
33234
33235 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33236
33237         gnulib-tool: Make caching optional.
33238         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
33239         Update matching short versions of --no-changelog.
33240         (func_usage): Update.
33241         (sed_extract_cache_prog): Renamed from ...
33242         (sed_extract_prog): ... this; revert to old extraction script.
33243         (func_get_description, func_get_status)
33244         (func_get_notice, func_get_applicability, func_get_filelist)
33245         (func_get_dependencies, func_get_autoconf_early_snippet)
33246         (func_get_autoconf_snippet, func_get_automake_snippet)
33247         (func_get_include_directive, func_get_link_directive)
33248         (func_get_license, func_get_maintainer): If $do_cache is false,
33249         use old, non-caching extraction scripts.
33250         Suggestion by Bruno Haible.
33251
33252 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33253
33254         gnulib-tool: cache module metainformation.
33255         * gnulib-tool (sed_extract_prog): Match newline before each
33256         header, and rewrite header to a shell variable suffix.
33257         (func_cache_var, func_cache_lookup_module): New functions,
33258         to turn a module name into a cache variable prefix, and to
33259         look up and cache module metainformation.
33260         (func_get_description, func_get_status)
33261         (func_get_notice, func_get_applicability, func_get_filelist)
33262         (func_get_dependencies, func_get_autoconf_early_snippet)
33263         (func_get_autoconf_snippet, func_get_automake_snippet)
33264         (func_get_include_directive, func_get_link_directive)
33265         (func_get_license, func_get_maintainer): Use
33266         func_cache_lookup_module.
33267
33268 2010-02-07  Bruno Haible  <bruno@clisp.org>
33269
33270         fnctl: Fix missing dependency.
33271         * modules/fcntl (Depends-on): Add getdtablesize.
33272         Reported by John W. Eaton <jwe@gnu.org>.
33273
33274 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
33275
33276         Argp: fix recognition of short alias options.
33277
33278         * lib/argp-parse.c (convert_options): Fix improper use of
33279         `|' between character values.
33280         * tests/test-argp.c (group1_option): New alias option
33281         --read (-r).
33282         (group1_parser): Special handling for 'r'.
33283         (test15): New test case.
33284         (test_fun): Add test15.
33285         * tests/test-argp-2.sh: Update expected --help and --usage
33286         outputs.
33287
33288 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
33289
33290         * tests/test-argp.c: Fix indentation.
33291
33292 2010-02-04  Eric Blake  <ebb9@byu.net>
33293
33294         gettimeofday: expose type of second argument
33295         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
33296         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
33297         * tests/test-gettimeofday.c: Use it to silence warning.
33298         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
33299         the issue.
33300
33301 2010-02-03  Jim Meyering  <meyering@redhat.com>
33302
33303         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
33304         * lib/regcomp.c (TYPE_SIGNED): Define.
33305         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
33306
33307         regcomp.c: avoid a new -Wshadow warning
33308         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
33309
33310 2010-02-01  Jim Meyering  <meyering@redhat.com>
33311
33312         removing useless parentheses in cpp #define directives
33313         For motivation, see commit c0221df4, "define STREQ(a,b)
33314         consistently, removing useless parentheses"
33315         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
33316         * lib/mountlist.c (MNT_IGNORE): Likewise.
33317         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
33318
33319 2010-02-01  Eric Blake  <ebb9@byu.net>
33320
33321         sys_time: use link-warning
33322         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
33323         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
33324         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
33325         * modules/sys_time (Depends-on): Add warn-on-use.
33326         (Makefile.am): Always build replacement.
33327         (configure.ac): Update substitutions.
33328         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
33329         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
33330         bother with SYS_TIME_H.
33331         * modules/gettimeofday (configure.ac): Declare indicator.
33332         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
33333         in use.
33334
33335         closein-tests: silence compiler warning
33336         * tests/test-closein.c (main): Ignore fread result.
33337         * modules/closein-tests (Depends-on): Add ignore-value.
33338
33339         tests: silence warning about system return
33340         * tests/test-areadlink-with-size.c (main): Ignore system result.
33341         * tests/test-areadlink.c (main): Likewise.
33342         * tests/test-areadlinkat-with-size.c (main): Likewise.
33343         * tests/test-areadlinkat.c (main): Likewise.
33344         * tests/test-canonicalize-lgpl.c (main): Likewise.
33345         * tests/test-canonicalize.c (main): Likewise.
33346         * tests/test-chown.c (main): Likewise.
33347         * tests/test-fchownat.c (main): Likewise.
33348         * tests/test-fdutimensat.c (main): Likewise.
33349         * tests/test-fstatat.c (main): Likewise.
33350         * tests/test-futimens.c (main): Likewise.
33351         * tests/test-lchown.c (main): Likewise.
33352         * tests/test-link.c (main): Likewise.
33353         * tests/test-linkat.c (main): Likewise.
33354         * tests/test-lstat.c (main): Likewise.
33355         * tests/test-mkdir.c (main): Likewise.
33356         * tests/test-mkdirat.c (main): Likewise.
33357         * tests/test-mkfifo.c (main): Likewise.
33358         * tests/test-mkfifoat.c (main): Likewise.
33359         * tests/test-mknod.c (main): Likewise.
33360         * tests/test-readlink.c (main): Likewise.
33361         * tests/test-remove.c (main): Likewise.
33362         * tests/test-rename.c (main): Likewise.
33363         * tests/test-renameat.c (main): Likewise.
33364         * tests/test-rmdir.c (main): Likewise.
33365         * tests/test-symlink.c (main): Likewise.
33366         * tests/test-symlinkat.c (main): Likewise.
33367         * tests/test-unlink.c (main): Likewise.
33368         * tests/test-unlinkat.c (main): Likewise.
33369         * tests/test-utimens.c (main): Likewise.
33370         * tests/test-utimensat.c (main): Likewise.
33371         * modules/areadlink-tests (Depends-on): Add ignore-value.
33372         * modules/areadlink-with-size-tests (Depends-on): Likewise.
33373         * modules/areadlinkat-tests (Depends-on): Likewise.
33374         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
33375         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
33376         * modules/canonicalize-tests (Depends-on): Likewise.
33377         * modules/chown-tests (Depends-on): Likewise.
33378         * modules/fdutimensat-tests (Depends-on): Likewise.
33379         * modules/futimens-tests (Depends-on): Likewise.
33380         * modules/lchown-tests (Depends-on): Likewise.
33381         * modules/link-tests (Depends-on): Likewise.
33382         * modules/linkat-tests (Depends-on): Likewise.
33383         * modules/lstat-tests (Depends-on): Likewise.
33384         * modules/mkdir-tests (Depends-on): Likewise.
33385         * modules/mkfifo-tests (Depends-on): Likewise.
33386         * modules/mkfifoat-tests (Depends-on): Likewise.
33387         * modules/mknod-tests (Depends-on): Likewise.
33388         * modules/openat-tests (Depends-on): Likewise.
33389         * modules/readlink-tests (Depends-on): Likewise.
33390         * modules/remove-tests (Depends-on): Likewise.
33391         * modules/rename-tests (Depends-on): Likewise.
33392         * modules/renameat-tests (Depends-on): Likewise.
33393         * modules/rmdir-tests (Depends-on): Likewise.
33394         * modules/symlink-tests (Depends-on): Likewise.
33395         * modules/symlinkat-tests (Depends-on): Likewise.
33396         * modules/unlink-tests (Depends-on): Likewise.
33397         * modules/utimens-tests (Depends-on): Likewise.
33398         * modules/utimensat-tests (Depends-on): Likewise.
33399
33400 2010-01-31  Bruno Haible  <bruno@clisp.org>
33401
33402         Perform the same test for many <math.h> functions.
33403         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
33404         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
33405         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
33406         of gl_MATHFUNC.
33407         * modules/acos (configure.ac): Likewise.
33408         * modules/asin (configure.ac): Likewise.
33409         * modules/atan (configure.ac): Likewise.
33410         * modules/atan2 (configure.ac): Likewise.
33411         * modules/cbrt (configure.ac): Likewise.
33412         * modules/copysign (configure.ac): Likewise.
33413         * modules/cos (configure.ac): Likewise.
33414         * modules/cosh (configure.ac): Likewise.
33415         * modules/erf (configure.ac): Likewise.
33416         * modules/erfc (configure.ac): Likewise.
33417         * modules/exp (configure.ac): Likewise.
33418         * modules/fmod (configure.ac): Likewise.
33419         * modules/hypot (configure.ac): Likewise.
33420         * modules/j0 (configure.ac): Likewise.
33421         * modules/j1 (configure.ac): Likewise.
33422         * modules/jn (configure.ac): Likewise.
33423         * modules/lgamma (configure.ac): Likewise.
33424         * modules/log (configure.ac): Likewise.
33425         * modules/log10 (configure.ac): Likewise.
33426         * modules/log1p (configure.ac): Likewise.
33427         * modules/pow (configure.ac): Likewise.
33428         * modules/remainder (configure.ac): Likewise.
33429         * modules/sin (configure.ac): Likewise.
33430         * modules/sinh (configure.ac): Likewise.
33431         * modules/tan (configure.ac): Likewise.
33432         * modules/tanh (configure.ac): Likewise.
33433         * modules/y0 (configure.ac): Likewise.
33434         * modules/y1 (configure.ac): Likewise.
33435         * modules/yn (configure.ac): Likewise.
33436         Suggested by Paolo Bonzini.
33437
33438 2010-01-31  Bruno Haible  <bruno@clisp.org>
33439
33440         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
33441
33442 2010-01-31  Bruno Haible  <bruno@clisp.org>
33443
33444         Work around getdelim() bug on FreeBSD 8.0.
33445         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
33446         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
33447         not work.
33448         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
33449         is 1.
33450         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
33451         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
33452         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
33453         a non-zero size.
33454         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
33455
33456 2010-01-31  Bruno Haible  <bruno@clisp.org>
33457
33458         Work around getline() bug on FreeBSD 8.0.
33459         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
33460         and a non-zero size.
33461         * tests/test-getline.c (main): Likewise.
33462         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
33463         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
33464
33465 2010-01-28  Eric Blake  <ebb9@byu.net>
33466
33467         regex: fix build failure
33468         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
33469         platforms.
33470
33471 2010-01-28  Jim Meyering  <meyering@redhat.com>
33472
33473         regex: do not ignore memory allocation failure
33474         * lib/regex_internal.c (create_cd_newstate): Detect
33475         re_node_set_init_copy failure.   Extracted from glibc commit
33476         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
33477
33478         regex: sync more white-space changes from libc
33479         * lib/regex_internal.c: White-space only changes.
33480         * lib/regexec.c: Likewise.
33481
33482         regex: add many uses of __attribute_warn_unused_result__
33483         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
33484         * lib/regexec.c: Likewise.
33485         Extracted from a messy glibc commit.
33486
33487         regcomp.c: spelling and merge-artifact from glibc
33488         * lib/regcomp.c: Merge remainder of glibc's
33489         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
33490
33491         regcomp.c: sync white-space changes from glibc
33492         * lib/regcomp.c: Merge to accommodate white space
33493         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
33494
33495         regcomp.c: do not ignore internal return values
33496         * lib/regcomp.c: Do not ignore internal return values.
33497         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
33498         but without its white-space changes and spelling fixes.
33499
33500         regex_internal.h: define __attribute_warn_unused_result__
33501         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
33502
33503         maint: add a syntax-check rule to check for vulnerable Makefile.in
33504         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
33505
33506 2010-01-27  Jim Meyering  <meyering@redhat.com>
33507
33508         ncftpput-ftp: clean up spaces
33509         * build-aux/ncftpput-ftp: Make Copyright line consistent.
33510         Remove trailing blanks.
33511
33512 2010-01-27  Simon Josefsson  <simon@josefsson.org>
33513
33514         * build-aux/git-version-gen: Fix copyright statement.
33515         * build-aux/gnupload: Likewise.
33516         * tests/test-arcfour.c: Likewise.
33517         * tests/test-arctwo.c: Likewise.
33518         * tests/test-count-one-bits.c: Likewise.
33519         * tests/test-crc.c: Likewise.
33520         * tests/test-des.c: Likewise.
33521         * tests/test-gc-arcfour.c: Likewise.
33522         * tests/test-gc-arctwo.c: Likewise.
33523         * tests/test-gc-des.c: Likewise.
33524         * tests/test-gc-hmac-md5.c: Likewise.
33525         * tests/test-gc-hmac-sha1.c: Likewise.
33526         * tests/test-gc-md2.c: Likewise.
33527         * tests/test-gc-md4.c: Likewise.
33528         * tests/test-gc-md5.c: Likewise.
33529         * tests/test-gc-pbkdf2-sha1.c: Likewise.
33530         * tests/test-gc-rijndael.c: Likewise.
33531         * tests/test-gc-sha1.c: Likewise.
33532         * tests/test-gc.c: Likewise.
33533         * tests/test-gethostname.c: Likewise.
33534         * tests/test-gettimeofday.c: Likewise.
33535         * tests/test-hash.c: Likewise.
33536         * tests/test-hmac-md5.c: Likewise.
33537         * tests/test-hmac-sha1.c: Likewise.
33538         * tests/test-md2.c: Likewise.
33539         * tests/test-md4.c: Likewise.
33540         * tests/test-md5.c: Likewise.
33541         * tests/test-memchr.c: Likewise.
33542         * tests/test-memchr2.c: Likewise.
33543         * tests/test-memcmp.c: Likewise.
33544         * tests/test-memmem.c: Likewise.
33545         * tests/test-memrchr.c: Likewise.
33546         * tests/test-rawmemchr.c: Likewise.
33547         * tests/test-read-file.c: Likewise.
33548         * tests/test-rijndael.c: Likewise.
33549         * tests/test-sockets.c: Likewise.
33550         * tests/test-strchrnul.c: Likewise.
33551         * tests/test-strstr.c: Likewise.
33552         * tests/test-strtod.c: Likewise.
33553         * build-aux/ncftpput-ftp: Likewise.
33554
33555 2010-01-26  Eric Blake  <ebb9@byu.net>
33556
33557         ignore-value: update recommended header name
33558         * modules/ignore-value (Include): Only use <> for headers that
33559         exist in glibc.
33560
33561 2010-01-26  Jim Meyering  <meyering@redhat.com>
33562
33563         test-userspec.c: avoid compiler warnings
33564         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
33565         and "initialization discards qualifiers..." warnings.
33566         Put the first "uid" in its own scope, and make char* members "const".
33567
33568 2010-01-25  Bruno Haible  <bruno@clisp.org>
33569
33570         gnulib-tool: Make warning diagnostics consistent.
33571         * gnulib-tool (func_warning): New function.
33572         Use it everywhere where gnulib-tool produces output to stderr and it is
33573         not a fatal error.
33574
33575 2010-01-25  Bruno Haible  <bruno@clisp.org>
33576
33577         Fix test dependencies.
33578         * modules/xstrtol-tests (Depends-on): Add inttypes.
33579         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
33580
33581 2010-01-25 Pádraig Brady <P@draigBrady.com>
33582
33583         syntax-check: detect incorrect boolean macro values in config.h
33584         * modules/maintainer-makefile (configure.ac): Parameterize the location
33585         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
33586         The logic is from Eric Blake and the location indicated by Jim Meyering.
33587         Note the more natural CONFIG_HEADER name is prohibited by automake
33588         for backwards compatibility reasons.
33589         * top/maint.mk (sc_Wundef_boolean): New rule.
33590
33591 2010-01-25  Jim Meyering  <meyering@redhat.com>
33592
33593         bootstrap: detect MacOS 10.6's shasum, too
33594         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
33595         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
33596
33597 2010-01-23  Jim Meyering  <meyering@redhat.com>
33598
33599         xstrtoll: new module
33600         * modules/xstrtoll: New file.
33601         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
33602         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
33603         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
33604         ./configure fails if you use this module and lack "long long".
33605         * modules/xstrtoll-tests: New module.
33606         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
33607         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
33608         new init.sh-based test framework.
33609
33610 2010-01-24  Bruno Haible  <bruno@clisp.org>
33611
33612         Tests for module 'yn'.
33613         * modules/yn-tests: New file.
33614         * tests/test-yn.c: New file.
33615
33616         Tests for module 'y1'.
33617         * modules/y1-tests: New file.
33618         * tests/test-y1.c: New file.
33619
33620         Tests for module 'y0'.
33621         * modules/y0-tests: New file.
33622         * tests/test-y0.c: New file.
33623
33624         Tests for module 'tanh'.
33625         * modules/tanh-tests: New file.
33626         * tests/test-tanh.c: New file.
33627
33628         Tests for module 'tan'.
33629         * modules/tan-tests: New file.
33630         * tests/test-tan.c: New file.
33631
33632         Tests for module 'sqrt'.
33633         * modules/sqrt-tests: New file.
33634         * tests/test-sqrt.c: New file.
33635
33636         Tests for module 'sinh'.
33637         * modules/sinh-tests: New file.
33638         * tests/test-sinh.c: New file.
33639
33640         Tests for module 'sin'.
33641         * modules/sin-tests: New file.
33642         * tests/test-sin.c: New file.
33643
33644         Tests for module 'rint'.
33645         * modules/rint-tests: New file.
33646         * tests/test-rint.c: New file.
33647
33648         Tests for module 'remainder'.
33649         * modules/remainder-tests: New file.
33650         * tests/test-remainder.c: New file.
33651
33652         Tests for module 'pow'.
33653         * modules/pow-tests: New file.
33654         * tests/test-pow.c: New file.
33655
33656         Tests for module 'nextafter'.
33657         * modules/nextafter-tests: New file.
33658         * tests/test-nextafter.c: New file.
33659
33660         Tests for module 'modf'.
33661         * modules/modf-tests: New file.
33662         * tests/test-modf.c: New file.
33663
33664         Tests for module 'logb'.
33665         * modules/logb-tests: New file.
33666         * tests/test-logb.c: New file.
33667
33668         Tests for module 'log1p'.
33669         * modules/log1p-tests: New file.
33670         * tests/test-log1p.c: New file.
33671
33672         Tests for module 'log10'.
33673         * modules/log10-tests: New file.
33674         * tests/test-log10.c: New file.
33675
33676         Tests for module 'log'.
33677         * modules/log-tests: New file.
33678         * tests/test-log.c: New file.
33679
33680         Tests for module 'lgamma'.
33681         * modules/lgamma-tests: New file.
33682         * tests/test-lgamma.c: New file.
33683
33684         Tests for module 'ldexp'.
33685         * modules/ldexp-tests: New file.
33686         * tests/test-ldexp.c: New file.
33687
33688         Tests for module 'jn'.
33689         * modules/jn-tests: New file.
33690         * tests/test-jn.c: New file.
33691
33692         Tests for module 'j1'.
33693         * modules/j1-tests: New file.
33694         * tests/test-j1.c: New file.
33695
33696         Tests for module 'j0'.
33697         * modules/j0-tests: New file.
33698         * tests/test-j0.c: New file.
33699
33700         Tests for module 'hypot'.
33701         * modules/hypot-tests: New file.
33702         * tests/test-hypot.c: New file.
33703
33704         Tests for module 'fmod'.
33705         * modules/fmod-tests: New file.
33706         * tests/test-fmod.c: New file.
33707
33708         Tests for module 'fabs'.
33709         * modules/fabs-tests: New file.
33710         * tests/test-fabs.c: New file.
33711
33712         Tests for module 'exp'.
33713         * modules/exp-tests: New file.
33714         * tests/test-exp.c: New file.
33715
33716         Tests for module 'erfc'.
33717         * modules/erfc-tests: New file.
33718         * tests/test-erfc.c: New file.
33719
33720         Tests for module 'erf'.
33721         * modules/erf-tests: New file.
33722         * tests/test-erf.c: New file.
33723
33724         Tests for module 'cosh'.
33725         * modules/cosh-tests: New file.
33726         * tests/test-cosh.c: New file.
33727
33728         Tests for module 'cos'.
33729         * modules/cos-tests: New file.
33730         * tests/test-cos.c: New file.
33731
33732         Tests for module 'copysign'.
33733         * modules/copysign-tests: New file.
33734         * tests/test-copysign.c: New file.
33735
33736         Tests for module 'cbrt'.
33737         * modules/cbrt-tests: New file.
33738         * tests/test-cbrt.c: New file.
33739
33740         Tests for module 'atan2'.
33741         * modules/atan2-tests: New file.
33742         * tests/test-atan2.c: New file.
33743
33744         Tests for module 'atan'.
33745         * modules/atan-tests: New file.
33746         * tests/test-atan.c: New file.
33747
33748         Tests for module 'asin'.
33749         * modules/asin-tests: New file.
33750         * tests/test-asin.c: New file.
33751
33752         Tests for module 'acos'.
33753         * modules/acos-tests: New file.
33754         * tests/test-acos.c: New file.
33755
33756 2010-01-24  Bruno Haible  <bruno@clisp.org>
33757
33758         Fix tests for common <math.h> functions.
33759         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
33760         code snippet that references the function pointer, rather than merely
33761         calling the function. Substitute the FUNC_LIBM variable.
33762         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
33763         * modules/acos (configure.ac): Likewise.
33764         * modules/asin (configure.ac): Likewise.
33765         * modules/atan (configure.ac): Likewise.
33766         * modules/atan2 (configure.ac): Likewise.
33767         * modules/cbrt (configure.ac): Likewise.
33768         * modules/copysign (configure.ac): Likewise.
33769         * modules/cos (configure.ac): Likewise.
33770         * modules/cosh (configure.ac): Likewise.
33771         * modules/erf (configure.ac): Likewise.
33772         * modules/erfc (configure.ac): Likewise.
33773         * modules/exp (configure.ac): Likewise.
33774         * modules/fabs (configure.ac): Likewise.
33775         * modules/fmod (configure.ac): Likewise.
33776         * modules/hypot (configure.ac): Likewise.
33777         * modules/j0 (configure.ac): Likewise.
33778         * modules/j1 (configure.ac): Likewise.
33779         * modules/jn (configure.ac): Likewise.
33780         * modules/ldexp (configure.ac): Likewise.
33781         * modules/lgamma (configure.ac): Likewise.
33782         * modules/log (configure.ac): Likewise.
33783         * modules/log10 (configure.ac): Likewise.
33784         * modules/log1p (configure.ac): Likewise.
33785         * modules/logb (configure.ac): Likewise.
33786         * modules/modf (configure.ac): Likewise.
33787         * modules/nextafter (configure.ac): Likewise.
33788         * modules/pow (configure.ac): Likewise.
33789         * modules/remainder (configure.ac): Likewise.
33790         * modules/rint (configure.ac): Likewise.
33791         * modules/sin (configure.ac): Likewise.
33792         * modules/sinh (configure.ac): Likewise.
33793         * modules/tan (configure.ac): Likewise.
33794         * modules/tanh (configure.ac): Likewise.
33795         * modules/y0 (configure.ac): Likewise.
33796         * modules/y1 (configure.ac): Likewise.
33797         * modules/yn (configure.ac): Likewise.
33798
33799 2010-01-24  Bruno Haible  <bruno@clisp.org>
33800
33801         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
33802         * tests/test-acosl.c (x): New variable.
33803         (main): Store argument in x and fetch it from x.
33804         * tests/test-asinl.c (x): New variable.
33805         (main): Store argument in x and fetch it from x.
33806         * tests/test-atanl.c (x): New variable.
33807         (main): Store argument in x and fetch it from x.
33808         * tests/test-cosl.c (x): New variable.
33809         (main): Store argument in x and fetch it from x.
33810         * tests/test-expl.c (x): New variable.
33811         (main): Store argument in x and fetch it from x.
33812         * tests/test-logl.c (x): New variable.
33813         (main): Store argument in x and fetch it from x.
33814         * tests/test-sinl.c (x): New variable.
33815         (main): Store argument in x and fetch it from x.
33816         * tests/test-sqrtl.c (x): New variable.
33817         (main): Store argument in x and fetch it from x.
33818         * tests/test-tanl.c (x): New variable.
33819         (main): Store argument in x and fetch it from x.
33820
33821 2010-01-24  Bruno Haible  <bruno@clisp.org>
33822
33823         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
33824         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
33825         assignments to the initial TESTS_ENVIRONMENT.
33826         * doc/gnulib.texi (Unit test modules): Document it.
33827         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
33828         TESTS_ENVIRONMENT.
33829         * modules/btowc-tests (Makefile.am): Likewise.
33830         * modules/c-stack-tests (Makefile.am): Likewise.
33831         * modules/c-strcase-tests (Makefile.am): Likewise.
33832         * modules/copy-file-tests (Makefile.am): Likewise.
33833         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
33834         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
33835         * modules/mbrtowc-tests (Makefile.am): Likewise.
33836         * modules/mbscasecmp-tests (Makefile.am): Likewise.
33837         * modules/mbscasestr-tests (Makefile.am): Likewise.
33838         * modules/mbschr-tests (Makefile.am): Likewise.
33839         * modules/mbscspn-tests (Makefile.am): Likewise.
33840         * modules/mbsinit-tests (Makefile.am): Likewise.
33841         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
33842         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
33843         * modules/mbspbrk-tests (Makefile.am): Likewise.
33844         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
33845         * modules/mbsrchr-tests (Makefile.am): Likewise.
33846         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
33847         * modules/mbsspn-tests (Makefile.am): Likewise.
33848         * modules/mbsstr-tests (Makefile.am): Likewise.
33849         * modules/nl_langinfo-tests (Makefile.am): Likewise.
33850         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
33851         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
33852         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
33853         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
33854         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
33855         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
33856         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
33857         * modules/wcrtomb-tests (Makefile.am): Likewise.
33858         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
33859         * modules/wcsrtombs-tests (Makefile.am): Likewise.
33860         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
33861         assignments from TESTS_ENVIRONMENT.
33862         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
33863         augmentation.
33864         * modules/argp-version-etc-tests (Makefile.am): Likewise.
33865         * modules/atexit-tests (Makefile.am): Likewise.
33866         * modules/binary-io-tests (Makefile.am): Likewise.
33867         * modules/closein-tests (Makefile.am): Likewise.
33868         * modules/dprintf-posix-tests (Makefile.am): Likewise.
33869         * modules/exclude-tests (Makefile.am): Likewise.
33870         * modules/fflush-tests (Makefile.am): Likewise.
33871         * modules/fpending-tests (Makefile.am): Likewise.
33872         * modules/fprintf-posix-tests (Makefile.am): Likewise.
33873         * modules/freadahead-tests (Makefile.am): Likewise.
33874         * modules/freadptr-tests (Makefile.am): Likewise.
33875         * modules/freadseek-tests (Makefile.am): Likewise.
33876         * modules/fseek-tests (Makefile.am): Likewise.
33877         * modules/fseeko-tests (Makefile.am): Likewise.
33878         * modules/ftell-tests (Makefile.am): Likewise.
33879         * modules/ftello-tests (Makefile.am): Likewise.
33880         * modules/idpriv-drop-tests (Makefile.am): Likewise.
33881         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
33882         * modules/lseek-tests (Makefile.am): Likewise.
33883         * modules/parse-duration-tests (Makefile.am): Likewise.
33884         * modules/perror-tests (Makefile.am): Likewise.
33885         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
33886         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
33887         * modules/pipe-tests (Makefile.am): Likewise.
33888         * modules/pread-tests (Makefile.am): Likewise.
33889         * modules/printf-posix-tests (Makefile.am): Likewise.
33890         * modules/select-tests (Makefile.am): Likewise.
33891         * modules/sigpipe-tests (Makefile.am): Likewise.
33892         * modules/tsearch-tests (Makefile.am): Likewise.
33893         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
33894         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
33895         * modules/uniname/uniname-tests (Makefile.am): Likewise.
33896         * modules/uniwidth/width-tests (Makefile.am): Likewise.
33897         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
33898         * modules/version-etc-tests (Makefile.am): Likewise.
33899         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
33900         * modules/vprintf-posix-tests (Makefile.am): Likewise.
33901         * modules/xalloc-die-tests (Makefile.am): Likewise.
33902         * modules/xprintf-posix-tests (Makefile.am): Likewise.
33903         * modules/xstrtoimax-tests (Makefile.am): Likewise.
33904         * modules/xstrtol-tests (Makefile.am): Likewise.
33905         * modules/xstrtoumax-tests (Makefile.am): Likewise.
33906         * modules/yesno-tests (Makefile.am): Likewise.
33907         Suggested by Jim Meyering.
33908
33909 2010-01-24  Bruno Haible  <bruno@clisp.org>
33910
33911         More documentation.
33912         * doc/gnulib.texi (Writing modules): New chapter.
33913         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
33914         the new chapter.
33915
33916 2010-01-24  Jim Meyering  <meyering@redhat.com>
33917
33918         maint.mk: do not prepend "./" after filtering
33919         * top/maint.mk (_prepend_srcdir_prefix): New variable
33920         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
33921         "./" when $(srcdir) is ".".
33922
33923         define STREQ(a,b) consistently, removing useless parentheses
33924         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
33925         since the only risk is that "a" or "b" contains an unparenthesized
33926         comma, but if either did that, STREQ would have 3 or more arguments.
33927         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
33928         * lib/fts.c (STREQ): Remove unnecessary parentheses.
33929         * lib/hash-triple.c (STREQ): Likewise.
33930         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
33931         * lib/getugroups.c (STREQ): Likewise.
33932
33933 2010-01-23  Jim Meyering  <meyering@redhat.com>
33934
33935         maint.mk: fix syntax-check in a non-srcdir build directory
33936         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
33937         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
33938
33939 2010-01-22  Jim Meyering  <meyering@redhat.com>
33940
33941         userspec: add unit tests
33942         * tests/test-userspec.c: New file.
33943         * modules/userspec-tests: Likewise.
33944
33945 2010-01-21  Jim Meyering  <meyering@redhat.com>
33946
33947         maint.mk: handle source file names containing "." robustly
33948         * top/maint.mk (_dot_escaped_srcdir): Define.
33949         (VC_LIST): Use it in LHS of sed substitution.
33950
33951 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
33952
33953         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
33954         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
33955         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
33956         from a non-srcdir build.
33957
33958 2010-01-20  Eric Blake  <ebb9@byu.net>
33959
33960         warn-on-use: use instead of link-warning
33961         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
33962         * modules/unistd (Depends-on, Makefile.am): Likewise.
33963         * modules/arpa_inet (Depends-on): Replace link-warning with
33964         warn-on-use.
33965         (Makefile.am): Update rules accordingly.
33966         * modules/ctype (Depends-on, Makefile.am): Likewise.
33967         * modules/dirent (Depends-on, Makefile.am): Likewise.
33968         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
33969         * modules/inttypes (Depends-on, Makefile.am): Likewise.
33970         * modules/langinfo (Depends-on, Makefile.am): Likewise.
33971         * modules/locale (Depends-on, Makefile.am): Likewise.
33972         * modules/math (Depends-on, Makefile.am): Likewise.
33973         * modules/search (Depends-on, Makefile.am): Likewise.
33974         * modules/signal (Depends-on, Makefile.am): Likewise.
33975         * modules/spawn (Depends-on, Makefile.am): Likewise.
33976         * modules/stdlib (Depends-on, Makefile.am): Likewise.
33977         * modules/string (Depends-on, Makefile.am): Likewise.
33978         * modules/strings (Depends-on, Makefile.am): Likewise.
33979         * modules/sys_file (Depends-on, Makefile.am): Likewise.
33980         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
33981         * modules/sys_select (Depends-on, Makefile.am): Likewise.
33982         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
33983         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
33984         * modules/sys_times (Depends-on, Makefile.am): Likewise.
33985         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
33986         * modules/wchar (Depends-on, Makefile.am): Likewise.
33987         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
33988         should be poisoned.
33989         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
33990         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
33991         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
33992         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
33993         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
33994         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
33995         * m4/math_h.m4 (gl_MATH_H): Likewise.
33996         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
33997         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
33998         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
33999         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
34000         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
34001         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
34002         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
34003         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
34004         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
34005         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
34006         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
34007         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
34008         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
34009         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
34010         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
34011         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
34012         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
34013         GL_LINK_WARNING.
34014         * lib/ctype.in.h: Likewise.
34015         * lib/dirent.in.h: Likewise.
34016         * lib/fcntl.in.h: Likewise.
34017         * lib/inttypes.in.h: Likewise.
34018         * lib/langinfo.in.h: Likewise.
34019         * lib/locale.in.h: Likewise.
34020         * lib/math.in.h: Likewise.
34021         * lib/search.in.h: Likewise.
34022         * lib/signal.in.h: Likewise.
34023         * lib/spawn.in.h: Likewise.
34024         * lib/stdio.in.h: Likewise.
34025         * lib/stdlib.in.h: Likewise.
34026         * lib/string.in.h: Likewise.
34027         * lib/strings.in.h: Likewise.
34028         * lib/sys_file.in.h: Likewise.
34029         * lib/sys_ioctl.in.h: Likewise.
34030         * lib/sys_select.in.h: Likewise.
34031         * lib/sys_socket.in.h: Likewise.
34032         * lib/sys_stat.in.h: Likewise.
34033         * lib/sys_times.in.h: Likewise.
34034         * lib/sys_utsname.in.h: Likewise.
34035         * lib/unistd.in.h: Likewise.
34036         * lib/wchar.in.h: Likewise.
34037
34038 2010-01-20  Bruno Haible  <bruno@clisp.org>
34039
34040         Avoid duplicate -lm.
34041         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
34042         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
34043         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
34044         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
34045         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
34046         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
34047         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
34048         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
34049         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
34050         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
34051         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
34052         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
34053         Reported by Paolo Bonzini.
34054
34055 2010-01-19  Bruno Haible  <bruno@clisp.org>
34056
34057         langinfo, nl_langinfo: Relicense under LGPLv2+.
34058         * modules/langinfo (License): Change to LGPLv2+.
34059         * modules/nl_langinfo (License): Likewise.
34060         Patch by David Lutterkort <lutter@redhat.com>.
34061
34062 2010-01-19  Bruno Haible  <bruno@clisp.org>
34063
34064         Avoid compilation error with cc on OSF/1 5.1.
34065         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
34066         statement, not before.
34067         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34068
34069 2010-01-18  Bruno Haible  <bruno@clisp.org>
34070
34071         Avoid a link error due to the __printf__ symbol.
34072         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
34073         and 2.6.x.
34074         (__format__, __printf__): Remove definitions.
34075         * lib/argp-fmtstream.h: Likewise.
34076         * lib/argp.h: Likewise.
34077         * lib/error.h: Likewise.
34078         * lib/vasnprintf.h: Likewise.
34079         * lib/xprintf.h: Likewise.
34080         * lib/xvasprintf.h: Likewise.
34081         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34082
34083 2010-01-18  Bruno Haible  <bruno@clisp.org>
34084
34085         Tests for module 'tanl'.
34086         * modules/tanl-tests: New file.
34087         * tests/test-tanl.c: New file.
34088
34089         Tests for module 'sqrtl'.
34090         * modules/sqrtl-tests: New file.
34091         * tests/test-sqrtl.c: New file.
34092
34093         Tests for module 'sinl'.
34094         * modules/sinl-tests: New file.
34095         * tests/test-sinl.c: New file.
34096
34097         Tests for module 'logl'.
34098         * modules/logl-tests: New file.
34099         * tests/test-logl.c: New file.
34100
34101         Tests for module 'expl'.
34102         * modules/expl-tests: New file.
34103         * tests/test-expl.c: New file.
34104
34105         Tests for module 'cosl'.
34106         * modules/cosl-tests: New file.
34107         * tests/test-cosl.c: New file.
34108
34109         Tests for module 'atanl'.
34110         * modules/atanl-tests: New file.
34111         * tests/test-atanl.c: New file.
34112
34113         Tests for module 'asinl'.
34114         * modules/asinl-tests: New file.
34115         * tests/test-asinl.c: New file.
34116
34117         Tests for module 'acosl'.
34118         * modules/acosl-tests: New file.
34119         * tests/test-acosl.c: New file.
34120
34121         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
34122         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
34123         tanl): Use the standard gnulib idiom.
34124         * lib/cosl.c: Don't include trigl.c and sincosl.c.
34125         * lib/sinl.c: Likewise.
34126         * lib/tanl.c: Don't include trigl.c.
34127         (kernel_tanl): Make static.
34128         * lib/sincosl.c: Include trigl.h first.
34129         * lib/trigl.c: Likewise.
34130         * m4/acosl.m4: New file.
34131         * m4/asinl.m4: New file.
34132         * m4/atanl.m4: New file.
34133         * m4/cosl.m4: New file.
34134         * m4/expl.m4: New file.
34135         * m4/logl.m4: New file.
34136         * m4/sinl.m4: New file.
34137         * m4/sqrtl.m4: New file.
34138         * m4/tanl.m4: New file.
34139         * m4/mathl.m4: Remove file.
34140         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
34141         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
34142         Don't initialize GNULIB_MATHL.
34143         * modules/acosl: New file.
34144         * modules/asinl: New file.
34145         * modules/atanl: New file.
34146         * modules/cosl: New file.
34147         * modules/expl: New file.
34148         * modules/logl: New file.
34149         * modules/sinl: New file.
34150         * modules/sqrtl: New file.
34151         * modules/tanl: New file.
34152         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
34153         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
34154         substitute GNULIB_MATHL.
34155         * modules/mathl: Rewritten.
34156         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
34157         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
34158         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
34159         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
34160         * doc/posix-functions/expl.texi: Mention the 'expl' module.
34161         * doc/posix-functions/logl.texi: Mention the 'logl' module.
34162         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
34163         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
34164         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
34165
34166 2010-01-18  Bruno Haible  <bruno@clisp.org>
34167
34168         sqrt: Make gl_FUNC_SQRT requirable.
34169         * m4/sqrt.m4: New file.
34170         * modules/sqrt (Files): Add it.
34171         (configure.ac): Invoke gl_FUNC_SQRT.
34172
34173 2010-01-18  Bruno Haible  <bruno@clisp.org>
34174
34175         New modules for common <math.h> functions.
34176         * m4/mathfunc.m4: New file.
34177         * modules/acos: New file.
34178         * modules/asin: New file.
34179         * modules/atan: New file.
34180         * modules/atan2: New file.
34181         * modules/cbrt: New file.
34182         * modules/copysign: New file.
34183         * modules/cos: New file.
34184         * modules/cosh: New file.
34185         * modules/erf: New file.
34186         * modules/erfc: New file.
34187         * modules/exp: New file.
34188         * modules/fabs: New file.
34189         * modules/fmod: New file.
34190         * modules/hypot: New file.
34191         * modules/j0: New file.
34192         * modules/j1: New file.
34193         * modules/jn: New file.
34194         * modules/ldexp: New file.
34195         * modules/lgamma: New file.
34196         * modules/log: New file.
34197         * modules/log10: New file.
34198         * modules/log1p: New file.
34199         * modules/logb: New file.
34200         * modules/modf: New file.
34201         * modules/nextafter: New file.
34202         * modules/pow: New file.
34203         * modules/remainder: New file.
34204         * modules/rint: New file.
34205         * modules/sin: New file.
34206         * modules/sinh: New file.
34207         * modules/sqrt: New file.
34208         * modules/tan: New file.
34209         * modules/tanh: New file.
34210         * modules/y0: New file.
34211         * modules/y1: New file.
34212         * modules/yn: New file.
34213         * doc/posix-functions/acos.texi: Mention the 'acos' module.
34214         * doc/posix-functions/asin.texi: Mention the 'asin' module.
34215         * doc/posix-functions/atan.texi: Mention the 'atan' module.
34216         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
34217         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
34218         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
34219         * doc/posix-functions/cos.texi: Mention the 'cos' module.
34220         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
34221         * doc/posix-functions/erf.texi: Mention the 'erf' module.
34222         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
34223         * doc/posix-functions/exp.texi: Mention the 'exp' module.
34224         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
34225         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
34226         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
34227         * doc/posix-functions/j0.texi: Mention the 'j0' module.
34228         * doc/posix-functions/j1.texi: Mention the 'j1' module.
34229         * doc/posix-functions/jn.texi: Mention the 'jn' module.
34230         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
34231         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
34232         * doc/posix-functions/log.texi: Mention the 'log' module.
34233         * doc/posix-functions/log10.texi: Mention the 'log10' module.
34234         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
34235         * doc/posix-functions/logb.texi: Mention the 'logb' module.
34236         * doc/posix-functions/modf.texi: Mention the 'modf' module.
34237         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
34238         * doc/posix-functions/pow.texi: Mention the 'pow' module.
34239         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
34240         * doc/posix-functions/rint.texi: Mention the 'rint' module.
34241         * doc/posix-functions/sin.texi: Mention the 'sin' module.
34242         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
34243         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
34244         * doc/posix-functions/tan.texi: Mention the 'tan' module.
34245         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
34246         * doc/posix-functions/y0.texi: Mention the 'y0' module.
34247         * doc/posix-functions/y1.texi: Mention the 'y1' module.
34248         * doc/posix-functions/yn.texi: Mention the 'yn' module.
34249
34250 2010-01-18  Jim Meyering  <meyering@redhat.com>
34251
34252         ignore-value: relax license to LGPLv2+
34253         * modules/ignore-value (License): Relax to LGPLv2+.
34254
34255         getdate: don't leak when TZ contains two or more '"'s
34256         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
34257         double quote in TZ after the first one.
34258
34259         readtokens: do not leak internal token_lengths buffer
34260         * lib/readtokens.c (readtokens): Free the local, lengths,
34261         when the supplied "token_lengths" parameter is NULL.
34262
34263 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34264
34265         Fix a couple of missing LIBTHREAD link failures on AIX.
34266         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
34267         $(LIBTHREAD).
34268         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
34269
34270         Link test-poll against INET_PTON_LIB.
34271         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
34272         for inet_pton on Solaris 10.
34273
34274 2010-01-17  Bruno Haible  <bruno@clisp.org>
34275
34276         unistdio/*-sprintf: Fix typo in module description.
34277         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
34278         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
34279         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
34280         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
34281         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
34282         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
34283         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
34284         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34285
34286 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34287
34288         gnulib-tool: fix filelist for AIX, HP-UX ksh.
34289         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
34290         variables in shell case patterns, for AIX and HP-UX ksh.
34291
34292         Split large sed scripts, for HP-UX sed.
34293         * modules/stdio: Split sed scripts around 50 sed commands,
34294         to avoid HP-UX limit of 99 commands, in the near future.
34295         * modules/string: Likewise.
34296         * modules/unistd: Likewise.
34297
34298         gnulib-tool: avoid writing in the current directory.
34299         * gnulib-tool (func_emit_lib_Makefile_am)
34300         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
34301         not in the current directory, so concurrent gnulib-tool
34302         instances do not interfere.
34303
34304 2010-01-16  Jim Meyering  <meyering@redhat.com>
34305
34306         doc: update users.txt
34307         * users.txt: Add grep.
34308         (diffutils, gzip): Update URLs.
34309
34310 2010-01-12  Bruno Haible  <bruno@clisp.org>
34311
34312         posix_spawn: Avoid test failure on Cygwin.
34313         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
34314         characters.
34315         Reported by Simon Josefsson.
34316
34317 2010-01-12  Bruno Haible  <bruno@clisp.org>
34318
34319         * tests/test-cond.c (main): When skipping the test, show the reason.
34320
34321 2010-01-12  Simon Josefsson  <simon@josefsson.org>
34322
34323         * lib/striconv.c (str_cd_iconv): Avoid if before free.
34324
34325 2010-01-12  Simon Josefsson  <simon@josefsson.org>
34326
34327         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
34328         VC_LIST_ALWAYS_EXCLUDE_REGEX.
34329
34330 2010-01-12  Eric Blake  <ebb9@byu.net>
34331
34332         build: guarantee AS_VAR_IF
34333         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
34334         (gl_AS_VAR_IF): Move...
34335         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
34336         Reported by Simon Josefsson.
34337
34338 2010-01-12  Simon Josefsson  <simon@josefsson.org>
34339
34340         * lib/stdio.in.h: Fix typo.
34341
34342 2010-01-12  Simon Josefsson  <simon@josefsson.org>
34343
34344         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
34345         libgpg-error.
34346
34347 2010-01-12  Simon Josefsson  <simon@josefsson.org>
34348
34349         * tests/test-xalloc-die.sh: Use $EXEEXT.
34350
34351 2010-01-12  Simon Josefsson  <simon@josefsson.org>
34352             Bruno Haible  <bruno@clisp.org>
34353
34354         getlogin, getlogin_r: Avoid test failure.
34355         * tests/test-getlogin.c: Include <stdio.h>.
34356         (main): Skip the test when the function fails because stdin is not a
34357         tty.
34358         * tests/test-getlogin_r.c: Include <stdio.h>.
34359         (main): Skip the test when the function fails because stdin is not a
34360         tty.
34361
34362 2010-01-11  Eric Blake  <ebb9@byu.net>
34363
34364         tests: avoid more large file warnings
34365         * tests/test-fflush.c: Avoid warning about ftell use.
34366         * tests/test-fseek.c: Avoid warning about fseek use.
34367
34368 2010-01-10  Bruno Haible  <bruno@clisp.org>
34369
34370         nproc: Work better on Linux when /proc and /sys are not mounted.
34371         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
34372         as lower bound when, on glibc/Linux systems,
34373         sysconf (_SC_NPROCESSORS_CONF) returns 1.
34374         Suggested by Pádraig Brady <P@draigbrady.com>.
34375         Reported by Dmitry V. Levin <ldv@altlinux.org>.
34376
34377         nproc: Refactor.
34378         * lib/nproc.c (num_processors_via_affinity_mask): New function,
34379         extracted from num_processors.
34380         (num_processors): Call it.
34381
34382 2010-01-11  Jim Meyering  <meyering@redhat.com>
34383
34384         utimecmp: avoid new warning from upcoming gcc-4.5.0
34385         * lib/utimecmp.c (BILLION): Define using #define rather than an
34386         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
34387
34388 2010-01-11  Eric Blake  <ebb9@byu.net>
34389
34390         math: add portability warnings for classification macros
34391         * modules/math (Depends-on): Add warn-on-use.
34392         (Makefile.am): Provide new substitutions.
34393         * m4/math_h.m4 (gl_MATH_H): Require inline.
34394         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
34395         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
34396         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
34397         implement warnings.
34398
34399         unistd: warn on use of environ without module
34400         * modules/unistd (Depends-on): Add warn-on-use.
34401         (Makefile.am): Provide new substitutions.
34402         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
34403         * lib/unistd.in.h (environ): Wrap with a warning helper function.
34404
34405         stdio: warn on suspicious uses
34406         * modules/stdio (Depends-on): Add warn-on-use.
34407         (Makefile.am): Provide new substitutions.
34408         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
34409         fseeko.
34410         * lib/stdio.in.h (gets): Always warn on use.
34411         (fseek, ftell): Adjust when warnings are issued, and honor
34412         _GL_NO_LARGE_FILES as a way to silence the warning.
34413         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
34414         any warning about large file offsets.
34415         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
34416         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
34417         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
34418         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
34419         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
34420         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
34421         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
34422         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
34423
34424         warn-on-use: new module
34425         * modules/warn-on-use: New file.
34426         * build-aux/warn-on-use.h: Likewise.
34427         * m4/warn-on-use.m4: Likewise.
34428         * MODULES.html.sh (Support for building): Mention it.
34429
34430 2010-01-10  Bruno Haible  <bruno@clisp.org>
34431
34432         Tests for module 'unistr/u32-strdup'.
34433         * modules/unistr/u32-strdup-tests: New file.
34434         * tests/unistr/test-u32-strdup.c: New file.
34435
34436         Tests for module 'unistr/u16-strdup'.
34437         * modules/unistr/u16-strdup-tests: New file.
34438         * tests/unistr/test-u16-strdup.c: New file.
34439
34440         Tests for module 'unistr/u8-strdup'.
34441         * modules/unistr/u8-strdup-tests: New file.
34442         * tests/unistr/test-u8-strdup.c: New file.
34443         * tests/unistr/test-strdup.h: New file.
34444
34445         Tests for module 'unistr/u32-strncmp'.
34446         * modules/unistr/u32-strncmp-tests: New file.
34447         * tests/unistr/test-u32-strncmp.c: New file.
34448
34449         Tests for module 'unistr/u16-strncmp'.
34450         * modules/unistr/u16-strncmp-tests: New file.
34451         * tests/unistr/test-u16-strncmp.c: New file.
34452
34453         Tests for module 'unistr/u8-strncmp'.
34454         * modules/unistr/u8-strncmp-tests: New file.
34455         * tests/unistr/test-u8-strncmp.c: New file.
34456         * tests/unistr/test-strncmp.h: New file.
34457
34458         Tests for module 'unistr/u32-strcoll'.
34459         * modules/unistr/u32-strcoll-tests: New file.
34460         * tests/unistr/test-u32-strcoll.c: New file.
34461
34462         Tests for module 'unistr/u16-strcoll'.
34463         * modules/unistr/u16-strcoll-tests: New file.
34464         * tests/unistr/test-u16-strcoll.c: New file.
34465
34466         Tests for module 'unistr/u8-strcoll'.
34467         * modules/unistr/u8-strcoll-tests: New file.
34468         * tests/unistr/test-u8-strcoll.c: New file.
34469
34470         Tests for module 'unistr/u32-strcmp'.
34471         * modules/unistr/u32-strcmp-tests: New file.
34472         * tests/unistr/test-u32-strcmp.c: New file.
34473         * tests/unistr/test-u32-strcmp.h: New file.
34474
34475         Tests for module 'unistr/u16-strcmp'.
34476         * modules/unistr/u16-strcmp-tests: New file.
34477         * tests/unistr/test-u16-strcmp.c: New file.
34478         * tests/unistr/test-u16-strcmp.h: New file.
34479
34480         Tests for module 'unistr/u8-strcmp'.
34481         * modules/unistr/u8-strcmp-tests: New file.
34482         * tests/unistr/test-u8-strcmp.c: New file.
34483         * tests/unistr/test-u8-strcmp.h: New file.
34484         * tests/unistr/test-strcmp.h: New file.
34485
34486         Tests for module 'unistr/u32-strncat'.
34487         * modules/unistr/u32-strncat-tests: New file.
34488         * tests/unistr/test-u32-strncat.c: New file.
34489
34490         Tests for module 'unistr/u16-strncat'.
34491         * modules/unistr/u16-strncat-tests: New file.
34492         * tests/unistr/test-u16-strncat.c: New file.
34493
34494         Tests for module 'unistr/u8-strncat'.
34495         * modules/unistr/u8-strncat-tests: New file.
34496         * tests/unistr/test-u8-strncat.c: New file.
34497         * tests/unistr/test-strncat.h: New file.
34498
34499         Tests for module 'unistr/u32-strcat'.
34500         * modules/unistr/u32-strcat-tests: New file.
34501         * tests/unistr/test-u32-strcat.c: New file.
34502
34503         Tests for module 'unistr/u16-strcat'.
34504         * modules/unistr/u16-strcat-tests: New file.
34505         * tests/unistr/test-u16-strcat.c: New file.
34506
34507         Tests for module 'unistr/u8-strcat'.
34508         * modules/unistr/u8-strcat-tests: New file.
34509         * tests/unistr/test-u8-strcat.c: New file.
34510         * tests/unistr/test-strcat.h: New file.
34511
34512         Tests for module 'unistr/u32-stpncpy'.
34513         * modules/unistr/u32-stpncpy-tests: New file.
34514         * tests/unistr/test-u32-stpncpy.c: New file.
34515
34516         Tests for module 'unistr/u16-stpncpy'.
34517         * modules/unistr/u16-stpncpy-tests: New file.
34518         * tests/unistr/test-u16-stpncpy.c: New file.
34519
34520         Tests for module 'unistr/u8-stpncpy'.
34521         * modules/unistr/u8-stpncpy-tests: New file.
34522         * tests/unistr/test-u8-stpncpy.c: New file.
34523         * tests/unistr/test-stpncpy.h: New file.
34524
34525         Tests for module 'unistr/u32-strncpy'.
34526         * modules/unistr/u32-strncpy-tests: New file.
34527         * tests/unistr/test-u32-strncpy.c: New file.
34528
34529         Tests for module 'unistr/u16-strncpy'.
34530         * modules/unistr/u16-strncpy-tests: New file.
34531         * tests/unistr/test-u16-strncpy.c: New file.
34532
34533         Tests for module 'unistr/u8-strncpy'.
34534         * modules/unistr/u8-strncpy-tests: New file.
34535         * tests/unistr/test-u8-strncpy.c: New file.
34536         * tests/unistr/test-strncpy.h: New file.
34537
34538         Tests for module 'unistr/u32-stpcpy'.
34539         * modules/unistr/u32-stpcpy-tests: New file.
34540         * tests/unistr/test-u32-stpcpy.c: New file.
34541
34542         Tests for module 'unistr/u16-stpcpy'.
34543         * modules/unistr/u16-stpcpy-tests: New file.
34544         * tests/unistr/test-u16-stpcpy.c: New file.
34545
34546         Tests for module 'unistr/u8-stpcpy'.
34547         * modules/unistr/u8-stpcpy-tests: New file.
34548         * tests/unistr/test-u8-stpcpy.c: New file.
34549         * tests/unistr/test-stpcpy.h: New file.
34550
34551         Tests for module 'unistr/u32-strcpy'.
34552         * modules/unistr/u32-strcpy-tests: New file.
34553         * tests/unistr/test-u32-strcpy.c: New file.
34554
34555         Tests for module 'unistr/u16-strcpy'.
34556         * modules/unistr/u16-strcpy-tests: New file.
34557         * tests/unistr/test-u16-strcpy.c: New file.
34558
34559         Tests for module 'unistr/u8-strcpy'.
34560         * modules/unistr/u8-strcpy-tests: New file.
34561         * tests/unistr/test-u8-strcpy.c: New file.
34562         * tests/unistr/test-strcpy.h: New file.
34563
34564         Tests for module 'unistr/u32-strnlen'.
34565         * modules/unistr/u32-strnlen-tests: New file.
34566         * tests/unistr/test-u32-strnlen.c: New file.
34567
34568         Tests for module 'unistr/u16-strnlen'.
34569         * modules/unistr/u16-strnlen-tests: New file.
34570         * tests/unistr/test-u16-strnlen.c: New file.
34571
34572         Tests for module 'unistr/u8-strnlen'.
34573         * modules/unistr/u8-strnlen-tests: New file.
34574         * tests/unistr/test-u8-strnlen.c: New file.
34575         * tests/unistr/test-strnlen.h: New file.
34576
34577         Tests for module 'unistr/u32-strlen'.
34578         * modules/unistr/u32-strlen-tests: New file.
34579         * tests/unistr/test-u32-strlen.c: New file.
34580
34581         Tests for module 'unistr/u16-strlen'.
34582         * modules/unistr/u16-strlen-tests: New file.
34583         * tests/unistr/test-u16-strlen.c: New file.
34584
34585         Tests for module 'unistr/u8-strlen'.
34586         * modules/unistr/u8-strlen-tests: New file.
34587         * tests/unistr/test-u8-strlen.c: New file.
34588
34589         Tests for module 'unistr/u32-prev'.
34590         * modules/unistr/u32-prev-tests: New file.
34591         * tests/unistr/test-u32-prev.c: New file.
34592
34593         Tests for module 'unistr/u16-prev'.
34594         * modules/unistr/u16-prev-tests: New file.
34595         * tests/unistr/test-u16-prev.c: New file.
34596
34597         Tests for module 'unistr/u8-prev'.
34598         * modules/unistr/u8-prev-tests: New file.
34599         * tests/unistr/test-u8-prev.c: New file.
34600
34601         Tests for module 'unistr/u32-next'.
34602         * modules/unistr/u32-next-tests: New file.
34603         * tests/unistr/test-u32-next.c: New file.
34604
34605         Tests for module 'unistr/u16-next'.
34606         * modules/unistr/u16-next-tests: New file.
34607         * tests/unistr/test-u16-next.c: New file.
34608
34609         Tests for module 'unistr/u8-next'.
34610         * modules/unistr/u8-next-tests: New file.
34611         * tests/unistr/test-u8-next.c: New file.
34612
34613         Tests for module 'unistr/u32-strmbtouc'.
34614         * modules/unistr/u32-strmbtouc-tests: New file.
34615         * tests/unistr/test-u32-strmbtouc.c: New file.
34616
34617         Tests for module 'unistr/u16-strmbtouc'.
34618         * modules/unistr/u16-strmbtouc-tests: New file.
34619         * tests/unistr/test-u16-strmbtouc.c: New file.
34620
34621         Tests for module 'unistr/u8-strmbtouc'.
34622         * modules/unistr/u8-strmbtouc-tests: New file.
34623         * tests/unistr/test-u8-strmbtouc.c: New file.
34624
34625         Tests for module 'unistr/u32-strmblen'.
34626         * modules/unistr/u32-strmblen-tests: New file.
34627         * tests/unistr/test-u32-strmblen.c: New file.
34628
34629         Tests for module 'unistr/u16-strmblen'.
34630         * modules/unistr/u16-strmblen-tests: New file.
34631         * tests/unistr/test-u16-strmblen.c: New file.
34632
34633         Tests for module 'unistr/u8-strmblen'.
34634         * modules/unistr/u8-strmblen-tests: New file.
34635         * tests/unistr/test-u8-strmblen.c: New file.
34636
34637         Tests for module 'unistr/u32-cpy-alloc'.
34638         * modules/unistr/u32-cpy-alloc-tests: New file.
34639         * tests/unistr/test-u32-cpy-alloc.c: New file.
34640
34641         Tests for module 'unistr/u16-cpy-alloc'.
34642         * modules/unistr/u16-cpy-alloc-tests: New file.
34643         * tests/unistr/test-u16-cpy-alloc.c: New file.
34644
34645         Tests for module 'unistr/u8-cpy-alloc'.
34646         * modules/unistr/u8-cpy-alloc-tests: New file.
34647         * tests/unistr/test-u8-cpy-alloc.c: New file.
34648         * tests/unistr/test-cpy-alloc.h: New file.
34649
34650         Tests for module 'unistr/u32-mbsnlen'.
34651         * modules/unistr/u32-mbsnlen-tests: New file.
34652         * tests/unistr/test-u32-mbsnlen.c: New file.
34653
34654         Tests for module 'unistr/u16-mbsnlen'.
34655         * modules/unistr/u16-mbsnlen-tests: New file.
34656         * tests/unistr/test-u16-mbsnlen.c: New file.
34657
34658         Tests for module 'unistr/u8-mbsnlen'.
34659         * modules/unistr/u8-mbsnlen-tests: New file.
34660         * tests/unistr/test-u8-mbsnlen.c: New file.
34661
34662         Tests for module 'unistr/u32-chr'.
34663         * modules/unistr/u32-chr-tests: New file.
34664         * tests/unistr/test-u32-chr.c: New file.
34665
34666         Tests for module 'unistr/u16-chr'.
34667         * modules/unistr/u16-chr-tests: New file.
34668         * tests/unistr/test-u16-chr.c: New file.
34669
34670         Tests for module 'unistr/u8-chr'.
34671         * modules/unistr/u8-chr-tests: New file.
34672         * tests/unistr/test-u8-chr.c: New file.
34673         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
34674
34675         Tests for module 'unistr/u32-cmp2'.
34676         * modules/unistr/u32-cmp2-tests: New file.
34677         * tests/unistr/test-u32-cmp2.c: New file.
34678
34679         Tests for module 'unistr/u16-cmp2'.
34680         * modules/unistr/u16-cmp2-tests: New file.
34681         * tests/unistr/test-u16-cmp2.c: New file.
34682
34683         Tests for module 'unistr/u8-cmp2'.
34684         * modules/unistr/u8-cmp2-tests: New file.
34685         * tests/unistr/test-u8-cmp2.c: New file.
34686         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
34687
34688         Tests for module 'unistr/u32-cmp'.
34689         * modules/unistr/u32-cmp-tests: New file.
34690         * tests/unistr/test-u32-cmp.c: New file.
34691
34692         Tests for module 'unistr/u16-cmp'.
34693         * modules/unistr/u16-cmp-tests: New file.
34694         * tests/unistr/test-u16-cmp.c: New file.
34695
34696         Tests for module 'unistr/u8-cmp'.
34697         * modules/unistr/u8-cmp-tests: New file.
34698         * tests/unistr/test-u8-cmp.c: New file.
34699         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
34700
34701         Tests for module 'unistr/u32-set'.
34702         * modules/unistr/u32-set-tests: New file.
34703         * tests/unistr/test-u32-set.c: New file.
34704
34705         Tests for module 'unistr/u16-set'.
34706         * modules/unistr/u16-set-tests: New file.
34707         * tests/unistr/test-u16-set.c: New file.
34708
34709         Tests for module 'unistr/u8-set'.
34710         * modules/unistr/u8-set-tests: New file.
34711         * tests/unistr/test-u8-set.c: New file.
34712         * tests/unistr/test-set.h: New file.
34713
34714         Tests for module 'unistr/u32-move'.
34715         * modules/unistr/u32-move-tests: New file.
34716         * tests/unistr/test-u32-move.c: New file.
34717
34718         Tests for module 'unistr/u16-move'.
34719         * modules/unistr/u16-move-tests: New file.
34720         * tests/unistr/test-u16-move.c: New file.
34721
34722         Tests for module 'unistr/u8-move'.
34723         * modules/unistr/u8-move-tests: New file.
34724         * tests/unistr/test-u8-move.c: New file.
34725         * tests/unistr/test-move.h: New file.
34726
34727         Tests for module 'unistr/u32-cpy'.
34728         * modules/unistr/u32-cpy-tests: New file.
34729         * tests/unistr/test-u32-cpy.c: New file.
34730
34731         Tests for module 'unistr/u16-cpy'.
34732         * modules/unistr/u16-cpy-tests: New file.
34733         * tests/unistr/test-u16-cpy.c: New file.
34734
34735         Tests for module 'unistr/u8-cpy'.
34736         * modules/unistr/u8-cpy-tests: New file.
34737         * tests/unistr/test-u8-cpy.c: New file.
34738         * tests/unistr/test-cpy.h: New file.
34739
34740 2010-01-09  Bruno Haible  <bruno@clisp.org>
34741
34742         Tests for module 'unistr/u32-uctomb'.
34743         * modules/unistr/u32-uctomb-tests: New file.
34744         * tests/unistr/test-u32-uctomb.c: New file.
34745
34746         Tests for module 'unistr/u16-uctomb'.
34747         * modules/unistr/u16-uctomb-tests: New file.
34748         * tests/unistr/test-u16-uctomb.c: New file.
34749
34750         Tests for module 'unistr/u8-uctomb'.
34751         * modules/unistr/u8-uctomb-tests: New file.
34752         * tests/unistr/test-u8-uctomb.c: New file.
34753
34754         Tests for module 'unistr/u32-mbtoucr'.
34755         * modules/unistr/u32-mbtoucr-tests: New file.
34756         * tests/unistr/test-u32-mbtoucr.c: New file.
34757
34758         Tests for module 'unistr/u16-mbtoucr'.
34759         * modules/unistr/u16-mbtoucr-tests: New file.
34760         * tests/unistr/test-u16-mbtoucr.c: New file.
34761
34762         Tests for module 'unistr/u8-mbtoucr'.
34763         * modules/unistr/u8-mbtoucr-tests: New file.
34764         * tests/unistr/test-u8-mbtoucr.c: New file.
34765
34766         Tests for module 'unistr/u32-mbtouc'.
34767         * modules/unistr/u32-mbtouc-tests: New file.
34768         * tests/unistr/test-u32-mbtouc.c: New file.
34769
34770         Tests for module 'unistr/u16-mbtouc'.
34771         * modules/unistr/u16-mbtouc-tests: New file.
34772         * tests/unistr/test-u16-mbtouc.c: New file.
34773
34774         Tests for module 'unistr/u8-mbtouc'.
34775         * modules/unistr/u8-mbtouc-tests: New file.
34776         * tests/unistr/test-u8-mbtouc.c: New file.
34777
34778         Tests for module 'unistr/u32-mbtouc-unsafe'.
34779         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
34780         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
34781         * tests/unistr/test-u32-mbtouc.h: New file.
34782
34783         Tests for module 'unistr/u16-mbtouc-unsafe'.
34784         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
34785         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
34786         * tests/unistr/test-u16-mbtouc.h: New file.
34787
34788         Tests for module 'unistr/u8-mbtouc-unsafe'.
34789         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
34790         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
34791         * tests/unistr/test-u8-mbtouc.h: New file.
34792
34793         Tests for module 'unistr/u32-mblen'.
34794         * modules/unistr/u32-mblen-tests: New file.
34795         * tests/unistr/test-u32-mblen.c: New file.
34796
34797         Tests for module 'unistr/u16-mblen'.
34798         * modules/unistr/u16-mblen-tests: New file.
34799         * tests/unistr/test-u16-mblen.c: New file.
34800
34801         Tests for module 'unistr/u8-mblen'.
34802         * modules/unistr/u8-mblen-tests: New file.
34803         * tests/unistr/test-u8-mblen.c: New file.
34804
34805         Tests for module 'unistr/u32-to-u16'.
34806         * modules/unistr/u32-to-u16-tests: New file.
34807         * tests/unistr/test-u32-to-u16.c: New file.
34808
34809         Tests for module 'unistr/u32-to-u8'.
34810         * modules/unistr/u32-to-u8-tests: New file.
34811         * tests/unistr/test-u32-to-u8.c: New file.
34812
34813         Tests for module 'unistr/u16-to-u32'.
34814         * modules/unistr/u16-to-u32-tests: New file.
34815         * tests/unistr/test-u16-to-u32.c: New file.
34816
34817         Tests for module 'unistr/u16-to-u8'.
34818         * modules/unistr/u16-to-u8-tests: New file.
34819         * tests/unistr/test-u16-to-u8.c: New file.
34820
34821         Tests for module 'unistr/u8-to-u32'.
34822         * modules/unistr/u8-to-u32-tests: New file.
34823         * tests/unistr/test-u8-to-u32.c: New file.
34824
34825         Tests for module 'unistr/u8-to-u16'.
34826         * modules/unistr/u8-to-u16-tests: New file.
34827         * tests/unistr/test-u8-to-u16.c: New file.
34828
34829         Tests for module 'unistr/u32-check'.
34830         * modules/unistr/u32-check-tests: New file.
34831         * tests/unistr/test-u32-check.c: New file.
34832
34833         Tests for module 'unistr/u16-check'.
34834         * modules/unistr/u16-check-tests: New file.
34835         * tests/unistr/test-u16-check.c: New file.
34836
34837         Tests for module 'unistr/u8-check'.
34838         * modules/unistr/u8-check-tests: New file.
34839         * tests/unistr/test-u8-check.c: New file.
34840
34841         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
34842         (category_equals): New function.
34843         (main): Add more tests.
34844         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
34845
34846         * tests/unictype/test-bidi_byname.c (main): Add more tests.
34847
34848 2010-01-10  Bruno Haible  <bruno@clisp.org>
34849
34850         unistr/u*-strcoll: Try harder to distinguish different strings.
34851         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
34852         compare s1 and s2 to see if they are different.
34853
34854 2010-01-10  Bruno Haible  <bruno@clisp.org>
34855
34856         unistr/u*-stpncpy: Fix the return value.
34857         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
34858         description of the return value consistent with stpncpy in glibc.
34859         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
34860         written non-NUL unit.
34861
34862 2010-01-10  Bruno Haible  <bruno@clisp.org>
34863
34864         unistr/u*-next: Add missing dependencies.
34865         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
34866         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
34867         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
34868
34869 2010-01-10  Bruno Haible  <bruno@clisp.org>
34870
34871         unistr/u8-mbsnlen: Fix return value for incomplete character.
34872         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
34873         u8_mblen.
34874         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
34875         Remove unistr/u8-mblen.
34876         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
34877         u16_mblen.
34878         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
34879         Remove unistr/u16-mblen.
34880
34881 2010-01-10  Bruno Haible  <bruno@clisp.org>
34882
34883         wchar: Fix compilation error when <wchar.h> is used from coreutils.
34884         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
34885         Reported by Brian Gough <bjg@gnu.org> and
34886         Chris Clayton <chris2553@googlemail.com> via
34887         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
34888
34889 2010-01-09  Bruno Haible  <bruno@clisp.org>
34890
34891         unistr/u16-to-u32: Reject invalid input.
34892         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
34893         u16_mbtouc.
34894         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
34895         Remove unistr/u16-mbtouc.
34896
34897         unistr/u16-to-u8: Reject invalid input.
34898         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
34899         u16_mbtouc.
34900         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
34901         Remove unistr/u16-mbtouc.
34902
34903         unistr/u8-to-u32: Reject invalid input.
34904         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
34905         u8_mbtouc.
34906         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
34907         Remove unistr/u8-mbtouc.
34908
34909         unistr/u8-to-u16: Reject invalid input.
34910         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
34911         u8_mbtouc.
34912         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
34913         Remove unistr/u8-mbtouc.
34914
34915 2010-01-09  Bruno Haible  <bruno@clisp.org>
34916
34917         Tests for module 'getlogin'.
34918         * modules/getlogin-tests: New file.
34919         * tests/test-getlogin.c: New file.
34920
34921         New module 'getlogin'.
34922         * lib/unistd.in.h (getlogin): New declaration.
34923         * lib/getlogin.c: New file.
34924         * m4/getlogin.m4: New file.
34925         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
34926         HAVE_GETLOGIN.
34927         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
34928         HAVE_GETLOGIN.
34929         * modules/getlogin: New file.
34930         * doc/posix-functions/getlogin.texi: Mention the new module.
34931         Reported by John W. Eaton <jwe@gnu.org>.
34932
34933 2010-01-09  Bruno Haible  <bruno@clisp.org>
34934
34935         getlogin_r: Support for native Windows.
34936         * lib/getlogin_r.c: Include <windows.h>
34937         (getlogin_r): Implement for native Windows.
34938         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
34939         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
34940         via John W. Eaton <jwe@gnu.org>.
34941
34942 2010-01-09  Bruno Haible  <bruno@clisp.org>
34943
34944         getlogin_r: Small fixes.
34945         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
34946         succeeds.
34947         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
34948         before testing whether getlogin_r is declared. No need to set
34949         HAVE_DECL_GETLOGIN_R to 1.
34950         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
34951
34952 2010-01-09  Bruno Haible  <bruno@clisp.org>
34953
34954         * lib/unistd.in.h (getlogin_r): Add comment.
34955
34956 2010-01-09  Bruno Haible  <bruno@clisp.org>
34957
34958         Tests for module 'getlogin_r'.
34959         * modules/getlogin_r-tests: New file.
34960         * tests/test-getlogin_r.c: New file.
34961
34962 2010-01-09  Jim Meyering  <meyering@redhat.com>
34963
34964         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
34965         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
34966         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
34967
34968 2010-01-08  Simon Josefsson  <simon@josefsson.org>
34969
34970         * lib/dup2.c (rpl_dup2): Improve comment.
34971
34972 2010-01-08  Eric Blake  <ebb9@byu.net>
34973
34974         maint.mk: allow packages to add makefile @@ exceptions
34975         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
34976         (sc_makefile_check): Rename...
34977         (sc_makefile_at_at_check): ...to this, and use hook.
34978
34979         dup2: work around mingw bug
34980         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
34981         Reported by Simon Josefsson.
34982
34983 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
34984
34985         glob: Fix C++ compilation.
34986         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
34987         C++.
34988
34989 2010-01-07  Bruno Haible  <bruno@clisp.org>
34990
34991         Fix indentation of wctype.in.h, broken since 2007-01-06.
34992         * lib/wctype.in.h: Fix indentation of preprocessor directives.
34993
34994 2010-01-07  Bruno Haible  <bruno@clisp.org>
34995
34996         mbslen: Avoid collision with system function.
34997         * lib/string.in.h [MirBSD]: Include <wchar.h>.
34998         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
34999         * m4/mbslen.m4: New file.
35000         * modules/mbslen (Files): Add it.
35001         (configure.ac): Invoke gl_MBSLEN.
35002         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
35003         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
35004         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
35005         via Ian Beckwith <ianb@erislabs.net>.
35006
35007 2010-01-07  Bruno Haible  <bruno@clisp.org>
35008
35009         dirent: Document the last fix.
35010         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
35011
35012 2010-01-07  Bruno Haible  <bruno@clisp.org>
35013
35014         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
35015         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
35016         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
35017         va_list are defined.
35018         * doc/posix-headers/stdio.texi: Document the bug of missing types.
35019         Reported by Eric Blake.
35020
35021 2010-01-07  Bruno Haible  <bruno@clisp.org>
35022
35023         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
35024         * modules/xlist (Depends-on): Add 'list',
35025         * modules/xoset (Depends-on): Add 'oset'.
35026         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35027
35028 2010-01-07  Bruno Haible  <bruno@clisp.org>
35029
35030         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
35031         * doc/posix-functions/strncasecmp.texi: Likewise.
35032
35033 2010-01-07  Bruno Haible  <bruno@clisp.org>
35034
35035         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
35036
35037 2010-01-07  John W. Eaton  <jwe@octave.org>
35038
35039         wctype: allow C++ use
35040         * lib/wctype.in.h: Add extern "C" block for C++.
35041
35042 2010-01-06  Eric Blake  <ebb9@byu.net>
35043
35044         maint.mk: detect incorrect GFDL usage
35045         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
35046
35047 2010-01-06  Jim Meyering  <meyering@redhat.com>
35048         and Eric Blake  <ebb9@byu.net>
35049
35050         maint.mk: ignore multi-line copyright in NEWS
35051         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
35052
35053 2010-01-06  Eric Blake  <ebb9@byu.net>
35054
35055         select: add missing dependency
35056         * modules/select-tests (Depends-on): Move sockets dependency...
35057         * modules/select (Depends-on): ...here.
35058         Reported by Ian Beckwith.
35059
35060         doc: regenerate INSTALL
35061         * doc/INSTALL: Reflect recent autoconf update.
35062         * doc/INSTALL.ISO: Likewise.
35063         * doc/INSTALL.UTF-8: Likewise.
35064
35065         pread: fix compilation on glibc
35066         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
35067         Reported by Ralf Wildenhues.
35068
35069         dirent: fix test failure
35070         * lib/dirent.in.h (includes): Guarantee ino_t.
35071         Reported by Ralf Wildenhues.
35072
35073 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
35074
35075         linkat, renameat: avoid bad free
35076         * lib/at-func2.c (at_func2): Fix typo.
35077         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
35078
35079 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35080
35081         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
35082         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
35083         to avoid failure of symlink test later.
35084
35085 2010-01-06  Eric Blake  <ebb9@byu.net>
35086
35087         stdio, unistd: guarantee ssize_t
35088         * lib/unistd.in.h (includes): Ensure that types required by POSIX
35089         2008 are exposed when needed.
35090         * lib/stdio.in.h (includes): Likewise.
35091         Reported by Ralf Wildenhues.
35092
35093 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
35094
35095         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
35096         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
35097         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
35098
35099 2010-01-06  Jim Meyering  <meyering@redhat.com>
35100
35101         readtokens: this module *does* require xalloc.h
35102         It uses only functions that were omitted by the old syntax-check rule.
35103         * lib/readtokens.c: Include "xalloc.h" once again.
35104         * modules/readtokens (Depends-on): Add xalloc.
35105         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
35106
35107 2010-01-05  Eric Blake  <ebb9@byu.net>
35108
35109         maint: support 'make announcement' from a VPATH build
35110         * top/maint.mk (announcement): Look for correct NEWS file.
35111
35112 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
35113
35114         utimens (fdutimens): ignore a negative FD, per contract
35115         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
35116         when we have a valid file descriptor.  Otherwise, using a brand
35117         new glibc (with just-patched futimens that now fails with EBADF)
35118         would cause this function to fail with ENOSYS.
35119         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
35120         See also http://bugzilla.redhat.com/552320.
35121
35122 2010-01-05  Eric Blake  <ebb9@byu.net>
35123
35124         strcase: document what it provides
35125         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
35126         gnulib module.
35127         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
35128         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
35129
35130 2010-01-05  Jim Meyering  <meyering@redhat.com>
35131
35132         maint: remove useless inclusions of "xalloc.h"
35133         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
35134         * lib/readtokens.c: Likewise.
35135         * lib/same.c: Likewise.
35136         * modules/getloadavg (Depends-on): Remove xalloc.
35137         * modules/readtokens: Likewise.
35138         * modules/same: Likewise.
35139
35140         maint.mk: include 4 more function names in alloca.h-checking regexp
35141         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
35142         regexp.  Before, we would give a false-positive (saying alloca.h
35143         is included unnecessarily) when the only uses involved omitted symbols.
35144
35145         xalloc.h: use consistent formatting
35146         * lib/xalloc.h: Move declarations to start in the first column.
35147
35148 2010-01-05  Eric Blake  <ebb9@byu.net>
35149
35150         mkdir: avoid xalloc
35151         * lib/mkdir.c (includes): Drop unused header.
35152         Reported by John W. Eaton.
35153
35154 2010-01-04  Jim Meyering  <meyering@redhat.com>
35155
35156         nl_langinfo: avoid configure-time syntax error
35157         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
35158         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
35159         the empty string.  Don't let that provoke a shell syntax error.
35160
35161         regcomp, regexec, fnmatch: avoid array bounds read error
35162         * lib/regcomp.c (build_equiv_class): From glibc:
35163         Use only the low 24 bits of a findidx return value as an index
35164         into the weights array.  Patch by Ulrich Drepper:
35165         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
35166         * lib/regexec.c (check_node_accept_bytes): Likewise.
35167         * lib/fnmatch_loop.c (FCT): Likewise.
35168
35169         regcomp: skip collseq lookup when there are no rules
35170         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
35171         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
35172
35173         regcomp: recognize ill-formed { } expressions
35174         * lib/regcomp.c (parse_dup_op): From glibc:
35175         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
35176
35177         regcomp: fix typo in comment
35178         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
35179         s/satisfy/satisfies/.
35180
35181         regcomp: sync from glibc: remove dead store
35182         * lib/regcomp.c (duplicate_node_closure): Remove useless
35183         search_duplicated_node call and dead store.
35184
35185         regcomp: sync from glibc; always use nl_langinfo
35186         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
35187         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
35188         * modules/regex (Depends-on): Add nl_langinfo.
35189
35190 2010-01-04  Eric Blake  <ebb9@byu.net>
35191
35192         fdopendir: fix configure test
35193         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
35194
35195 2010-01-01  Bruno Haible  <bruno@clisp.org>
35196
35197         wchar: Remove unused configure check.
35198         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
35199
35200 2010-01-01  Eric Blake  <ebb9@byu.net>
35201
35202         headers: make check of system header explicit
35203         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
35204         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
35205         ourselves.
35206         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
35207         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
35208         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
35209         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
35210         internals.
35211         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
35212         missing.
35213         Suggested by Bruno Haible.
35214
35215 2010-01-01  Jim Meyering  <meyering@redhat.com>
35216
35217         ChangeLog: tweak to eliminate unnecessary copyright line
35218         * ChangeLog: Remove a copyright line that was mistakenly updated
35219         by today's update-copyright run.  Reported by Eric Blake.
35220
35221         test-update-copyright: don't let envvar setting cause test failure
35222         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
35223
35224 2010-01-01  Bruno Haible  <bruno@clisp.org>
35225
35226         localename: Avoid gcc warning.
35227         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
35228         function if it is not used.
35229
35230 2010-01-01  Jim Meyering  <meyering@redhat.com>
35231
35232         update nearly all FSF copyright year lists to include 2010
35233         Use the same procedure as for 2009, outlined in
35234         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
35235
35236         version-etc: set COPYRIGHT_YEAR to 2010
35237         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
35238
35239 2009-12-31  Eric Blake  <ebb9@byu.net>
35240
35241         doc: correct availability of cygwin 1.5.x getopt
35242         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
35243         variables.
35244         * doc/posix-functions/opterr.texi (opterr): Likewise.
35245         * doc/posix-functions/optind.texi (optind): Likewise.
35246         * doc/posix-functions/optopt.texi (optopt): Likewise.
35247         * doc/posix-functions/tzname.texi (tzname): Likewise.
35248
35249         openat: update maintainer
35250         * modules/openat (Maintainer): Add myself.
35251
35252         utimens: avoid shadowing warning
35253         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
35254         buffers into one, to avoid shadowing, as well as avoiding a
35255         redundant stat.
35256         Reported by Jim Meyering.
35257
35258         test-dup2: avoid compiler warning
35259         * tests/test-dup2.c (is_inheritable): Only define if used.
35260
35261 2010-01-01  Bruno Haible  <bruno@clisp.org>
35262
35263         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
35264         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
35265         defined, use wctomb instead of wcrtomb.
35266
35267 2010-01-01  Bruno Haible  <bruno@clisp.org>
35268
35269         iconv: Reject native Solaris iconv.
35270         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
35271         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
35272
35273 2009-12-31  Bruno Haible  <bruno@clisp.org>
35274
35275         * tests/test-signal.c (main): Remove test of 'SIG'.
35276
35277 2009-12-31  Bruno Haible  <bruno@clisp.org>
35278
35279         spawn: Fix incomplete fix.
35280         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
35281         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
35282         warnings for GNULIB_POSIXCHECK again.
35283         Reported by Eric Blake.
35284
35285 2009-12-31  Bruno Haible  <bruno@clisp.org>
35286
35287         Avoid namespace pollution on glibc systems.
35288         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
35289         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
35290         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
35291         glibc systems.
35292
35293 2009-12-31  Bruno Haible  <bruno@clisp.org>
35294
35295         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
35296         (gl_REPLACE_WCHAR_H): Turn into a no-op.
35297         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
35298         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
35299         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
35300         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
35301         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
35302
35303 2009-12-31  Bruno Haible  <bruno@clisp.org>
35304
35305         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
35306         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
35307         afterwards.
35308
35309 2009-12-31  Bruno Haible  <bruno@clisp.org>
35310
35311         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
35312         SYS_UTSNAME_H.
35313
35314 2009-12-31  Bruno Haible  <bruno@clisp.org>
35315
35316         spawn: Fix misapplied patch.
35317         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
35318         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
35319         warnings for GNULIB_POSIXCHECK.
35320
35321 2009-12-31  Bruno Haible  <bruno@clisp.org>
35322
35323         times: Update after sys_times changed.
35324         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
35325         * modules/times (Files): Add it.
35326         (configure.ac): Invoke gl_FUNC_TIMES.
35327
35328 2009-12-31  Bruno Haible  <bruno@clisp.org>
35329
35330         Use AC_C_INLINE where necessary.
35331         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
35332         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
35333         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
35334         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
35335         * m4/mbfile.m4 (gl_MBFILE): Likewise.
35336         * m4/mbiter.m4 (gl_MBITER): Likewise.
35337         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
35338         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
35339         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
35340         * modules/u64 (configure.ac): Likewise.
35341
35342 2009-12-31  Bruno Haible  <bruno@clisp.org>
35343
35344         Use AC_C_INLINE instead of module 'inline' where possible.
35345         * modules/inline (Description): Clarify purpose.
35346         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
35347         * modules/count-one-bits (Depends-on): Remove inline.
35348         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
35349         * modules/openat (Depends-on): Remove inline.
35350         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
35351         instead of depending on module 'inline'.
35352         * modules/filevercmp (Depends-on, configure.ac): Likewise.
35353         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
35354         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
35355         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
35356         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
35357         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
35358         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
35359         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
35360         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
35361         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
35362         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
35363         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
35364         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
35365         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
35366         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
35367         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
35368         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
35369         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
35370         Likewise.
35371         * modules/unictype/property-ascii-hex-digit (Depends-on,
35372         configure.ac): Likewise.
35373         * modules/unictype/property-bidi-arabic-digit (Depends-on,
35374         configure.ac): Likewise.
35375         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
35376         configure.ac): Likewise.
35377         * modules/unictype/property-bidi-block-separator (Depends-on,
35378         configure.ac): Likewise.
35379         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
35380         configure.ac): Likewise.
35381         * modules/unictype/property-bidi-common-separator (Depends-on,
35382         configure.ac): Likewise.
35383         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
35384         Likewise.
35385         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
35386         configure.ac): Likewise.
35387         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
35388         configure.ac): Likewise.
35389         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
35390         configure.ac): Likewise.
35391         * modules/unictype/property-bidi-european-digit (Depends-on,
35392         configure.ac): Likewise.
35393         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
35394         configure.ac): Likewise.
35395         * modules/unictype/property-bidi-left-to-right (Depends-on,
35396         configure.ac): Likewise.
35397         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
35398         configure.ac): Likewise.
35399         * modules/unictype/property-bidi-other-neutral (Depends-on,
35400         configure.ac): Likewise.
35401         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
35402         Likewise.
35403         * modules/unictype/property-bidi-segment-separator (Depends-on,
35404         configure.ac): Likewise.
35405         * modules/unictype/property-bidi-whitespace (Depends-on,
35406         configure.ac): Likewise.
35407         * modules/unictype/property-combining (Depends-on, configure.ac):
35408         Likewise.
35409         * modules/unictype/property-composite (Depends-on, configure.ac):
35410         Likewise.
35411         * modules/unictype/property-currency-symbol (Depends-on,
35412         configure.ac): Likewise.
35413         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
35414         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
35415         Likewise.
35416         * modules/unictype/property-default-ignorable-code-point (Depends-on,
35417         configure.ac): Likewise.
35418         * modules/unictype/property-deprecated (Depends-on, configure.ac):
35419         Likewise.
35420         * modules/unictype/property-diacritic (Depends-on, configure.ac):
35421         Likewise.
35422         * modules/unictype/property-extender (Depends-on, configure.ac):
35423         Likewise.
35424         * modules/unictype/property-format-control (Depends-on, configure.ac):
35425         Likewise.
35426         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
35427         Likewise.
35428         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
35429         Likewise.
35430         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
35431         Likewise.
35432         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
35433         Likewise.
35434         * modules/unictype/property-hyphen (Depends-on, configure.ac):
35435         Likewise.
35436         * modules/unictype/property-id-continue (Depends-on, configure.ac):
35437         Likewise.
35438         * modules/unictype/property-id-start (Depends-on, configure.ac):
35439         Likewise.
35440         * modules/unictype/property-ideographic (Depends-on, configure.ac):
35441         Likewise.
35442         * modules/unictype/property-ids-binary-operator (Depends-on,
35443         configure.ac): Likewise.
35444         * modules/unictype/property-ids-trinary-operator (Depends-on,
35445         configure.ac): Likewise.
35446         * modules/unictype/property-ignorable-control (Depends-on,
35447         configure.ac): Likewise.
35448         * modules/unictype/property-iso-control (Depends-on, configure.ac):
35449         Likewise.
35450         * modules/unictype/property-join-control (Depends-on, configure.ac):
35451         Likewise.
35452         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
35453         Likewise.
35454         * modules/unictype/property-line-separator (Depends-on, configure.ac):
35455         Likewise.
35456         * modules/unictype/property-logical-order-exception (Depends-on,
35457         configure.ac): Likewise.
35458         * modules/unictype/property-lowercase (Depends-on, configure.ac):
35459         Likewise.
35460         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
35461         * modules/unictype/property-non-break (Depends-on, configure.ac):
35462         Likewise.
35463         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
35464         Likewise.
35465         * modules/unictype/property-numeric (Depends-on, configure.ac):
35466         Likewise.
35467         * modules/unictype/property-other-alphabetic (Depends-on,
35468         configure.ac): Likewise.
35469         * modules/unictype/property-other-default-ignorable-code-point
35470         (Depends-on, configure.ac): Likewise.
35471         * modules/unictype/property-other-grapheme-extend (Depends-on,
35472         configure.ac): Likewise.
35473         * modules/unictype/property-other-id-continue (Depends-on,
35474         configure.ac): Likewise.
35475         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
35476         Likewise.
35477         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
35478         Likewise.
35479         * modules/unictype/property-other-math (Depends-on, configure.ac):
35480         Likewise.
35481         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
35482         Likewise.
35483         * modules/unictype/property-paired-punctuation (Depends-on,
35484         configure.ac): Likewise.
35485         * modules/unictype/property-paragraph-separator (Depends-on,
35486         configure.ac): Likewise.
35487         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
35488         Likewise.
35489         * modules/unictype/property-pattern-white-space (Depends-on,
35490         configure.ac): Likewise.
35491         * modules/unictype/property-private-use (Depends-on, configure.ac):
35492         Likewise.
35493         * modules/unictype/property-punctuation (Depends-on, configure.ac):
35494         Likewise.
35495         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
35496         Likewise.
35497         * modules/unictype/property-radical (Depends-on, configure.ac):
35498         Likewise.
35499         * modules/unictype/property-sentence-terminal (Depends-on,
35500         configure.ac): Likewise.
35501         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
35502         Likewise.
35503         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
35504         * modules/unictype/property-terminal-punctuation (Depends-on,
35505         configure.ac): Likewise.
35506         * modules/unictype/property-titlecase (Depends-on, configure.ac):
35507         Likewise.
35508         * modules/unictype/property-unassigned-code-value (Depends-on,
35509         configure.ac): Likewise.
35510         * modules/unictype/property-unified-ideograph (Depends-on,
35511         configure.ac): Likewise.
35512         * modules/unictype/property-uppercase (Depends-on, configure.ac):
35513         Likewise.
35514         * modules/unictype/property-variation-selector (Depends-on,
35515         configure.ac): Likewise.
35516         * modules/unictype/property-white-space (Depends-on, configure.ac):
35517         Likewise.
35518         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
35519         Likewise.
35520         * modules/unictype/property-xid-start (Depends-on, configure.ac):
35521         Likewise.
35522         * modules/unictype/property-zero-width (Depends-on, configure.ac):
35523         Likewise.
35524         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
35525         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
35526         Likewise.
35527
35528 2009-12-31  Bruno Haible  <bruno@clisp.org>
35529
35530         Remove unnecessary AC_C_INLINE invocation.
35531         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
35532         since 2009-08-21.
35533
35534 2009-12-31  Jim Meyering  <meyering@redhat.com>
35535
35536         maint.mk: don't require explicit gpg_key_ID in cfg.mk
35537         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
35538         With this change, we can all remove the gpg_key_ID = ... definition
35539         from our respective cfg.mk files.
35540
35541         maint.mk: create announcement template in ~/, not in /tmp
35542         * top/maint.mk (emit_upload_commands): Adjust.
35543         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
35544         Remove temporary file, .ci-msg.
35545
35546 2009-12-31  Eric Blake  <ebb9@byu.net>
35547
35548         link-warning: always build headers with link warnings
35549         * modules/arpa_inet (Makefile.am): Always build replacement
35550         header.
35551         * modules/ctype (Makefile.am): Likewise.
35552         * modules/dirent (Makefile.am): Likewise.
35553         * modules/inttypes (Makefile.am): Likewise.
35554         * modules/langinfo (Makefile.am): Likewise.
35555         * modules/locale (Makefile.am): Likewise.
35556         * modules/spawn (Makefile.am): Likewise.
35557         * modules/sys_file (Makefile.am): Likewise.
35558         * modules/sys_ioctl (Makefile.am): Likewise.
35559         * modules/sys_select (Makefile.am): Likewise.
35560         * modules/sys_socket (Makefile.am): Likewise.
35561         * modules/sys_times (Makefile.am): Likewise.
35562         * modules/sys_utsname (Makefile.am): Likewise.
35563         * modules/sys_wait (Makefile.am): Likewise.
35564         * modules/wchar (Makefile.am): Likewise.
35565         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
35566         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
35567         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
35568         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
35569         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
35570         Likewise.
35571         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
35572         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
35573         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
35574         Likewise.
35575         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
35576         Likewise.
35577         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
35578         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
35579         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
35580         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
35581         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
35582         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
35583         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
35584         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
35585         (gl_WCHAR_H_DEFAULTS): Likewise.
35586
35587 2009-12-31  Eric Blake  <ebb9@byu.net>
35588
35589         signal, spawn: use link warnings
35590         * lib/signal.in.h (sigset_t): Make unconditional.
35591         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
35592         (sigpending, sigprocmask, sigaction): Add link warnings.
35593         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
35594         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
35595         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
35596         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
35597         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
35598         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
35599         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
35600         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
35601         (posix_spawn_file_actions_destroy)
35602         (posix_spawn_file_actions_addopen)
35603         (posix_spawn_file_actions_addclose)
35604         (posix_spawn_file_actions_adddup2): Likewise.
35605         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
35606         * tests/test-signal.c (main): Enhance test.
35607
35608         spawn: improve wrapper support
35609         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
35610         (gl_SPAWN_H_DEFAULTS): New defaults.
35611         * modules/spawn (Makefile.am): Substitute them.
35612         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
35613         Only declare if missing or broken.
35614
35615         sys_times, sys_utsname: use include_next
35616         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
35617         header.
35618         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
35619         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
35620         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
35621         * modules/sys_times (Depends-on): Add include_next.
35622         (Makefile.am): Substitute additional values.
35623         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
35624         * lib/sys_times.in.h (includes): Include native header, if
35625         available.
35626         * lib/sys_utsname.in.h (includes): Likewise.
35627         * tests/test-sys_times.c (main): Enhance test.
35628
35629         fdutimensat: revert prior patch
35630         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
35631         utimens.h.
35632         Reported by Bruno Haible.
35633
35634 2009-12-30  Eric Blake  <ebb9@byu.net>
35635
35636         sys_wait: drop link-warning dependency
35637         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
35638         link-warning efforts.
35639         * lib/sys_wait.in.h: Likewise.
35640
35641         fdutimensat: remove bogus dependency
35642         * modules/fdutimensat (Depends-on): Drop inline.
35643
35644         unistd: fix typo
35645         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
35646
35647 2009-12-30  Bruno Haible  <bruno@clisp.org>
35648
35649         Fix compilation error with Solaris cc.
35650         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
35651         * lib/unicase/u16-is-invariant.c: Likewise.
35652         * lib/unicase/u32-is-invariant.c: Likewise.
35653         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
35654
35655 2009-12-30  Bruno Haible  <bruno@clisp.org>
35656
35657         Fix test crash.
35658         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
35659         locales.
35660         Reported by Simon Josefsson <simon@josefsson.org>.
35661
35662 2009-12-30  Bruno Haible  <bruno@clisp.org>
35663
35664         Fix compilation error on most platforms.
35665         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
35666         Reported by Simon Josefsson <simon@josefsson.org>
35667         and Nelson H. F. Beebe <beebe@math.utah.edu>.
35668
35669 2009-12-30  Eric Blake  <ebb9@byu.net>
35670
35671         futimens, utimensat: work around ntfs-3g bug
35672         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
35673         a ctime bug is present, and expand workaround to cover ntfs-3g.
35674         * lib/utimens.c (fdutimens, lutimens): Likewise.
35675         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
35676         (validate_timespec): Adjust return value.
35677         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
35678         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
35679         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
35680
35681 2009-12-29  Eric Blake  <ebb9@byu.net>
35682
35683         link-warning: make usage consistent
35684         * modules/ctype (Depends-on): Add link-warning.
35685         (Makefile.am): Update rules accordingly.
35686         * modules/langinfo (Depends-on, Makefile.am): Likewise.
35687         * modules/locale (Depends-on, Makefile.am): Likewise.
35688         * modules/sys_file (Makefile.am): Likewise.
35689         * modules/getopt-posix (Makefile.am): Delete unused link warning
35690         efforts.
35691         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
35692         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
35693         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
35694         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
35695
35696         stdio: remove unused variables
35697         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
35698         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
35699         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
35700
35701         tests: test more substitute headers
35702         * modules/ctype-tests: New file.
35703         * modules/dirent-tests: Likewise.
35704         * modules/spawn-tests: Likewise.
35705         * modules/sys_file-tests: Likewise.
35706         * modules/sys_ioctl-tests: Likewise.
35707         * modules/sys_wait-tests: Likewise.
35708         * tests/test-ctype.c: Likewise.
35709         * tests/test-dirent.c: Likewise.
35710         * tests/test-spawn.c: Likewise.
35711         * tests/test-sys_file.c: Likewise.
35712         * tests/test-sys_ioctl.c: Likewise.
35713         * tests/test-sys_wait.c: Likewise.
35714         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
35715         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
35716         whether or not flock is in use.
35717
35718         tests: remove License section from module
35719         * modules/arpa_inet-tests: Remove unneeded section.
35720         * modules/byteswap-tests: Likewise.
35721         * modules/ceilf-tests: Likewise.
35722         * modules/ceill-tests: Likewise.
35723         * modules/crypto/des-tests: Likewise.
35724         * modules/crypto/gc-arcfour-tests: Likewise.
35725         * modules/crypto/gc-arctwo-tests: Likewise.
35726         * modules/crypto/gc-des-tests: Likewise.
35727         * modules/crypto/gc-hmac-md5-tests: Likewise.
35728         * modules/crypto/gc-hmac-sha1-tests: Likewise.
35729         * modules/crypto/gc-md2-tests: Likewise.
35730         * modules/crypto/gc-md4-tests: Likewise.
35731         * modules/crypto/gc-md5-tests: Likewise.
35732         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
35733         * modules/crypto/gc-rijndael-tests: Likewise.
35734         * modules/crypto/gc-sha1-tests: Likewise.
35735         * modules/crypto/gc-tests: Likewise.
35736         * modules/crypto/md2-tests: Likewise.
35737         * modules/crypto/md4-tests: Likewise.
35738         * modules/fcntl-h-tests: Likewise.
35739         * modules/floorf-tests: Likewise.
35740         * modules/floorl-tests: Likewise.
35741         * modules/frexp-nolibm-tests: Likewise.
35742         * modules/frexp-tests: Likewise.
35743         * modules/frexpl-nolibm-tests: Likewise.
35744         * modules/frexpl-tests: Likewise.
35745         * modules/getaddrinfo-tests: Likewise.
35746         * modules/inttypes-tests: Likewise.
35747         * modules/isfinite-tests: Likewise.
35748         * modules/isinf-tests: Likewise.
35749         * modules/ldexpl-tests: Likewise.
35750         * modules/locale-tests: Likewise.
35751         * modules/math-tests: Likewise.
35752         * modules/netdb-tests: Likewise.
35753         * modules/netinet_in-tests: Likewise.
35754         * modules/printf-frexp-tests: Likewise.
35755         * modules/printf-frexpl-tests: Likewise.
35756         * modules/priv-set-tests: Likewise.
35757         * modules/random_r-tests: Likewise.
35758         * modules/round-tests: Likewise.
35759         * modules/roundf-tests: Likewise.
35760         * modules/roundl-tests: Likewise.
35761         * modules/search-tests: Likewise.
35762         * modules/select-tests: Likewise.
35763         * modules/signal-tests: Likewise.
35764         * modules/stdbool-tests: Likewise.
35765         * modules/stddef-tests: Likewise.
35766         * modules/stdint-tests: Likewise.
35767         * modules/stdio-tests: Likewise.
35768         * modules/stdlib-tests: Likewise.
35769         * modules/string-tests: Likewise.
35770         * modules/strings-tests: Likewise.
35771         * modules/sys_select-tests: Likewise.
35772         * modules/sys_socket-tests: Likewise.
35773         * modules/sys_stat-tests: Likewise.
35774         * modules/sys_time-tests: Likewise.
35775         * modules/sys_utsname-tests: Likewise.
35776         * modules/sysexits-tests: Likewise.
35777         * modules/time-tests: Likewise.
35778         * modules/trunc-tests: Likewise.
35779         * modules/truncf-tests: Likewise.
35780         * modules/truncl-tests: Likewise.
35781         * modules/tsearch-tests: Likewise.
35782         * modules/unistd-tests: Likewise.
35783         * modules/wchar-tests: Likewise.
35784         * modules/wctype-tests: Likewise.
35785
35786         tests: fix license on several tests
35787         * tests/test-des.c: Update to GPLv3+.
35788         * tests/test-flock.c: Likewise.
35789         * tests/test-fsync.c: Likewise.
35790         * tests/test-futimens.h: Likewise.
35791         * tests/test-gc-arcfour.c: Likewise.
35792         * tests/test-gc-arctwo.c: Likewise.
35793         * tests/test-gc-des.c: Likewise.
35794         * tests/test-gc-hmac-md5.c: Likewise.
35795         * tests/test-gc-hmac-sha1.c: Likewise.
35796         * tests/test-gc-md2.c: Likewise.
35797         * tests/test-gc-md4.c: Likewise.
35798         * tests/test-gc-md5.c: Likewise.
35799         * tests/test-gc-pbkdf2-sha1.c: Likewise.
35800         * tests/test-gc-rijndael.c: Likewise.
35801         * tests/test-gc-sha1.c: Likewise.
35802         * tests/test-gc.c: Likewise.
35803         * tests/test-getcwd.c: Likewise.
35804         * tests/test-link.c: Likewise.
35805         * tests/test-link.h: Likewise.
35806         * tests/test-lutimens.h: Likewise.
35807         * tests/test-md2.c: Likewise.
35808         * tests/test-md4.c: Likewise.
35809         * tests/test-mkdir.h: Likewise.
35810         * tests/test-rename.c: Likewise.
35811         * tests/test-rename.h: Likewise.
35812         * tests/test-safe-alloc.c: Likewise.
35813         * tests/test-utimens-common.h: Likewise.
35814         * tests/test-utimens.h: Likewise.
35815
35816         maint: sync license texts
35817         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
35818         * doc/gpl-3.0.texi: Revert copyright year update.
35819         * doc/lgpl-3.0.texi: Likewise.
35820
35821 2009-12-29  Jim Meyering  <meyering@redhat.com>
35822
35823         update nearly all FSF copyright year lists to include 2009
35824         The files named by the following are exempted:
35825             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
35826               test -f "$dst" && { echo "$dst"; continue; }
35827               test -d "$dst" || continue
35828               echo "$dst"/$(basename "$src")
35829             done > exempt
35830             git ls-files tests/unictype >> exempt
35831         In the remaining files, convert to all-interval notation if
35832         - there is already at least one year interval like 2000-2003
35833         - the file is maintained by me
35834         - the file is in lib/uni*/, where that style already prevails
35835         Otherwise, use update-copyright's default.
35836
35837 2009-12-29  Simon Josefsson  <simon@josefsson.org>
35838         and Eric Blake  <ebb9@byu.net>
35839
35840         tests: don't require debug system() to pass
35841         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
35842         * tests/test-rmdir.h (test_rmdir_func): Likewise.
35843         * tests/test-unlink.h (test_unlink_func): Likewise.
35844         * tests/test-fstatat.c (main): ...into callers.
35845         * tests/test-lstat.c (main): Likewise.
35846         * tests/test-rmdir.c (main): Likewise.
35847         * tests/test-unlink.c (main): Likewise.
35848         * tests/test-unlinkat.c (main): Likewise.
35849         * tests/test-areadlink-with-size.c (main): Don't require a
35850         debug-only system call to pass, aiding cross-testing to mingw.
35851         * tests/test-areadlink.c (main): Likewise.
35852         * tests/test-areadlinkat-with-size.c (main): Likewise.
35853         * tests/test-areadlinkat.c (main): Likewise.
35854         * tests/test-canonicalize-lgpl.c (main): Likewise.
35855         * tests/test-canonicalize.c (main): Likewise.
35856         * tests/test-chown.c (main): Likewise.
35857         * tests/test-fchownat.c (main): Likewise.
35858         * tests/test-lchown.c (main): Likewise.
35859         * tests/test-fdutimensat.c (main): Likewise.
35860         * tests/test-futimens.c (main): Likewise.
35861         * tests/test-link.c (main): Likewise.
35862         * tests/test-linkat.c (main): Likewise.
35863         * tests/test-mkdir.c (main): Likewise.
35864         * tests/test-mkdirat.c (main): Likewise.
35865         * tests/test-mkfifo.c (main): Likewise.
35866         * tests/test-mkfifoat.c (main): Likewise.
35867         * tests/test-mknod.c (main): Likewise.
35868         * tests/test-readlink.c (main): Likewise.
35869         * tests/test-remove.c (main): Likewise.
35870         * tests/test-rename.c (main): Likewise.
35871         * tests/test-renameat.c (main): Likewise.
35872         * tests/test-symlink.c (main): Likewise.
35873         * tests/test-symlinkat.c (main): Likewise.
35874         * tests/test-utimens.c (main): Likewise.
35875         * tests/test-utimensat.c (main): Likewise.
35876
35877 2009-12-29  Simon Josefsson  <simon@josefsson.org>
35878
35879         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
35880         on $(UNUSED_PARAMETER_H) to avoid build failure.
35881
35882 2009-12-28  Jim Meyering  <meyering@redhat.com>
35883
35884         update-copyright: you may specify a max. line length other than 72
35885         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
35886
35887         maint: use consistent FSF copyright line syntax
35888         * lib/posixtm.c: Add missing comma in FSF copyright line.
35889         * lib/posixtm.h: Likewise.
35890         * lib/getugroups.c: Add missing ", Inc.".
35891
35892         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
35893         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
35894         FSF copyright line.  Remove trailing blanks.
35895
35896 2009-12-28  Eric Blake  <ebb9@byu.net>
35897
35898         test-dup2: reduce dependencies
35899         * modules/cloexec (Configure.ac): Set witness.
35900         * modules/dup2-tests (Depends-on): Drop cloexec.
35901         * tests/test-dup2.c (main): Skip portion of test if cloexec module
35902         not present.
35903         Suggested by Bruno Haible.
35904
35905 2009-12-26  Bruno Haible  <bruno@clisp.org>
35906
35907         Remove an unneeded dependency.
35908         * modules/fseterr (Depends-on): Remove dup2.
35909
35910 2009-12-26  Eric Blake  <ebb9@byu.net>
35911
35912         tests: use macros.h in more places
35913         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
35914         (ASSERT_STREAM): Provide default of stderr.
35915         * tests/test-dirent-safer.c: Include macros.h, using alternate
35916         stream for assertions.
35917         * tests/test-dup-safer.c: Likewise.
35918         * tests/test-freopen-safer.c: Likewise.
35919         * tests/test-getopt.c: Likewise.
35920         * tests/test-openat-safer.c: Likewise.
35921         * tests/test-pipe.c: Likewise.
35922         * tests/test-popen-safer.c: Likewise.
35923         * modules/dirent-safer-tests (Files): Include macros.h.
35924         * modules/unistd-safer-tests (Files): Likewise.
35925         * modules/freopen-safer-tests (Files): Likewise.
35926         * modules/getopt-posix-tests (Files): Likewise.
35927         * modules/openat-safer-tests (Files): Likewise.
35928         * modules/pipe-tests (Files): Likewise.
35929
35930 2009-12-26  Bruno Haible  <bruno@clisp.org>
35931
35932         javacomp: Portability fix.
35933         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
35934         that it also works on Solaris.
35935
35936 2009-12-26  Bruno Haible  <bruno@clisp.org>
35937
35938         localename: Fix storage allocation of gl_locale_name_thread's result.
35939         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
35940         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
35941         all platforms that have 'uselocale'.
35942         (gl_locale_name_thread_unsafe): New function, extracted from
35943         gl_locale_name_thread.
35944         (gl_locale_name_thread): Call struniq on all platforms that have
35945         'uselocale'.
35946         * tests/test-localename.c (test_locale_name_thread): Check that the
35947         resulting strings are permanently allocated.
35948         * modules/localename-tests (Depends-on): Add strdup.
35949
35950 2009-12-26  Bruno Haible  <bruno@clisp.org>
35951
35952         * tests/test-localename.c (categories): Fill in the strings.
35953
35954 2009-12-26  Jim Meyering  <meyering@redhat.com>
35955
35956         isdir: complete the removal of m4/isdir.m4
35957         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
35958
35959         isdir: clean up, since at least grep still uses it
35960         * lib/isdir.c: Include "isdir.h".
35961         (S_ISDIR): Remove now-unneeded definition.
35962         * modules/isdir (Files): Add lib/isdir.h.
35963         * lib/isdir.h: New file, with declaration.
35964         * m4/isdir.m4: Remove file -- unneeded.
35965
35966 2009-12-25  Bruno Haible  <bruno@clisp.org>
35967
35968         selinux-h: Make generated .h files standalone.
35969         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
35970         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
35971         * lib/se-selinux.in.h: Likewise.
35972         * modules/selinux-h (Depends-on): Add unused-parameter.
35973         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
35974         selinux/selinux.h and selinux/context.h.
35975         Suggested by Eric Blake.
35976
35977 2009-12-25  Bruno Haible  <bruno@clisp.org>
35978
35979         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
35980         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
35981         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
35982         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
35983         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
35984
35985 2009-12-24  Bruno Haible  <bruno@clisp.org>
35986
35987         openat: Fix warning.
35988         * lib/openat-proc.c: Include <unistd.h>.
35989
35990 2009-12-24  Bruno Haible  <bruno@clisp.org>
35991
35992         New module 'unused-parameter'.
35993         * build-aux/unused-parameter.h: New file, extracted from earlier
35994         gnulib-common.m4.
35995         * modules/unused-parameter: New file.
35996         * lib/unistr.h: Include unused-parameter.h.
35997         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
35998         _GL_UNUSED.
35999         * modules/unistr/base (Depends-on): Add unused-parameter.
36000
36001 2009-12-24  Bruno Haible  <bruno@clisp.org>
36002
36003         Add missing dependencies to 'extensions' module.
36004         * m4/extensions.m4: Add comment.
36005         * modules/accept4 (Depends-on): Add extensions.
36006         * modules/dup3 (Depends-on): Likewise.
36007         * modules/fcntl (Depends-on): Likewise.
36008         * modules/futimens (Depends-on): Likewise.
36009         * modules/mknod (Depends-on): Likewise.
36010         * modules/pipe2 (Depends-on): Likewise.
36011         * modules/stat-time (Depends-on): Likewise.
36012         * modules/strcasestr-simple (Depends-on): Likewise.
36013         * modules/strsignal (Depends-on): Likewise.
36014         * modules/utimensat (Depends-on): Likewise.
36015         * modules/localcharset (Depends-on): Likewise. Needed because of
36016         gl_FCNTL_O_FLAGS.
36017         * modules/wcrtomb (Depends-on): Likewise. Needed because of
36018         AC_TYPE_MBSTATE_T.
36019         * modules/wcsnrtombs (Depends-on): Likewise.
36020         * modules/wcsrtombs (Depends-on): Likewise.
36021
36022 2009-12-24  Bruno Haible  <bruno@clisp.org>
36023
36024         binary-io: Avoid gcc warning due to SET_BINARY.
36025         * lib/binary-io.h (SET_BINARY): Cast the result to void.
36026         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
36027
36028 2009-12-24  Bruno Haible  <bruno@clisp.org>
36029
36030         Avoid future namespace pollution on glibc systems.
36031         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
36032         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
36033         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
36034         glibc systems.
36035
36036 2009-12-24  Bruno Haible  <bruno@clisp.org>
36037
36038         Refactor common macros used in tests.
36039         * tests/macros.h: New file.
36040         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
36041         and/or <stdlib.h>, if appropriate.
36042         (ASSERT, SIZEOF): Remove macros.
36043         * tests/test-areadlink-with-size.c: Likewise.
36044         * tests/test-areadlinkat.c: Likewise.
36045         * tests/test-areadlinkat-with-size.c: Likewise.
36046         * tests/test-argmatch.c: Likewise.
36047         * tests/test-argv-iter.c: Likewise.
36048         * tests/test-array-mergesort.c: Likewise.
36049         * tests/test-array_list.c: Likewise.
36050         * tests/test-array_oset.c: Likewise.
36051         * tests/test-avltree_list.c: Likewise.
36052         * tests/test-avltree_oset.c: Likewise.
36053         * tests/test-avltreehash_list.c: Likewise.
36054         * tests/test-base64.c: Likewise.
36055         * tests/test-binary-io.c: Likewise.
36056         * tests/test-bitrotate.c: Likewise.
36057         * tests/test-btowc.c: Likewise.
36058         * tests/test-byteswap.c: Likewise.
36059         * tests/test-c-ctype.c: Likewise.
36060         * tests/test-c-stack.c: Likewise.
36061         * tests/test-c-strcasecmp.c: Likewise.
36062         * tests/test-c-strcasestr.c: Likewise.
36063         * tests/test-c-strncasecmp.c: Likewise.
36064         * tests/test-c-strstr.c: Likewise.
36065         * tests/test-canonicalize-lgpl.c: Likewise.
36066         * tests/test-canonicalize.c: Likewise.
36067         * tests/test-carray_list.c: Likewise.
36068         * tests/test-ceilf1.c: Likewise.
36069         * tests/test-ceilf2.c: Likewise.
36070         * tests/test-ceill.c: Likewise.
36071         * tests/test-chown.c: Likewise.
36072         * tests/test-cloexec.c: Likewise.
36073         * tests/test-copy-acl.c: Likewise.
36074         * tests/test-copy-file.c: Likewise.
36075         * tests/test-count-one-bits.c: Likewise.
36076         * tests/test-dprintf-posix.c: Likewise.
36077         * tests/test-dup2.c: Likewise.
36078         * tests/test-dup3.c: Likewise.
36079         * tests/test-duplocale.c: Likewise.
36080         * tests/test-fbufmode.c: Likewise.
36081         * tests/test-fchdir.c: Likewise.
36082         * tests/test-fchownat.c: Likewise.
36083         * tests/test-fcntl-safer.c: Likewise.
36084         * tests/test-fcntl.c: Likewise.
36085         * tests/test-fdopendir.c: Likewise.
36086         * tests/test-fdutimensat.c: Likewise.
36087         * tests/test-fflush2.c: Likewise.
36088         * tests/test-file-has-acl.c: Likewise.
36089         * tests/test-filevercmp.c: Likewise.
36090         * tests/test-flock.c: Likewise.
36091         * tests/test-floorf1.c: Likewise.
36092         * tests/test-floorf2.c: Likewise.
36093         * tests/test-floorl.c: Likewise.
36094         * tests/test-fnmatch.c: Likewise.
36095         * tests/test-fopen.h: Likewise.
36096         * tests/test-fpending.c: Likewise.
36097         * tests/test-fprintf-posix.c: Likewise.
36098         * tests/test-fpurge.c: Likewise.
36099         * tests/test-freadable.c: Likewise.
36100         * tests/test-freadahead.c: Likewise.
36101         * tests/test-freading.c: Likewise.
36102         * tests/test-freadptr.c: Likewise.
36103         * tests/test-freadptr2.c: Likewise.
36104         * tests/test-freadseek.c: Likewise.
36105         * tests/test-freopen.c: Likewise.
36106         * tests/test-frexp.c: Likewise.
36107         * tests/test-frexpl.c: Likewise.
36108         * tests/test-fseek.c: Likewise.
36109         * tests/test-fseeko.c: Likewise.
36110         * tests/test-fstatat.c: Likewise.
36111         * tests/test-fstrcmp.c: Likewise.
36112         * tests/test-fsync.c: Likewise.
36113         * tests/test-ftell.c: Likewise.
36114         * tests/test-ftello.c: Likewise.
36115         * tests/test-func.c: Likewise.
36116         * tests/test-futimens.c: Likewise.
36117         * tests/test-fwritable.c: Likewise.
36118         * tests/test-fwriting.c: Likewise.
36119         * tests/test-getcwd.c: Likewise.
36120         * tests/test-getdate.c: Likewise.
36121         * tests/test-getdelim.c: Likewise.
36122         * tests/test-getdtablesize.c: Likewise.
36123         * tests/test-getgroups.c: Likewise.
36124         * tests/test-getline.c: Likewise.
36125         * tests/test-getndelim2.c: Likewise.
36126         * tests/test-glob.c: Likewise.
36127         * tests/test-hash.c: Likewise.
36128         * tests/test-i-ring.c: Likewise.
36129         * tests/test-iconv-utf.c: Likewise.
36130         * tests/test-iconv.c: Likewise.
36131         * tests/test-idpriv-drop.c: Likewise.
36132         * tests/test-idpriv-droptemp.c: Likewise.
36133         * tests/test-inet_ntop.c: Likewise.
36134         * tests/test-inet_pton.c: Likewise.
36135         * tests/test-isblank.c: Likewise.
36136         * tests/test-isfinite.c: Likewise.
36137         * tests/test-isinf.c: Likewise.
36138         * tests/test-isnan.c: Likewise.
36139         * tests/test-isnand.h: Likewise.
36140         * tests/test-isnanf.h: Likewise.
36141         * tests/test-isnanl.h: Likewise.
36142         * tests/test-lchown.c: Likewise.
36143         * tests/test-ldexpl.c: Likewise.
36144         * tests/test-link.c: Likewise.
36145         * tests/test-linkat.c: Likewise.
36146         * tests/test-linked_list.c: Likewise.
36147         * tests/test-linkedhash_list.c: Likewise.
36148         * tests/test-localename.c: Likewise.
36149         * tests/test-lseek.c: Likewise.
36150         * tests/test-lstat.c: Likewise.
36151         * tests/test-mbmemcasecmp.c: Likewise.
36152         * tests/test-mbmemcasecoll.c: Likewise.
36153         * tests/test-mbrtowc.c: Likewise.
36154         * tests/test-mbscasecmp.c: Likewise.
36155         * tests/test-mbscasestr1.c: Likewise.
36156         * tests/test-mbscasestr2.c: Likewise.
36157         * tests/test-mbscasestr3.c: Likewise.
36158         * tests/test-mbscasestr4.c: Likewise.
36159         * tests/test-mbschr.c: Likewise.
36160         * tests/test-mbscspn.c: Likewise.
36161         * tests/test-mbsinit.c: Likewise.
36162         * tests/test-mbsncasecmp.c: Likewise.
36163         * tests/test-mbsnrtowcs.c: Likewise.
36164         * tests/test-mbspbrk.c: Likewise.
36165         * tests/test-mbspcasecmp.c: Likewise.
36166         * tests/test-mbsrchr.c: Likewise.
36167         * tests/test-mbsrtowcs.c: Likewise.
36168         * tests/test-mbsspn.c: Likewise.
36169         * tests/test-mbsstr1.c: Likewise.
36170         * tests/test-mbsstr2.c: Likewise.
36171         * tests/test-mbsstr3.c: Likewise.
36172         * tests/test-memchr.c: Likewise.
36173         * tests/test-memchr2.c: Likewise.
36174         * tests/test-memcmp.c: Likewise.
36175         * tests/test-memmem.c: Likewise.
36176         * tests/test-memrchr.c: Likewise.
36177         * tests/test-mkdir.c: Likewise.
36178         * tests/test-mkdirat.c: Likewise.
36179         * tests/test-mkfifo.c: Likewise.
36180         * tests/test-mkfifoat.c: Likewise.
36181         * tests/test-mknod.c: Likewise.
36182         * tests/test-nanosleep.c: Likewise.
36183         * tests/test-nl_langinfo.c: Likewise.
36184         * tests/test-obstack-printf.c: Likewise.
36185         * tests/test-open.c: Likewise.
36186         * tests/test-openat.c: Likewise.
36187         * tests/test-pipe-filter-gi1.c: Likewise.
36188         * tests/test-pipe-filter-gi2-main.c: Likewise.
36189         * tests/test-pipe-filter-ii1.c: Likewise.
36190         * tests/test-pipe-filter-ii2-main.c: Likewise.
36191         * tests/test-pipe2.c: Likewise.
36192         * tests/test-popen.h: Likewise.
36193         * tests/test-posixtm.c: Likewise.
36194         * tests/test-pread.c: Likewise.
36195         * tests/test-printf-frexp.c: Likewise.
36196         * tests/test-printf-frexpl.c: Likewise.
36197         * tests/test-printf-posix.c: Likewise.
36198         * tests/test-priv-set.c: Likewise.
36199         * tests/test-quotearg.c: Likewise.
36200         * tests/test-random_r.c: Likewise.
36201         * tests/test-rawmemchr.c: Likewise.
36202         * tests/test-rbtree_list.c: Likewise.
36203         * tests/test-rbtree_oset.c: Likewise.
36204         * tests/test-rbtreehash_list.c: Likewise.
36205         * tests/test-readlink.c: Likewise.
36206         * tests/test-remove.c: Likewise.
36207         * tests/test-rename.c: Likewise.
36208         * tests/test-renameat.c: Likewise.
36209         * tests/test-rmdir.c: Likewise.
36210         * tests/test-round1.c: Likewise.
36211         * tests/test-roundf1.c: Likewise.
36212         * tests/test-roundl.c: Likewise.
36213         * tests/test-safe-alloc.c: Likewise.
36214         * tests/test-sameacls.c: Likewise.
36215         * tests/test-set-mode-acl.c: Likewise.
36216         * tests/test-setenv.c: Likewise.
36217         * tests/test-sigaction.c: Likewise.
36218         * tests/test-signbit.c: Likewise.
36219         * tests/test-sleep.c: Likewise.
36220         * tests/test-snprintf-posix.c: Likewise.
36221         * tests/test-snprintf.c: Likewise.
36222         * tests/test-sprintf-posix.c: Likewise.
36223         * tests/test-stat-time.c: Likewise.
36224         * tests/test-stat.c: Likewise.
36225         * tests/test-strcasestr.c: Likewise.
36226         * tests/test-strchrnul.c: Likewise.
36227         * tests/test-strerror.c: Likewise.
36228         * tests/test-striconv.c: Likewise.
36229         * tests/test-striconveh.c: Likewise.
36230         * tests/test-striconveha.c: Likewise.
36231         * tests/test-strsignal.c: Likewise.
36232         * tests/test-strstr.c: Likewise.
36233         * tests/test-strtod.c: Likewise.
36234         * tests/test-strverscmp.c: Likewise.
36235         * tests/test-symlink.c: Likewise.
36236         * tests/test-symlinkat.c: Likewise.
36237         * tests/test-trunc1.c: Likewise.
36238         * tests/test-trunc2.c: Likewise.
36239         * tests/test-truncf1.c: Likewise.
36240         * tests/test-truncf2.c: Likewise.
36241         * tests/test-truncl.c: Likewise.
36242         * tests/test-uname.c: Likewise.
36243         * tests/test-unlink.c: Likewise.
36244         * tests/test-unlinkat.c: Likewise.
36245         * tests/test-unsetenv.c: Likewise.
36246         * tests/test-usleep.c: Likewise.
36247         * tests/test-utimens.c: Likewise.
36248         * tests/test-utimensat.c: Likewise.
36249         * tests/test-vasnprintf-posix.c: Likewise.
36250         * tests/test-vasnprintf-posix2.c: Likewise.
36251         * tests/test-vasnprintf.c: Likewise.
36252         * tests/test-vasprintf-posix.c: Likewise.
36253         * tests/test-vasprintf.c: Likewise.
36254         * tests/test-vdprintf-posix.c: Likewise.
36255         * tests/test-vfprintf-posix.c: Likewise.
36256         * tests/test-vprintf-posix.c: Likewise.
36257         * tests/test-vsnprintf-posix.c: Likewise.
36258         * tests/test-vsnprintf.c: Likewise.
36259         * tests/test-vsprintf-posix.c: Likewise.
36260         * tests/test-wcrtomb.c: Likewise.
36261         * tests/test-wcsnrtombs.c: Likewise.
36262         * tests/test-wcsrtombs.c: Likewise.
36263         * tests/test-wctype.c: Likewise.
36264         * tests/test-wcwidth.c: Likewise.
36265         * tests/test-xfprintf-posix.c: Likewise.
36266         * tests/test-xmemdup0.c: Likewise.
36267         * tests/test-xprintf-posix.c: Likewise.
36268         * tests/test-xvasprintf.c: Likewise.
36269         * tests/unicase/test-locale-language.c: Likewise.
36270         * tests/unicase/test-mapping-part1.h: Likewise.
36271         * tests/unicase/test-predicate-part1.h: Likewise.
36272         * tests/unicase/test-u8-casecmp.c: Likewise.
36273         * tests/unicase/test-u8-casecoll.c: Likewise.
36274         * tests/unicase/test-u8-casefold.c: Likewise.
36275         * tests/unicase/test-u8-is-cased.c: Likewise.
36276         * tests/unicase/test-u8-is-casefolded.c: Likewise.
36277         * tests/unicase/test-u8-is-lowercase.c: Likewise.
36278         * tests/unicase/test-u8-is-titlecase.c: Likewise.
36279         * tests/unicase/test-u8-is-uppercase.c: Likewise.
36280         * tests/unicase/test-u8-tolower.c: Likewise.
36281         * tests/unicase/test-u8-totitle.c: Likewise.
36282         * tests/unicase/test-u8-toupper.c: Likewise.
36283         * tests/unicase/test-u16-casecmp.c: Likewise.
36284         * tests/unicase/test-u16-casecoll.c: Likewise.
36285         * tests/unicase/test-u16-casefold.c: Likewise.
36286         * tests/unicase/test-u16-is-cased.c: Likewise.
36287         * tests/unicase/test-u16-is-casefolded.c: Likewise.
36288         * tests/unicase/test-u16-is-lowercase.c: Likewise.
36289         * tests/unicase/test-u16-is-titlecase.c: Likewise.
36290         * tests/unicase/test-u16-is-uppercase.c: Likewise.
36291         * tests/unicase/test-u16-tolower.c: Likewise.
36292         * tests/unicase/test-u16-totitle.c: Likewise.
36293         * tests/unicase/test-u16-toupper.c: Likewise.
36294         * tests/unicase/test-u32-casecmp.c: Likewise.
36295         * tests/unicase/test-u32-casecoll.c: Likewise.
36296         * tests/unicase/test-u32-casefold.c: Likewise.
36297         * tests/unicase/test-u32-is-cased.c: Likewise.
36298         * tests/unicase/test-u32-is-casefolded.c: Likewise.
36299         * tests/unicase/test-u32-is-lowercase.c: Likewise.
36300         * tests/unicase/test-u32-is-titlecase.c: Likewise.
36301         * tests/unicase/test-u32-is-uppercase.c: Likewise.
36302         * tests/unicase/test-u32-tolower.c: Likewise.
36303         * tests/unicase/test-u32-totitle.c: Likewise.
36304         * tests/unicase/test-u32-toupper.c: Likewise.
36305         * tests/unicase/test-ulc-casecmp.c: Likewise.
36306         * tests/unicase/test-ulc-casecoll.c: Likewise.
36307         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
36308         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
36309         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
36310         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
36311         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
36312         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
36313         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
36314         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
36315         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
36316         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
36317         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
36318         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
36319         * tests/unictype/test-bidi_byname.c: Likewise.
36320         * tests/unictype/test-bidi_name.c: Likewise.
36321         * tests/unictype/test-bidi_of.c: Likewise.
36322         * tests/unictype/test-bidi_test.c: Likewise.
36323         * tests/unictype/test-block_list.c: Likewise.
36324         * tests/unictype/test-block_of.c: Likewise.
36325         * tests/unictype/test-block_test.c: Likewise.
36326         * tests/unictype/test-categ_and.c: Likewise.
36327         * tests/unictype/test-categ_and_not.c: Likewise.
36328         * tests/unictype/test-categ_byname.c: Likewise.
36329         * tests/unictype/test-categ_name.c: Likewise.
36330         * tests/unictype/test-categ_none.c: Likewise.
36331         * tests/unictype/test-categ_of.c: Likewise.
36332         * tests/unictype/test-categ_or.c: Likewise.
36333         * tests/unictype/test-categ_test_withtable.c: Likewise.
36334         * tests/unictype/test-combining.c: Likewise.
36335         * tests/unictype/test-decdigit.c: Likewise.
36336         * tests/unictype/test-digit.c: Likewise.
36337         * tests/unictype/test-mirror.c: Likewise.
36338         * tests/unictype/test-numeric.c: Likewise.
36339         * tests/unictype/test-pr_byname.c: Likewise.
36340         * tests/unictype/test-pr_test.c: Likewise.
36341         * tests/unictype/test-predicate-part1.h: Likewise.
36342         * tests/unictype/test-scripts.c: Likewise.
36343         * tests/unictype/test-sy_c_ident.c: Likewise.
36344         * tests/unictype/test-sy_java_ident.c: Likewise.
36345         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
36346         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
36347         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
36348         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
36349         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
36350         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
36351         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
36352         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
36353         * tests/uninorm/test-canonical-decomposition.c: Likewise.
36354         * tests/uninorm/test-compat-decomposition.c: Likewise.
36355         * tests/uninorm/test-composition.c: Likewise.
36356         * tests/uninorm/test-decomposing-form.c: Likewise.
36357         * tests/uninorm/test-decomposition.c: Likewise.
36358         * tests/uninorm/test-u8-nfc.c: Likewise.
36359         * tests/uninorm/test-u8-nfd.c: Likewise.
36360         * tests/uninorm/test-u8-nfkc.c: Likewise.
36361         * tests/uninorm/test-u8-nfkd.c: Likewise.
36362         * tests/uninorm/test-u8-normcmp.c: Likewise.
36363         * tests/uninorm/test-u8-normcoll.c: Likewise.
36364         * tests/uninorm/test-u16-nfc.c: Likewise.
36365         * tests/uninorm/test-u16-nfd.c: Likewise.
36366         * tests/uninorm/test-u16-nfkc.c: Likewise.
36367         * tests/uninorm/test-u16-nfkd.c: Likewise.
36368         * tests/uninorm/test-u16-normcmp.c: Likewise.
36369         * tests/uninorm/test-u16-normcoll.c: Likewise.
36370         * tests/uninorm/test-u32-nfc.c: Likewise.
36371         * tests/uninorm/test-u32-nfd.c: Likewise.
36372         * tests/uninorm/test-u32-nfkc.c: Likewise.
36373         * tests/uninorm/test-u32-nfkd.c: Likewise.
36374         * tests/uninorm/test-u32-normalize-big.c: Likewise.
36375         * tests/uninorm/test-u32-normcmp.c: Likewise.
36376         * tests/uninorm/test-u32-normcoll.c: Likewise.
36377         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
36378         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
36379         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
36380         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
36381         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
36382         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
36383         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
36384         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
36385         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
36386         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
36387         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
36388         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
36389         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
36390         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
36391         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
36392         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
36393         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
36394         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
36395         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
36396         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
36397         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
36398         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
36399         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
36400         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
36401         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
36402         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
36403         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
36404         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
36405         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
36406         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
36407         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
36408         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
36409         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
36410         * tests/uniwidth/test-u8-strwidth.c: Likewise.
36411         * tests/uniwidth/test-u8-width.c: Likewise.
36412         * tests/uniwidth/test-u16-strwidth.c: Likewise.
36413         * tests/uniwidth/test-u16-width.c: Likewise.
36414         * tests/uniwidth/test-u32-strwidth.c: Likewise.
36415         * tests/uniwidth/test-u32-width.c: Likewise.
36416         * tests/uniwidth/test-uc_width.c: Likewise.
36417         * tests/uniwidth/test-uc_width2.c: Likewise.
36418         * modules/acl-tests (Files): Add tests/macros.h.
36419         * modules/areadlink-tests (Files): Likewise.
36420         * modules/areadlink-with-size-tests (Files): Likewise.
36421         * modules/areadlinkat-tests (Files): Likewise.
36422         * modules/areadlinkat-with-size-tests (Files): Likewise.
36423         * modules/argmatch-tests (Files): Likewise.
36424         * modules/argv-iter-tests (Files): Likewise.
36425         * modules/array-list-tests (Files): Likewise.
36426         * modules/array-mergesort-tests (Files): Likewise.
36427         * modules/array-oset-tests (Files): Likewise.
36428         * modules/avltree-list-tests (Files): Likewise.
36429         * modules/avltree-oset-tests (Files): Likewise.
36430         * modules/avltreehash-list-tests (Files): Likewise.
36431         * modules/base64-tests (Files): Likewise.
36432         * modules/binary-io-tests (Files): Likewise.
36433         * modules/bitrotate-tests (Files): Likewise.
36434         * modules/btowc-tests (Files): Likewise.
36435         * modules/byteswap-tests (Files): Likewise.
36436         * modules/c-ctype-tests (Files): Likewise.
36437         * modules/c-stack-tests (Files): Likewise.
36438         * modules/c-strcase-tests (Files): Likewise.
36439         * modules/c-strcasestr-tests (Files): Likewise.
36440         * modules/c-strstr-tests (Files): Likewise.
36441         * modules/canonicalize-lgpl-tests (Files): Likewise.
36442         * modules/canonicalize-tests (Files): Likewise.
36443         * modules/carray-list-tests (Files): Likewise.
36444         * modules/ceilf-tests (Files): Likewise.
36445         * modules/ceill-tests (Files): Likewise.
36446         * modules/chown-tests (Files): Likewise.
36447         * modules/cloexec-tests (Files): Likewise.
36448         * modules/copy-file-tests (Files): Likewise.
36449         * modules/count-one-bits-tests (Files): Likewise.
36450         * modules/dprintf-posix-tests (Files): Likewise.
36451         * modules/dup2-tests (Files): Likewise.
36452         * modules/dup3-tests (Files): Likewise.
36453         * modules/duplocale-tests (Files): Likewise.
36454         * modules/fbufmode-tests (Files): Likewise.
36455         * modules/fchdir-tests (Files): Likewise.
36456         * modules/fcntl-safer-tests (Files): Likewise.
36457         * modules/fcntl-tests (Files): Likewise.
36458         * modules/fdopendir-tests (Files): Likewise.
36459         * modules/fdutimensat-tests (Files): Likewise.
36460         * modules/fflush-tests (Files): Likewise.
36461         * modules/filevercmp-tests (Files): Likewise.
36462         * modules/flock-tests (Files): Likewise.
36463         * modules/floorf-tests (Files): Likewise.
36464         * modules/floorl-tests (Files): Likewise.
36465         * modules/fnmatch-tests (Files): Likewise.
36466         * modules/fopen-safer-tests (Files): Likewise.
36467         * modules/fopen-tests (Files): Likewise.
36468         * modules/fpending-tests (Files): Likewise.
36469         * modules/fprintf-posix-tests (Files): Likewise.
36470         * modules/fpurge-tests (Files): Likewise.
36471         * modules/freadable-tests (Files): Likewise.
36472         * modules/freadahead-tests (Files): Likewise.
36473         * modules/freading-tests (Files): Likewise.
36474         * modules/freadptr-tests (Files): Likewise.
36475         * modules/freadseek-tests (Files): Likewise.
36476         * modules/freopen-tests (Files): Likewise.
36477         * modules/frexp-nolibm-tests (Files): Likewise.
36478         * modules/frexp-tests (Files): Likewise.
36479         * modules/frexpl-nolibm-tests (Files): Likewise.
36480         * modules/frexpl-tests (Files): Likewise.
36481         * modules/fseek-tests (Files): Likewise.
36482         * modules/fseeko-tests (Files): Likewise.
36483         * modules/fstrcmp-tests (Files): Likewise.
36484         * modules/fsync-tests (Files): Likewise.
36485         * modules/ftell-tests (Files): Likewise.
36486         * modules/ftello-tests (Files): Likewise.
36487         * modules/func-tests (Files): Likewise.
36488         * modules/futimens-tests (Files): Likewise.
36489         * modules/fwritable-tests (Files): Likewise.
36490         * modules/fwriting-tests (Files): Likewise.
36491         * modules/getcwd-tests (Files): Likewise.
36492         * modules/getdate-tests (Files): Likewise.
36493         * modules/getdelim-tests (Files): Likewise.
36494         * modules/getdtablesize-tests (Files): Likewise.
36495         * modules/getgroups-tests (Files): Likewise.
36496         * modules/getline-tests (Files): Likewise.
36497         * modules/getndelim2-tests (Files): Likewise.
36498         * modules/glob-tests (Files): Likewise.
36499         * modules/hash-tests (Files): Likewise.
36500         * modules/i-ring-tests (Files): Likewise.
36501         * modules/iconv-tests (Files): Likewise.
36502         * modules/iconv_open-utf-tests (Files): Likewise.
36503         * modules/idpriv-drop-tests (Files): Likewise.
36504         * modules/idpriv-droptemp-tests (Files): Likewise.
36505         * modules/inet_ntop-tests (Files): Likewise.
36506         * modules/inet_pton-tests (Files): Likewise.
36507         * modules/isblank-tests (Files): Likewise.
36508         * modules/isfinite-tests (Files): Likewise.
36509         * modules/isinf-tests (Files): Likewise.
36510         * modules/isnan-tests (Files): Likewise.
36511         * modules/isnand-nolibm-tests (Files): Likewise.
36512         * modules/isnand-tests (Files): Likewise.
36513         * modules/isnanf-nolibm-tests (Files): Likewise.
36514         * modules/isnanf-tests (Files): Likewise.
36515         * modules/isnanl-nolibm-tests (Files): Likewise.
36516         * modules/isnanl-tests (Files): Likewise.
36517         * modules/lchown-tests (Files): Likewise.
36518         * modules/ldexpl-tests (Files): Likewise.
36519         * modules/link-tests (Files): Likewise.
36520         * modules/linkat-tests (Files): Likewise.
36521         * modules/linked-list-tests (Files): Likewise.
36522         * modules/linkedhash-list-tests (Files): Likewise.
36523         * modules/localename-tests (Files): Likewise.
36524         * modules/lseek-tests (Files): Likewise.
36525         * modules/lstat-tests (Files): Likewise.
36526         * modules/mbmemcasecmp-tests (Files): Likewise.
36527         * modules/mbmemcasecoll-tests (Files): Likewise.
36528         * modules/mbrtowc-tests (Files): Likewise.
36529         * modules/mbscasecmp-tests (Files): Likewise.
36530         * modules/mbscasestr-tests (Files): Likewise.
36531         * modules/mbschr-tests (Files): Likewise.
36532         * modules/mbscspn-tests (Files): Likewise.
36533         * modules/mbsinit-tests (Files): Likewise.
36534         * modules/mbsncasecmp-tests (Files): Likewise.
36535         * modules/mbsnrtowcs-tests (Files): Likewise.
36536         * modules/mbspbrk-tests (Files): Likewise.
36537         * modules/mbspcasecmp-tests (Files): Likewise.
36538         * modules/mbsrchr-tests (Files): Likewise.
36539         * modules/mbsrtowcs-tests (Files): Likewise.
36540         * modules/mbsspn-tests (Files): Likewise.
36541         * modules/mbsstr-tests (Files): Likewise.
36542         * modules/memchr-tests (Files): Likewise.
36543         * modules/memchr2-tests (Files): Likewise.
36544         * modules/memcmp-tests (Files): Likewise.
36545         * modules/memmem-tests (Files): Likewise.
36546         * modules/memrchr-tests (Files): Likewise.
36547         * modules/mkdir-tests (Files): Likewise.
36548         * modules/mkfifo-tests (Files): Likewise.
36549         * modules/mkfifoat-tests (Files): Likewise.
36550         * modules/mknod-tests (Files): Likewise.
36551         * modules/nanosleep-tests (Files): Likewise.
36552         * modules/nl_langinfo-tests (Files): Likewise.
36553         * modules/obstack-printf-tests (Files): Likewise.
36554         * modules/open-tests (Files): Likewise.
36555         * modules/openat-tests (Files): Likewise.
36556         * modules/pipe-filter-gi-tests (Files): Likewise.
36557         * modules/pipe-filter-ii-tests (Files): Likewise.
36558         * modules/pipe2-tests (Files): Likewise.
36559         * modules/popen-safer-tests (Files): Likewise.
36560         * modules/popen-tests (Files): Likewise.
36561         * modules/posixtm-tests (Files): Likewise.
36562         * modules/pread-tests (Files): Likewise.
36563         * modules/printf-frexp-tests (Files): Likewise.
36564         * modules/printf-frexpl-tests (Files): Likewise.
36565         * modules/printf-posix-tests (Files): Likewise.
36566         * modules/priv-set-tests (Files): Likewise.
36567         * modules/quotearg-tests (Files): Likewise.
36568         * modules/random_r-tests (Files): Likewise.
36569         * modules/rawmemchr-tests (Files): Likewise.
36570         * modules/rbtree-list-tests (Files): Likewise.
36571         * modules/rbtree-oset-tests (Files): Likewise.
36572         * modules/rbtreehash-list-tests (Files): Likewise.
36573         * modules/readlink-tests (Files): Likewise.
36574         * modules/remove-tests (Files): Likewise.
36575         * modules/rename-tests (Files): Likewise.
36576         * modules/renameat-tests (Files): Likewise.
36577         * modules/rmdir-tests (Files): Likewise.
36578         * modules/round-tests (Files): Likewise.
36579         * modules/roundf-tests (Files): Likewise.
36580         * modules/roundl-tests (Files): Likewise.
36581         * modules/safe-alloc-tests (Files): Likewise.
36582         * modules/setenv-tests (Files): Likewise.
36583         * modules/sigaction-tests (Files): Likewise.
36584         * modules/signbit-tests (Files): Likewise.
36585         * modules/sleep-tests (Files): Likewise.
36586         * modules/snprintf-posix-tests (Files): Likewise.
36587         * modules/snprintf-tests (Files): Likewise.
36588         * modules/sprintf-posix-tests (Files): Likewise.
36589         * modules/stat-tests (Files): Likewise.
36590         * modules/stat-time-tests (Files): Likewise.
36591         * modules/strcasestr-tests (Files): Likewise.
36592         * modules/strchrnul-tests (Files): Likewise.
36593         * modules/strerror-tests (Files): Likewise.
36594         * modules/striconv-tests (Files): Likewise.
36595         * modules/striconveh-tests (Files): Likewise.
36596         * modules/striconveha-tests (Files): Likewise.
36597         * modules/strsignal-tests (Files): Likewise.
36598         * modules/strstr-tests (Files): Likewise.
36599         * modules/strtod-tests (Files): Likewise.
36600         * modules/strverscmp-tests (Files): Likewise.
36601         * modules/symlink-tests (Files): Likewise.
36602         * modules/symlinkat-tests (Files): Likewise.
36603         * modules/trunc-tests (Files): Likewise.
36604         * modules/truncf-tests (Files): Likewise.
36605         * modules/truncl-tests (Files): Likewise.
36606         * modules/uname-tests (Files): Likewise.
36607         * modules/unicase/cased-tests (Files): Likewise.
36608         * modules/unicase/ignorable-tests (Files): Likewise.
36609         * modules/unicase/locale-language-tests (Files): Likewise.
36610         * modules/unicase/tolower-tests (Files): Likewise.
36611         * modules/unicase/totitle-tests (Files): Likewise.
36612         * modules/unicase/toupper-tests (Files): Likewise.
36613         * modules/unicase/u8-casecmp-tests (Files): Likewise.
36614         * modules/unicase/u8-casecoll-tests (Files): Likewise.
36615         * modules/unicase/u8-casefold-tests (Files): Likewise.
36616         * modules/unicase/u8-is-cased-tests (Files): Likewise.
36617         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
36618         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
36619         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
36620         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
36621         * modules/unicase/u8-tolower-tests (Files): Likewise.
36622         * modules/unicase/u8-totitle-tests (Files): Likewise.
36623         * modules/unicase/u8-toupper-tests (Files): Likewise.
36624         * modules/unicase/u16-casecmp-tests (Files): Likewise.
36625         * modules/unicase/u16-casecoll-tests (Files): Likewise.
36626         * modules/unicase/u16-casefold-tests (Files): Likewise.
36627         * modules/unicase/u16-is-cased-tests (Files): Likewise.
36628         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
36629         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
36630         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
36631         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
36632         * modules/unicase/u16-tolower-tests (Files): Likewise.
36633         * modules/unicase/u16-totitle-tests (Files): Likewise.
36634         * modules/unicase/u16-toupper-tests (Files): Likewise.
36635         * modules/unicase/u32-casecmp-tests (Files): Likewise.
36636         * modules/unicase/u32-casecoll-tests (Files): Likewise.
36637         * modules/unicase/u32-casefold-tests (Files): Likewise.
36638         * modules/unicase/u32-is-cased-tests (Files): Likewise.
36639         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
36640         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
36641         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
36642         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
36643         * modules/unicase/u32-tolower-tests (Files): Likewise.
36644         * modules/unicase/u32-totitle-tests (Files): Likewise.
36645         * modules/unicase/u32-toupper-tests (Files): Likewise.
36646         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
36647         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
36648         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
36649         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
36650         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
36651         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
36652         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
36653         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
36654         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
36655         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
36656         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
36657         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
36658         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
36659         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
36660         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
36661         * modules/unictype/bidicategory-name-tests (Files): Likewise.
36662         * modules/unictype/bidicategory-of-tests (Files): Likewise.
36663         * modules/unictype/bidicategory-test-tests (Files): Likewise.
36664         * modules/unictype/block-list-tests (Files): Likewise.
36665         * modules/unictype/block-of-tests (Files): Likewise.
36666         * modules/unictype/block-test-tests (Files): Likewise.
36667         * modules/unictype/category-C-tests (Files): Likewise.
36668         * modules/unictype/category-Cc-tests (Files): Likewise.
36669         * modules/unictype/category-Cf-tests (Files): Likewise.
36670         * modules/unictype/category-Cn-tests (Files): Likewise.
36671         * modules/unictype/category-Co-tests (Files): Likewise.
36672         * modules/unictype/category-Cs-tests (Files): Likewise.
36673         * modules/unictype/category-L-tests (Files): Likewise.
36674         * modules/unictype/category-Ll-tests (Files): Likewise.
36675         * modules/unictype/category-Lm-tests (Files): Likewise.
36676         * modules/unictype/category-Lo-tests (Files): Likewise.
36677         * modules/unictype/category-Lt-tests (Files): Likewise.
36678         * modules/unictype/category-Lu-tests (Files): Likewise.
36679         * modules/unictype/category-M-tests (Files): Likewise.
36680         * modules/unictype/category-Mc-tests (Files): Likewise.
36681         * modules/unictype/category-Me-tests (Files): Likewise.
36682         * modules/unictype/category-Mn-tests (Files): Likewise.
36683         * modules/unictype/category-N-tests (Files): Likewise.
36684         * modules/unictype/category-Nd-tests (Files): Likewise.
36685         * modules/unictype/category-Nl-tests (Files): Likewise.
36686         * modules/unictype/category-No-tests (Files): Likewise.
36687         * modules/unictype/category-P-tests (Files): Likewise.
36688         * modules/unictype/category-Pc-tests (Files): Likewise.
36689         * modules/unictype/category-Pd-tests (Files): Likewise.
36690         * modules/unictype/category-Pe-tests (Files): Likewise.
36691         * modules/unictype/category-Pf-tests (Files): Likewise.
36692         * modules/unictype/category-Pi-tests (Files): Likewise.
36693         * modules/unictype/category-Po-tests (Files): Likewise.
36694         * modules/unictype/category-Ps-tests (Files): Likewise.
36695         * modules/unictype/category-S-tests (Files): Likewise.
36696         * modules/unictype/category-Sc-tests (Files): Likewise.
36697         * modules/unictype/category-Sk-tests (Files): Likewise.
36698         * modules/unictype/category-Sm-tests (Files): Likewise.
36699         * modules/unictype/category-So-tests (Files): Likewise.
36700         * modules/unictype/category-Z-tests (Files): Likewise.
36701         * modules/unictype/category-Zl-tests (Files): Likewise.
36702         * modules/unictype/category-Zp-tests (Files): Likewise.
36703         * modules/unictype/category-Zs-tests (Files): Likewise.
36704         * modules/unictype/category-and-not-tests (Files): Likewise.
36705         * modules/unictype/category-and-tests (Files): Likewise.
36706         * modules/unictype/category-byname-tests (Files): Likewise.
36707         * modules/unictype/category-name-tests (Files): Likewise.
36708         * modules/unictype/category-none-tests (Files): Likewise.
36709         * modules/unictype/category-of-tests (Files): Likewise.
36710         * modules/unictype/category-or-tests (Files): Likewise.
36711         * modules/unictype/category-test-withtable-tests (Files): Likewise.
36712         * modules/unictype/combining-class-tests (Files): Likewise.
36713         * modules/unictype/ctype-alnum-tests (Files): Likewise.
36714         * modules/unictype/ctype-alpha-tests (Files): Likewise.
36715         * modules/unictype/ctype-blank-tests (Files): Likewise.
36716         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
36717         * modules/unictype/ctype-digit-tests (Files): Likewise.
36718         * modules/unictype/ctype-graph-tests (Files): Likewise.
36719         * modules/unictype/ctype-lower-tests (Files): Likewise.
36720         * modules/unictype/ctype-print-tests (Files): Likewise.
36721         * modules/unictype/ctype-punct-tests (Files): Likewise.
36722         * modules/unictype/ctype-space-tests (Files): Likewise.
36723         * modules/unictype/ctype-upper-tests (Files): Likewise.
36724         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
36725         * modules/unictype/decimal-digit-tests (Files): Likewise.
36726         * modules/unictype/digit-tests (Files): Likewise.
36727         * modules/unictype/mirror-tests (Files): Likewise.
36728         * modules/unictype/numeric-tests (Files): Likewise.
36729         * modules/unictype/property-alphabetic-tests (Files): Likewise.
36730         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
36731         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
36732         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
36733         Likewise.
36734         * modules/unictype/property-bidi-block-separator-tests (Files):
36735         Likewise.
36736         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
36737         Likewise.
36738         * modules/unictype/property-bidi-common-separator-tests (Files):
36739         Likewise.
36740         * modules/unictype/property-bidi-control-tests (Files): Likewise.
36741         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
36742         Likewise.
36743         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
36744         Likewise.
36745         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
36746         Likewise.
36747         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
36748         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
36749         Likewise.
36750         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
36751         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
36752         Likewise.
36753         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
36754         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
36755         * modules/unictype/property-bidi-segment-separator-tests (Files):
36756         Likewise.
36757         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
36758         * modules/unictype/property-byname-tests (Files): Likewise.
36759         * modules/unictype/property-combining-tests (Files): Likewise.
36760         * modules/unictype/property-composite-tests (Files): Likewise.
36761         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
36762         * modules/unictype/property-dash-tests (Files): Likewise.
36763         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
36764         * modules/unictype/property-default-ignorable-code-point-tests (Files):
36765         Likewise.
36766         * modules/unictype/property-deprecated-tests (Files): Likewise.
36767         * modules/unictype/property-diacritic-tests (Files): Likewise.
36768         * modules/unictype/property-extender-tests (Files): Likewise.
36769         * modules/unictype/property-format-control-tests (Files): Likewise.
36770         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
36771         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
36772         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
36773         * modules/unictype/property-hex-digit-tests (Files): Likewise.
36774         * modules/unictype/property-hyphen-tests (Files): Likewise.
36775         * modules/unictype/property-id-continue-tests (Files): Likewise.
36776         * modules/unictype/property-id-start-tests (Files): Likewise.
36777         * modules/unictype/property-ideographic-tests (Files): Likewise.
36778         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
36779         * modules/unictype/property-ids-trinary-operator-tests (Files):
36780         Likewise.
36781         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
36782         * modules/unictype/property-iso-control-tests (Files): Likewise.
36783         * modules/unictype/property-join-control-tests (Files): Likewise.
36784         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
36785         * modules/unictype/property-line-separator-tests (Files): Likewise.
36786         * modules/unictype/property-logical-order-exception-tests (Files):
36787         Likewise.
36788         * modules/unictype/property-lowercase-tests (Files): Likewise.
36789         * modules/unictype/property-math-tests (Files): Likewise.
36790         * modules/unictype/property-non-break-tests (Files): Likewise.
36791         * modules/unictype/property-not-a-character-tests (Files): Likewise.
36792         * modules/unictype/property-numeric-tests (Files): Likewise.
36793         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
36794         * modules/unictype/property-other-default-ignorable-code-point-tests
36795         (Files): Likewise.
36796         * modules/unictype/property-other-grapheme-extend-tests (Files):
36797         Likewise.
36798         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
36799         * modules/unictype/property-other-id-start-tests (Files): Likewise.
36800         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
36801         * modules/unictype/property-other-math-tests (Files): Likewise.
36802         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
36803         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
36804         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
36805         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
36806         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
36807         * modules/unictype/property-private-use-tests (Files): Likewise.
36808         * modules/unictype/property-punctuation-tests (Files): Likewise.
36809         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
36810         * modules/unictype/property-radical-tests (Files): Likewise.
36811         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
36812         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
36813         * modules/unictype/property-space-tests (Files): Likewise.
36814         * modules/unictype/property-terminal-punctuation-tests (Files):
36815         Likewise.
36816         * modules/unictype/property-test-tests (Files): Likewise.
36817         * modules/unictype/property-titlecase-tests (Files): Likewise.
36818         * modules/unictype/property-unassigned-code-value-tests (Files):
36819         Likewise.
36820         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
36821         * modules/unictype/property-uppercase-tests (Files): Likewise.
36822         * modules/unictype/property-variation-selector-tests (Files): Likewise.
36823         * modules/unictype/property-white-space-tests (Files): Likewise.
36824         * modules/unictype/property-xid-continue-tests (Files): Likewise.
36825         * modules/unictype/property-xid-start-tests (Files): Likewise.
36826         * modules/unictype/property-zero-width-tests (Files): Likewise.
36827         * modules/unictype/scripts-tests (Files): Likewise.
36828         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
36829         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
36830         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
36831         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
36832         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
36833         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
36834         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
36835         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
36836         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
36837         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
36838         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
36839         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
36840         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
36841         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
36842         * modules/uninorm/composition-tests (Files): Likewise.
36843         * modules/uninorm/decomposing-form-tests (Files): Likewise.
36844         * modules/uninorm/decomposition-tests (Files): Likewise.
36845         * modules/uninorm/filter-tests (Files): Likewise.
36846         * modules/uninorm/nfc-tests (Files): Likewise.
36847         * modules/uninorm/nfd-tests (Files): Likewise.
36848         * modules/uninorm/nfkc-tests (Files): Likewise.
36849         * modules/uninorm/nfkd-tests (Files): Likewise.
36850         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
36851         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
36852         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
36853         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
36854         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
36855         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
36856         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
36857         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
36858         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
36859         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
36860         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
36861         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
36862         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
36863         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
36864         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
36865         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
36866         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
36867         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
36868         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
36869         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
36870         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
36871         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
36872         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
36873         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
36874         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
36875         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
36876         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
36877         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
36878         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
36879         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
36880         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
36881         * modules/uniwidth/u8-width-tests (Files): Likewise.
36882         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
36883         * modules/uniwidth/u16-width-tests (Files): Likewise.
36884         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
36885         * modules/uniwidth/u32-width-tests (Files): Likewise.
36886         * modules/uniwidth/width-tests (Files): Likewise.
36887         * modules/unlink-tests (Files): Likewise.
36888         * modules/unsetenv-tests (Files): Likewise.
36889         * modules/usleep-tests (Files): Likewise.
36890         * modules/utimens-tests (Files): Likewise.
36891         * modules/utimensat-tests (Files): Likewise.
36892         * modules/vasnprintf-posix-tests (Files): Likewise.
36893         * modules/vasnprintf-tests (Files): Likewise.
36894         * modules/vasprintf-posix-tests (Files): Likewise.
36895         * modules/vasprintf-tests (Files): Likewise.
36896         * modules/vdprintf-posix-tests (Files): Likewise.
36897         * modules/vfprintf-posix-tests (Files): Likewise.
36898         * modules/vprintf-posix-tests (Files): Likewise.
36899         * modules/vsnprintf-posix-tests (Files): Likewise.
36900         * modules/vsnprintf-tests (Files): Likewise.
36901         * modules/vsprintf-posix-tests (Files): Likewise.
36902         * modules/wcrtomb-tests (Files): Likewise.
36903         * modules/wcsnrtombs-tests (Files): Likewise.
36904         * modules/wcsrtombs-tests (Files): Likewise.
36905         * modules/wctype-tests (Files): Likewise.
36906         * modules/wcwidth-tests (Files): Likewise.
36907         * modules/xmemdup0-tests (Files): Likewise.
36908         * modules/xprintf-posix-tests (Files): Likewise.
36909         * modules/xvasprintf-tests (Files): Likewise.
36910
36911 2009-12-24  Eric Blake  <ebb9@byu.net>
36912
36913         test-nanosleep: fix typo
36914         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
36915         patch.
36916         Reported by Bruno Haible.
36917
36918 2009-12-24  Bruno Haible  <bruno@clisp.org>
36919
36920         Reduce namespace pollution on glibc systems.
36921         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
36922         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
36923         systems.
36924         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
36925         <getopt.h> on glibc systems.
36926         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
36927         systems.
36928         * lib/fcntl.c: Include <unistd.h> here instead.
36929
36930 2009-12-24  Bruno Haible  <bruno@clisp.org>
36931
36932         * lib/stdlib.in.h (includes): Fix typo in today's commit.
36933
36934 2009-12-24  Eric Blake  <ebb9@byu.net>
36935
36936         tests: add signature checks
36937         * tests/signature.h (SIGNATURE_CHECK): New file.
36938         * modules/atexit-tests (Files): Use it.
36939         * modules/btowc-tests (Files): Likewise.
36940         * modules/canonicalize-lgpl-tests (Files): Likewise.
36941         * modules/ceilf-tests (Files): Likewise.
36942         * modules/ceill-tests (Files): Likewise.
36943         * modules/chown-tests (Files): Likewise.
36944         * modules/dprintf-posix-tests (Files): Likewise.
36945         * modules/dup2-tests (Files): Likewise.
36946         * modules/dup3-tests (Files): Likewise.
36947         * modules/duplocale-tests (Files): Likewise.
36948         * modules/fchdir-tests (Files): Likewise.
36949         * modules/fcntl-tests (Files): Likewise.
36950         * modules/fdopendir-tests (Files): Likewise.
36951         * modules/fflush-tests (Files): Likewise.
36952         * modules/flock-tests (Files): Likewise.
36953         * modules/floorf-tests (Files): Likewise.
36954         * modules/floorl-tests (Files): Likewise.
36955         * modules/fnmatch-tests (Files): Likewise.
36956         * modules/fopen-tests (Files): Likewise.
36957         * modules/fprintf-posix-tests (Files): Likewise.
36958         * modules/freopen-tests (Files): Likewise.
36959         * modules/frexp-nolibm-tests (Files): Likewise.
36960         * modules/frexp-tests (Files): Likewise.
36961         * modules/frexpl-nolibm-tests (Files): Likewise.
36962         * modules/frexpl-tests (Files): Likewise.
36963         * modules/fseek-tests (Files): Likewise.
36964         * modules/fseeko-tests (Files): Likewise.
36965         * modules/fsync-tests (Files): Likewise.
36966         * modules/ftell-tests (Files): Likewise.
36967         * modules/ftello-tests (Files): Likewise.
36968         * modules/futimens-tests (Files): Likewise.
36969         * modules/getaddrinfo-tests (Files): Likewise.
36970         * modules/getcwd-tests (Files): Likewise.
36971         * modules/getdelim-tests (Files): Likewise.
36972         * modules/getdtablesize-tests (Files): Likewise.
36973         * modules/getgroups-tests (Files): Likewise.
36974         * modules/gethostname-tests (Files): Likewise.
36975         * modules/getline-tests (Files): Likewise.
36976         * modules/getopt-posix-tests (Files): Likewise.
36977         * modules/gettimeofday-tests (Files): Likewise.
36978         * modules/glob-tests (Files): Likewise.
36979         * modules/iconv-tests (Files): Likewise.
36980         * modules/inet_ntop-tests (Files): Likewise.
36981         * modules/inet_pton-tests (Files): Likewise.
36982         * modules/isblank-tests (Files): Likewise.
36983         * modules/lchown-tests (Files): Likewise.
36984         * modules/ldexpl-tests (Files): Likewise.
36985         * modules/link-tests (Files): Likewise.
36986         * modules/linkat-tests (Files): Likewise.
36987         * modules/lseek-tests (Files): Likewise.
36988         * modules/lstat-tests (Files): Likewise.
36989         * modules/mbrtowc-tests (Files): Likewise.
36990         * modules/mbsinit-tests (Files): Likewise.
36991         * modules/mbsnrtowcs-tests (Files): Likewise.
36992         * modules/mbsrtowcs-tests (Files): Likewise.
36993         * modules/memchr-tests (Files): Likewise.
36994         * modules/memcmp-tests (Files): Likewise.
36995         * modules/memmem-tests (Files): Likewise.
36996         * modules/memrchr-tests (Files): Likewise.
36997         * modules/mkdir-tests (Files): Likewise.
36998         * modules/mkfifo-tests (Files): Likewise.
36999         * modules/mkfifoat-tests (Files): Likewise.
37000         * modules/mknod-tests (Files): Likewise.
37001         * modules/nanosleep-tests (Files): Likewise.
37002         * modules/nl_langinfo-tests (Files): Likewise.
37003         * modules/obstack-printf-tests (Files): Likewise.
37004         * modules/open-tests (Files): Likewise.
37005         * modules/openat-tests (Files): Likewise.
37006         * modules/perror-tests (Files): Likewise.
37007         * modules/pipe2-tests (Files): Likewise.
37008         * modules/poll-tests (Files): Likewise.
37009         * modules/popen-tests (Files): Likewise.
37010         * modules/posix_spawn-tests (Files): Likewise.
37011         * modules/posix_spawnp-tests (Files): Likewise.
37012         * modules/pread-tests (Files): Likewise.
37013         * modules/printf-posix-tests (Files): Likewise.
37014         * modules/pty-tests (Files): Likewise.
37015         * modules/random_r-tests (Files): Likewise.
37016         * modules/rawmemchr-tests (Files): Likewise.
37017         * modules/readlink-tests (Files): Likewise.
37018         * modules/remove-tests (Files): Likewise.
37019         * modules/rename-tests (Files): Likewise.
37020         * modules/renameat-tests (Files): Likewise.
37021         * modules/rmdir-tests (Files): Likewise.
37022         * modules/round-tests (Files): Likewise.
37023         * modules/roundf-tests (Files): Likewise.
37024         * modules/roundl-tests (Files): Likewise.
37025         * modules/select-tests (Files): Likewise.
37026         * modules/setenv-tests (Files): Likewise.
37027         * modules/sigaction-tests (Files): Likewise.
37028         * modules/sleep-tests (Files): Likewise.
37029         * modules/snprintf-posix-tests (Files): Likewise.
37030         * modules/snprintf-tests (Files): Likewise.
37031         * modules/sprintf-posix-tests (Files): Likewise.
37032         * modules/stat-tests (Files): Likewise.
37033         * modules/strcasestr-tests (Files): Likewise.
37034         * modules/strchrnul-tests (Files): Likewise.
37035         * modules/strerror-tests (Files): Likewise.
37036         * modules/strsignal-tests (Files): Likewise.
37037         * modules/strstr-tests (Files): Likewise.
37038         * modules/strtod-tests (Files): Likewise.
37039         * modules/strverscmp-tests (Files): Likewise.
37040         * modules/symlink-tests (Files): Likewise.
37041         * modules/symlinkat-tests (Files): Likewise.
37042         * modules/times-tests (Files): Likewise.
37043         * modules/trunc-tests (Files): Likewise.
37044         * modules/truncf-tests (Files): Likewise.
37045         * modules/truncl-tests (Files): Likewise.
37046         * modules/tsearch-tests (Files): Likewise.
37047         * modules/uname-tests (Files): Likewise.
37048         * modules/unlink-tests (Files): Likewise.
37049         * modules/unsetenv-tests (Files): Likewise.
37050         * modules/usleep-tests (Files): Likewise.
37051         * modules/utimensat-tests (Files): Likewise.
37052         * modules/vasprintf-tests (Files): Likewise.
37053         * modules/vdprintf-posix-tests (Files): Likewise.
37054         * modules/vfprintf-posix-tests (Files): Likewise.
37055         * modules/vprintf-posix-tests (Files): Likewise.
37056         * modules/vsnprintf-posix-tests (Files): Likewise.
37057         * modules/vsnprintf-tests (Files): Likewise.
37058         * modules/vsprintf-posix-tests (Files): Likewise.
37059         * modules/wcrtomb-tests (Files): Likewise.
37060         * modules/wcsnrtombs-tests (Files): Likewise.
37061         * modules/wcsrtombs-tests (Files): Likewise.
37062         * modules/wcwidth-tests (Files): Likewise.
37063         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
37064         * tests/test-isinf.c (isinf): Likewise.
37065         * tests/test-isnan.c (isnan): Likewise.
37066         * tests/test-signbit.c (signbit): Likewise.
37067         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
37068         declaration, either as macro or with correct signature.
37069         (select): Ensure function under test is declared with correct
37070         signature in correct header.
37071         * tests/test-atexit.c (atexit): Likewise.
37072         * tests/test-btowc.c (btowc): Likewise.
37073         * tests/test-canonicalize-lgpl.c (realpath)
37074         (canonicalize_file_name): Likewise.
37075         * tests/test-ceilf1.c (ceilf): Likewise.
37076         * tests/test-ceill.c (ceill): Likewise.
37077         * tests/test-chown.c (chown): Likewise.
37078         * tests/test-dprintf-posix.c (dprintf): Likewise.
37079         * tests/test-dup2.c (dup2): Likewise.
37080         * tests/test-dup3.c (dup3): Likewise.
37081         * tests/test-duplocale.c (duplocale): Likewise.
37082         * tests/test-fchdir.c (fchdir): Likewise.
37083         * tests/test-fchownat.c (fchownat): Likewise.
37084         * tests/test-fcntl.c (fcntl): Likewise.
37085         * tests/test-fdopendir.c (fdopendir): Likewise.
37086         * tests/test-fflush.c (fflush): Likewise.
37087         * tests/test-flock.c (flock): Likewise.
37088         * tests/test-floorf1.c (floorf): Likewise.
37089         * tests/test-floorl.c (floorl): Likewise.
37090         * tests/test-fnmatch.c (fnmatch): Likewise.
37091         * tests/test-fopen.c (fopen): Likewise.
37092         * tests/test-fprintf-posix.c (fprintf): Likewise.
37093         * tests/test-freopen.c (freopen): Likewise.
37094         * tests/test-frexp.c (frexp): Likewise.
37095         * tests/test-frexpl.c (frexpl): Likewise.
37096         * tests/test-fseek.c (fseek): Likewise.
37097         * tests/test-fseeko.c (fseeko): Likewise.
37098         * tests/test-fstatat.c (fstatat): Likewise.
37099         * tests/test-fsync.c (fsync): Likewise.
37100         * tests/test-ftell.c (ftell): Likewise.
37101         * tests/test-ftello.c (ftello): Likewise.
37102         * tests/test-futimens.c (futimens): Likewise.
37103         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
37104         (gai_strerror): Likewise.
37105         * tests/test-getcwd.c (getcwd): Likewise.
37106         * tests/test-getdelim.c (getdelim): Likewise.
37107         * tests/test-getdtablesize.c (getdtablesize): Likewise.
37108         * tests/test-getgroups.c (getgroups): Likewise.
37109         * tests/test-gethostname.c (gethostname): Likewise.
37110         * tests/test-getline.c (getline): Likewise.
37111         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
37112         Likewise.
37113         * tests/test-gettimeofday.c (gettimeofday): Likewise.
37114         * tests/test-glob.c (glob, globfree): Likewise.
37115         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
37116         * tests/test-inet_ntop.c (inet_ntop): Likewise.
37117         * tests/test-inet_pton.c (inet_pton): Likewise.
37118         * tests/test-isblank.c (isblank): Likewise.
37119         * tests/test-lchown.c (lchown): Likewise.
37120         * tests/test-ldexpl.c (ldexpl): Likewise.
37121         * tests/test-link.c (link): Likewise.
37122         * tests/test-linkat.c (linkat): Likewise.
37123         * tests/test-lseek.c (lseek): Likewise.
37124         * tests/test-lstat.c (lstat): Likewise.
37125         * tests/test-mbrtowc.c (mbrtowc): Likewise.
37126         * tests/test-mbsinit.c (mbsinit): Likewise.
37127         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
37128         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
37129         * tests/test-memchr.c (memchr): Likewise.
37130         * tests/test-memcmp.c (memcmp): Likewise.
37131         * tests/test-memmem.c (memmem): Likewise.
37132         * tests/test-memrchr.c (memrchr): Likewise.
37133         * tests/test-mkdir.c (mkdir): Likewise.
37134         * tests/test-mkdirat.c (mkdirat): Likewise.
37135         * tests/test-mkfifo.c (mkfifo): Likewise.
37136         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
37137         * tests/test-mknod.c (mknod): Likewise.
37138         * tests/test-nanosleep.c (nanosleep): Likewise.
37139         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
37140         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
37141         Likewise.
37142         * tests/test-open.c (open): Likewise.
37143         * tests/test-openat.c (openat): Likewise.
37144         * tests/test-perror.c (perror): Likewise.
37145         * tests/test-pipe2.c (pipe2): Likewise.
37146         * tests/test-poll.c (poll): Likewise.
37147         * tests/test-popen.c (popen, pclose): Likewise.
37148         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
37149         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
37150         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
37151         (posix_spawn_file_actions_destroy)
37152         (posix_spawn_file_actions_addclose)
37153         (posix_spawn_file_actions_addopen)
37154         (posix_spawn_file_actions_adddup2): Likewise.
37155         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
37156         * tests/test-pread.c (pread): Likewise.
37157         * tests/test-printf-posix.c (printf): Likewise.
37158         * tests/test-pty.c (openpty, forkpty): Likewise.
37159         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
37160         (random_r): Likewise.
37161         * tests/test-rawmemchr.c (rawmemchr): Likewise.
37162         * tests/test-readlink.c (readlink): Likewise.
37163         * tests/test-remove.c (remove): Likewise.
37164         * tests/test-rename.c (rename): Likewise.
37165         * tests/test-renameat.c (renameat): Likewise.
37166         * tests/test-rmdir.c (rmdir): Likewise.
37167         * tests/test-round1.c (round): Likewise.
37168         * tests/test-roundf1.c (roundf): Likewise.
37169         * tests/test-roundl.c (roundl): Likewise.
37170         * tests/test-setenv.c (setenv): Likewise.
37171         * tests/test-sigaction.c (sigaction): Likewise.
37172         * tests/test-sleep.c (sleep): Likewise.
37173         * tests/test-snprintf.c (snprintf): Likewise.
37174         * tests/test-sprintf-posix.c (sprintf): Likewise.
37175         * tests/test-stat.c (stat): Likewise.
37176         * tests/test-stpncpy.c (stpncpy): Likewise.
37177         * tests/test-strcasestr.c (strcasestr): Likewise.
37178         * tests/test-strchrnul.c (strchrnul): Likewise.
37179         * tests/test-strerror.c (strerror): Likewise.
37180         * tests/test-strsignal.c (strsignal): Likewise.
37181         * tests/test-strstr.c (strstr): Likewise.
37182         * tests/test-strtod.c (strtod): Likewise.
37183         * tests/test-strverscmp.c (strverscmp): Likewise.
37184         * tests/test-symlink.c (symlink): Likewise.
37185         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
37186         * tests/test-times.c (times): Likewise.
37187         * tests/test-trunc1.c (trunc): Likewise.
37188         * tests/test-truncf1.c (truncf): Likewise.
37189         * tests/test-truncl.c (truncl): Likewise.
37190         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
37191         Likewise.
37192         * tests/test-uname.c (uname): Likewise.
37193         * tests/test-unlink.c (unlink): Likewise.
37194         * tests/test-unlinkat.c (unlinkat): Likewise.
37195         * tests/test-unsetenv.c (unsetenv): Likewise.
37196         * tests/test-usleep.c (usleep): Likewise.
37197         * tests/test-utimensat.c (utimensat): Likewise.
37198         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
37199         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
37200         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
37201         * tests/test-vprintf-posix.c (vprintf): Likewise.
37202         * tests/test-vsnprintf.c (vsnprintf): Likewise.
37203         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
37204         * tests/test-wcrtomb.c (wcrtomb): Likewise.
37205         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
37206         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
37207         * tests/test-wcwidth.c (wcwidth): Likewise.
37208
37209         build: pull in conditional headers during GNULIB_POSIXCHECK
37210         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
37211         definitions from any conditionally-included headers.
37212         * lib/stdlib.in.h (includes): Likewise.
37213         * lib/unistd.in.h (includes): Likewise.
37214
37215 2009-12-24  Bruno Haible  <bruno@clisp.org>
37216
37217         * tests/test-argv-iter.c: Include header file being tested immediately
37218         after config.h.
37219         * tests/test-base64.c: Likewise.
37220         * tests/test-flock.c: Likewise.
37221         * tests/test-fsync.c: Likewise.
37222         * tests/test-getdate.c: Likewise.
37223         * tests/test-getndelim2.c: Likewise.
37224         * tests/test-isfinite.c: Likewise.
37225         * tests/test-isinf.c: Likewise.
37226         * tests/test-strerror.c: Likewise.
37227         * tests/test-strsignal.c: Likewise.
37228
37229 2009-12-23  Eric Blake  <ebb9@byu.net>
37230
37231         unistd: work around cygwin bug
37232         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
37233         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
37234         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
37235
37236 2009-12-23  Bruno Haible  <bruno@clisp.org>
37237
37238         localename: More tests.
37239         * tests/test-localename.c (SIZEOF): New macro.
37240         (categories): New variable.
37241         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
37242         test_locale_name_default): Add test w.r.t. thread locale.
37243         (test_locale_name_thread): New function.
37244         (main): Invoke it.
37245
37246         localename: Make aware of thread locale.
37247         * lib/localename.h (gl_locale_name_thread): New declaration.
37248         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
37249         behaviour with respect to thread locale.
37250         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
37251         <langinfo.h>, glthread/lock.h.
37252         (SIZE_BITS): New macro.
37253         (string_hash): New function.
37254         (struct hash_node): New type.
37255         (HASH_TABLE_SIZE): New macro.
37256         (struniq_hash_table, struniq_lock): New variables.
37257         (struniq): New function.
37258         (gl_locale_name_thread): New function.
37259         (gl_locale_name): Invoke it.
37260         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
37261         * modules/localename (Depends-on): Add lock.
37262         Reported by Mike Gran <spk121@yahoo.com>.
37263
37264 2009-12-23  Eric Blake  <ebb9@byu.net>
37265
37266         va-args: new module
37267         * modules/va-args: New file.
37268         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
37269         * MODULES.html.sh (Core language properties): Mention it.
37270
37271         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
37272         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
37273         named alias for __attribute__((__unused__)).
37274         * lib/chown.c: Update client.
37275         * lib/fchmodat.c: Likewise.
37276         * lib/fts.c: Likewise.
37277         * lib/getdate.y: Likewise.
37278         * lib/getgroups.c: Likewise.
37279         * lib/getopt.c: Likewise.
37280         * lib/getugroups.c: Likewise.
37281         * lib/mkdir.c: Likewise.
37282         * lib/mkfifo.c: Likewise.
37283         * lib/mkfifoat.c: Likewise.
37284         * lib/mknod.c: Likewise.
37285         * lib/mknodat.c: Likewise.
37286         * lib/readlink.c: Likewise.
37287         * lib/se-context.in.h: Likewise.
37288         * lib/se-selinux.in.h: Likewise.
37289         * lib/sockets.c: Likewise.
37290         * lib/symlink.c: Likewise.
37291         * lib/symlinkat.c: Likewise.
37292         * lib/unicodeio.c: Likewise.
37293         * lib/unistr.h: Likewise.
37294         * tests/test-areadlink.c: Likewise.
37295         * tests/test-areadlinkat.c: Likewise.
37296         * tests/test-filenamecat.c: Likewise.
37297         * tests/test-fseeko.c: Likewise.
37298         * tests/test-ftello.c: Likewise.
37299         * tests/test-getdate.c: Likewise.
37300         * tests/test-getgroups.c: Likewise.
37301         * tests/test-gethostname.c: Likewise.
37302         * tests/test-quotearg.c: Likewise.
37303         * tests/test-version-etc.c: Likewise.
37304         * tests/test-xalloc-die.c: Likewise.
37305         * tests/test-xfprintf-posix.c: Likewise.
37306         * tests/test-xprintf-posix.c: Likewise.
37307         * tests/test-xvasprintf.c: Likewise.
37308
37309         tests: avoid compiler warnings
37310         * tests/test-fcntl.c (main): Delete unused parameters.
37311         * tests/test-freopen-safer.c (main): Likewise.
37312         * tests/test-xalloc-die.c (main): Mark unused parameters.
37313         * tests/test-fseeko.c (main): Likewise.
37314         * tests/test-ftello.c (main): Likewise.
37315         * tests/test-nanosleep.c (main): Avoid declaration warning.
37316         * tests/test-sleep.c (main): Likewise.
37317         * tests/test-unsetenv.c (main): Silence warning about string
37318         literal.
37319         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
37320
37321 2009-12-23  Bruno Haible  <bruno@clisp.org>
37322
37323         * tests/test-localename.c (test_locale_name): New function, extracted
37324         from main. Also test mixed situations.
37325         (test_locale_name_posix, test_locale_name_environ,
37326         test_locale_name_default): New functions.
37327         (main): Invoke them all.
37328         * modules/localename-tests (configure.ac): Test for newlocale.
37329
37330 2009-12-23  Bruno Haible  <bruno@clisp.org>
37331
37332         unistd: Ensure getcwd gets declared before being overridden.
37333         * lib/unistd.in.h: Conditionally include <io.h>.
37334
37335 2009-12-22  Bruno Haible  <bruno@clisp.org>
37336
37337         wchar: Diagnose broken combination of glibc and gcc versions and flags.
37338         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
37339         (gl_WCHAR_H): Invoke it.
37340         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
37341         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
37342         Reported by Karl Berry <karl@freefriends.org>.
37343
37344 2009-12-22  Eric Blake  <ebb9@byu.net>
37345
37346         math, unistd: avoid redundant includes
37347         * lib/math.in.h (isnan): No need to re-include <math.h>.
37348         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
37349
37350         getsubopt: work around cygwin bug
37351         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
37352         avoid conflicting with system getsubopt.
37353         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
37354         bug.
37355
37356         getopt: synchronize from glibc
37357         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
37358         parameter order.  Adjust all callers.
37359         (_getopt_internal_r, main): Adjust quoting in error messages.
37360         Drop considerations for outdated POSIX 1003.2 error message.
37361         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
37362         callers.
37363         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
37364
37365         test-getopt: test stderr behavior
37366         * modules/getopt-posix-tests (Depends-on): Add dup2.
37367         * tests/test-getopt.c (ASSERT): Avoid stderr.
37368         (main): Move stderr to a temporary file.
37369         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
37370         Instead, add parameter to inform caller if output occurred.
37371         (test_getopt): Adjust all existing tests to expect silence, and
37372         add new tests of leading ":".
37373         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
37374         glibc shortcomings with leading "-:" or "+:" in optstring.
37375         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
37376         Likewise.
37377         * doc/posix-functions/getopt.texi (getopt): Likewise.
37378
37379         test-getopt: enhance test
37380         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
37381         supports optind=0.
37382         * tests/test-getopt.c (OPTIND_MIN): Move...
37383         * tests/test-getopt.h (OPTIND_MIN): ...here.
37384         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
37385         Require that optind=0 works, since modern BSD supports it in
37386         addition to optreset, and since coreutils expects it.
37387         (test_getopt_long_only): New test.
37388         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
37389         glibc shortcomings with 'W;', and enforcement of optind=0.
37390         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
37391         Likewise.
37392
37393 2009-12-21  Bruno Haible  <bruno@clisp.org>
37394
37395         localename: Improvements for MacOS X and Cygwin.
37396         * lib/localename.h (gl_locale_name_environ): New declaration.
37397         * lib/localename.c (gl_locale_name_environ): New function, extracted from
37398         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
37399         (gl_locale_name_posix): Invoke it.
37400         (gl_locale_name_default): Add comments. Use Windows native API also on
37401         Cygwin.
37402
37403 2009-12-21  Bruno Haible  <bruno@clisp.org>
37404
37405         Update list of Win32 locale ids.
37406         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
37407         (LANG_SAMI): Renamed from LANG_SAAMI.
37408         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
37409         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
37410         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
37411         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
37412         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
37413         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
37414         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
37415         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
37416         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
37417         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
37418         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
37419         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
37420         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
37421         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
37422         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
37423         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
37424         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
37425         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
37426         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
37427         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
37428         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
37429         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
37430         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
37431         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
37432         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
37433         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
37434         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
37435         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
37436         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
37437         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
37438         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
37439         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
37440         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
37441         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
37442         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
37443         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
37444         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
37445         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
37446         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
37447         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
37448         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
37449         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
37450         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
37451         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
37452         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
37453         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
37454         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
37455         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
37456         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
37457         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
37458         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
37459         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
37460         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
37461         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
37462         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
37463         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
37464         Add more languages and countries for Sami, Sorbian. Add more countries
37465         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
37466         for Pashto. Change country for Syriac, Tswana.
37467
37468 2009-12-21  Eric Blake  <ebb9@byu.net>
37469
37470         test-utimens: avoid spurious failure
37471         * tests/test-chown.h (nap): Factor...
37472         * tests/nap.h: ...into new file.
37473         * tests/test-lchown.h (nap): Avoid duplication.
37474         * tests/test-utimens-common.h (nap): Use shared implementation,
37475         necessary on file systems with 1-second resolution.
37476         * modules/chown-tests (Files): Include new file.
37477         * modules/fdutimensat-tests (Files): Likewise.
37478         * modules/futimens-tests (Files): Likewise.
37479         * modules/lchown-tests (Files): Likewise.
37480         * modules/openat-tests (Files): Likewise.
37481         * modules/utimens-tests (Files): Likewise.
37482         * modules/utimensat-tests (Files): Likewise.
37483
37484 2009-12-19  Eric Blake  <ebb9@byu.net>
37485
37486         futimens, utimensat: work around Linux bug
37487         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
37488         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
37489         * lib/utimensat.c (rpl_utimensat): Work around it.
37490         * lib/futimens.c (rpl_futimens): Adjust comment.
37491
37492         utimens: work around Linux ctime bug
37493         * lib/utimens.c (detect_ctime_bug): New helper function.
37494         (update_timespec): Differentiate between workaround needed for
37495         this bug vs. what is needed for systems that lack utimensat.
37496         (fdutimens, lutimens): Work around bug.
37497
37498         utimens: check for ctime update
37499         * tests/test-utimens-common.h (check_ctime): Define.
37500         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
37501         * tests/test-futimens.h (test_futimens): Likewise.
37502         * tests/test-lutimens.h (test_lutimens): Likewise.
37503         * doc/posix-functions/futimens.texi (futimens): Document the bug.
37504         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
37505
37506 2009-12-19  Bruno Haible  <bruno@clisp.org>
37507
37508         dprintf-posix: Check against memory leak fixed on 2009-12-15.
37509         * tests/test-dprintf-posix2.sh: New file.
37510         * tests/test-dprintf-posix2.c: New file.
37511         * modules/dprintf-posix-tests (Files): Add them.
37512         (configure.ac): Check for getrlimit and setrlimit.
37513         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
37514
37515 2009-12-19  Bruno Haible  <bruno@clisp.org>
37516
37517         fprintf-posix: Check against memory leak fixed on 2009-12-15.
37518         * tests/test-fprintf-posix3.sh: New file.
37519         * tests/test-fprintf-posix3.c: New file.
37520         * modules/fprintf-posix-tests (Files): Add them.
37521         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
37522
37523 2009-12-19  Eric Blake  <ebb9@byu.net>
37524
37525         dirfd: fix prototype
37526         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
37527         * lib/dirfd.c (dirfd): Likewise.
37528
37529         canonicalize: reduce memory usage
37530         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
37531         allocation to size.
37532         Reported by Solar Designer <solar@openwall.com>.
37533
37534 2009-12-19  Bruno Haible  <bruno@clisp.org>
37535
37536         New module attribute 'Applicability'.
37537         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
37538         * gnulib-tool: New option --extract-applicability.
37539         (func_usage): Document it.
37540         (sed_extract_prog): Recognize it.
37541         (func_get_applicability): New function.
37542         (func_import): Generalize handling of 'link-warning' module.
37543         * modules/link-warning (Applicability): New section.
37544         * modules/arg-nonnull (Applicability): New section.
37545         Repoted by Simon Josefsson <simon@josefsson.org>.
37546
37547 2009-12-19  Bruno Haible  <bruno@clisp.org>
37548
37549         fflush: tweak
37550         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
37551         * lib/fseeko.c (rpl_fseeko): Likewise.
37552
37553 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
37554
37555         * lib/gl_list.h: Fix typo in comment.
37556
37557 2009-12-16  Eric Blake  <ebb9@byu.net>
37558
37559         fcntl: use to simplify other modules
37560         * modules/cloexec (Depends-on): Add fcntl.
37561         * modules/fchdir (Depends-on): Likewise.
37562         * modules/fd-safer-flag (Depends-on): Likewise.
37563         * modules/unistd-safer (Depends-on): Likewise.
37564         * modules/dup3 (configure.ac): Set module indicator.
37565         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
37566         missing.
37567         * lib/fchdir.c (_gl_register_dup): Fix comment.
37568         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
37569         * lib/dup-safer.c (dup_safer): Likewise.
37570         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
37571         * lib/dup3.c (dup3): Likewise.
37572         * tests/test-fchdir.c (main): Enhance test.
37573         Fixes a dup_cloexec bug reported by Ondřej Vašík.
37574
37575         fcntl: port portions of fcntl to mingw
37576         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
37577         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
37578         replacement for mingw.
37579         * modules/fcntl (Description): Update.
37580         (Depends-on): Add dup2.
37581         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
37582         * modules/fcntl-h (Makefile.am): Substitute it.
37583         * lib/fcntl.in.h (fcntl): Update declaration.
37584         (F_DUPFD, F_GETFD): New macros, when needed.
37585         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
37586         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
37587         * tests/test-fcntl.c (check_flags, main): Enhance test for items
37588         we now guarantee.
37589
37590         fcntl: work around cygwin bug in F_DUPFD
37591         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
37592         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
37593         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
37594         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
37595         * doc/posix-functions/fcntl.texi (fcntl): Document it.
37596
37597         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
37598         * modules/fcntl (Files): List new files.
37599         (configure.ac): Run a test.
37600         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
37601         * lib/fcntl.c (rpl_fcntl): Likewise.
37602         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
37603         (gl_FCNTL_H): Always replace fcntl.h.
37604         * modules/fcntl-h (Makefile.am): Substitute witnesses.
37605         * lib/fcntl.in.h (fcntl): Declare replacement.
37606         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
37607         needed, plus a witness.
37608         * doc/posix-functions/fcntl.texi (fcntl): Document this.
37609         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
37610         * tests/test-fcntl.c: New file.
37611         * modules/fcntl-tests: Likewise.
37612
37613         binary-io: avoid potential compilation warning
37614         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
37615         directives.
37616
37617         fflush: avoid compilation error on NetBSD
37618         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
37619         between off_t and fpos_t, since the latter is sometimes a struct.
37620         * lib/fseeko.c (rpl_fseeko): Likewise.
37621         Reported by Alexander Nasonov <alnsn@yandex.ru>.
37622
37623 2009-12-15  Eric Blake  <ebb9@byu.net>
37624
37625         fcntl-h, stdio, sys_ioctl: fix declarations
37626         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
37627         function must not take arguments.
37628         * lib/sys_ioctl.in.h (ioctl): Likewise.
37629         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
37630         (open): Add a link warning.
37631
37632 2009-12-15  Jim Meyering  <meyering@redhat.com>
37633
37634         areadlink, areadlink-with-size: relax license to LGPLv2+
37635         * modules/areadlink (License): Relax to LGPLv2+.
37636         * modules/areadlink-with-size (License): Likewise.
37637
37638 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
37639             Bruno Haible  <bruno@clisp.org>
37640
37641         *printf: Fix memory leak.
37642         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
37643         * lib/vfprintf.c (vfprintf): Likewise.
37644         * lib/dprintf.c (dprintf): Likewise.
37645         * lib/vdprintf.c (vdprintf): Likewise.
37646
37647 2009-12-14  Eric Blake  <ebb9@byu.net>
37648
37649         accept4: adjust module dependencies
37650         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
37651
37652         utimens: one more try at avoiding compiler warning
37653         * lib/utimens.c (lutimens): Lower scope of result.
37654
37655 2009-12-13  Bruno Haible  <bruno@clisp.org>
37656
37657         Move the malloc checking from module 'list' to new module 'xlist'.
37658         * modules/xlist: New file.
37659         * lib/gl_xlist.h: New file.
37660         * lib/gl_xlist.c: New file.
37661         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
37662         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
37663         gl_list_add_last, gl_list_add_before, gl_list_add_after,
37664         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
37665         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
37666         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
37667         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
37668         gl_sortedlist_nx_add): New declarations.
37669         (struct gl_list_implementation): Rename and change methods accordingly.
37670         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
37671         (gl_list_nx_create): Renamed from gl_list_create.
37672         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
37673         (gl_list_nx_set_at): Renamed from gl_list_set_at.
37674         (gl_list_nx_add_first): Renamed from gl_list_add_first.
37675         (gl_list_nx_add_last): Renamed from gl_list_add_last.
37676         (gl_list_nx_add_before): Renamed from gl_list_add_before.
37677         (gl_list_nx_add_after): Renamed from gl_list_add_after.
37678         (gl_list_nx_add_at): Renamed from gl_list_add_at.
37679         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
37680         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
37681         gl_list_create_empty.
37682         (gl_list_nx_create): Renamed from gl_list_create.
37683         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
37684         (gl_list_nx_set_at): Renamed from gl_list_set_at.
37685         (gl_list_nx_add_first): Renamed from gl_list_add_first.
37686         (gl_list_nx_add_last): Renamed from gl_list_add_last.
37687         (gl_list_nx_add_before): Renamed from gl_list_add_before.
37688         (gl_list_nx_add_after): Renamed from gl_list_add_after.
37689         (gl_list_nx_add_at): Renamed from gl_list_add_at.
37690         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
37691         * lib/gl_array_list.c: Don't include xalloc.h.
37692         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
37693         NULL upon out-of-memory.
37694         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
37695         out-of-memory.
37696         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
37697         Change return type to 'int'.
37698         (gl_array_nx_set_at): Renamed from gl_array_set_at.
37699         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
37700         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
37701         upon out-of-memory.
37702         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
37703         upon out-of-memory.
37704         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
37705         upon out-of-memory.
37706         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
37707         upon out-of-memory.
37708         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
37709         out-of-memory.
37710         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
37711         Update.
37712         (gl_array_list_implementation): Update.
37713         * lib/gl_carray_list.c: Don't include xalloc.h.
37714         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
37715         Return NULL upon out-of-memory.
37716         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
37717         out-of-memory.
37718         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
37719         Change return type to 'int'.
37720         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
37721         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
37722         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
37723         upon out-of-memory.
37724         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
37725         upon out-of-memory.
37726         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
37727         out-of-memory.
37728         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
37729         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
37730         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
37731         Update.
37732         (gl_carray_list_implementation): Update.
37733         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
37734         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
37735         gl_linked_create_empty. Return NULL upon out-of-memory.
37736         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
37737         out-of-memory.
37738         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
37739         Change return type to 'int'. Return -1 upon out-of-memory.
37740         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
37741         out-of-memory.
37742         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
37743         upon out-of-memory.
37744         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
37745         upon out-of-memory.
37746         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
37747         NULL upon out-of-memory.
37748         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
37749         upon out-of-memory.
37750         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
37751         out-of-memory.
37752         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
37753         Update.
37754         * lib/gl_linked_list.c: Don't include xalloc.h.
37755         (gl_linked_list_implementation): Update.
37756         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
37757         (add_to_bucket): Change return type to 'int'.
37758         (gl_linkedhash_list_implementation): Update.
37759         * lib/gl_anytree_list1.h (free_subtree): New function.
37760         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
37761         gl_tree_create_empty. Return NULL upon out-of-memory.
37762         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
37763         Change return type to 'int'. Return -1 upon out-of-memory.
37764         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
37765         out-of-memory.
37766         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
37767         (gl_tree_remove_node): New function, moved here from
37768         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
37769         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
37770         Update.
37771         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
37772         malloc, not xmalloc. Return NULL upon out-of-memory.
37773         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
37774         out-of-memory.
37775         (gl_tree_remove_node_from_tree): New function, extracted from
37776         gl_tree_remove_node.
37777         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
37778         upon out-of-memory.
37779         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
37780         out-of-memory.
37781         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
37782         upon out-of-memory.
37783         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
37784         upon out-of-memory.
37785         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
37786         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
37787         not xmalloc. Return NULL upon out-of-memory.
37788         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
37789         out-of-memory.
37790         (gl_tree_remove_node_from_tree): New function, extracted from
37791         gl_tree_remove_node.
37792         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
37793         upon out-of-memory.
37794         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
37795         out-of-memory.
37796         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
37797         upon out-of-memory.
37798         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
37799         upon out-of-memory.
37800         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
37801         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
37802         gl_anytree_list1.h before gl_anyavltree_list2.h.
37803         (gl_avltree_list_implementation): Update.
37804         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
37805         gl_anytree_list1.h before gl_anyavltree_list2.h.
37806         (gl_rbtree_list_implementation): Update.
37807         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
37808         Change return type to 'int'. Return -1 upon out-of-memory. Use
37809         __builtin_expect.
37810         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
37811         (gl_avltreehash_list_implementation): Update.
37812         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
37813         (gl_rbtreehash_list_implementation): Update.
37814         * modules/array-list (Depends-on): Remove xalloc.
37815         * modules/carray-list (Depends-on): Likewise.
37816         * modules/linked-list (Depends-on): Likewise.
37817         * modules/linkedhash-list (Depends-on): Likewise.
37818         * modules/avltree-list (Depends-on): Likewise.
37819         * modules/rbtree-list (Depends-on): Likewise.
37820         * modules/avltreehash-list (Depends-on): Likewise.
37821         * modules/rbtreehash-list (Depends-on): Likewise.
37822
37823         * modules/xsublist: New file.
37824         * lib/gl_xsublist.h: New file.
37825         * lib/gl_xsublist.c: New file.
37826         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
37827         (gl_sublist_nx_create): New declaration.
37828         * lib/gl_sublist.c: Don't include xalloc.h.
37829         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
37830         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
37831         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
37832         Change return type to 'int'. Return -1 upon out-of-memory.
37833         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
37834         upon out-of-memory.
37835         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
37836         NULL upon out-of-memory.
37837         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
37838         upon out-of-memory.
37839         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
37840         NULL upon out-of-memory.
37841         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
37842         NULL upon out-of-memory.
37843         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
37844         upon out-of-memory.
37845         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
37846         (gl_sublist_list_implementation): Update.
37847         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
37848         upon out-of-memory.
37849         * modules/sublist (Depends-on): Remove xalloc.
37850
37851         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
37852         * tests/test-carray_list.c: Likewise.
37853         * tests/test-linked_list.c: Likewise.
37854         * tests/test-linkedhash_list.c: Likewise.
37855         * tests/test-avltree_list.c: Likewise.
37856         * tests/test-rbtree_list.c: Likewise.
37857         * tests/test-avltreehash_list.c: Likewise.
37858         * tests/test-rbtreehash_list.c: Likewise.
37859         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
37860         * modules/carray-list-tests (Makefile.am): Likewise.
37861         * modules/linked-list-tests (Makefile.am): Likewise.
37862         * modules/linkedhash-list-tests (Makefile.am): Likewise.
37863         * modules/avltree-list-tests (Makefile.am): Likewise.
37864         * modules/rbtree-list-tests (Makefile.am): Likewise.
37865         * modules/avltreehash-list-tests (Makefile.am): Likewise.
37866         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
37867
37868         * NEWS: Mention the changes.
37869
37870         * lib/clean-temp.c: Include gl_xlist.h.
37871         * modules/clean-temp (Depends-on): Add xlist.
37872
37873         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
37874         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
37875
37876         * tests/test-array_oset.c: Include gl_xlist.h.
37877         * modules/array-oset-tests (Depends-on): Add xlist.
37878
37879         Reported by José E. Marchesi <jemarch@gnu.org>.
37880
37881 2009-12-13  Bruno Haible  <bruno@clisp.org>
37882
37883         Move the malloc checking from module 'oset' to new module 'xoset'.
37884         * modules/xoset: New file.
37885         * lib/gl_xoset.h: New file.
37886         * lib/gl_xoset.c: New file.
37887         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
37888         declarations.
37889         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
37890         (struct gl_oset_implementation): Rename and change methods accordingly.
37891         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
37892         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
37893         'int'. Mark as __warn_unused_result__.
37894         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
37895         gl_oset_create_empty.
37896         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
37897         'int'.
37898         * lib/gl_array_oset.c: Don't include xalloc.h.
37899         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
37900         malloc, not xmalloc.
37901         (grow): Change return type to 'int'. Don't call xalloc_die.
37902         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
37903         to 'int'.
37904         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
37905         'int'.
37906         (gl_array_oset_implementation): Update.
37907         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
37908         gl_tree_create_empty.
37909         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
37910         'int'.
37911         * lib/gl_avltree_oset.c: Don't include xalloc.h.
37912         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
37913         xmalloc.
37914         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
37915         not xmalloc.
37916         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
37917         xmalloc.
37918         (gl_avltree_oset_implementation): Update.
37919         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
37920         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
37921         xmalloc.
37922         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
37923         not xmalloc.
37924         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
37925         xmalloc.
37926         (gl_rbtree_oset_implementation): Update.
37927         * modules/array-oset (Depends-on): Remove xalloc.
37928         * modules/avltree-oset (Depends-on): Likewise.
37929         * modules/rbtree-oset (Depends-on): Likewise.
37930         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
37931         * tests/test-avltree_oset.c: Likewise.
37932         * tests/test-rbtree_oset.c: Likewise.
37933         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
37934         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
37935         * modules/rbtree-oset-tests (Makefile.am): Likewise.
37936         * NEWS: Mention the change.
37937
37938 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
37939
37940         maint.mk: allow a project to override release-prep commands
37941         * top/maint.mk (alpha, beta, stable): Move release-preparatory
37942         commands into a new rule.
37943         (release-prep): New rule.
37944         (release-prep-hook): New overridable variable.
37945
37946 2009-12-13  Bruno Haible  <bruno@clisp.org>
37947
37948         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
37949
37950 2009-12-13  Jim Meyering  <meyering@redhat.com>
37951
37952         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
37953         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
37954
37955 2009-12-12  Bruno Haible  <bruno@clisp.org>
37956
37957         duplocale: Tweak.
37958         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
37959
37960 2009-12-12  Karl Berry  <karl@gnu.org>
37961
37962         * config/srclist.txt (strtoll.c): tab changes, no more sync.
37963
37964 2009-12-12  Bruno Haible  <bruno@clisp.org>
37965
37966         * m4/po.m4: Undo incorrect untabification.
37967
37968 2009-12-12  Bruno Haible  <bruno@clisp.org>
37969
37970         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
37971         * modules/c-strtod (Depends-on): Add locale.
37972         * modules/c-strtold (Depends-on): Likewise.
37973
37974 2009-12-12  Bruno Haible  <bruno@clisp.org>
37975
37976         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
37977
37978 2009-12-11  Eric Blake  <ebb9@byu.net>
37979
37980         setenv: relax requirement in light of POSIX ruling
37981         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
37982         not NULL.
37983         * tests/test-setenv.c (main): Relax test.
37984         * tests/test-unsetenv.c (main): Likewise.
37985         * doc/posix-functions/setenv.texi (setenv): Document this.
37986         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
37987
37988 2009-12-11  Bruno Haible  <bruno@clisp.org>
37989
37990         New module 'fd-safer-flag'.
37991         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
37992         * lib/dup-safer.c (dup_safer_flag): Remove function.
37993         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
37994         * lib/fd-safer.c (fd_safer_flag): Remove function.
37995         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
37996         * modules/cloexec (configure.ac): Drop indicator macro.
37997         * modules/fd-safer-flag: New file.
37998         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
37999         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
38000         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
38001
38002 2009-12-11  Bruno Haible  <bruno@clisp.org>
38003
38004         Tests for module 'nl_langinfo'.
38005         * modules/nl_langinfo-tests: New file.
38006         * tests/test-nl_langinfo.sh: New file.
38007         * tests/test-nl_langinfo.c: New file.
38008
38009         New module 'nl_langinfo'.
38010         * lib/nl_langinfo.c: New file.
38011         * m4/nl_langinfo.m4: New file.
38012         * modules/nl_langinfo: New file.
38013         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
38014
38015 2009-12-11  Bruno Haible  <bruno@clisp.org>
38016
38017         Tests for module 'langinfo'.
38018         * modules/langinfo-tests: New file.
38019         * tests/test-langinfo.c: New file.
38020
38021         New module 'langinfo'.
38022         * lib/langinfo.in.h: New file.
38023         * m4/langinfo_h.m4: New file.
38024         * modules/langinfo: New file.
38025         * doc/posix-headers/langinfo.texi: Mention the new module.
38026
38027 2009-12-11  Bruno Haible  <bruno@clisp.org>
38028
38029         * lib/config.charset: Untabify.
38030
38031 2009-12-11  Bruno Haible  <bruno@clisp.org>
38032
38033         * modules/unistd-safer (configure.ac): Drop indicator macro.
38034
38035 2009-12-11  Bruno Haible  <bruno@clisp.org>
38036
38037         Move pipe2-safer code to its own file.
38038         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
38039         * lib/pipe-safer.c (pipe2_safer): Remove function.
38040         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
38041         (Makefile.am): Add it to lib_SOURCES.
38042
38043 2009-12-10  Bruno Haible  <bruno@clisp.org>
38044
38045         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
38046
38047 2009-12-10  Bruno Haible  <bruno@clisp.org>
38048
38049         Declare which arguments expect non-NULL values, for GCC and clang.
38050         * build-aux/arg-nonnull.h: New file.
38051         * modules/arg-nonnull: New file.
38052         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
38053         (inet_ntop, inet_pton): Use it.
38054         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
38055         (closedir, dirfd, opendir, scandir, alphasort): Use it.
38056         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
38057         (open, openat): Use it.
38058         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
38059         (fnmatch): Use it.
38060         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
38061         (getopt, getopt_long, getopt_long_only): Use it.
38062         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
38063         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
38064         Use it.
38065         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
38066         (iconv_open): Use it.
38067         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
38068         (strtoimax, strtoumax): Use it.
38069         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
38070         (duplocale): Use it.
38071         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
38072         (frexp, frexpl): Use it.
38073         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
38074         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
38075         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
38076         (tsearch, tfind, tdelete, twalk): Use it.
38077         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
38078         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
38079         sigpending): Use it.
38080         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
38081         (posix_spawn, posix_spawnp, posix_spawnattr_init,
38082         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
38083         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
38084         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
38085         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
38086         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
38087         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
38088         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
38089         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
38090         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
38091         Use it.
38092         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
38093         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
38094         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
38095         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
38096         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
38097         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
38098         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
38099         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
38100         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
38101         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
38102         strtoull, unsetenv): Use it.
38103         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
38104         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
38105         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
38106         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
38107         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
38108         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
38109         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
38110         (strcasecmp, strncasecmp): Use it.
38111         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
38112         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
38113         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
38114         rpl_setsockopt): Use it.
38115         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
38116         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
38117         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
38118         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
38119         (gettimeofday): Use it.
38120         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
38121         (times): Use it.
38122         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
38123         (uname): Use it.
38124         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
38125         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
38126         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
38127         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
38128         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
38129         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
38130         unlinkat, write): Use it.
38131         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
38132         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
38133         * lib/argv-iter.h: Include arg-nonnull.h.
38134         (_ATTRIBUTE_NONNULL_): Remove macro.
38135         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
38136         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
38137         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
38138         optimization.
38139         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
38140         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
38141         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
38142         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
38143         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
38144         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
38145         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
38146         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
38147         * modules/arpa_inet (Depends-on): Add arg-nonnull.
38148         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
38149         * modules/dirent (Depends-on): Add arg-nonnull.
38150         (Makefile.am): Insert arg-nonnull.h into dirent.h.
38151         * modules/fcntl-h (Depends-on): Add arg-nonnull.
38152         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
38153         * modules/fnmatch (Depends-on): Add arg-nonnull.
38154         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
38155         * modules/getopt-posix (Depends-on): Add arg-nonnull.
38156         (Makefile.am): Insert arg-nonnull.h into getopt.h.
38157         * modules/glob (Depends-on): Add arg-nonnull.
38158         (Makefile.am): Insert arg-nonnull.h into glob.h.
38159         * modules/iconv_open (Depends-on): Add arg-nonnull.
38160         (Makefile.am): Insert arg-nonnull.h into iconv.h.
38161         * modules/inttypes (Depends-on): Add arg-nonnull.
38162         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
38163         * modules/locale (Depends-on): Add arg-nonnull.
38164         (Makefile.am): Insert arg-nonnull.h into locale.h.
38165         * modules/math (Depends-on): Add arg-nonnull.
38166         (Makefile.am): Insert arg-nonnull.h into math.h.
38167         * modules/netdb (Depends-on): Add arg-nonnull.
38168         (Makefile.am): Insert arg-nonnull.h into netdb.h.
38169         * modules/search (Depends-on): Add arg-nonnull.
38170         (Makefile.am): Insert arg-nonnull.h into search.h.
38171         * modules/signal (Depends-on): Add arg-nonnull.
38172         (Makefile.am): Insert arg-nonnull.h into signal.h.
38173         * modules/spawn (Depends-on): Add arg-nonnull.
38174         (Makefile.am): Insert arg-nonnull.h into spawn.h.
38175         * modules/stdio (Depends-on): Add arg-nonnull.
38176         (Makefile.am): Insert arg-nonnull.h into stdio.h.
38177         * modules/stdlib (Depends-on): Add arg-nonnull.
38178         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
38179         * modules/string (Depends-on): Add arg-nonnull.
38180         (Makefile.am): Insert arg-nonnull.h into string.h.
38181         * modules/strings (Depends-on): Add arg-nonnull.
38182         (Makefile.am): Insert arg-nonnull.h into strings.h.
38183         * modules/sys_socket (Depends-on): Add arg-nonnull.
38184         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
38185         * modules/sys_stat (Depends-on): Add arg-nonnull.
38186         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
38187         * modules/sys_time (Depends-on): Add arg-nonnull.
38188         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
38189         * modules/sys_times (Depends-on): Add arg-nonnull.
38190         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
38191         * modules/sys_utsname (Depends-on): Add arg-nonnull.
38192         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
38193         * modules/time (Depends-on): Add arg-nonnull.
38194         (Makefile.am): Insert arg-nonnull.h into time.h.
38195         * modules/unistd (Depends-on): Add arg-nonnull.
38196         (Makefile.am): Insert arg-nonnull.h into unistd.h.
38197         * modules/wchar (Depends-on): Add arg-nonnull.
38198         (Makefile.am): Insert arg-nonnull.h into wchar.h.
38199         * modules/argv-iter (Depends-on): Add arg-nonnull.
38200         * tests/test-canonicalize.c (null_ptr): New function.
38201         (main): Use it.
38202         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
38203         (main): Use it.
38204         * tests/test-memmem.c (null_ptr): New function.
38205         (main): Use it.
38206         Reported by Jim Meyering.
38207
38208 2009-12-10  Bruno Haible  <bruno@clisp.org>
38209
38210         Use spaces for indentation, not tabs.
38211         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
38212         * m4/*.m4: Untabify.
38213         * build-aux/*.h: Untabify.
38214         * tests/**/*.[hc]: Untabify.
38215         * README: New section "Indent with spaces, not TABs", based on
38216         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
38217         * NEWS: Mention the change.
38218
38219 2009-12-10  Bruno Haible  <bruno@clisp.org>
38220
38221         pty test: Fix link error.
38222         * modules/pty-tests (Makefile.am): Add the default LDADD value to
38223         test_pty_LDADD.
38224
38225 2009-12-07  Simon Josefsson  <simon@josefsson.org>
38226
38227         * modules/pty: New file.
38228         * modules/pty-tests: New file.
38229         * m4/pty.m4: New file.
38230         * tests/test-pty.c: New file.
38231         * doc/glibc-headers/pty.texi: Modified.
38232         * doc/glibc-functions/forkpty.texi: Modified.
38233         * doc/glibc-functions/openpty.texi: Modified.
38234
38235 2009-12-10  Bruno Haible  <bruno@clisp.org>
38236
38237         Avoid syntax error in C++ mode.
38238         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
38239
38240 2009-12-10  Bruno Haible  <bruno@clisp.org>
38241
38242         Use sed with option -e.
38243         * gnulib-tool (func_version, func_emit_copyright_notice,
38244         func_emit_initmacro_end, func_import, func_create_testdir): Pass
38245         option -e to sed.
38246         * modules/link-warning (Makefile.am): Likewise.
38247
38248 2009-12-10  Jim Meyering  <meyering@redhat.com>
38249
38250         mgetgroups: do not write bytes beyond end of malloc'd buffer
38251         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
38252         username, we call getgroups with a one-element-shorter buffer,
38253         but still told it the length was original, max_n_groups.
38254
38255 2009-12-09  Eric Blake  <ebb9@byu.net>
38256
38257         cloexec: relax license
38258         * modules/cloexec (Maintainer): Add myself.
38259         (License): Use LGPL, not GPL.
38260
38261         link-warning: optimize generation
38262         * modules/link-warning (Makefile.am): Reduce process usage.
38263
38264 2009-12-09  Bruno Haible  <bruno@clisp.org>
38265
38266         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
38267         workaround was added on 2009-11-17.
38268
38269 2009-12-09  Jim Meyering  <meyering@redhat.com>
38270             Bruno Haible  <bruno@clisp.org>
38271
38272         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
38273         * modules/link-warning (Makefile.am): Make the comment-removing sed
38274         command more robust in the face of bootstrap-prepended comment lines.
38275
38276 2009-12-09  Bruno Haible  <bruno@clisp.org>
38277
38278         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
38279         most one group.
38280
38281 2009-12-09  Simon Josefsson <simon@josefsson.org>
38282             Bruno Haible  <bruno@clisp.org>
38283
38284         * build-aux/link-warning.h: Add copyright notice.
38285         * modules/link-warning (Makefile.am): Generate link-warning.h from
38286         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
38287         * NEWS: Mention change in link-warning module.
38288         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
38289         * modules/dirent (Makefile.am): Add dependency to dirent.h.
38290         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
38291         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
38292         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
38293         * modules/math (Makefile.am): Add dependency to math.h.
38294         * modules/search (Makefile.am): Add dependency to search.h.
38295         * modules/signal (Makefile.am): Add dependency to signal.h.
38296         * modules/spawn (Makefile.am): Add dependency to spawn.h.
38297         * modules/stdio (Makefile.am): Add dependency to stdio.h.
38298         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
38299         * modules/string (Makefile.am): Add dependency to string.h.
38300         * modules/strings (Makefile.am): Add dependency to strings.h.
38301         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
38302         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
38303         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
38304         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
38305         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
38306         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
38307         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
38308         * modules/unistd (Makefile.am): Add dependency to unistd.h.
38309         * modules/wchar (Makefile.am): Add dependency to wchar.h.
38310
38311 2009-12-09  Bruno Haible  <bruno@clisp.org>
38312
38313         fchdir: Optimize away rpl_fstat when possible.
38314         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
38315         REPLACE_OPEN_DIRECTORY.
38316         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
38317
38318 2009-12-09  Bruno Haible  <bruno@clisp.org>
38319
38320         * lib/fchdir.c: Update comment.
38321
38322 2009-12-09  Bruno Haible  <bruno@clisp.org>
38323
38324         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
38325
38326 2009-12-08  Eric Blake  <ebb9@byu.net>
38327
38328         fchdir: avoid memory leak on re-registration.
38329         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
38330
38331 2009-12-08  Jim Meyering  <meyering@redhat.com>
38332
38333         init.sh: avoid Solaris 10 /bin/sh portability problem
38334         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
38335         sourced script:
38336           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
38337           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
38338           bar
38339         tests/init.sh relied on that, accepting a --set-path=DIR argument,
38340         and two tests used that idiom.
38341         * tests/init.sh: Update suggested usage comments.
38342         (path_prepend_): New function, to be used in place
38343         of the --src-path=DIR option.
38344         (setup_): Move PATH-prepending code into path_prepend_.
38345         * tests/test-pread.sh: Adapt to new usage.
38346         * tests/test-xalloc-die.sh: Likewise.
38347
38348 2009-12-08  Simon Josefsson  <simon@josefsson.org>
38349
38350         * doc/gnulib.texi (Glibc pty.h): Add.
38351         * doc/glibc-functions/forkpty.texi: Add.
38352         * doc/glibc-functions/openpty.texi: Add.
38353         Suggested by Bruno Haible.
38354
38355 2009-12-08  Eric Blake  <ebb9@byu.net>
38356
38357         fchdir: fix logic bugs
38358         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
38359         * tests/test-fchdir.c (main): Enhance test.
38360         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
38361         is in use.
38362
38363         dup2: fix logic bugs
38364         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
38365         REPLACE_DUP2 to decide when rpl_dup2 is needed.
38366         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
38367         exists.
38368         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
38369
38370 2009-12-07  Eric Blake  <ebb9@byu.net>
38371
38372         unlink: fix m4 detection
38373         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
38374
38375         unistd-safer: add unit test
38376         * modules/unistd-safer-tests: New file.
38377         * tests/test-dup-safer.c: Likewise.
38378         * tests/test-cloexec.c (setmode): Avoid compiler warning.
38379         * tests/test-dup2.c (setmode): Likewise.
38380         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
38381
38382         cloexec: preserve text vs. binary across dup_cloexec
38383         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
38384         mode.
38385         * modules/dup2-tests (Depends-on): Add binary-io.
38386         * modules/cloexec-tests (Depends-on): Likewise.
38387         * tests/test-dup2.c (setmode, is_mode): New helpers.
38388         (main): Add tests that translation mode is preserved.
38389         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
38390         Reported by Bruno Haible.
38391
38392         mgetgroups: reduce duplicate listings
38393         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
38394         resulting array.
38395         * tests/test-chown.h (test_chown): Simplify client.
38396         * tests/test-lchown.h (test_lchown): Likewise.
38397
38398 2009-12-06  Bruno Haible  <bruno@clisp.org>
38399
38400         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
38401         value.
38402
38403 2009-12-06  Bruno Haible  <bruno@clisp.org>
38404
38405         * lib/progname.c: Include stdio.h, stdlib.h.
38406         (set_program_name): Reject a NULL argument.
38407
38408 2009-12-05  Eric Blake  <ebb9@byu.net>
38409
38410         pipe2-safer: new module
38411         * modules/pipe2-safer: New file.
38412         * lib/unistd-safer.h (pipe2_safer): New prototype.
38413         * lib/unistd--.h (pipe2): New wrapper.
38414         * lib/pipe-safer.c (pipe2_safer): New function.
38415         * modules/pipe (Depends-on): Add pipe2-safer.
38416         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
38417
38418         stdlib-safer: preserve cloexec flag for mkostemp[s]
38419         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
38420         fd_safer_flag.
38421
38422         unistd-safer: allow preservation of cloexec status via flag
38423         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
38424         prototypes.
38425         * lib/dup-safer.c (dup_safer_flag): New function.
38426         * lib/fd-safer.c (fd_safer_flag): Likewise.
38427         * modules/cloexec (configure.ac): Set witness.
38428
38429         test-dup2: enhance test
38430         * modules/dup2-tests (Depends-on): Add cloexec.
38431         * tests/test-dup2.c (main): Enhance test.
38432
38433         cloexec: add dup_cloexec
38434         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
38435         header and comments.
38436         * lib/cloexec.c (set_cloexec_flag): Add comments.
38437         (dup_cloexec): New function, with mingw implementation borrowed
38438         from...
38439         * lib/w32spawn.h (dup_noinherit): ...here.
38440         * modules/execute (Depends-on): Add cloexec.
38441         * modules/pipe (Depends-on): Likewise.
38442         * modules/cloexec (Depends-on): Add dup2.
38443         * modules/cloexec-tests (Files): New file.
38444         * tests/test-cloexec.c: Likewise.
38445
38446         test-xalloc-die: fix test for mingw
38447         * modules/xalloc-die-tests (Files): Add tests/init.sh.
38448         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
38449         directory and .exe suffix off argv[0] output.
38450
38451         test-fseeko: fix test for mingw
38452         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
38453         than undefining fseek, so test will pass on mingw.
38454
38455 2009-12-05  Bruno Haible  <bruno@clisp.org>
38456
38457         * lib/progname.h (set_program_name): Clarify specification.
38458         * lib/progname.c (set_program_name): Likewise.
38459         Reported by Jim Meyering.
38460
38461 2009-12-05  Jim Meyering  <meyering@redhat.com>
38462
38463         maint.mk: backslash-escape parens in default regexp
38464         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
38465         backslash-escape the literal parentheses.
38466
38467         maint.mk: news-date-check: use grep -E
38468         * top/maint.mk (today): Define a Make variable, not a...
38469         (news-date-check): ...shell variable.
38470         (news-date-regexp): Use the Make variable.
38471         Use grep's -E option.  Change the failing diagnostic to mention
38472         the variable, $(news-date-regexp).
38473
38474 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
38475
38476         maintainer-makefile: allow customization of NEWS entry format
38477         * top/maint.mk (news-date-regexp): New overridable variable.
38478         (news-date-check): Use it.
38479
38480 2009-12-04  Eric Blake  <ebb9@byu.net>
38481
38482         mgetgroups: add xgetgroups, and avoid ENOSYS failures
38483         * lib/mgetgroups.h (xgetgroups): New prototype.
38484         * lib/mgetgroups.c (xgetgroups): New wrapper.
38485         (mgetgroups): Handle ENOSYS.
38486         * modules/mgetgroups (Depends-on): Add realloc.
38487         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
38488
38489         mgetgroups: avoid argument promotion issues with -1
38490         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
38491         for invalid gid_t.
38492         * tests/test-chown.h (getegid, test_chown): Likewise.
38493         * tests/test-lchown.h (getegid, test_lchown): Likewise.
38494
38495 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
38496
38497         exclude: Fix header file problems.
38498         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
38499
38500 2009-12-01  Jim Meyering  <meyering@redhat.com>
38501
38502         fts: fts_open: do not let an empty string cause immediate failure
38503         This is required in support of GNU rm, for which the command
38504         "rm A '' B" must process and remove both A and B, in spite of
38505         the empty string argument.
38506         * lib/fts.c (fts_open): Do not let the presence of an empty string
38507         cause fts_open to fail immediately.  Most fts-using tools must be
38508         able to process all arguments, in order, and can be expected to
38509         diagnose such arguments themselves.
38510
38511 2009-11-30  Eric Blake  <ebb9@byu.net>
38512
38513         utimens: fix compilation error
38514         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
38515         Declare variable at right scope.
38516
38517 2009-11-29  Jim Meyering  <meyering@redhat.com>
38518
38519         bootstrap: handle perl-5.11's changed --version output
38520         * build-aux/bootstrap (get_version): Handle perl separately,
38521         since perl-5.11's --version output is different.
38522
38523 2009-11-28  Jim Meyering  <meyering@redhat.com>
38524
38525         userspec: depend on the inttostr module, too
38526         * modules/userspec (Depends-on): Add inttostr.
38527
38528         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
38529         * lib/userspec.c (parse_with_separator): Do not accept a user ID
38530         number of MAXUID when it evaluates to (uid_t) -1.
38531         Likewise for group ID.  Reported by Matt McCutchen in
38532         <http://savannah.gnu.org/bugs/?28113>
38533
38534         userspec: reformat to use spaces, not TABs
38535         * lib/userspec.c: Expand TABs to spaces.
38536         Add Emacs' "indent-tabs-mode: nil" hint.
38537
38538 2009-11-27  Eric Blake  <ebb9@byu.net>
38539
38540         getopt-gnu: flush out another BSD bug
38541         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
38542         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
38543         flush out BSD bug.
38544         * tests/test-getopt.h (test_getopt): End lists with NULL.
38545         * tests/test-getopt_long.h (test_getopt_long): Likewise.
38546         (test_getopt_long_posix): Enhance test.
38547         * modules/getopt-posix-tests (Depends-on): Add stdbool.
38548         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
38549         getopt-gnu.
38550         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
38551         Likewise.
38552
38553 2009-11-27  Simon Josefsson  <simon@josefsson.org>
38554
38555         * modules/idpriv-droptemp-tests (Notice): Fix text.
38556
38557 2009-11-27  Jim Meyering  <meyering@redhat.com>
38558
38559         test-xalloc-die: avoid spurious failure due to libtool argv difference
38560         In a libtool-enabled project, this test would fail due to a difference
38561         in the emitted program name, e.g.,
38562         -test-xalloc-die: memory exhausted
38563         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
38564         Use program to avoid that.
38565         * modules/xalloc-die-tests (Depends-on): Add progname.
38566         * tests/test-xalloc-die.c: Include progname.h".
38567         (program_name): Remove decl.
38568         (main): Call set_program_name.
38569         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
38570
38571 2009-11-26  Richard Jones  <rjones@redhat.com>
38572
38573         w32sock: leave win32 error in place.
38574         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
38575
38576 2009-11-26  Eric Blake  <ebb9@byu.net>
38577
38578         init.sh: suggest to use skip_ and fail_ functions in comments
38579         * tests/init.sh: Add a sentence.
38580
38581 2009-11-25  Bruno Haible  <bruno@clisp.org>
38582
38583         init.sh: add documentation in comments
38584         * tests/init.sh: Add some developer and user documentation.
38585
38586 2009-11-26  Jim Meyering  <meyering@redhat.com>
38587
38588         init.sh: accommodate even those who specify bogus srcdir manually
38589         * tests/init.sh: Normally, srcdir is guaranteed by automake and
38590         configure-time tests to be sanitized, so that there is no need to
38591         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
38592         (with no double quotes) suffices.  However, since tests may be
38593         invoked manually, and since you may explicitly set srcdir to the
38594         name of a directory containing spaces, do quote its uses here.
38595         * tests/test-pread.sh: Likewise.
38596         Suggested by Bruno Haible.
38597
38598         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
38599         * tests/test-pread.sh: Write no data into the pipe, because
38600         test-pread actually reads none.  This avoids a diagnostic,
38601         "bash: echo: write error: Broken pipe", that arises in the unusual
38602         event something is ignoring SIGPIPE, and might be interpreted
38603         as some sort of failure.  Reported by Bruno Haible.
38604
38605 2009-11-25  Jim Meyering  <meyering@redhat.com>
38606
38607         test-pread: cover failure with ESPIPE and EINVAL
38608         * tests/test-pread.c (main): Test for failure, too.
38609         * tests/test-pread.sh: Invoke with stdin on a pipe.
38610         Suggested by Eric Blake.
38611
38612         pread: improvement and fix
38613         * modules/pread (Depends-on): Depend on lseek, for portability to
38614         e.g., mingw.  Suggested by Eric Blake.
38615         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
38616
38617         unistd.in.h: correct declaration of pread
38618         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
38619         Reported by Richard W.M. Jones.
38620
38621         test-pread.sh: distribute the test script
38622         * modules/pread-tests (Files): Include test-pread.sh.
38623
38624         test-pread.sh: clean up
38625         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
38626         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
38627         That is unnecessary, since it's always ".".
38628         Suggestion from Eric Blake.
38629
38630         test-pread.sh: make executable
38631         * tests/test-pread.sh: Set executable bit.
38632         Reported by Eric Blake.
38633
38634         correct typo in test-pread.sh
38635         * tests/test-pread.sh: Add #! line.
38636
38637         test pread
38638         * tests/test-pread.c: New file.
38639         * tests/test-pread.sh: Likewise.
38640         * modules/pread-tests: Likewise.
38641
38642         pread: new module
38643         * modules/pread: New file.
38644         * lib/unistd.in.h (pread): Define/declare.
38645         * lib/pread.c (pread): New file.
38646         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
38647         * modules/unistd (Makefile.am): Substitute witnesses.
38648         * doc/posix-functions/pread.texi (pread): Update.
38649         * MODULES.html.sh: Add pread.
38650
38651 2009-11-25  Jim Meyering  <meyering@redhat.com>
38652
38653         tests/init.sh: new file to be used via most *.sh tests
38654         * tests/init.sh: New file.
38655
38656 2009-11-25  Eric Blake  <ebb9@byu.net>
38657
38658         utimens: work around older Linux failure with symlinks
38659         * lib/utimens.c (lutimensat_works_really): New variable.
38660         (fdutimens, lutimens): Use it to manage kernels that support
38661         nanosecond times on files, but not on symlinks.
38662         Reported by Ondřej Vašík.
38663
38664         utimes: fix configure grammar
38665         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
38666
38667 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
38668
38669         regex: Fix fastmap for multibyte character ranges.
38670         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
38671         characters when a multibyte character range is included.
38672
38673 2009-11-22  Andy Wingo  <wingo@pobox.com>
38674
38675         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
38676         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
38677
38678 2009-11-24  Bruno Haible  <bruno@clisp.org>
38679
38680         doc: Most *_l functions exist in MacOS X 10.5.
38681         * doc/posix-functions/duplocale.texi: Update platforms list.
38682         * doc/posix-functions/freelocale.texi: Likewise.
38683         * doc/posix-functions/newlocale.texi: Likewise.
38684         * doc/posix-functions/uselocale.texi: Likewise.
38685         * doc/posix-functions/isalnum_l.texi: Likewise.
38686         * doc/posix-functions/isalpha_l.texi: Likewise.
38687         * doc/posix-functions/isblank_l.texi: Likewise.
38688         * doc/posix-functions/iscntrl_l.texi: Likewise.
38689         * doc/posix-functions/isdigit_l.texi: Likewise.
38690         * doc/posix-functions/isgraph_l.texi: Likewise.
38691         * doc/posix-functions/islower_l.texi: Likewise.
38692         * doc/posix-functions/isprint_l.texi: Likewise.
38693         * doc/posix-functions/ispunct_l.texi: Likewise.
38694         * doc/posix-functions/isspace_l.texi: Likewise.
38695         * doc/posix-functions/isupper_l.texi: Likewise.
38696         * doc/posix-functions/iswalnum_l.texi: Likewise.
38697         * doc/posix-functions/iswalpha_l.texi: Likewise.
38698         * doc/posix-functions/iswblank_l.texi: Likewise.
38699         * doc/posix-functions/iswcntrl_l.texi: Likewise.
38700         * doc/posix-functions/iswctype_l.texi: Likewise.
38701         * doc/posix-functions/iswdigit_l.texi: Likewise.
38702         * doc/posix-functions/iswgraph_l.texi: Likewise.
38703         * doc/posix-functions/iswlower_l.texi: Likewise.
38704         * doc/posix-functions/iswprint_l.texi: Likewise.
38705         * doc/posix-functions/iswpunct_l.texi: Likewise.
38706         * doc/posix-functions/iswspace_l.texi: Likewise.
38707         * doc/posix-functions/iswupper_l.texi: Likewise.
38708         * doc/posix-functions/iswxdigit_l.texi: Likewise.
38709         * doc/posix-functions/isxdigit_l.texi: Likewise.
38710         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
38711         * doc/posix-functions/strcasecmp_l.texi: Likewise.
38712         * doc/posix-functions/strcoll_l.texi: Likewise.
38713         * doc/posix-functions/strfmon_l.texi: Likewise.
38714         * doc/posix-functions/strftime_l.texi: Likewise.
38715         * doc/posix-functions/strncasecmp_l.texi: Likewise.
38716         * doc/posix-functions/strxfrm_l.texi: Likewise.
38717         * doc/posix-functions/tolower_l.texi: Likewise.
38718         * doc/posix-functions/toupper_l.texi: Likewise.
38719         * doc/posix-functions/towctrans_l.texi: Likewise.
38720         * doc/posix-functions/towlower_l.texi: Likewise.
38721         * doc/posix-functions/towupper_l.texi: Likewise.
38722         * doc/posix-functions/wcscoll_l.texi: Likewise.
38723         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
38724         * doc/posix-functions/wctrans_l.texi: Likewise.
38725         * doc/posix-functions/wctype_l.texi: Likewise.
38726         * doc/glibc-functions/strptime_l.texi: Likewise.
38727         * doc/glibc-functions/strtod_l.texi: Likewise.
38728         * doc/glibc-functions/strtof_l.texi: Likewise.
38729         * doc/glibc-functions/strtol_l.texi: Likewise.
38730         * doc/glibc-functions/strtold_l.texi: Likewise.
38731         * doc/glibc-functions/strtoll_l.texi: Likewise.
38732         * doc/glibc-functions/strtoul_l.texi: Likewise.
38733         * doc/glibc-functions/strtoull_l.texi: Likewise.
38734         * doc/glibc-functions/wcsftime_l.texi: Likewise.
38735         * doc/glibc-functions/wcstod_l.texi: Likewise.
38736         * doc/glibc-functions/wcstof_l.texi: Likewise.
38737         * doc/glibc-functions/wcstol_l.texi: Likewise.
38738         * doc/glibc-functions/wcstold_l.texi: Likewise.
38739         * doc/glibc-functions/wcstoll_l.texi: Likewise.
38740         * doc/glibc-functions/wcstoul_l.texi: Likewise.
38741         * doc/glibc-functions/wcstoull_l.texi: Likewise.
38742
38743 2009-11-24  Bruno Haible  <bruno@clisp.org>
38744
38745         duplocale: Fix logic bug.
38746         * lib/duplocale.c: Don't include <langinfo.h>.
38747         (_NL_LOCALE_NAME): Remove macro.
38748         (rpl_duplocale): Use setlocale instead of nl_langinfo.
38749         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
38750
38751 2009-11-23  Jim Meyering  <meyering@redhat.com>
38752
38753         test-update-copyright: don't hard-code /usr/bin/perl
38754         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
38755         perl to print the current year.  Gilles Espinasse reported that
38756         the replaced use of perl was hard-coded as /usr/bin/perl.
38757
38758 2009-11-23  Bruno Haible  <bruno@clisp.org>
38759
38760         duplocale: Add support for glibc 2.3.x.
38761         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
38762
38763 2009-11-22  Bruno Haible  <bruno@clisp.org>
38764
38765         vasnprintf: Tiny optimization.
38766         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
38767         MacOS X.
38768
38769 2009-11-22  Bruno Haible  <bruno@clisp.org>
38770
38771         Tests for module 'duplocale'.
38772         * modules/duplocale-tests: New file.
38773         * tests/test-duplocale.c: New file.
38774
38775         New module 'duplocale'.
38776         * m4/duplocale.m4: New file.
38777         * lib/locale.in.h (duplocale): New declaration.
38778         * lib/duplocale.c: New file.
38779         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
38780         gl_LOCALE_H_DEFAULTS): New macros.
38781         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
38782         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
38783         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
38784         REPLACE_DUPLOCALE.
38785         * modules/duplocale: New file.
38786         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
38787
38788 2009-11-22  Bruno Haible  <bruno@clisp.org>
38789
38790         * modules/locale-tests (configure.ac): Test for newlocale function.
38791         * tests/test-locale.c: When the system has extended locale functions,
38792         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
38793
38794         locale: Make locale_t available when possible.
38795         * lib/locale.in.h: Include <xlocale.h> when it exists.
38796         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
38797         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
38798         * modules/locale (Depends-on): Add extensions.
38799         (Makefile.am): Also substitute HAVE_XLOCALE_H.
38800         * doc/posix-headers/locale.texi: Document the problem with locale_t.
38801
38802 2009-11-22  Bruno Haible  <bruno@clisp.org>
38803
38804         Add comments.
38805         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
38806         invocation.
38807         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
38808         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
38809         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
38810
38811 2009-11-22  Bruno Haible  <bruno@clisp.org>
38812
38813         error: account for the possibility of freopen (stdout).
38814         * lib/error.c: Include <unistd.h>.
38815         (flush_stdout): New function, extracted from error and error_at_line.
38816         Determine stdout's fd dynamically.
38817         (error, error_at_line): Invoke flush_stdout.
38818         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
38819         * modules/error (Depends-on): Add unistd.
38820
38821 2009-11-22  Bruno Haible  <bruno@clisp.org>
38822
38823         diffseq: Add comment.
38824         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
38825
38826 2009-11-22  Jim Meyering  <meyering@redhat.com>
38827
38828         c-stack: avoid defining an unused static function
38829         * lib/c-stack.c (find_stack_direction): Do not define this function
38830         when it will not be used.
38831
38832         diffseq: avoid spurious gcc warnings
38833         * lib/diffseq.h (IF_LINT2): Define.
38834         (compareseq): Use it to initialize two members of "part".
38835         This avoids two used-uninitialized warnings.
38836
38837 2009-11-21  Jim Meyering  <meyering@redhat.com>
38838
38839         c-stack: avoid "ignoring return value of `write'" warning
38840         * lib/c-stack.c: Include "ignore-value.h".
38841         (die): Explicitly ignore each write return value.
38842         * modules/c-stack (Depends-on): Add ignore-value.
38843
38844 2009-11-21  Bruno Haible  <bruno@clisp.org>
38845
38846         diffseq: reduce scope of variable 'best'.
38847         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
38848         variable, earlier used for two different purposes.
38849
38850 2009-11-21  Jim Meyering  <meyering@redhat.com>
38851
38852         diffseq: remove useless assignment to "best"
38853         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
38854         assignment.  At that point "best" is already guaranteed to be zero.
38855
38856 2009-11-20  Eric Blake  <ebb9@byu.net>
38857
38858         build: mention ftp redirector in release announcements
38859         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
38860         values that used to come from cfg.mk; mention FTP redirect URL.
38861         * build-aux/announce-gen: Mention the mirror list.
38862         Suggested by Karl Berry.
38863
38864         nanosleep: improve port to mingw
38865         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
38866         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
38867         LIB_NANOSLEEP, but only when needed.
38868         * modules/select (Link): Document LIBSOCKET.
38869         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
38870         enough.
38871
38872         nanosleep: work around cygwin bug
38873         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
38874         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
38875         bug.
38876         (getnow): Delete, not needed.
38877         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
38878         LIB_CLOCK_GETTIME.
38879         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
38880         clock-time, gettime.
38881         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
38882         bug.
38883         * modules/nanosleep-tests: New test.
38884         * tests/test-nanosleep.c: New file.
38885
38886         sleep: work around cygwin bug
38887         * lib/sleep.c (rpl_sleep): Work around the bug.
38888         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
38889         (gl_PREREQ_SLEEP): Delete unused macro.
38890         * modules/sleep (Depends-on): Add verify.
38891         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
38892         * modules/unistd (Makefile.am): Substitute witness.
38893         * lib/unistd.in.h (sleep): Update prototype.
38894         * doc/posix-functions/sleep.texi (sleep): Document the bug.
38895         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
38896         * modules/sleep-tests (Depends-on): Check for alarm.
38897
38898 2009-11-20  Jim Meyering  <meyering@redhat.com>
38899
38900         maint.mk: improve sc_prohibit_magic_number_exit
38901         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
38902         so it does not match uses like System.exit(1).
38903         Add comments showing how to correct all offenders.
38904
38905 2009-11-19  Eric Blake  <ebb9@byu.net>
38906
38907         xalloc-die-tests: add missing library
38908         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
38909
38910         test-xvasprintf: silence compiler warnings
38911         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
38912         empty string from gcc.
38913
38914 2009-11-19  Jim Meyering  <meyering@redhat.com>
38915
38916         xfreopen: new module, from coreutils
38917         * modules/xfreopen: New module.
38918         * lib/xfreopen.c: New file.
38919         * lib/xfreopen.h: New file.
38920         * MODULES.html.sh (File stream based Input/Output"): Add it.
38921
38922 2009-11-19  Eric Blake  <ebb9@byu.net>
38923
38924         manywarnings: depend on warnings
38925         * modules/manywarnings (Depends-on): Add warnings.
38926
38927         build: avoid compiler warnings
38928         * lib/select.c (rpl_select): Delete unused variable.
38929         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
38930
38931 2009-11-18  Eric Blake  <ebb9@byu.net>
38932
38933         tests: avoid false negative with --with-packager
38934         * tests/test-version-etc.sh: Discard packager information.
38935         * tests/test-argp-version-etc-1.sh: Likewise.
38936         Reported by Mike Frysinger.
38937
38938         utimens: fix regression on Solaris
38939         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
38940         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
38941         can only change fd timestamps via futimesat.  Instead, use an
38942         additional witness macro to avoid BSD bug.
38943         Reported by Jim Meyering.
38944
38945 2009-11-17  Eric Blake  <ebb9@byu.net>
38946
38947         usleep: use it to simplify tests
38948         * modules/stat-time-tests (Depends-on): Add usleep.
38949         (configure.ac): Drop usleep check.
38950         * modules/chown-tests (Depends-on, configure.ac): Likewise.
38951         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
38952         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
38953         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
38954         * modules/openat-tests (Depends-on, configure.ac): Likewise.
38955         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
38956         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
38957         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
38958         Likewise.
38959         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
38960         * tests/test-lchown.h (nap): Likewise.
38961         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
38962         * tests/test-stat-time.c (nap): Likewise.
38963         * tests/test-utimens-common.h (nap): Update comments.
38964
38965         usleep: new module
38966         * modules/usleep: New file.
38967         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
38968         * lib/usleep.c (usleep): Likewise.
38969         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
38970         * modules/unistd (Makefile.am): Substitute witnesses.
38971         * lib/unistd.in.h (usleep): Add declaration.
38972         * doc/pastposix-functions/usleep.texi (usleep): Document this.
38973         * MODULES.html.sh (Date and time): Likewise.
38974         * modules/usleep-tests (Depends-on): New test.
38975         * tests/test-usleep.c: New file.
38976
38977         chown: work around OpenBSD bug
38978         * lib/chown.c (rpl_chown): Work around the bug.
38979         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
38980         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
38981         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
38982         * modules/chown (Depends-on): Add stdbool.
38983         * modules/lchown (Depends-on): Likewise.
38984         * doc/posix-functions/chown.texi (chown): Document the bug.
38985         * doc/posix-functions/lchown.texi (lchown): Likewise.
38986         * tests/test-lchown.h (test_chown): Relax test.
38987
38988         mkstemp: avoid conflict with C++ keyword template
38989         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
38990         * lib/mkostemp.c (mkostemp): Likewise.
38991         * lib/mkostemps.c (mkostemps): Likewise.
38992         * lib/mkstemp.c (mkstemp): Likewise.
38993         * lib/mkstemps.c (mkstemps): Likewise.
38994
38995         xalloc-die-tests: optimize
38996         * tests/test-xalloc-die.sh: Reduce number of processes.
38997
38998 2009-11-17  Simon Josefsson  <simon@josefsson.org>
38999
39000         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
39001         patch from ludo@gnu.org (Ludovic Courtès).
39002
39003 2009-11-17  Jim Meyering  <meyering@redhat.com>
39004
39005         version-etc: use proper license string
39006         * modules/version-etc (License): Use LGPL, not LGPLv3+.
39007         * modules/version-etc-fsf: Likewise.
39008
39009 2009-11-17  Simon Josefsson  <simon@josefsson.org>
39010
39011         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
39012         printed to stdout.  Deal with EOL differences.
39013
39014 2009-11-17  Eric Blake  <ebb9@byu.net>
39015
39016         unsetenv: work around Solaris bug
39017         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
39018         * lib/unsetenv.c (rpl_unsetenv): Work around it.
39019         Reported by Jim Meyering.
39020
39021         vasnprintf: avoid compiler warnings
39022         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
39023         variables.
39024         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
39025
39026 2009-11-17  Simon Josefsson  <simon@josefsson.org>
39027
39028         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
39029         settings since xalloc-die is no longer the self test,
39030         xalloc-die.sh is.
39031
39032 2009-11-17  Jim Meyering  <meyering@redhat.com>
39033
39034         test-xalloc-die.sh: make the code agree with the commit log
39035         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
39036         at the end, just in case you happen to have a test-xalloc-die
39037         program in some other PATH directory.
39038
39039         test-xalloc-die.sh: fix a portability bug
39040         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
39041         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
39042         Otherwise, argv[0] (as often seen in diagnostics) would be too
39043         system-dependent, sometimes with, and sometimes without the leading "./".
39044
39045         version-etc-fsf: relax license to LGPLv3+
39046         * modules/version-etc-fsf (License): Relax license.
39047
39048 2009-11-16  Eric Blake  <ebb9@byu.net>
39049
39050         xalloc-die-tests: avoid printing null pointer
39051         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
39052         shell script.
39053         * tests/test-xalloc-die.c (program_name): Declare.
39054         * tests/test-xalloc-die.sh (tmpfiles): New file.
39055
39056         setenv, unsetenv: work around various bugs
39057         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
39058         (setenv) [HAVE_SETENV]: Work around bugs.
39059         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
39060         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
39061         for bugs.
39062         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
39063         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
39064         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
39065         * modules/stdlib (Makefile.am): Update substitutions.
39066         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
39067         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
39068         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
39069         * modules/setenv-tests: New test.
39070         * modules/unsetenv-tests: Likewise.
39071         * tests/test-setenv.c: New file.
39072         * tests/test-unsetenv.c: Likewise.
39073
39074 2009-11-16  Jim Meyering  <meyering@redhat.com>
39075
39076         version-etc: relax license to LGPLv3+
39077         * modules/version-etc (License): Relax license.
39078
39079         better AC_REQUIRE expanded-before-required-warning avoidance
39080         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
39081         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
39082         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
39083         which is no longer needed.
39084
39085 2009-11-16  Eric Blake  <ebb9@byu.net>
39086
39087         test-freading: clean up temporary file
39088         * tests/test-freading.c (main): Remove file on success, and use
39089         ASSERT more liberally.
39090         Reported by Jim Meyering.
39091
39092 2009-11-16  Jim Meyering  <meyering@redhat.com>
39093
39094         avoid new AC_REQUIRE expanded-before-required warnings
39095         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
39096         merely using it.
39097         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
39098         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
39099
39100 2009-11-15  Simon Josefsson  <simon@josefsson.org>
39101
39102         * tests/test-xalloc-die.c: New file.
39103         * modules/xalloc-die-tests: New file.
39104         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
39105         XFAIL_TESTS so it can be appended by modules.
39106
39107 2009-11-15  Simon Josefsson  <simon@josefsson.org>
39108
39109         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
39110         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
39111
39112 2009-11-14  Eric Blake  <ebb9@byu.net>
39113
39114         fnmatch: avoid compiler warning
39115         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
39116         to silence compiler warning about mismatch signedness in ?:.
39117         Reported by Robert Millan.
39118
39119         intprops: add double-inclusion guard
39120         * lib/intprops.h: Allow idempotent includes.
39121         Suggested by Bruce Korb.
39122
39123         openat: detect Solaris fchownat bug
39124         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
39125         penalizing glibc chownat when only lchownat is broken.
39126         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
39127         trailing slash bugs.
39128         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
39129         * modules/openat-tests (Files): Include more files.
39130         (Depends-on): Add mgetgroups, sleep, stat-time.
39131         (configure.ac): Add additional checks.
39132         (Makefile.am): Build new test.
39133         * tests/test-fchownat.c: New file.
39134
39135         lchown: detect Solaris and FreeBSD bug
39136         * lib/lchown.c (rpl_lchown): Work around bug.
39137         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
39138         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
39139         * modules/unistd (Makefile.am): Populate it.
39140         * lib/unistd.in.h (lchown): Update declaration.
39141         * doc/posix-functions/lchown.texi (lchown): Document the bug.
39142         * modules/lchown-tests: New file.
39143         * tests/test-lchown.h (test_lchown): Likewise.
39144         * tests/test-lchown.c (main): Likewise.
39145
39146         chown: detect Solaris and FreeBSD bug
39147         * lib/chown.c (rpl_chown): Work around bug.
39148         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
39149         (gl_PREREQ_CHOWN): Delete.
39150         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
39151         * modules/unistd (Makefile.am): Populate it.
39152         * lib/unistd.in.h (chown): Update declaration.
39153         * lib/lchown.c (chown): Update client.
39154         * modules/lchown (Depends-on): Add lstat.
39155         * doc/posix-functions/chown.texi (chown): Document the bug.
39156         * doc/posix-functions/getgroups.texi (getgroups): Document
39157         getgroups pitfall.
39158         * modules/chown-tests: New file.
39159         * tests/test-chown.h (test_chown): Likewise.
39160         * tests/test-chown.c (main): Likewise.
39161
39162 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
39163
39164         gnulib-tool: correctly detect absence of m4 directories
39165         * gnulib-tool: Avoid extra newline on data passed to wc -l.
39166
39167 2009-11-14  Jim Meyering  <meyering@redhat.com>
39168
39169         maint.mk: Prohibit inclusion of "xalloc.h" without use.
39170         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
39171
39172 2009-11-14  John W. Eaton  <jwe@gnu.org>
39173
39174         strftime.h: wrap function declaration in extern "C" block
39175         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
39176
39177 2009-11-13  Eric Blake  <ebb9@byu.net>
39178
39179         getgroups: avoid compiler warning
39180         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
39181
39182         getgroups: work around FreeBSD bug
39183         * lib/getgroups.c (rpl_getgroups): Work around the bug.
39184         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
39185         * doc/posix-functions/getgroups.texi (getgroups): Document it.
39186         * tests/test-getgroups.c (main): Fix buffer overrun.
39187
39188         getgroups: avoid compilation failure
39189         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
39190         * modules/getgroups (Depends-on): Add stdint.
39191
39192 2009-11-13  Jim Meyering  <meyering@redhat.com>
39193
39194         test-getgroups: avoid compilation failure
39195         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
39196
39197 2009-11-13  Eric Blake  <ebb9@byu.net>
39198
39199         mgetgroups: new module, taken from coreutils
39200         * modules/mgetgroups: New file.
39201         * lib/mgetgroups.h: Likewise.
39202         * lib/mgetgroups.c (mgetgroups): Likewise.
39203         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
39204         * MODULES.html.sh (Users and groups): Mention it.
39205
39206         getgroups: don't expose GETGROUPS_T to user
39207         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
39208         an element at a time if GETGROUPS_T is wrong size.
39209         * lib/getugroups.h (getugroups): Change signature.
39210         * lib/unistd.in.h (getgroups): Likewise.
39211         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
39212         signature needs fixing.
39213         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
39214         AC_TYPE_GETGROUPS.
39215         * modules/group-member (Depends-on): Add getgroups.
39216         * lib/group-member.c (group_info, get_group_info): Use gid_t.
39217         (group_member): Rely on getgroups replacement.
39218         * lib/getugroups.c (getugroups): Use gid_t.
39219         * tests/test-getgroups.c (main): Likewise.
39220         * NEWS: Mention the signature change.
39221         * doc/posix-functions/getgroups.texi (getgroups): Mention the
39222         problem with signature.
39223         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
39224         GETGROUPS_T is still useful for setgroups.
39225
39226         getgroups, getugroups: provide stubs for mingw
39227         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
39228         * lib/getugroups.c (getugroups): Likewise.
39229         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
39230         function.  Modernize replacement scheme.
39231         (gl_PREREQ_GETGROUPS): Delete.
39232         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
39233         * modules/getgroups (configure.ac): Declare witness.
39234         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
39235         * modules/unistd (Depends-on): Substitute witness.
39236         * lib/unistd.in.h (getgroups): Declare replacement.
39237
39238         getgroups: avoid calling exit
39239         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
39240         drop xalloc.
39241         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
39242         dependencies.
39243         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
39244         exiting, in the rare case of malloc failure.
39245
39246         getgroups: fix logic error
39247         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
39248         has more than 20 groups.
39249         * modules/getgroups-tests: New test.
39250         * tests/test-getgroups.c: New file.
39251
39252 2009-11-13  Simon Josefsson  <simon@josefsson.org>
39253
39254         * tests/test-base64.c: Improve.
39255
39256 2009-11-13  Simon Josefsson  <simon@josefsson.org>
39257
39258         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
39259         Blake <ebb9@byu.net>.
39260
39261 2009-11-13  Simon Josefsson  <simon@josefsson.org>
39262
39263         * tests/test-xvasprintf.c: Add %s%s related checks.
39264
39265 2009-11-12  Eric Blake  <ebb9@byu.net>
39266
39267         version-etc: match standards.texi style
39268         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
39269         and use <> only for URLs.
39270
39271 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
39272
39273         fts: do not fail on a submount during traversal
39274         * lib/fts.c (fts_build): Read the stat info again after opening
39275         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
39276         Original report at http://bugzilla.redhat.com/501848.
39277
39278 2009-11-12  Jim Meyering  <meyering@redhat.com>
39279
39280         bootstrap: sync from coreutils
39281         * build-aux/bootstrap (bootstrap_epilogue): New function.
39282         Use git_modules_config in one more place.  This make bootstrap's
39283         --gnulib-srcdir option more useful for testing.
39284
39285         bootstrap: generalize autoheader check
39286         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
39287         AC_CONFIG_HEADERS.
39288
39289 2009-11-11  Eric Blake  <ebb9@byu.net>
39290
39291         mkfifoat: use new modules for Solaris and BSD bugs
39292         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
39293         * lib/mkfifoat.c (mknodat): Split...
39294         * lib/mknodat.c (mknodat): ...into new file.
39295         * modules/mkfifoat (Files): Ship new file.
39296         (Depends-on): Add mkfifo, mknod.
39297         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
39298         (Depends-on): Add symlink.
39299         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
39300         redundant with test_mkfifo.h.
39301         (do_mkfifoat, do_mknodat): New helpers.
39302
39303         mknod: new module
39304         * modules/mknod: New file.
39305         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
39306         * lib/mknod.c (mknod): Likewise.
39307         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
39308         defaults.
39309         * modules/sys_stat (Makefile.am): Substitute them.
39310         * lib/sys_stat.in.h (mknod): Declare replacement.
39311         * MODULES.html.sh (Support for systems lacking POSIX:2008):
39312         Document it.
39313         * doc/posix-functions/mknod.texi (mknod): Likewise.
39314         * modules/mknod-tests: New test.
39315         * tests/test-mknod.c: Likewise.
39316
39317         mkfifo: new module
39318         * modules/mkfifo: New file.
39319         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
39320         * lib/mkfifo.c (mkfifo): Likewise.
39321         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
39322         defaults.
39323         * modules/sys_stat (Makefile.am): Substitute them.
39324         * lib/sys_stat.in.h (mkfifo): Declare replacement.
39325         * MODULES.html.sh (Support for systems lacking POSIX:2008):
39326         Document it.
39327         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
39328         * modules/mkfifo-tests: New test.
39329         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
39330         from test-mkfifoat.c.
39331         * tests/test-mkfifo.c: New file.
39332
39333         readlink: detect FreeBSD bug
39334         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
39335         slash on symlink.
39336         * doc/posix-functions/readlink.texi (readlink): Document the bug.
39337         * tests/test-readlink.h (test_readlink): Enhance test.
39338
39339         symlink: detect FreeBSD bug
39340         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
39341         slash on symlink.
39342         * doc/posix-functions/symlink.texi (symlink): Document the bug.
39343         * tests/test-symlink.h (test_symlink): Enhance test.
39344
39345 2009-11-10  Eric Blake  <ebb9@byu.net>
39346
39347         link: detect FreeBSD bug
39348         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
39349         symlink.
39350         * doc/posix-functions/link.texi (link): Document the bug.
39351         * tests/test-link.h (test_link): Enhance test.
39352         * tests/test-linkat.c (main): Update caller.
39353
39354         unlink, remove: detect FreeBSD bug
39355         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
39356         slash on symlink.
39357         * doc/posix-functions/unlink.texi (unlink): Document the bug.
39358         * doc/posix-functions/remove.texi (remove): Likewise.
39359         * tests/test-unlink.h (test_unlink): Enhance test.
39360         * tests/test-remove.c (main): Likewise.
39361
39362 2009-11-09  Eric Blake  <ebb9@byu.net>
39363
39364         rename: detect FreeBSD bug
39365         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
39366         slash on symlink.
39367         * modules/renameat-tests (Depends-on): Add filenamecat.
39368         * tests/test-rename.h (test_rename): Allow one more errno.
39369         * tests/test-renameat.c (main): Likewise.
39370         * doc/posix-functions/rename.texi (rename): Document the bug.
39371
39372         open: detect FreeBSD bug
39373         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
39374         symlink.
39375         * doc/posix-functions/open.texi (open): Document the bug.
39376         * doc/posix-functions/utimes.texi (utimes): Likewise.
39377         * tests/test-open.h (test_open): Add parameters, and test symlink
39378         handling.
39379         * tests/test-open.c (main): Adjust caller.
39380         * tests/test-fcntl-safer.c (main): Likewise.
39381         * modules/open-tests (Depends-on): Add stdbool, symlink.
39382         * modules/fcntl-safer-tests (Depends-on): Likewise.
39383         * tests/test-openat.c (main): Add test-open tests.
39384
39385         stat: detect FreeBSD bug
39386         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
39387         symlink.
39388         * doc/posix-functions/stat.texi (stat): Document the bug.
39389         * tests/test-stat.h (test_stat_func): Add argument.
39390         * tests/test-stat.c (main): Adjust caller.
39391         * tests/test-fstatat.c (main): Likewise.
39392         * modules/stat-tests (Depends-on): Add stdbool, symlink.
39393         Reported by Jim Meyering.
39394
39395 2009-11-09  James Youngman  <jay@gnu.org>
39396
39397         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
39398         * lib/strftime.c: Correct placement of #include "ignore-value.h".
39399
39400 2009-11-08  Jim Meyering  <meyering@redhat.com>
39401
39402         utimens: remove invalid futimesat call
39403         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
39404         It used the file descriptor of the target file as the DIR_FD
39405         parameter and NULL as the file name.  That caused failure with
39406         errno == EFAULT on FreeBSD-8.0-rc2
39407
39408 2009-11-07  Eric Blake  <ebb9@byu.net>
39409
39410         fflush, freadseek: use fseeko, not fseek
39411         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
39412         (clear_ungetc_buffer): Avoid potential problems on large files.
39413         * lib/freadseek.c (freadseek): Likewise.
39414         * modules/freadseek (Depends-on): Add fseeko.
39415         * modules/fseek (configure.ac): Set a witness.
39416         * tests/test-fflush.c (main): Use fseeko.
39417         * tests/test-fpurge.c (fseek): Disable link warning.
39418         * tests/test-freadable.c (fseek): Likewise.
39419         * tests/test-freading.c (fseek): Likewise.
39420         * tests/test-fseeko.c (fseek): Likewise.
39421         * tests/test-ftell.c (fseek): Likewise.
39422         * tests/test-ftello.c (fseek): Likewise.
39423         * tests/test-fwritable.c (fseek): Likewise.
39424         * tests/test-fwriting.c (fseek): Likewise.
39425
39426 2009-11-06  Simon Josefsson  <simon@josefsson.org>
39427
39428         * modules/memchr (Depends-on): Drop getpagesize dependency.
39429
39430 2009-11-06  Simon Josefsson  <simon@josefsson.org>
39431
39432         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
39433         Reported by Ludovic Courtès.
39434         * build-aux/pmccabe2html: Improve example usage.
39435         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
39436
39437 2009-11-06  Jim Meyering  <meyering@redhat.com>
39438
39439         do-release-commit-and-tag: New module.
39440         Automate the release-commit and tag process.
39441         * build-aux/do-release-commit-and-tag: New script, from coreutils.
39442         * modules/do-release-commit-and-tag: New file.
39443         * MODULES.html.sh (Support for maintaining and releasing): Add it.
39444
39445 2009-11-06  Simon Josefsson  <simon@josefsson.org>
39446
39447         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
39448         because test-select.c uses inet_pton.
39449
39450 2009-11-06  Simon Josefsson  <simon@josefsson.org>
39451
39452         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
39453         GETADDRINFO_LIB.  Bump serial number.
39454         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
39455         Suggested by Eric Blake <ebb9@byu.net>.
39456
39457 2009-11-05  Eric Blake  <ebb9@byu.net>
39458
39459         strtod: detect darwin bug
39460         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
39461         Reported by Leo Davis.
39462
39463         freopen-safer: new module
39464         * modules/freopen-safer: New module.
39465         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
39466         * lib/freopen-safer.c (freopen_safer): New file.
39467         * lib/stdio-safer.h (freopen_safer): New declaration.
39468         * lib/stdio--.h (freopen): New override.
39469         * MODULES.html.sh (File stream based Input/Output): Mention it.
39470         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
39471         freopen-safer module.
39472         * doc/posix-functions/stderr.texi (stderr): Likewise.
39473         * doc/posix-functions/stdin.texi (stdin): Likewise.
39474         * doc/posix-functions/stdout.texi (stdout): Likewise.
39475         * modules/freopen-safer-tests: New test.
39476         * tests/test-reopen-safer.c: New file.
39477
39478 2009-11-05  Jim Meyering  <meyering@redhat.com>
39479
39480         maint.mk: Prohibit inclusion of "close-stream.h" without use.
39481         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
39482
39483 2009-11-05  Simon Josefsson  <simon@josefsson.org>
39484
39485         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
39486
39487 2009-11-05  Simon Josefsson  <simon@josefsson.org>
39488
39489         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
39490
39491 2009-11-05  Simon Josefsson  <simon@josefsson.org>
39492
39493         Fix link error.
39494         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
39495         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
39496
39497 2009-11-05  Simon Josefsson  <simon@josefsson.org>
39498
39499         * tests/test-func.c: Also test value of __func__.
39500
39501 2009-11-05  Simon Josefsson  <simon@josefsson.org>
39502
39503         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
39504         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
39505
39506 2009-11-05  Bruno Haible  <bruno@clisp.org>
39507
39508         Fix link error.
39509         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
39510         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
39511         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
39512
39513 2009-11-05  Bruno Haible  <bruno@clisp.org>
39514
39515         Tests for module 'inet_pton'.
39516         * modules/inet_pton-tests: New file.
39517         * tests/test-inet_pton.c: New file.
39518
39519 2009-11-05  Bruno Haible  <bruno@clisp.org>
39520
39521         Tests for module 'inet_ntop'.
39522         * modules/inet_ntop-tests: New file.
39523         * tests/test-inet_ntop.c: New file.
39524
39525 2009-11-04  Eric Blake  <ebb9@byu.net>
39526
39527         stdlib-safer: wrap all mkstemp variants
39528         * modules/mkostemp (configure.ac): Set witness.
39529         * modules/mkostemps (configure.ac): Likewise.
39530         * modules/mkstemps (configure.ac): Likewise.
39531         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
39532         (mkstemps_safer): Wrap more functions.
39533         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
39534         wrapping.
39535         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
39536         (mkstemps_safer): Implement the wrappers.
39537
39538         mkstemps, mkostemps: new modules
39539         * modules/mkostemps: New module.
39540         * modules/mkstemps: Likewise.
39541         * lib/mkostemps.c (mkostemps): New file.
39542         * lib/mkstemps.c (mkstemps): Likewise.
39543         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
39544         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
39545         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
39546         * modules/stdlib (Makefile.am): Substitute them.
39547         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
39548         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
39549         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
39550         * doc/gnulib.texi (Glibc stdlib.h): Include them.
39551         * MODULES.html.sh (File system functions): Mention them.
39552
39553         tempname: resync from glibc
39554         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
39555         same values for __GT_FILE as glibc.  Abort even when assertions
39556         are disabled.
39557         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
39558         match its value otherwise.  Allow idempotent inclusion.
39559         * lib/mkdtemp.c (mkdtemp): Adjust caller.
39560         * lib/mkostemp.c (mkostemp): Likewise.
39561         * lib/mkstemp.c (mkstemp): Likewise.
39562         * lib/tmpfile.c (tmpfile): Likewise.
39563         * NEWS: Document this.
39564
39565         utimens: fix use of futimens on older Linux
39566         * lib/utimens.c (fdutimens): Use updated, rather than original,
39567         timespec to avoid bug in older Linux kernel.
39568         Reported by Simon Josefsson.
39569
39570 2009-11-04  Bruno Haible  <bruno@clisp.org>
39571
39572         Make num_processors more flexible and consistent.
39573         * lib/nproc.h (enum nproc_query): New type.
39574         (num_processors): Add a 'query' argument.
39575         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
39576         (num_processors): Add a 'query' argument. Test the value of the
39577         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
39578         mingw, count the number of CPUs available for the current process.
39579         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
39580         Check for sched_getaffinity and sched_getaffinity_np.
39581         * modules/nproc (Depends-on): Add c-ctype, extensions.
39582         * NEWS: Mention the change.
39583
39584 2009-11-03  Bruno Haible  <bruno@clisp.org>
39585
39586         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
39587
39588 2009-11-03  Jim Meyering  <meyering@redhat.com>
39589
39590         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
39591         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
39592         if it is defined.
39593
39594 2009-11-02  Eric Blake  <ebb9@byu.net>
39595
39596         mktime, timegm: share common declaration
39597         * lib/mktime-internal.h: New file.
39598         * lib/mktime.c: Use it rather than open-coding a declaration.
39599         * lib/timegm.c: Likewise.
39600         * modules/mktime (Files): Ship it.
39601         * modules/timegm (Files): Likewise.
39602         Suggested by Bruno Haible.
39603
39604         test-update-copyright: update test to match script changes
39605         * tests/test-update-copyright.sh: Avoid hard-coding perl
39606         location.  Don't update *.bak created by earlier runs.
39607
39608 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
39609             Simon Josefsson  <simon@josefsson.org>
39610             Bruno Haible  <bruno@clisp.org>
39611
39612         Fix link error on Solaris 8.
39613         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
39614         also in libnsl. Define also INET_PTON_LIB.
39615         * modules/inet_pton (Link): New section.
39616
39617 2009-11-02  Simon Josefsson  <simon@josefsson.org>
39618             Bruno Haible  <bruno@clisp.org>
39619
39620         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
39621         * modules/inet_ntop (Link): New section.
39622         Reported by Boyan Kasarov <bkasarov@gmail.com>.
39623
39624 2009-11-02  Eric Blake  <ebb9@byu.net>
39625
39626         maint: avoid compiler warnings in m4 macros
39627         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
39628         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
39629
39630 2009-11-02  Simon Josefsson  <simon@josefsson.org>
39631
39632         * m4/pmccabe2html.m4: Remove file.
39633         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
39634         function.  Change maintainer.
39635         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
39636         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
39637         Courtès).
39638
39639 2009-10-31  Eric Blake  <ebb9@byu.net>
39640
39641         fseeko: fix m4 regression
39642         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
39643         regression from 2009-10-27.
39644         Reported by Ralf Wildenhues.
39645
39646 2009-10-31  Jim Meyering  <meyering@redhat.com>
39647
39648         inttostr: aesthetics and improved (compile-time) safety
39649         Define inttype_is_signed rather than inttype_is_unsigned,
39650         since the sole use is via "#if inttype_is_signed".
39651         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
39652         inttype_is_unsigned.
39653         * lib/offtostr.c (inttype_is_signed): Likewise.
39654         * lib/uinttostr.c (inttype_is_signed): Likewise.
39655         * lib/umaxtostr.c (inttype_is_signed): Likewise.
39656         * lib/inttostr.c (inttostr): Use verify to cross-check the
39657         inttype_is_signed value and the signedness of the actual type.
39658         * modules/inttostr (Depends-on): Add verify.
39659
39660 2009-10-30  Eric Blake  <ebb9@byu.net>
39661
39662         build: avoid compiler warnings
39663         * lib/fchmodat.c (lchmod): Mark unused variables.
39664         * lib/getopt.c (_getopt_initialize): Likewise.
39665         * lib/mktime.c (__mktime_internal): Provide prototype.
39666         * lib/inttostr.c (inttostr): Avoid compiler warning even with
39667         older gcc that do not understand #pragma GCC diagnostic.
39668         * lib/uinttostr.c (inttype_is_unsigned): Define.
39669         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
39670
39671 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
39672
39673         stat: fix compilation on AIX
39674         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
39675         only see struct stat64.
39676
39677 2009-10-30  Eric Blake  <ebb9@byu.net>
39678
39679         exclude: make more robust
39680         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
39681         rather than masking a coding bug.
39682         Suggested by Bruno Haible.
39683
39684 2009-10-30  Jim Meyering  <meyering@redhat.com>
39685
39686         perl scripts: remove #!/usr/bin/perl in favor of more portable...
39687         Rather than putting #!/usr/bin/perl on the first line,
39688         start with a variant of what's recommended by "man perlrun" that
39689         invokes the first "perl" program from your shell's search path.
39690         * build-aux/gitlog-to-changelog: Replace #!... as above.
39691         Add a "Local Variables" perl mode setting.
39692         Prompted by a patch from Ludovic Courtès.
39693         Improved by Eric Blake.
39694         * build-aux/useless-if-before-free: Likewise.
39695         * build-aux/announce-gen: Likewise.
39696         * build-aux/update-copyright: Likewise.
39697
39698 2009-10-29  Eric Blake  <ebb9@byu.net>
39699
39700         filenamecat-lgpl: adjust clients
39701         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
39702         filenamecat.
39703         * modules/renameat (Depends-on): Likewise.
39704
39705         filenamecat: split into filenamecat-lgpl
39706         * modules/filenamecat-lgpl: New module.
39707         * modules/filenamecat (Files): Move library-safe files into
39708         filenamecat-lgpl.
39709         (Depends-on): Add filenamecat-lgpl.
39710         (configure.ac): Declare witness.
39711         * lib/filenamecat.h (file_name_concat): Only declare when using
39712         GPL module.
39713         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
39714         Move...
39715         * lib/filenamecat-lgpl.c: ...into new file.
39716         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
39717         (gl_FILE_NAME_CONCAT): Use it.
39718         * MODULES.html.sh (File system functions): Mention new module.
39719
39720         argp: avoid memory leak
39721         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
39722         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
39723         base_name, since the latter malloc()s and can call exit().
39724         Leak introduced 2006-07-03.
39725
39726         dirname-lgpl: adjust clients that don't need full dirname
39727         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
39728         * modules/filenamecat (Depends-on): Likewise.
39729         * modules/linkat (Depends-on): Likewise.
39730         * modules/mkancesdirs (Depends-on): Likewise.
39731         * modules/mkdir (Depends-on): Likewise.
39732         * modules/openat (Depends-on): Likewise.
39733         * modules/savewd (Depends-on): Likewise.
39734         * modules/rename (Depends-on): Likewise.
39735         (License): Relax license.
39736         * modules/mkdir-tests (Depends-on): Drop progname.
39737         (Makefile.am): Delete unneeded LDADD.
39738         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
39739
39740         dirname: split into dirname-lgpl
39741         * modules/dirname-lgpl: New module.
39742         * modules/dirname (Files): Move library-safe files into
39743         dirname-lgpl.
39744         (Depends-on): Add dirname-lgpl.
39745         (configure.ac): Declare witness.
39746         * modules/double-slash-root (License): Relax license.
39747         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
39748         module.
39749         * lib/dirname.c (dir_len, mdir_name): Move...
39750         * lib/dirname-lgpl.c: ...into new file.
39751         * lib/basename.c (last_component, base_len): Move...
39752         * lib/basename-lgpl.c: ...into new file.
39753         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
39754         (gl_DIRNAME): Use it.
39755         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
39756         Mention new module.
39757         * modules/dirname-tests (Depends-on): Add progname.
39758         * tests/test-dirname.c (program_name): Delete.
39759
39760         mkdir: make safe for libraries
39761         * modules/mkdir (Depends-on): Drop xalloc.
39762         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
39763         exit.
39764
39765         tests: avoid some compiler warnings
39766         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
39767         literals.
39768         * tests/test-memchr.c (main): Avoid type mismatch.
39769         * tests/test-arpa_inet.c (main): Avoid unused parameters.
39770         * tests/test-base64.c (main): Likewise.
39771         * tests/test-getdelim.c (main): Likewise.
39772         * tests/test-gethostname.c (main): Likewise.
39773         * tests/test-getline.c (main): Likewise.
39774         * tests/test-netinet_in.c (main): Likewise.
39775         * tests/test-select.c (open_server_socket, main): Likewise.
39776         * tests/test-select-stdin.c (main): Likewise.
39777         * tests/test-sockets.c (main): Likewise.
39778         * tests/test-strsignal.c (main): Likewise.
39779         * tests/test-sys_select.c (main): Likewise.
39780         * tests/test-sys_socket.c (main): Likewise.
39781         * tests/test-u64.c (main): Likewise.
39782         * tests/test-xfprintf-posix.c (main): Likewise.
39783         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
39784
39785         sockets: avoid compiler warning
39786         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
39787
39788         maint: detect usage(1) and other suspicious exits
39789         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
39790
39791 2009-10-29  Jim Meyering  <meyering@redhat.com>
39792
39793         timespec: long-to-int truncation could make timespec_cmp malfunction
39794         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
39795         a multiple of 2^32 nanoseconds as no difference.
39796
39797 2009-10-28  Jim Meyering  <meyering@redhat.com>
39798
39799         fprintftime: wrap macro code argument in "do {...} while(0)"
39800         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
39801         cpy macro must be a statement that can be followed by a semicolon.
39802         Now that the else clause contains a comment and is hence longer
39803         than one line, I require curly braces.  That in turn requires
39804         that we wrap this code block in the standard do...while(0).
39805
39806         fprintftime: remove stray semicolon from previous change
39807         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
39808
39809         fprintftime: avoid a warning about ignored fwrite return value
39810         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
39811         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
39812         that is unsafe.
39813         * modules/fprintftime (Depends-on): Add ignore-value.
39814
39815         exclude: avoid an unwarranted warning
39816         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
39817
39818 2009-10-27  Eric Blake  <ebb9@byu.net>
39819
39820         fseek: avoid compilation failure when fflush is replaced
39821         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
39822         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
39823         module is in use.
39824         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
39825         module is not in use; since REPLACE_FSEEK worked otherwise.
39826         (GNULIB_FTELLO): Likewise for ftell.
39827         Reported by Ian Beckwith and others.
39828
39829 2009-10-27  Bruno Haible  <bruno@clisp.org>
39830
39831         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
39832         Reported by Jim Meyering.
39833
39834 2009-10-27  Jim Meyering  <jim@meyering.net>
39835             Bruno Haible  <bruno@clisp.org>
39836
39837         Avoid warning despite dropping the return value of fwrite.
39838         * lib/unicodeio.c: Include ignore-value.h.
39839         (fwrite_success_callback): Explicitly ignore fwrite's return value.
39840         * modules/unicodeio (Depends-on): Add ignore-value.
39841
39842 2009-10-26  Eric Blake  <ebb9@byu.net>
39843
39844         areadlinkat: fix fallback path
39845         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
39846         pointer and zero.
39847
39848 2009-10-22  Pádraig Brady  <P@draigBrady.com>
39849
39850         Use a better IO block size for modern systems
39851         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
39852         * lib/md2.c: Likewise.
39853         * lib/md4.c: Likewise.
39854         * lib/md5.c: Likewise.
39855         * lib/sha1.c: Likewise.
39856         * lib/sha256.c: Likewise.
39857         * lib/sha512.c: Likewise.
39858
39859 2009-10-22  Eric Blake  <ebb9@byu.net>
39860
39861         tests: avoid several compiler warnings
39862         * tests/test-getcwd.c (main): Avoid buffer underflow.
39863         * tests/test-getdate.c (main): String literals are not safe with
39864         putenv, so use setenv.  Declare unused argument.
39865         * modules/getdate-tests (Depends-on): Add setenv.
39866         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
39867         problems with string literals in char *.
39868         * tests/test-hash.c (main): Avoid shadowing declaration.
39869         (insert_new): Treat string literals as char const *.
39870         * tests/test-getopt.h (test_getopt): Likewise.
39871         (getopt_loop): Alter types to minimize casting elsewhere.
39872         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
39873         (test_getopt_long_posix): Likewise.
39874         (do_getopt_long): Add wrapper to minimize casting.
39875         * tests/test-atexit.c (clear_temp_file): Use void.
39876         * tests/test-areadlink-with-size.c (main): Declare unused
39877         arguments.
39878         * tests/test-areadlink.c (main): Likewise.
39879         * tests/test-areadlinkat-with-size.c (main): Likewise.
39880         * tests/test-areadlinkat.c (main): Likewise.
39881         * tests/test-canonicalize-lgpl.c (main): Likewise.
39882         * tests/test-canonicalize.c (main): Likewise.
39883         * tests/test-dirent-safer.c (main): Likewise.
39884         * tests/test-dirname.c (main): Likewise.
39885         * tests/test-dup2.c (main): Likewise.
39886         * tests/test-fchdir.c (main): Likewise.
39887         * tests/test-fcntl-h.c (main): Likewise.
39888         * tests/test-fcntl-safer.c (main): Likewise.
39889         * tests/test-fdopendir.c (main): Likewise.
39890         * tests/test-fdutimensat.c (main): Likewise.
39891         * tests/test-fflush.c (main): Likewise.
39892         * tests/test-filenamecat.c (main): Likewise.
39893         * tests/test-filevercmp.c (main): Likewise.
39894         * tests/test-fopen-safer.c (main): Likewise.
39895         * tests/test-fopen.c (main): Likewise.
39896         * tests/test-fpending.c (main): Likewise.
39897         * tests/test-fpurge.c (main): Likewise.
39898         * tests/test-freading.c (main): Likewise.
39899         * tests/test-fstatat.c (main): Likewise.
39900         * tests/test-fsync.c (main): Likewise.
39901         * tests/test-futimens.c (main): Likewise.
39902         * tests/test-getndelim2.c (main): Likewise.
39903         * tests/test-gettimeofday.c (main): Likewise.
39904         * tests/test-getopt.c (main): Likewise.
39905         * tests/test-i-ring.c (main): Likewise.
39906         * tests/test-inttypes.c (main): Likewise.
39907         * tests/test-link.c (main): Likewise.
39908         * tests/test-lstat.c (main): Likewise.
39909         * tests/test-math.c (main): Likewise.
39910         * tests/test-md5.c (main): Likewise.
39911         * tests/test-memchr2.c (main): Likewise.
39912         * tests/test-memrchr.c (main): Likewise.
39913         * tests/test-mkdir.c (main): Likewise.
39914         * tests/test-mkdirat.c (main): Likewise.
39915         * tests/test-mkfifoat.c (main): Likewise.
39916         * tests/test-open.c (main): Likewise.
39917         * tests/test-openat-safer.c (main): Likewise.
39918         * tests/test-openat.c (main): Likewise.
39919         * tests/test-quotearg.c (main): Likewise.
39920         * tests/test-rawmemchr.c (main): Likewise.
39921         * tests/test-readlink.c (main): Likewise.
39922         * tests/test-remove.c (main): Likewise.
39923         * tests/test-rename.c (main): Likewise.
39924         * tests/test-renameat.c (main): Likewise.
39925         * tests/test-rmdir.c (main): Likewise.
39926         * tests/test-sha1.c (main): Likewise.
39927         * tests/test-signal.c (main): Likewise.
39928         * tests/test-sigaction.c (main): Likewise.
39929         * tests/test-stat.c (main): Likewise.
39930         * tests/test-stat-time.c (main): Likewise.
39931         * tests/test-stddef.c (main): Likewise.
39932         * tests/test-stdint.c (main): Likewise.
39933         * tests/test-stdio.c (main): Likewise.
39934         * tests/test-stdlib.c (main): Likewise.
39935         * tests/test-strchrnul.c (main): Likewise.
39936         * tests/test-strerror.c (main): Likewise.
39937         * tests/test-string.c (main): Likewise.
39938         * tests/test-strtod.c (main): Likewise.
39939         * tests/test-strverscmp.c (main): Likewise.
39940         * tests/test-symlink.c (main): Likewise.
39941         * tests/test-symlinkat.c (main): Likewise.
39942         * tests/test-sys_stat.c (main): Likewise.
39943         * tests/test-sys_time.c (main): Likewise.
39944         * tests/test-time.c (main): Likewise.
39945         * tests/test-unistd.c (main): Likewise.
39946         * tests/test-unlink.c (main): Likewise.
39947         * tests/test-unlinkat.c (main): Likewise.
39948         * tests/test-utimens.c (main): Likewise.
39949         * tests/test-utimensat.c (main): Likewise.
39950         * tests/test-version-etc.c (main): Likewise.
39951         * tests/test-wchar.c (main): Likewise.
39952         * tests/test-wctype.c (main): Likewise.
39953         * tests/test-xprintf-posix.c (main): Likewise.
39954         * tests/test-posixtm.c (main): Likewise.
39955         (STREQ): Delete unused macro.
39956         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
39957         shadowed variables.
39958         * tests/test-memchr.c (main): Likewise.
39959
39960 2009-10-21  Eric Blake  <ebb9@byu.net>
39961
39962         areadlinkat: avoid failure on older glibc
39963         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
39964         rather than mis-comparing 0 against FUNC_RESULT of char*.
39965
39966 2009-10-21  Bruno Haible  <bruno@clisp.org>
39967
39968         * modules/stpncpy (License): Relicense under LGPLv2+.
39969         Reported by David Lutterkort <lutter@redhat.com>.
39970
39971 2009-10-20  Eric Blake  <ebb9@byu.net>
39972
39973         utimensat: work around Solaris 9 bug
39974         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
39975         has trailing slash bugs.
39976         * tests/test-lutimens.h (test_lutimens): Enhance test.
39977         * tests/test-utimens.h (test_utimens): Likewise.
39978         * doc/posix-functions/utime.texi (utime): Enhance documentation.
39979         * doc/posix-functions/utimes.texi (utimes): Likewise.
39980         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
39981         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
39982         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
39983         * doc/posix-functions/futimens.texi (futimens): Likewise.
39984
39985         fdutimensat: new module
39986         * modules/fdutimensat: New file.
39987         * lib/fdutimensat.c (fdutimensat): Likewise.
39988         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
39989         * MODULES.html.sh (File system functions): Mention module.
39990         * modules/fdutimensat-tests: New test.
39991         * tests/test-fdutimensat.c: Likewise.
39992
39993         doc: regenerate INSTALL
39994         * doc/INSTALL: Reflect recent autoconf update.
39995         * doc/INSTALL.ISO: Likewise.
39996         * doc/INSTALL.UTF-8: Likewise.
39997
39998 2009-10-20  Pádraig Brady  <P@draigBrady.com>
39999
40000         acl: warn if ACL support is not detected
40001         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
40002
40003 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
40004
40005         * lib/nproc.h: Add extern "C" block for C++.
40006
40007 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
40008             Bruno Haible  <bruno@clisp.org>
40009
40010         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
40011         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
40012         * doc/posix-functions/isalpha.texi: Likewise.
40013         * doc/posix-functions/isblank.texi: Likewise.
40014         * doc/posix-functions/iscntrl.texi: Likewise.
40015         * doc/posix-functions/isdigit.texi: Likewise.
40016         * doc/posix-functions/isgraph.texi: Likewise.
40017         * doc/posix-functions/islower.texi: Likewise.
40018         * doc/posix-functions/isprint.texi: Likewise.
40019         * doc/posix-functions/ispunct.texi: Likewise.
40020         * doc/posix-functions/isspace.texi: Likewise.
40021         * doc/posix-functions/isupper.texi: Likewise.
40022         * doc/posix-functions/isxdigit.texi: Likewise.
40023
40024 2009-10-18  Bruno Haible  <bruno@clisp.org>
40025
40026         Tests for module 'isblank'.
40027         * modules/isblank-tests: New file.
40028         * tests/test-isblank.c: New file.
40029
40030         New module 'isblank'.
40031         * lib/isblank.c: New file.
40032         * m4/isblank.m4: New file.
40033         * modules/isblank: New file.
40034         * doc/posix-functions/isblank.texi: Mention the new module.
40035
40036 2009-10-18  Bruno Haible  <bruno@clisp.org>
40037
40038         New module 'ctype'.
40039         * lib/ctype.in.h: New file.
40040         * m4/ctype.m4: New file.
40041         * modules/ctype: New file.
40042         * doc/posix-headers/ctype.texi: Mention the new module.
40043
40044 2009-10-18  Jim Meyering  <meyering@redhat.com>
40045
40046         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
40047         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
40048         right after its initialization, rather than farther down.
40049         Keeping these in close proximity makes it easier to ensure
40050         that each such variable is initialized.  E.g.,
40051
40052             LIB_CLOCK_GETTIME=
40053             AC_SUBST([LIB_CLOCK_GETTIME])
40054
40055         This change also increments these serial numbers.
40056         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
40057         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
40058         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
40059
40060 2009-10-18  Bruno Haible  <bruno@clisp.org>
40061
40062         Don't let environment variables perturb build.
40063         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
40064         (gl_PREREQ_GETHRXTIME): ... not here.
40065
40066 2009-10-18  Bruno Haible  <bruno@clisp.org>
40067
40068         Avoid symlink attack in localcharset module.
40069         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
40070         (O_NOFOLLOW): Define fallback.
40071         (get_charset_aliases): Don't open the file if it is a symbolic link.
40072         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
40073         gl_FCNTL_H.
40074         (gl_FCNTL_H): Require it.
40075         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
40076         * modules/localcharset (Files): Add m4/fcntl_h.m4.
40077         Reported by Fergal Glynn <fglynn@veracode.com>.
40078
40079 2009-10-18  Bruno Haible  <bruno@clisp.org>
40080
40081         Implement nproc for mingw.
40082         * lib/nproc.c: Include <windows.h>
40083         (num_processors): On native Windows platforms, try GetSystemInfo.
40084
40085 2009-10-18  Bruno Haible  <bruno@clisp.org>
40086
40087         Implement nproc for IRIX.
40088         * lib/nproc.c: Include <sys/sysmp.h>.
40089         (num_processors): On IRIX systems, try sysmp.
40090         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
40091
40092 2009-10-18  Bruno Haible  <bruno@clisp.org>
40093
40094         Implement nproc for HP-UX.
40095         * lib/nproc.c: Include <sys/pstat.h>
40096         (num_processors): On HP-UX systems, try pstat_getdynamic.
40097         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
40098         pstat_getdynamic.
40099
40100 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
40101             Bruno Haible  <bruno@clisp.org>
40102
40103         Implement nproc for NetBSD, OpenBSD.
40104         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
40105         (ARRAY_SIZE): New macro.
40106         (num_processors): On BSD systems, try sysctl of HW_NCPU.
40107         * m4/nproc.m4: New file.
40108         * modules/nproc (Files): Add m4/nproc.m4.
40109         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
40110         (Makefile.am): Instead, augment lib_SOURCES.
40111
40112 2009-10-18  Bruno Haible  <bruno@clisp.org>
40113
40114         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
40115         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
40116         sys/param.h.
40117
40118 2009-10-16  Eric Blake  <ebb9@byu.net>
40119
40120         utimensat: new module
40121         * modules/utimensat: New file.
40122         * lib/utimensat.c (utimensat): Likewise.
40123         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
40124         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
40125         so we can work around Linux bugs.
40126         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
40127         * modules/sys_stat (Makefile.am): Substitute them.
40128         * lib/sys_stat.in.h (utimensat): Declare it.
40129         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40130         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
40131         * modules/utimensat-tests: New test.
40132         * tests/test-utimensat.c: Likewise.
40133
40134         utimens: let lutimens work on non-symlinks
40135         * lib/utimens.c (lutimens): Fall back to utimens rather than
40136         failing with ENOSYS, when file is not a symlink.
40137         (utimens): Reduce redirection.
40138         * tests/test-lutimens.h (test_lutimens): Update test to cover
40139         non-symlinks.
40140         * tests/test-utimens.h (test_utimens): Update test to cover
40141         symlinks.
40142         * tests/test-utimens.c (main): Update caller.
40143
40144         utimens: cache whether utimensat syscall works
40145         * lib/utimens.c (utimensat_works_really): New cache variable.
40146         (fdutimens, lutimens): Use it to avoid failing syscall.
40147
40148         test-stat-time, test-utimens: improve portability
40149         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
40150         ext4 on alpha, and for cygwin.
40151         * tests/test-utimens-common.h: New file.
40152         (nap): Factor delays into single function.
40153         * tests/test-lutimens.h (test_lutimens): Use new header.
40154         * tests/test-futimens.h (test_futimens): Likewise.
40155         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
40156         timestamps to occur from same machine, as was done previously for
40157         test_utimens.
40158         * modules/utimens-tests (Files): Ship new file.
40159         * modules/futimens-tests (Files): Likewise.
40160         Reported in part by Jim Meyering.
40161
40162         sys_stat: sort replacement declarations
40163         * lib/sys_stat.in.h: Sort declarations.
40164         * lib/futimens.c (futimens): Fix typo.
40165
40166 2009-10-15  Jim Meyering  <meyering@redhat.com>
40167
40168         don't let environment settings perturb build
40169         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
40170         could cause a configure-time and/or build-time malfunction.
40171         Typically, a configure-time function-in-library test is performed
40172         via code like this:
40173
40174           LIB_VAR=
40175           AC_SUBST([LIB_VAR])
40176           prefix_saved_LIBS=$LIBS
40177             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
40178                        [test "$ac_cv_search_FUNC" = "none required" ||
40179                         LIB_VAR=$ac_cv_search_FUNC])
40180           LIBS=$prefix_saved_LIBS
40181
40182         However, in each of the files affected by this change, the LIB_VAR=
40183         initialization was omitted.  Thus, when set in the environment, its
40184         value would propagate into generated Makefiles when FUNC is not found
40185         in LIB_NAME.
40186         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
40187         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
40188         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
40189
40190 2009-10-14  Eric Blake  <ebb9@byu.net>
40191
40192         fchdir: avoid infinite recursion in mingw
40193         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
40194         recursing.
40195
40196         test-stat-time: port to mingw
40197         * tests/test-stat-time.c (force_unlink): Return a value.
40198         (test_ctime) [W32]: Fix compilation error.
40199         (nap): Don't call usleep with too large an argument.  Use
40200         force_unlink.
40201         * doc/pastposix-functions/usleep.texi (usleep): Document the
40202         portability issue.
40203
40204 2009-10-13  Jim Meyering  <meyering@redhat.com>
40205
40206         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
40207         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
40208         * modules/pipe-filter-ii: Likewise.
40209         * modules/sys_socket-tests: Likewise.
40210         * modules/tsearch-tests: Likewise.
40211         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
40212         (check): Depend on it.
40213
40214 2009-10-12  Eric Blake  <ebb9@byu.net>
40215
40216         utimens-tests: port to NFS file systems
40217         * tests/test-utimens.h (test_utimens): Refactor utimecmp
40218         comparisons to avoid spurious failures from timestamp drift
40219         between NFS machines.
40220
40221 2009-10-12  Eric Blake  <ebb9@byu.net>
40222
40223         stat-time-tests: minor cleanups
40224         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
40225         * tests/test-stat-time.c (nap): Separate assignment from call.
40226         Suggested by Paolo Bonzini and Bruno Haible.
40227
40228         sys_stat: guarantee struct timespec
40229         * lib/sys_stat.in.h (includes): Always include <time.h>
40230         * modules/sys_stat (Depends-on): Add time.
40231         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
40232         mode_t permission values.
40233         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
40234         get at subsecond timestamps.
40235
40236 2009-10-10  Eric Blake  <ebb9@byu.net>
40237
40238         futimens: new module
40239         * modules/futimens: New file.
40240         * lib/futimens.c (futimens): Likewise.
40241         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
40242         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
40243         we can work around Linux bugs.
40244         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
40245         * modules/sys_stat (Makefile.am): Substitute them.
40246         * lib/sys_stat.in.h (futimens): Declare it.
40247         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40248         * doc/posix-functions/futimens.texi (futimens): Likewise.
40249         * modules/futimens-tests: New test.
40250         * tests/test-futimens.c: Likewise.
40251
40252         utimens: introduce fdutimens
40253         * lib/utimens.h (fdutimens): New prototype.
40254         * lib/utimens.c (gl_futimens): Move guts...
40255         (fdutimens): ...to new interface.
40256         * tests/test-utimens.c (do_fdutimens): Use it.
40257
40258         utimens: add UTIME_NOW and UTIME_OMIT support
40259         * lib/utimens.c (validate_timespec, update_timespec): New helper
40260         functions.
40261         (gl_futimens, lutimens): Use them.
40262         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
40263         stdbool, sys_stat.
40264         (Link): Mention resulting library dependency.
40265         * modules/utimecmp (Link): Likewise.
40266         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
40267         (Makefile.am): Pick up library dependency.
40268         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
40269         definition.
40270         * tests/test-sys_stat.c: Test the definitions.
40271         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
40272         * NEWS: Document library dependency.
40273
40274         utimecmp: support symlink timestamps
40275         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
40276         hashing when possible.  Use pathconf when available.
40277         (SYSCALL_RESOLUTION): Recognize tighter resolution.
40278         * modules/utimecmp (Depends-on): Add lstat.
40279
40280         utimens: add lutimens interface
40281         * lib/utimens.c (lutimens): New function.
40282         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
40283         * lib/utimens.h (lutimens): Declare new interface.
40284         * tests/test-utimens.c (main): Enhance test.
40285         * tests/test-lutimens.h (test_lutimens): New file.
40286         * modules/utimens-tests (Files): Distribute it.
40287         (Depends-on): Add symlink.
40288         (configure.ac): Check for usleep.
40289
40290         utimens: validate futimens usage
40291         * lib/utimens.c (gl_futimens): Require valid fd up front, using
40292         fewer syscalls on failure later on.  Avoid compiler warning on
40293         mingw.
40294         * modules/utimens (Depends-on): Add dup2.
40295
40296         utimens: add test
40297         * modules/utimens-tests: New test.
40298         * tests/test-utimens.h: New file.
40299         * tests/test-futimens.h: Likewise.
40300         * tests/test-utimens.c: Likewise.
40301
40302         doc: mention timestamp portability issues
40303         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
40304         instead.
40305         * doc/posix-functions/utime.texi (utime): Likewise.
40306         * doc/posix-functions/utimes.texi (utimes): Likewise.
40307         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
40308         instead.
40309         * doc/posix-functions/futimens.texi (futimens): Mention utimens
40310         module.
40311         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
40312         Mention weakness with symlink timestamps.
40313         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
40314         to utimensat/futimens instead.
40315         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
40316
40317         test-dup2: enhance test
40318         * tests/test-dup2.c (main): Also check AT_FDCWD.
40319
40320         test-stat-time: avoid more spurious failures
40321         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
40322         xfs; and avoid race if the two timestamps cross quantization edge.
40323
40324         relocatable: prefer 'file system' over 'filesystem'
40325         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
40326         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
40327         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
40328         * doc/relocatable.texi (Enabling Relocatability): Likewise.
40329         * lib/relocatable.c (compute_curr_prefix): Likewise.
40330
40331 2009-10-10  Jim Meyering  <meyering@redhat.com>
40332
40333         stat-time-tests: check for the usleep function
40334         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
40335
40336 2009-10-10  Bruno Haible  <bruno@clisp.org>
40337
40338         * modules/xnanosleep: Put the Link section after the Include section.
40339
40340 2009-10-09  Eric Blake  <ebb9@byu.net>
40341
40342         dup2: work around FreeBSD 6.1 bug
40343         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
40344         * doc/posix-functions/dup2.texi (dup2): Document it.
40345         Reported by Nelson H. F. Beebe and Jim Meyering.
40346
40347         test-stat-time: port to buggy NFS clients
40348         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
40349         (test_ctime): Also skip test if mtime and ctime are skewed.
40350
40351         maint: prefer 'file system' over 'filesystem'
40352         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
40353         * doc/posix-functions/lstat.texi (lstat): Likewise.
40354         * lib/file-has-acl.c (file_has_acl): Likewise.
40355         * lib/fwriteerror.c [TEST]: Likewise.
40356         * tests/test-areadlink.h (test_areadlink): Likewise.
40357         * tests/test-areadlinkat-with-size.c (main): Likewise.
40358         * tests/test-areadlinkat.c (main): Likewise.
40359         * tests/test-canonicalize-lgpl.c (main): Likewise.
40360         * tests/test-canonicalize.c (main): Likewise.
40361         * tests/test-fstatat.c (main): Likewise.
40362         * tests/test-linkat.c (main): Likewise.
40363         * tests/test-lstat.h (test_lstat_func): Likewise.
40364         * tests/test-mkdir.h (test_mkdir): Likewise.
40365         * tests/test-readlink.h (test_readlink): Likewise.
40366         * tests/test-remove.c (main): Likewise.
40367         * tests/test-rename.h (test_rename): Likewise.
40368         * tests/test-renameat.c (main): Likewise.
40369         * tests/test-rmdir.h (test_rmdir_func): Likewise.
40370         * tests/test-symlink.h (test_symlink): Likewise.
40371         * tests/test-symlinkat.c (main): Likewise.
40372         * tests/test-unlink.h (test_unlink_func): Likewise.
40373         * tests/test-unlinkat.c (main): Likewise.
40374
40375         maint: make realtime library usage explicit
40376         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
40377         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
40378         * modules/settime (Link): Likewise.
40379         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
40380
40381         test-stat-time: speed up execution
40382         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
40383         warning on mingw.
40384         (nap): New helper function.
40385         (prepare_test): Use it to reduce sleep time.
40386         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
40387         execution.
40388         * modules/stat-time-tests (configure.ac): Check for usleep.
40389
40390 2009-10-09  Jim Meyering  <meyering@redhat.com>
40391
40392         selinux-h: always use getfilecon wrappers
40393         * lib/getfilecon.c: New file.
40394         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
40395         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
40396         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
40397         (fgetfilecon): Provide a stub.
40398         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
40399         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
40400         file unconditionally.
40401         When <selinux/selinux.h> is found, arrange to use wrappers.
40402         * modules/selinux-h (Files): Add getfilecon.c.
40403         (Makefile.am): Substitute include-next-related bits
40404         into the now-always-generated selinux/selinux.h file.
40405         * doc/glibc-functions/lgetfilecon.texi: New file.
40406         * doc/glibc-functions/fgetfilecon.texi: New file.
40407         * doc/glibc-functions/getfilecon.texi: New file.
40408         * doc/glibc-functions/getfilecon-desc.texi: New file.
40409         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
40410         which to pull in the new files.
40411         * MODULES.html.sh (Misc): Add selinux-h.
40412
40413 2009-10-08  Jim Meyering  <meyering@redhat.com>
40414
40415         unistd: fix comment typo
40416         * lib/unistd.in.h (euidaccess): Fix a comment typo.
40417
40418 2009-10-08  Eric Blake  <ebb9@byu.net>
40419
40420         areadlink: use SIZE_MAX consistently
40421         * modules/areadlink (Depends-on): Add stdint.
40422         * modules/areadlink-with-size (Depends-on): Likewise.
40423         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
40424         gives NULL; drop sys/types, since unistd gives size_t; and add
40425         stdint for SIZE_MAX.
40426         (SIZE_MAX): Rely on headers.
40427         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
40428         and add stdint.
40429         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
40430         (SIZE_MAX): Likewise.
40431         (INITIAL_BUF_SIZE): Turn into enum.
40432         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
40433
40434 2009-10-08  Jim Meyering  <meyering@redhat.com>
40435
40436         areadlinkat: avoid compilation failure
40437         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
40438         Fix typo in comment.
40439
40440 2009-10-07  Eric Blake  <ebb9@byu.net>
40441
40442         areadlinkat-with-size: new module
40443         * modules/areadlinkat-with-size: New module.
40444         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
40445         * lib/areadlink.h (areadlinkat): Declare it.
40446         * MODULES.html.sh (File system functions): Mention it.
40447         * modules/areadlinkat-with-size-tests: New test.
40448         * tests/test-areadlinkat-with-size.c: New file.
40449
40450         xreadlinkat: new module
40451         * modules/xreadlinkat: New module.
40452         * lib/xreadlinkat.c (xreadlinkat): New file.
40453         * lib/xreadlink.h (xreadlinkat): Declare it.
40454         * MODULES.html.sh (File system functions): Mention it.
40455
40456         areadlinkat: new module
40457         * lib/at-func.c (FUNC_FAIL): New define.
40458         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
40459         * modules/areadlinkat: New module.
40460         * lib/linkat.c (areadlinkat): Move...
40461         * lib/areadlinkat.c (areadlinkat): ...to new file.
40462         * lib/areadlink.h (areadlinkat): Declare it.
40463         * modules/linkat (Depends-on): Add areadlinkat.
40464         * MODULES.html.sh (File system functions): Mention it.
40465         * modules/areadlinkat-tests: New test.
40466         * tests/test-areadlinkat.c: New file.
40467
40468         areadlink, areadlink-with-size: add tests
40469         * modules/areadlink-tests: New test.
40470         * modules/areadlink-with-size-tests: Likewise.
40471         * tests/test-areadlink.h: New file.
40472         * tests/test-areadlink.c: Likewise.
40473         * tests/test-areadlink-with-size.c: Likewise.
40474
40475         maint: minor cleanups
40476         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
40477         _UNUSED_PARAMETER_ instead.
40478         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
40479         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
40480         * modules/linkat-tests (Files): Distribute test-link.h.
40481
40482         openat, utimens: whitespace cleanup
40483         * lib/openat.c: Prefer space throughout, rather than mix of 8
40484         spaces vs. tabs.
40485         * lib/at-func.c: Likewise.
40486         * lib/utimens.c: Likewise.
40487
40488         openat: avoid using wrong fd
40489         * lib/openat.c (openat_permissive): Reject user's fd if saving the
40490         working directory chooses same fd.
40491         * lib/at-func.c (AT_FUNC_NAME): Likewise.
40492
40493         mkdir, mkdirat: fix cygwin 1.5.x bug
40494         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
40495         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
40496         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
40497         bug.
40498         (gl_PREREQ_MKDIR): Delete unused macro.
40499         * modules/mkdir (Files): Track file rename.
40500         (configure.ac): Update macro name.
40501         * modules/openat (Depends-on): Add mkdir.
40502         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
40503
40504         mkdir, mkdirat: add tests
40505         * modules/mkdir-tests: New test.
40506         * tests/test-mkdir.h: New file.
40507         * tests/test-mkdir.c: Likewise.
40508         * tests/test-mkdirat.c: Likewise.
40509         * modules/openat-tests (Files): Add new files.
40510         (Makefile.am): Run new test.
40511
40512 2009-10-06  Eric Blake  <ebb9@byu.net>
40513
40514         doc: tweak *at function documentation
40515         * doc/posix-functions/faccessat.texi (faccessat): Mention
40516         known issue with replacement.
40517         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
40518         * doc/posix-functions/linkat.texi (linkat): Likewise.
40519         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
40520         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
40521         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
40522         * doc/posix-functions/renameat.texi (renameat): Likewise.
40523         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
40524
40525         openat: fix GNU/Hurd bug in unlinkat
40526         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
40527         broken.
40528         * doc/posix-functions/unlink.texi (unlink): Document this.
40529         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
40530
40531         fdopendir: fix GNU/Hurd bug
40532         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
40533         allowing non-directory fds.
40534         * lib/fdopendir.c (rpl_fdopendir): Work around it.
40535         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
40536         * modules/dirent (Makefile.am): Substitute it.
40537         * lib/dirent.in.h (fdopendir): Declare replacement.
40538         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
40539         * tests/test-fdopendir.c (main): Test something other than
40540         /dev/null, since on Hurd that behaves like a directory.
40541
40542         test-symlink: port to GNU/Hurd
40543         * tests/test-symlink.h (test_symlink): Relax expected errno.
40544
40545         doc: tweak more cygwin information
40546         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
40547         now compatible with glibc.
40548         * doc/posix-functions/getopt.texi (getopt): Likewise.
40549
40550         getopt-gnu: add another test
40551         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
40552         guarantee behavior relied on by m4.
40553         * tests/test-getopt.c (main): Use it.
40554         * modules/getopt-posix-tests (Depends-on): Add setenv.
40555         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
40556
40557         getopt: fix compilation on darwin
40558         * lib/getopt.in.h (includes): Leave breadcrumbs during system
40559         include.
40560         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
40561         Reported by Ludovic Courtès.
40562
40563 2009-10-06  Bruno Haible  <bruno@clisp.org>
40564
40565         * modules/size_max (Description): Discourage its use.
40566         Reported by Simon Josefsson.
40567
40568 2009-10-06  Jim Meyering  <meyering@redhat.com>
40569
40570         linkat: avoid compilation failure
40571         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
40572
40573 2009-10-05  Eric Blake  <ebb9@byu.net>
40574
40575         linkat: support Linux 2.6.17
40576         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
40577         linkat on Linux, but allow cache variable override.
40578         * lib/linkat.c (rpl_linkat): Define override.
40579         * modules/linkat (Depends-on): Add symlinkat.
40580         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
40581         * modules/unistd (Makefile.am): Substitute it.
40582         * lib/unistd.in.h (linkat): Declare replacement.
40583         Reported by Pádraig Brady.
40584
40585         quotearg: port test to systems with C.UTF-8 locale
40586         * tests/test-quotearg.c (struct result_strings): Add another
40587         member, differentiating between C.ASCII and C.UTF-8 handling.
40588         (compare_strings): Add parameter.
40589         (main): Adjust all callers.
40590
40591         getopt: avoid clash with FreeBSD _getopt_internal
40592         * lib/getopt.in.h (_getopt_internal): Override the name.
40593         * lib/getopt_int.h (includes): Pick up any overrides.
40594         Reported by Reuben Thomas.
40595
40596         hash: allow C89 compilation
40597         * lib/hash.c (check_tuning): Move declaration before statement.
40598         Reported by Reuben Thomas.
40599
40600 2009-10-05  Karl Berry  <karl@gnu.org>
40601
40602         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
40603
40604 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
40605             Bruno Haible  <bruno@clisp.org>
40606
40607         * lib/uname.c (uname): Use a table-driven algorithm to compute
40608         Windows NT versions.
40609
40610 2009-10-04  Bruno Haible  <bruno@clisp.org>
40611
40612         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
40613         program_invocation_short_name.
40614         * modules/progname (configure.ac): Test for presence of
40615         program_invocation_short_name.
40616         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
40617
40618 2009-10-04  Bruno Haible  <bruno@clisp.org>
40619
40620         * lib/progname.c (set_program_name): Fix comment.
40621         Reported by Jim Meyering.
40622
40623 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
40624             Bruno Haible  <bruno@clisp.org>
40625
40626         * lib/uname.c: Include <string.h>.
40627         (uname): Do only one call to GetVersionEx in the common case.
40628
40629 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
40630             Bruno Haible  <bruno@clisp.org>
40631
40632         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
40633         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
40634         (uname): Add support for Windows CE and various non-x86 CPU types.
40635
40636 2009-10-03  Bruno Haible  <bruno@clisp.org>
40637
40638         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
40639         invocation to tests/configure.ac.
40640         Reported by Ian Beckwith <ianb@erislabs.net>.
40641
40642 2009-10-02  Eric Blake  <ebb9@byu.net>
40643
40644         fchdir: avoid compiler warning
40645         * lib/fchdir.c (canonicalize_file_name)
40646         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
40647
40648         test-open: support mingw errno values
40649         * tests/test-open.h (test_open): Relax test.
40650         * tests/test-fopen.h (test_fopen): Likewise.
40651         * tests/test-openat-safer.c (main): Likewise.
40652
40653         open: fix opening directory on mingw
40654         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
40655
40656         test-open: on GNU/Hurd, /dev/null is a directory
40657         * tests/test-fopen.h (main): Rename...
40658         (test_fopen): ...to this.  Use a guaranteed non-directory when
40659         confirming open behavior on trailing slash.
40660         * tests/test-openat-safer.c (main): Likewise.
40661         * tests/test-open.h (main): Likewise....
40662         (test_open): ...to this.
40663         * tests/test-fopen.c (main): Adjust caller.
40664         * tests/test-fopen-safer.c (main): Likewise.
40665         * tests/test-open.c (main): Likewise.
40666         * tests/test-fcntl-safer.c (main): Likewise.
40667         Reported by Samuel Thibault.
40668
40669         rename, fchdir: don't ignore chdir failure
40670         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
40671         * lib/rename.c (rpl_rename) [W32]: Likewise.
40672         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
40673         an empty destination directory if source cannot be renamed,
40674         although there is still possibility for failure.
40675         * doc/posix-functions/rename.texi (rename): Document the race.
40676         Reported by Jim Meyering.
40677
40678         maint: cleanup whitespace in recent commits
40679         * lib/rename.c (rpl_rename): Remove tabs.
40680         * tests/test-link.h (test_link): Likewise.
40681         * lib/fchdir.c (get_name): Likewise.
40682         Reported by Jim Meyering.
40683
40684 2009-10-02  Ben Pfaff  <blp@gnu.org>
40685
40686         relocatable-prog-wrapper: Add missing dependency on
40687         double-slash-root.
40688         * modules/relocatable-prog-wrapper: Add dependency.
40689         Reported by Ian Beckwith <ianb@erislabs.net>.
40690
40691 2009-10-02  Eric Blake  <ebb9@byu.net>
40692
40693         renameat: fix Solaris bugs
40694         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
40695         needed fixing.
40696         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
40697         * modules/stdio (Makefile.am): Substitute it.
40698         * lib/stdio.in.h (renameat): Declare replacement.
40699         * lib/renameat.c (rpl_renameat): Implement fix.
40700
40701         renameat: new module
40702         * modules/renameat: New file.
40703         * lib/renameat.c (renameat): Likewise.
40704         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
40705         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
40706         * modules/stdio (Makefile.am): Substitute them.
40707         * lib/stdio.in.h (renameat): Declare it.
40708         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40709         * doc/posix-functions/renameat.texi (renameat): Likewise.
40710         * modules/renameat-tests: New test.
40711         * tests/test-renameat.c: Likewise.
40712
40713         rename: fix mingw bugs
40714         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
40715         directory overwrite bugs.
40716
40717         rename: fix another cygwin 1.5 bug
40718         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
40719         checks.
40720         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
40721         unnecessary cygwin workarounds.  Also work around bug with moving
40722         full directory onto an empty one.
40723         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
40724
40725         rename-dest-slash: merge into rename module
40726         * modules/rename-dest-slash (Status): Mark obsolete.
40727         (Depends-on): Add rename.
40728         (Files): Let rename do it all.
40729         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
40730         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
40731         * m4/rename-dest-slash.m4: ...so this file can be deleted.
40732         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
40733         * lib/rename.c (rpl_rename): Update comments.
40734
40735         rename: fix cygwin 1.5.x bugs
40736         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
40737         * lib/rename.c (rpl_rename): Work around them.
40738         * modules/rename (Depends-on): Add same-inode.
40739
40740         rename: fix Solaris 10 bug
40741         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
40742         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
40743         was the only bug.
40744
40745         rename: fix Solaris 9 bug
40746         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
40747         on non-directory.  Avoid calling exit.
40748         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
40749         strdup.
40750         * modules/rename-tests (Depends-on): Drop lstat.
40751         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
40752         (gl_PREREQ_RENAME): Delete unused macro.
40753
40754         rename-dest-slash: fix NetBSD bug
40755         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
40756         links.
40757         * modules/rename-dest-slash (Depends-on): Add same-inode.
40758
40759         rename-tests: new test, exposes several platform bugs
40760         * modules/rename-tests: New file.
40761         * tests/test-rename.h: Likewise.
40762         * tests/test-rename.c: Likewise.
40763         * doc/posix-functions/rename.texi (rename): Improve documentation,
40764         including bugs that will eventually be fixed in gnulib.
40765
40766 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
40767
40768         * lib/uname.c: Include <stdlib.h>
40769         (uname): Assume version info is available.
40770
40771 2009-10-02  Jim Meyering  <meyering@redhat.com>
40772
40773         gnu-web-doc-update: correct --help output
40774         * build-aux/gnu-web-doc-update: Make --help output relevant.
40775
40776         gnu-web-doc-update: add standard options
40777         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
40778
40779         gnu-web-doc-update: New module.
40780         Use this script to automatically update the on-line web documentation
40781         for your GNU project at http://www.gnu.org/software/$pkg/manual/
40782         * modules/gnu-web-doc-update: New file, from coreutils.
40783         * build-aux/gnu-web-doc-update: New script.
40784
40785 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
40786
40787         link: LoadLibrary is not needed.
40788         * lib/link.c: Use GetModuleHandle.
40789
40790 2009-10-01  Eric Blake  <ebb9@byu.net>
40791
40792         getopt: bump serial number
40793         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
40794         change.
40795
40796         tests: tighten link, rmdir, and remove tests
40797         * tests/test-link.h (includes): No need to use <config.h> here.
40798         Clean up if directory hard link was created, otherwise test for
40799         trailing '.'.
40800         * tests/test-linkat.c (main): Simplify.
40801         * tests/test-remove.c (main): Enhance test for trailing '.'.
40802         * tests/test-rmdir.h (test_rmdir_func): Likewise.
40803
40804 2009-10-01  Jim Meyering  <meyering@redhat.com>
40805
40806         maint.mk: requiring "make major" was annoying, for a "minor" release.
40807         What is intended is "stable", to contrast with alpha and beta,
40808         so require "make stable", not "make major".
40809         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
40810         (get_tool_versions): Likewise.
40811         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
40812
40813 2009-09-30  Ben Pfaff  <blp@gnu.org>
40814
40815         Fix broken build of replacement for Windows tmpfile().
40816         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
40817         flags argument added along with the 'mkostemp' module.
40818
40819 2009-09-28  Bruno Haible  <bruno@clisp.org>
40820
40821         Avoid identifier clash with POSIX function 'remove' defined as a macro.
40822         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
40823         to 'remove_elt'.
40824         (gl_list_remove): Update.
40825         * lib/gl_list.c (gl_list_remove): Update.
40826         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
40827         to 'remove_elt'.
40828         (gl_oset_remove): Update.
40829         * lib/gl_list.c (gl_oset_remove): Update.
40830         Reported by Eric Blake.
40831
40832 2009-09-28  Eric Blake  <ebb9@byu.net>
40833
40834         doc: mention yet more cygwin 1.7 status
40835         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
40836         cygwin.
40837         * doc/glibc-functions/execvpe.texi (execvpe): New file.
40838         * doc/gnulib.texi (Glibc unistd.h): Mention it.
40839
40840         argp: fix test failure
40841         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
40842         that are not upper-case.  Pass correct range to tolower.
40843
40844 2009-09-27  Jim Meyering  <meyering@redhat.com>
40845
40846         test-yesno: work around sparc-dash here-document infelicity
40847         Without this change, the literal \177 byte in a here document
40848         would make dash 0.5.5.1-3 access uninitialized memory.
40849         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
40850         Instead, use a marker, "@", and filter through tr to create the desired
40851         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
40852
40853 2009-09-27  Bruno Haible  <bruno@clisp.org>
40854
40855         Disable untested support for new flavours of ACLs on AIX.
40856         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
40857         progress.
40858         * lib/set-mode-acl.c (qset_acl): Likewise.
40859
40860 2008-12-07  Bruno Haible  <bruno@clisp.org>
40861
40862         Add support for new flavours of ACLs on AIX. (Untested.)
40863         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
40864         (file_has_acl): Add support for newer AIX.
40865         * lib/set-mode-acl.c (qset_acl): Likewise.
40866         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
40867         Rainer Tammer <tammer@tammer.net>.
40868
40869 2009-09-26  Eric Blake  <ebb9@byu.net>
40870
40871         argp: fix compilation of getopt
40872         * lib/getopt.in.h (includes): Use different guard than glibc.
40873         Reported by Sergey Poznyakoff.
40874
40875         doc: mention more cygwin 1.7 status
40876         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
40877         bug.
40878         * doc/posix-functions/execl.texi (execl): Likewise.
40879         * doc/posix-functions/execle.texi (execle): Likewise.
40880         * doc/posix-functions/execlp.texi (execlp): Likewise.
40881         * doc/posix-functions/execv.texi (execv): Likewise.
40882         * doc/posix-functions/execve.texi (execve): Likewise.
40883         * doc/posix-functions/execvp.texi (execvp): Likewise.
40884         * doc/glibc-functions/canonicalize_file_name.texi
40885         (canonicalize_file_name): Cygwin 1.7 now provides this.
40886         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
40887         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
40888         on AT_SYMLINK_NOFOLLOW.
40889
40890 2009-09-24  Eric Blake  <ebb9@byu.net>
40891
40892         test-linkat: make test more robust
40893         * tests/test-linkat.c (main): Avoid collision with EEXIST.
40894
40895         getopt: fix inclusion guards for cygwin
40896         * modules/getopt-posix (Depends-on): Add include-next.
40897         (Makefile.am): Substitute more items in replacement header.
40898         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
40899         <getopt.h>.
40900         * lib/getopt.in.h (includes): Use split inclusion guard, and
40901         prefer <getopt.h> over include <unistd.h> when one is present.
40902         (option): Also override name of 'struct option'.
40903
40904         same-inode: revert prior change; it is not yet ready
40905         * NEWS: Undo mention of this change.
40906         * lib/same-inode.h (same-inode.h): Undo tri-state change.
40907         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
40908         * lib/cycle-check.c (cycle_check): Likewise.
40909         * lib/same.c (same_name): Likewise.
40910         * lib/at-func2.c (at_func2): Likewise.
40911
40912 2009-09-23  Eric Blake  <ebb9@byu.net>
40913
40914         linkat: new module
40915         * modules/linkat: New file.
40916         * lib/at-func2.c (at_func2): Likewise.
40917         * lib/linkat.c (linkat): Likewise.
40918         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
40919         * lib/openat-priv.h (at_func2): Add declaration.
40920         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
40921         * modules/unistd (Makefile.am): Substitute them.
40922         * lib/unistd.in.h (linkat): Declare it.
40923         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40924         * doc/posix-functions/linkat.texi (linkat): Likewise.
40925         * doc/posix-functions/link.texi (link): Tweak wording.
40926         * tests/test-link.c (main): Move guts...
40927         * tests/test-link.h (test_link): ...into new file.
40928         * modules/linkat-tests: New test.
40929         * tests/test-linkat.c: Likewise.
40930         * modules/link-tests (Files): Ship new file.
40931         (Depends-on): Add stdbool.
40932
40933         dirname: add library-safe mdir_name
40934         * lib/dirname.h (mdir_name): New prototype.
40935         * lib/dirname.c (dir_name): Move guts...
40936         (mdir_name): ...to new function that avoids xalloc_die.
40937
40938         fchdir: another mingw fix
40939         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
40940         * lib/fchdir.c (get_name): New helper method; skips canonicalize
40941         on mingw (where it has not yet been ported), and make it optional
40942         elsewhere.
40943         (_gl_register_fd): Use it.
40944
40945         same-inode: make SAME_INODE tri-state, to port to mingw
40946         * NEWS: Mention this change.
40947         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
40948         st_ino always being 0.
40949         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
40950         * lib/cycle-check.c (cycle_check): Likewise.
40951         * lib/same.c (same_name): Likewise.
40952
40953         lstat: avoid mingw compilation error
40954         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
40955         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
40956         lstat ourselves.
40957         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
40958         was adequate.
40959         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
40960         the checks for lstat.
40961         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
40962
40963         link: fix test failure on Solaris 9
40964         * lib/link.c (rpl_link): Don't assume link will catch bogus
40965         trailing slash on source.
40966
40967         test-symlinkat: enhance test
40968         * tests/test-readlink.c (main): Move guts...
40969         * tests/test-readlink.h (test_readlink): ...into new file.
40970         * tests/test-symlink.c (main): Move guts...
40971         * tests/test-symlink.h (test_symlink): ...into new file.
40972         * tests/test-symlinkat.c (main): Use new files for further
40973         coverage.
40974         (do_symlink, do_readlink): New helper functions.
40975         * modules/symlink-tests (Files): Ship new file.
40976         (Depends-on): Add stdbool.
40977         * modules/readlink-tests (Files): Ship new file.
40978         (Depends-on): Add stdbool.
40979         * modules/symlinkat-tests (Files): Use new files.
40980
40981 2009-09-23  Eric Blake  <ebb9@byu.net>
40982
40983         readlink: document portability issue with symlink length
40984         * doc/posix-functions/lstat.texi (lstat): Mention that some file
40985         systems have bogus st_size on symlinks, and mention the
40986         areadlink-with-size module.
40987         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
40988         * doc/posix-functions/readlink.texi (readlink): Mention the
40989         areadlink module, and ERANGE failure.
40990         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
40991         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
40992
40993         readlink: fix Solaris 9 bug with trailing slash
40994         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
40995         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
40996         * doc/posix-functions/readlink.texi (readlink): Document this.
40997         * modules/readlink-tests: New test.
40998         * tests/test-readlink.c: Likewise.
40999
41000         readlink: fix cygwin 1.5.x bug with return type
41001         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
41002         * lib/unistd.in.h (readlink): Use ssize_t.
41003         * lib/readlink.c (readlink): Likewise.
41004         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
41005         * modules/unistd (Makefile.am): Substitute it.
41006         * lib/unistd.in.h (readlink): Declare replacement.
41007         * doc/posix-functions/readlink.texi (readlink): Document this.
41008
41009         symlink: use throughout gnulib
41010         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
41011         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
41012         symlink is not used.
41013         * modules/symlinkat (Depends-on): Add symlink.
41014         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
41015         * modules/canonicalize-tests (Depends-on): Likewise.
41016         * modules/lstat-tests (Depends-on): Likewise.
41017         * modules/openat-tests (Depends-on): Likewise.
41018         * modules/remove-tests (Depends-on): Likewise.
41019         * modules/rmdir-tests (Depends-on): Likewise.
41020         * modules/unlink-tests (Depends-on): Likewise.
41021         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
41022         * tests/test-canonicalize.c (symlink): Likewise.
41023         * tests/test-fstatat.c (symlink): Likewise.
41024         * tests/test-lstat.c (symlink): Likewise.
41025         * tests/test-remove.c (symlink): Likewise.
41026         * tests/test-rmdir.c (symlink): Likewise.
41027         * tests/test-unlink.c (symlink): Likewise.
41028         * tests/test-unlinkat.c (symlink): Likewise.
41029
41030         symlink: new module, for Solaris 9 bug
41031         * modules/symlink: New file.
41032         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
41033         * lib/symlink.c: Likewise.
41034         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
41035         * modules/unistd (Makefile.am): Substitute them.
41036         * lib/unistd.in.h (symlink): Declare replacement.
41037         * MODULES.html.sh (File system functions): Mention it.
41038         * doc/posix-functions/symlink.texi (symlink): Likewise.
41039         * modules/symlink-tests: New test.
41040         * tests/test-symlink.c: Likewise.
41041
41042 2009-09-23  Bruno Haible  <bruno@clisp.org>
41043
41044         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
41045         when needed.
41046         Test case: gnulib-tool --import --with-tests atexit inttypes.
41047         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
41048
41049 2009-09-23  Bruno Haible  <bruno@clisp.org>
41050
41051         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
41052         subcommand, not in a subshell.
41053
41054 2009-09-22  Eric Blake  <ebb9@byu.net>
41055
41056         unistd: sort replacement declarations
41057         * lib/unistd.in.h: Sort declarations.
41058
41059         open, openat: minor optimization
41060         * lib/open.c (open): If open succeeded, len is non-zero.
41061         * lib/openat.c (rpl_openat): Likewise.
41062
41063         link-follow: ensure correct result
41064         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
41065         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
41066         distinguish between possible failures.
41067
41068 2009-09-21  Eric Blake  <ebb9@byu.net>
41069
41070         fts: avoid compiler warning
41071         * lib/fts.c (dirent_inode_sort_may_be_useful)
41072         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
41073
41074 2009-09-19  Bruno Haible  <bruno@clisp.org>
41075
41076         * lib/progreloc.c (canonicalize_file_name): New declaration.
41077
41078 2009-09-19  Eric Blake  <ebb9@byu.net>
41079
41080         link: fix quoting
41081         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
41082
41083         openat: fix openat bugs on Solaris 9
41084         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
41085         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
41086         * modules/openat (Depends-on): Add open.
41087         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
41088         * modules/fcntl-h (Makefile.am): Substitute it.
41089         * lib/fcntl.in.h (openat): Declare replacement.
41090         * doc/posix-functions/openat.texi (openat): Document this.
41091
41092         openat: move fstatat and unlinkat into correct files
41093         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
41094         compiled.
41095         * lib/openat.c (fstatat, unlinkat): Move...
41096         * lib/fstatat.c (fstatat): ...into correct files.
41097         * lib/unlinkat.c (unlinkat): Likewise.
41098
41099         openat: fix unlinkat bugs on Solaris 9
41100         * lib/unlinkat.c (unlinkat): New file.
41101         * modules/openat (Depends-on): Add unlink.
41102         (Files): Distribute it.
41103         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
41104         trailing slash behavior is broken.
41105         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
41106         * modules/unistd (Makefile.am): Substitute it.
41107         * lib/unistd.in.h (unlinkat): Declare replacement.
41108         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
41109
41110         openat: fix fstatat bugs on Solaris 9
41111         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
41112         stat.
41113         * doc/posix-functions/fstatat.texi (fstatat): Document this.
41114
41115         test-unlinkat: enhance test, to expose Solaris 9 bug
41116         * tests/test-unlink.c (main): Factor guts...
41117         * tests/test-unlink.h (test_rmdir_func): ...into new file.
41118         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
41119         * tests/test-rmdir.c (main): Adjust caller.
41120         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
41121         (unlinker): New helper function.
41122         (rmdirat): Enhance check.
41123         * modules/rmdir-tests (Depends-on): Add stdbool.
41124         * modules/unlink-tests (Depends-on): Likewise.
41125         (Files): Add test-unlink.h.
41126         * modules/openat-tests (Files): Likewise.
41127         (Depends-on): Add unlinkdir.
41128
41129         test-fstatat: new test, to expose Solaris 9 bugs
41130         * tests/test-stat.c (main): Factor guts...
41131         * tests/test-stat.h (test_stat_func): ...into new file.
41132         * tests/test-lstat.c (main): Factor guts...
41133         * tests/test-lstat.h (test_lstat_func): ...into new file.
41134         * tests/test-fstatat.c: New file.
41135         * modules/stat-tests (Files): Add test-stat.h.
41136         * modules/lstat-tests (Files): Add test-lstat.h.
41137         (Depends-on): Add stdbool.
41138         * modules/openat-tests (Depends-on): Add pathmax.
41139         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
41140         (Makefile.am): Run new test.
41141
41142         remove: new module, for mingw and Solaris 9 bugs
41143         * modules/remove: New file.
41144         * lib/remove.c: Likewise.
41145         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
41146         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
41147         * modules/stdio (Makefile.am): Use them.
41148         * lib/stdio.in.h (remove): Declare replacement.
41149         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
41150         * doc/posix-functions/remove.texi (remove): Likewise.
41151         * modules/remove-tests: New test.
41152         * tests/test-remove.c: Likewise.
41153
41154         unlink: new module, for Solaris 9 bug
41155         * modules/unlink: New file.
41156         * lib/unlink.c: Likewise.
41157         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
41158         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
41159         * modules/unistd (Makefile.am): Use them.
41160         * lib/unistd.in.h (stat): Declare replacement.
41161         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
41162         * doc/posix-functions/unlink.texi (unlink): Likewise.
41163         * modules/unlink-tests: New test.
41164         * tests/test-unlink.c: Likewise.
41165
41166         lstat: fix Solaris 9 bug
41167         * lib/lstat.c (lstat): Also check for trailing slash on
41168         non-symlink, non-directories.  Use stat module to simplify logic.
41169         * doc/posix-functions/lstat.texi (lstat): Document it.
41170         * modules/lstat-tests (Depends-on): Add errno, same-inode.
41171         (configure.ac): Check for symlink.
41172         * tests/test-lstat.c (main): Add more tests.
41173
41174         stat: add as dependency to other modules
41175         * modules/chown (Depends-on): Add stat.
41176         * modules/euidaccess (Depends-on): Likewise.
41177         * modules/fchdir (Depends-on): Likewise.
41178         * modules/isdir (Depends-on): Likewise.
41179         * modules/link (Depends-on): Likewise.
41180         * modules/lstat (Depends-on): Likewise.
41181         * modules/mkdir-p (Depends-on): Likewise.
41182         * modules/modechange (Depends-on): Likewise.
41183         * modules/open (Depends-on): Likewise.
41184         * modules/readlink (Depends-on): Likewise.
41185         * modules/same (Depends-on): Likewise.
41186
41187         stat: fix Solaris 9 bug
41188         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
41189         slash.
41190         * lib/stat.c (rpl_stat): Work around it.
41191         * doc/posix-functions/stat.texi (stat): Update documentation.
41192
41193         stat: new module, for mingw bug
41194         * modules/stat: New file.
41195         * lib/stat.c: Likewise.
41196         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
41197         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
41198         * modules/sys_stat (Makefile.am): Use them.
41199         * lib/sys_stat.in.h (stat): Declare replacement.
41200         * lib/openat.c (fstatat): Deal with lstat and stat being function
41201         macros.
41202         * modules/openat (Depends-on): Add inline.
41203         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
41204         * doc/posix-functions/stat.texi (stat): Likewise.
41205         * modules/stat-tests: New test.
41206         * tests/test-stat.c: Likewise.
41207
41208 2009-09-19  Jim Meyering  <meyering@redhat.com>
41209
41210         syntax-check: detect unnecessary inclusion of canonicalize.h
41211         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
41212
41213 2009-09-19  Eric Blake  <ebb9@byu.net>
41214
41215         canonicalize-lgpl: adjust clients to use correct header
41216         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
41217         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
41218         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
41219         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
41220         * lib/progreloc.c (includes): Likewise.
41221
41222 2009-09-19  Jim Meyering  <meyering@redhat.com>
41223
41224         test-posixtm.c: correct a comment
41225         * tests/test-posixtm.c: Correct first-line comment.
41226         Spotted by Eric Blake.
41227
41228 2009-09-16  Jim Meyering  <meyering@redhat.com>
41229
41230         posixtm-tests: make T const-correct; add a test case
41231         * tests/test-posixtm.c (T): Declare const.
41232         Add a test for -(2^31+1).
41233         Remove useless can-succeed-only-in-2002 test.
41234
41235         posixtm-tests: adjust the sole failing test
41236         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
41237         expected output matches what mktime now produces.  Cross-checked via
41238         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
41239
41240         posixtm: move #ifdef'd tests into a new module
41241         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
41242         * tests/test-posixtm.c: ... this new file.
41243         * modules/posixtm-tests: New module.
41244
41245 2009-09-19  Eric Blake  <ebb9@byu.net>
41246
41247         openat: simplify use of at-func.c
41248         * lib/at-func.c (includes): Include prerequisites here, to
41249         simplify requirements on client files.
41250         * lib/openat-priv.h: Add double-inclusion guard.
41251         * lib/faccessat.c (includes): Simplify.
41252         * lib/fchmodat.c (includes): Likewise.
41253         * lib/fchownat.c (includes): Likewise.
41254         * lib/mkdirat.c (includes): Likewise.
41255         * lib/mkfifoat.c (includes): Likewise.
41256         * lib/symlinkat.c (includes): Likewise.
41257
41258         openat: allow return of fd 0
41259         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
41260         * modules/save-cwd (Depends-on): Replace fcntl-safer with
41261         unistd-safer.
41262         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
41263         <fcntl.h>; this module does not leak fds.
41264         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
41265         must be allowed to return 0, leaving openat_safer to add the
41266         safety.
41267         (openat_permissive): Avoid writing to just-opened fd 2 if
41268         restoring the current directory fails.
41269         * lib/openat-die.c (openat_restore_fail): Add comment.
41270         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
41271         (save_cwd): Guarantee safe fd, but without use of open_safer.
41272         * tests/test-openat.c: New test.
41273         * modules/openat-tests (Files, Makefile.am): Distribute and build
41274         new file.
41275
41276         relocatable-prog-wrapper: fix build
41277         * modules/relocatable-prog-wrapper (Files): Update name of
41278         canonicalize m4 file, broken on 2009-09-17.
41279         Reported by emad hajjar <aleppos@hotmail.com>.
41280
41281 2009-09-19  Bruno Haible  <bruno@clisp.org>
41282
41283         * lib/safe-alloc.h: Use the standard header with GPL copyright.
41284         * lib/safe-alloc.c: Likewise.
41285         Reported by Ian Beckwith <ianb@erislabs.net>.
41286
41287 2009-09-18  Bruno Haible  <bruno@clisp.org>
41288
41289         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
41290         Reported by <erobles@sensacd.com.mx>.
41291
41292 2009-09-17  Eric Blake  <ebb9@byu.net>
41293
41294         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
41295         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
41296         slashes when checking if last component is missing.
41297         * tests/test-canonicalize.c (main): Test this.
41298
41299         canonicalize, canonicalize-lgpl: honor // if distinct from /
41300         * modules/canonicalize (Files): Add double-slash-root.m4.
41301         * modules/canonicalize-lgpl (Files): Likewise.
41302         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
41303         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
41304         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
41305         fallback definition.
41306         (canonicalize_filename_mode): Use it to protect //.
41307         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
41308         (__realpath): Likewise.
41309         * tests/test-canonicalize.c (main): Test this.
41310         * tests/test-canonicalize-lgpl.c (main): Likewise.
41311         * modules/canonicalize-tests (Depends-on): Add same-inode.
41312         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
41313
41314         canonicalize-lgpl: fix glibc bug with trailing slash
41315         * m4/canonicalize-lgpl.m4: Move contents...
41316         * m4/canonicalize.m4: ...here.
41317         (gl_CANONICALIZE_LGPL): Factor realpath check...
41318         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
41319         glibc 2.3.5 bug, fixed 2005-04-27.
41320         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
41321         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
41322         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
41323         * modules/canonicalize-lgpl (Files): Manage file rename.
41324         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
41325         * modules/stdlib (Makefile.am): Substitute witness.
41326         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
41327         is needed.
41328         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
41329         replacement is required.
41330         * lib/canonicalize.c (canonicalize_file_name): Likewise.
41331         * doc/glibc-functions/canonicalize_file_name.texi
41332         (canonicalize_file_name): Document this.
41333         * doc/posix-functions/realpath.texi (realpath): Likewise.
41334
41335         canonicalize-lgpl: reject non-directory with trailing slash
41336         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
41337         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
41338         catches failures in glibc 2.3.5.
41339         * tests/test-canonicalize.c (main): Likewise.
41340
41341         canonicalize-lgpl: use native realpath if it works
41342         * lib/canonicalize-lgpl.c (realpath): Guard with
41343         FUNC_REALPATH_WORKS.
41344         * lib/stdlib.in.h (realpath): Make declaration optional based on
41345         HAVE_REALPATH.
41346         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
41347         native realpath works.
41348         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
41349         * modules/stdlib (Makefile.am): Substitute witness.
41350
41351         canonicalize, canonicalize-lgpl: use <stdlib.h>
41352         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
41353         (Include): Mention <stdlib.h>.
41354         (configure.ac): Mention functions we provide.
41355         * modules/canonicalize (configure.ac): Likewise.
41356         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
41357         realpath if canonicalize_file_name is missing.
41358         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
41359         * modules/stdlib (Makefile.am): Substitute witnesses.
41360         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
41361         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
41362         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
41363         * NEWS: Document this.
41364         * doc/glibc-functions/canonicalize_file_name.texi
41365         (canonicalize_file_name): Likewise.
41366         * doc/posix-functions/realpath.texi (realpath): Likewise.
41367         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
41368
41369         test-canonicalize: consolidate into single C program
41370         * tests/test-canonicalize.sh: Delete; move setup into...
41371         * tests/test-canonicalize.c (main): ...the program, making it
41372         easier to run in debugger.  Add some tests.
41373         * modules/canonicalize-tests (Files): Remove unused file.
41374         (Depends-on): Add progname.
41375         (configure.ac, Makefile.am): Simplify.
41376
41377         test-canonicalize-lgpl: consolidate into single C program
41378         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
41379         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
41380         easier to run in debugger.  Add some tests.
41381         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
41382         (configure.ac, Makefile.am): Simplify.
41383
41384         canonicalize: avoid resolvepath
41385         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
41386         unnecessary checks.
41387         * lib/canonicalize.c (includes): Simplify.
41388         (canonicalize_file_name): Drop resolvepath implementation.
41389         * modules/canonicalize (Depends-on): Drop filenamecat.
41390
41391         canonicalize: don't lose errno
41392         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
41393         over calls to free.
41394
41395         canonicalize: simplify errno handling
41396         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
41397         assignment.
41398
41399         canonicalize, canonicalize-lgpl: update module dependencies
41400         * modules/canonicalize (Depends-on): Add extensions, lstat,
41401         pathmax, stdlib.
41402         (Files): Drop pathmax.h.
41403         (configure.ac): Adjust macro name.
41404         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
41405         lstat, stdlib, sys_stat.
41406         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
41407         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
41408         extensions.
41409         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
41410         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
41411         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
41412         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
41413         declaration, if available.
41414         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
41415         we can rely on the readlink module.
41416         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
41417         (includes): Use <unistd.h> unconditionally.
41418
41419 2009-09-17  Eric Blake  <ebb9@byu.net>
41420
41421         maint: make Include sections of modules consistent
41422         * modules/alloca: Use only header name; no need to list #include.
41423         * modules/alloca-opt: Likewise.
41424         * modules/arpa_inet: Likewise.
41425         * modules/canon-host: Likewise.
41426         * modules/configmake: Likewise.
41427         * modules/dirent: Likewise.
41428         * modules/eealloc: Likewise.
41429         * modules/environ: Likewise.
41430         * modules/fchdir: Likewise.
41431         * modules/fcntl: Likewise.
41432         * modules/fcntl-h: Likewise.
41433         * modules/gethrxtime: Likewise.
41434         * modules/gettime: Likewise.
41435         * modules/ignore-value: Likewise.
41436         * modules/inet_ntop: Likewise.
41437         * modules/inet_pton: Likewise.
41438         * modules/inttypes: Likewise.
41439         * modules/isnand-nolibm: Likewise.
41440         * modules/isnanf-nolibm: Likewise.
41441         * modules/mbchar: Likewise.
41442         * modules/mbfile: Likewise.
41443         * modules/mbiter: Likewise.
41444         * modules/mbuiter: Likewise.
41445         * modules/netdb: Likewise.
41446         * modules/netinet_in: Likewise.
41447         * modules/nproc: Likewise.
41448         * modules/pagealign_alloc: Likewise.
41449         * modules/poll: Likewise.
41450         * modules/printf-frexp: Likewise.
41451         * modules/pthread: Likewise.
41452         * modules/putenv: Likewise.
41453         * modules/random_r: Likewise.
41454         * modules/relocatable-prog: Likewise.
41455         * modules/search: Likewise.
41456         * modules/select: Likewise.
41457         * modules/selinux-h: Likewise.
41458         * modules/settime: Likewise.
41459         * modules/signal: Likewise.
41460         * modules/size_max: Likewise.
41461         * modules/socklen: Likewise.
41462         * modules/ssize_t: Likewise.
41463         * modules/stdarg: Likewise.
41464         * modules/stdbool: Likewise.
41465         * modules/stddef: Likewise.
41466         * modules/stdint: Likewise.
41467         * modules/stdio: Likewise.
41468         * modules/stdlib: Likewise.
41469         * modules/string: Likewise.
41470         * modules/strings: Likewise.
41471         * modules/sys_file: Likewise.
41472         * modules/sys_ioctl: Likewise.
41473         * modules/sys_select: Likewise.
41474         * modules/sys_socket: Likewise.
41475         * modules/sys_stat: Likewise.
41476         * modules/sys_time: Likewise.
41477         * modules/sys_times: Likewise.
41478         * modules/sys_utsname: Likewise.
41479         * modules/sys_wait: Likewise.
41480         * modules/sysexits: Likewise.
41481         * modules/time: Likewise.
41482         * modules/times: Likewise.
41483         * modules/tmpfile: Likewise.
41484         * modules/trim: Likewise.
41485         * modules/unistd: Likewise.
41486         * modules/wchar: Likewise.
41487         * modules/wctype: Likewise.
41488
41489 2009-09-17  Bruno Haible  <bruno@clisp.org>
41490
41491         Make getdate.y compile on QNX and NetBSD 5 / i386.
41492         * m4/getdate.m4 (gl_GETDATE): Conditionally define
41493         TIME_T_FITS_IN_LONG_INT.
41494         * lib/getdate.y (long_time_t): New type.
41495         (relative_time): Change type of 'seconds' field to long_time_t.
41496         (get_date): Update types of local variables. Check against overflow
41497         during conversion from long_time_t to time_t.
41498         Reported by Matt Kraai <kraai@ftbfs.org>
41499         and Hasso Tepper <hasso@netbsd.org>.
41500
41501 2009-09-17  Bruno Haible  <bruno@clisp.org>
41502
41503         * modules/COPYING: Update copyright years.
41504         * modules/README: Likeiwse.
41505         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
41506         Reported by Ian Beckwith <ianb@erislabs.net>.
41507
41508 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
41509
41510         * users.txt: Update references for gnuit package.
41511
41512 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
41513
41514         * m4/getdelim.m4: Fix typo in copyright line.
41515
41516 2009-09-17  Bruno Haible  <bruno@clisp.org>
41517
41518         * lib/atoll.c: Use the standard header with GPL copyright.
41519         * lib/argz.in.h: Likewise.
41520         * lib/glob.c: Likewise.
41521         * lib/glob-libc.h: Likewise.
41522         * lib/random_r.c: Likewise.
41523         * lib/siglist.h: Likewise.
41524         * lib/strsignal.c: Likewise.
41525         Reported by Ian Beckwith <ianb@erislabs.net>.
41526
41527 2009-09-17  Eric Blake  <ebb9@byu.net>
41528
41529         rmdir: ensure correct dependency order
41530         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
41531
41532 2009-09-17  Bruno Haible  <bruno@clisp.org>
41533
41534         Disable assertion that fails on NetBSD 5 / i386.
41535         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
41536         Reported by Sam Steingold <sds@gnu.org>
41537         and Hasso Tepper <hasso@netbsd.org>.
41538
41539 2009-09-16  Eric Blake  <ebb9@byu.net>
41540
41541         unlinkdir: port to mingw
41542         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
41543         on which no one can unlink a directory.
41544
41545         stdlib: sort witness names
41546         * modules/stdlib (Makefile.am): Sort replacements.
41547         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
41548         * lib/stdlib.in.h: Likewise.
41549
41550         parse-duration-tests: avoid link failure
41551         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
41552         LIBINTL.
41553         Reported by Tom G. Christensen.
41554
41555         openat-tests: ensure unlinkat behaves like rmdir
41556         * tests/test-rmdir.c (main): Factor guts...
41557         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
41558         * modules/rmdir-tests (Files): Ship new file.
41559         * modules/openat-tests: New test.
41560         * tests/test-unlinkat.c: Likewise.
41561
41562         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
41563         * modules/rmdir-errno (Status, Notice): Now obsolete.
41564
41565         rmdir: work around cygwin 1.5.x and mingw bugs
41566         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
41567         * lib/rmdir.c (rmdir): Work around it.
41568         * modules/rmdir (Status, Notice): No longer obsolete.
41569         (Files): Add dos.m4.
41570         (Depends-on): Add unistd.
41571         (configure.ac): Set witnesses.
41572         (License): Relax to LGPLv2+.
41573         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
41574         * modules/unistd (Makefile.am): Substitute witnesses.
41575         * lib/unistd.in.h (rmdir): Declare replacement.
41576         * doc/posix-functions/rmdir.texi (rmdir): Document this.
41577         * modules/rmdir-tests: New tests.
41578         * tests/test-rmdir.c: Likewise.
41579
41580 2009-09-15  Eric Blake  <ebb9@byu.net>
41581
41582         fchdir: improve use of replacement functions
41583         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
41584         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
41585         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
41586         REPLACE_CLOSEDIR.
41587         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
41588         * modules/sys_stat (Makefile.am): Substitute correct witness.
41589         * modules/dirent (Makefile.am): Likewise.
41590         * modules/unistd (Makefile.am): Likewise.
41591         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
41592         * lib/unistd.in.h (dup): Likewise.
41593         * lib/sys_stat.in.h (fstat): Likewise.
41594
41595         maint: ignore gnulib-tool temp files
41596         * .gitignore: Ignore files created during gnulib-tool --test.
41597
41598 2009-09-13  Jim Meyering  <meyering@redhat.com>
41599
41600         posixtm: don't reject a time that specify "60" as the number of seconds
41601         * lib/posixtm.c (posixtime): The code to reject invalid dates
41602         would also reject a time specified with the .60 suffix.
41603         But POSIX allows that, in order to accommodate leap seconds.
41604         So don't reject it.
41605         (main): Adjust tests accordingly.
41606         * modules/posixtm (Depends-on): Add stpcpy.
41607
41608 2009-09-11  Jim Meyering  <meyering@redhat.com>
41609
41610         announce-gen: include [$release_type] in emitted Subject:
41611         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
41612         e.g., [stable] in the emitted Subject: line.
41613
41614 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41615
41616         Remove obsolete macros from several modules.
41617         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
41618         obsolete Autoconf macros with their modern counterparts.
41619         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
41620         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
41621         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
41622         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
41623         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
41624         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
41625         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
41626         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
41627         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
41628         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
41629         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
41630         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
41631         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
41632         * m4/sockets.m4 (gl_SOCKETS): Likewise.
41633         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
41634         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
41635         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
41636         * m4/time_r.m4 (gl_TIME_R): Likewise.
41637         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
41638         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
41639         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
41640
41641         Fix copyright header in build-aux scripts.
41642         * build-aux/git-version-gen: Fix copyright header to match GPLv3
41643         recommendation.
41644         * build-aux/ncftpput-ftp: Likewise.
41645         * build-aux/update-copyright: Likewise.
41646
41647 2009-09-09  Eric Blake  <ebb9@byu.net>
41648
41649         test-link: allow Linux choice of errno
41650         * tests/test-link.c (main): Relax test for alternate error.
41651
41652         strndup: fix improper m4 caching
41653         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
41654         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
41655         (gl_PREREQ_STRNDUP): Delete.
41656         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
41657         * modules/string (Makefile.am): Substitute it.
41658         * lib/string.in.h (strndup): Modernize prototype.
41659
41660         getcwd: port to mingw
41661         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
41662         different from the POSIX assumptions made throughout the getcwd
41663         module; fortunately, the mingw getcwd does not need replacement.
41664         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
41665         * modules/getcwd-tests: New test.
41666         * tests/test-getcwd.c: Likewise.
41667
41668         link: fix platform bugs
41669         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
41670         * lib/link.c (link): Work around them.  Fix related mingw bug.
41671         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
41672         * modules/unistd (Makefile.am): Substitute it.
41673         * lib/unistd.in.h (link): Declare replacement.
41674         * doc/posix-functions/link.texi (link): Document this.
41675         * modules/link (Depends-on): Add strdup-posix, sys_stat.
41676
41677         test-link: consolidate into single C program, test more cases
41678         * tests/test-link.sh: Delete.
41679         * tests/test-link.c: Test more error conditions.  Exposes bugs on
41680         at least Cygwin and Solaris.
41681         * modules/link-tests (Files): Remove unused file.
41682         (Depends-on): Add errno, sys_stat.
41683         (Makefile.am): Simplify.
41684
41685 2009-09-08  Bruno Haible  <bruno@clisp.org>
41686
41687         Work around towlower, towupper bug on mingw.
41688         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
41689         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
41690         * doc/posix-functions/towlower.texi: Mention the mingw bug.
41691         * doc/posix-functions/towupper.texi: Likewise.
41692         Reported by Eric Blake.
41693
41694 2009-09-08  Jim Meyering  <meyering@redhat.com>
41695
41696         build: don't try to run autoheader if we don't use it
41697         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
41698         is not used in configure.ac.
41699
41700 2009-09-08  Eric Blake  <ebb9@byu.net>
41701
41702         euidaccess: fix compilation error
41703         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
41704
41705         rawmemchr: relax license
41706         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
41707         okay.
41708         Reported by Jim Meyering.
41709
41710         mkfifoat: new module
41711         * modules/mkfifoat: New file.
41712         * lib/mkfifoat.c: Likewise.
41713         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
41714         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
41715         * modules/sys_stat (Makefile.am): Use them.
41716         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
41717         * MODULES.html.sh (File system functions): Mention module.
41718         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
41719         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
41720         * modules/mkfifoat-tests: New test.
41721         * tests/test-mkfifoat.c: Likewise.
41722
41723         strchrnul: relax license
41724         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
41725         okay.
41726         Reported by Jim Meyering.
41727
41728 2009-09-08  Eric Blake  <ebb9@byu.net>
41729
41730         fstatat: fix compilation on Solaris
41731         * lib/fstatat.c (includes): Add fcntl.h.
41732         Reported by Pádraig Brady.
41733
41734 2009-09-07  Eric Blake  <ebb9@byu.net>
41735
41736         rename: modernize replacement
41737         * modules/rename (Depends-on): Add stdio.
41738         (configure.ac): Declare witness.
41739         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
41740         stdio take care of replacement.
41741         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
41742         * modules/stdio (Makefile.am): Substitute them.
41743         * lib/stdio.in.h (rename): Declare replacement.
41744         * lib/rename.c (includes): Allow cross-compilation to non-windows
41745         machines.
41746         * doc/posix-functions/rename.texi (rename): Improve
41747         documentation.
41748
41749         stdio: sort witness names
41750         * modules/stdio (Makefile.am): Sort replacements.
41751         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
41752         * lib/stdio.in.h: Likewise.
41753
41754         getcwd: minor cleanups
41755         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
41756         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
41757
41758         openat: provide more convenience names
41759         * modules/faccessat (configure.ac): Add C witness.
41760         * lib/unistd.in.h (readlinkat): Fix typo.
41761         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
41762         convenience wrappers.
41763         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
41764         wrappers in syntax checks.
41765
41766 2009-09-06  Eric Blake  <ebb9@byu.net>
41767
41768         doc: fix comments in recent patches
41769         * lib/faccessat.c: Mention correct function.
41770         * lib/fchmodat.c: Likewise.
41771         * lib/fchownat.c: Likewise.
41772         * lib/symlinkat.c: Likewise.
41773         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
41774         constants.
41775
41776         faccessat, symlinkat: continue cleanup of previous patch
41777         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
41778         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
41779         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
41780         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
41781         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
41782         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
41783         set.
41784
41785 2009-09-06  Bruno Haible  <bruno@clisp.org>
41786
41787         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
41788         (fstatat): Declare if GNULIB_FSTATAT is set.
41789         (mkdirat): Declare if GNULIB_MKDIRAT is set.
41790         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
41791         (unlinkat): Declare if GNULIB_UNLINKAT is set.
41792         * modules/fcntl-h (Files): Remove m4/openat.m4.
41793         * modules/sys_stat (Files): Remove m4/openat.m4.
41794         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
41795         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
41796         * modules/unistd (Files): Remove m4/openat.m4.
41797         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
41798         GNULIB_OPENAT.
41799         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
41800         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
41801         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
41802         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
41803         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
41804         gl_OPENAT_DEFAULTS.
41805         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
41806         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
41807         Don't require gl_OPENAT_DEFAULTS.
41808         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
41809         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
41810         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
41811         (gl_OPENAT_DEFAULTS): Remove macro.
41812
41813 2009-09-06  Bruno Haible  <bruno@clisp.org>
41814
41815         * modules/openat (configure.ac): Remove unneeded witness.
41816
41817 2009-09-06  Bruno Haible  <bruno@clisp.org>
41818
41819         Set errno to ENOSYS when a function is entirely unsupported.
41820         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
41821         EOPNOTSUPP.
41822         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
41823         * modules/chown (Depends-on): Remove errno.
41824
41825 2009-09-06  Bruno Haible  <bruno@clisp.org>
41826
41827         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
41828
41829 2009-09-06  Bruno Haible  <bruno@clisp.org>
41830
41831         * lib/sys_stat.in.h: Fix preprocessor command indentation.
41832
41833 2009-09-06  Ben Pfaff  <blp@gnu.org>
41834             Bruno Haible  <bruno@clisp.org>
41835
41836         Work around a glibc bug in strtok_r.
41837         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
41838         Undefine if UNDEFINE_STRTOK_R is set.
41839         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
41840         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
41841         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
41842         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
41843         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
41844         UNDEFINE_STRTOK_R.
41845         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
41846
41847 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
41848
41849         exclude: minor fix
41850         * lib/exclude.c: Include wctype.h
41851
41852 2009-09-06  Akim Demaille  <demaille@gostai.com>
41853
41854         bootstrap: improve error message
41855         * build-aux/bootstrap (find_tool): Upon failure, report the list
41856         of candidates.
41857         Honor the initial value of the envvar.
41858
41859 2009-09-05  Eric Blake  <ebb9@byu.net>
41860
41861         symlinkat: new module
41862         * modules/symlinkat: New file.
41863         * lib/symlinkat.c: Likewise.
41864         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
41865         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
41866         * modules/unistd (Makefile.am): Use them.
41867         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
41868         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
41869         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
41870         * MODULES.html.sh (File system functions): Mention module.
41871         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
41872         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
41873         * modules/symlinkat-tests: New test.
41874         * tests/test-symlinkat.c: Likewise.
41875
41876         test-openat-safer: add more checks
41877         * tests/test-openat-safer.c (main): Check more code paths.
41878
41879 2009-09-05  Jim Meyering  <meyering@redhat.com>
41880
41881         syntax-check: detect unnecessary inclusion of openat.h
41882         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
41883
41884 2009-09-05  Bruno Haible  <bruno@clisp.org>
41885
41886         Support towlower, towupper.
41887         * doc/posix-functions/towlower.texi: Mention module wctype.
41888         * doc/posix-functions/towupper.texi: Likewise.
41889         * lib/wctype.in.h (towlower, towupper): New functions.
41890         * tests/test-wctype.c: Include stdio.h, stdlib.h.
41891         (ASSERT): New macro.
41892         (e): New variable.
41893         (main): Test also towlower, towupper. Test WEOF argument.
41894         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
41895
41896 2009-09-05  Bruno Haible  <bruno@clisp.org>
41897
41898         Fix conversion behaviour when the input is invalid.
41899         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
41900         mark occurring in first pass of indirect conversion.
41901         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
41902         input.
41903         Found by clang's static analyzer.
41904
41905 2009-09-05  Bruno Haible  <bruno@clisp.org>
41906
41907         * tests/test-striconveh.c (main): Test indirect conversion on platforms
41908         where direct conversion is possible.
41909
41910 2009-09-04  Eric Blake  <ebb9@byu.net>
41911
41912         openat: fail with ENOENT on empty name
41913         * lib/openat-proc.c (openat_proc_name): Special-case the empty
41914         buffer.
41915
41916         link-follow: fix logic bug in prior patch
41917         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
41918         reversed sense of yes and no in prior patch.  Avoid confusing
41919         compilation failure with desired semantics.
41920
41921         link-follow: accommodate mingw and cross-compilation
41922         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
41923         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
41924         cross-compilation results to -1, to make linkat easier to
41925         implement when cross-compiling.  Trivially support mingw.
41926         * modules/link-follow (configure.ac): Call new name.
41927         * NEWS: Mention this.
41928
41929 2009-09-03  Eric Blake  <ebb9@byu.net>
41930
41931         faccessat: compile replacement
41932         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
41933         needed.
41934
41935         fts: fix compilation error
41936         * lib/fts.c (includes): Re-add "openat.h", for
41937         openat_needs_fchdir.
41938
41939         faccessat: new module
41940         * modules/faccessat: New file.
41941         * lib/faccessat.c: Likewise.
41942         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
41943         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
41944         * modules/unistd (Makefile.am): Use it.
41945         * lib/unistd.in.h (faccessat): Declare it.
41946         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
41947         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
41948         * MODULES.html.sh (File system functions): Mention it.
41949         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
41950         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
41951
41952         euidaccess: prefer POSIX over non-standard implementation
41953         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
41954         * lib/euidaccess.c (euidaccess): Use it if available.
41955
41956         openat: make template easier to use
41957         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
41958         AT_FUNC_F2 to be undefined.
41959         (VALIDATE_FLAG): New macro; use it to reject bad flags.
41960         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
41961         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
41962         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
41963         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
41964         Likewise.
41965         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
41966         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
41967         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
41968         Likewise.
41969
41970         openat: declare in POSIX headers
41971         * NEWS: Mention this.
41972         * modules/openat (configure.ac): Declare witnesses.
41973         (Depends-on): Add fcntl-h, sys_stat, unistd.
41974         (Include): Mention correct headers.
41975         * modules/fcntl-h (Depends-on): Add link-warning.
41976         (Files): Add openat.m4.
41977         (Makefile.am): Substitute witnesses.
41978         * modules/sys_stat (Files, Makefile.am): Likewise.
41979         * modules/unistd (Files, Makefile.am): Likewise.
41980         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
41981         (gl_OPENAT_DEFAULTS): New macro.
41982         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
41983         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
41984         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
41985         (SYS_STAT_H): Remove unused variable.
41986         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
41987         * lib/fcntl--.h (includes): Remove unneeded header.
41988         * lib/openat-safer.c (includes): Likewise.
41989         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
41990         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
41991         appropriate headers.
41992         (__OPENAT_PREFIX): Delete.
41993         * lib/fcntl.in.h (openat): Provide declaration.
41994         (AT_FDCWD): Fix Solaris bug.
41995         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
41996         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
41997         * lib/fchmodat.c (includes):  Adjust to find declaration.
41998         * lib/fchownat.c (includes): Likewise.
41999         * lib/mkdirat.c (includes): Likewise.
42000         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
42001         still visible.
42002
42003 2009-09-02  Eric Blake  <ebb9@byu.net>
42004
42005         errno: use consistently
42006         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
42007         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
42008         * lib/canonicalize.c (ELOOP): Likewise.
42009         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
42010         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
42011         * lib/lchown.c (EOPNOTSUPP): Likewise.
42012         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
42013         * lib/savewd.c (ESTALE): Likewise.
42014         * lib/settime.c (ENOSYS): Likewise.
42015         * lib/utimens.c (ENOSYS): Likewise.
42016         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
42017         * lib/chdir-safer.c (ELOOP): Likewise.
42018         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
42019         * modules/c-stack (Depends-on): Add errno.
42020         * modules/canonicalize (Depends-on): Likewise.
42021         * modules/chdir-safer (Depends-on): Likewise.
42022         * modules/fdopendir (Depends-on): Likewise.
42023         * modules/inet_ntop (Depends-on): Likewise.
42024         * modules/inet_pton (Depends-on): Likewise.
42025         * modules/lchown (Depends-on): Likewise.
42026         * modules/openat (Depends-on): Likewise.
42027         * modules/savewd (Depends-on): Likewise.
42028         * modules/settime (Depends-on): Likewise.
42029         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
42030
42031         fts: avoid leaking fds
42032         * modules/fts (Depends-on): Add cloexec.
42033         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
42034         flag.
42035
42036         fts: make directory fds more robust
42037         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
42038         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
42039
42040         backupfile, chdir-long, fts, savedir: make safer
42041         * lib/backupfile.c (includes): Use "dirent--.h", since
42042         numbered_backup can write to stderr during readdir.
42043         * lib/savedir.c (includes): Likewise.
42044         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
42045         emulation can write to stderr on failure.
42046         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
42047         * lib/getcwd.c: Document why opendir_safer is unused.
42048         * lib/glob.c: Likewise.
42049         * lib/scandir.c: Likewise.
42050         * lib/openat-proc.c: Likewise, for open_safer.
42051         * modules/backupfile (Depends-on): Add dirent-safer.
42052         * modules/savedir (Depends-on): Likewise.
42053         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
42054         * modules/chdir-long (Depends-on): Add openat-safer.
42055
42056         openat-safer: new module
42057         * modules/openat-safer: New file.
42058         * lib/openat-safer.c: Likewise.
42059         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
42060         * lib/fcntl-safer.h (openat_safer): Declare.
42061         * lib/fcntl--.h (openat): Override.
42062         * MODULES.html.sh (File descriptor based I/O): Mention it.
42063         * lib/openat.h: Add double-inclusion guards.
42064         * lib/openat.c (includes): Only include "fcntl-safer.h", not
42065         "fcntl--.h", so we can implement openat.
42066         * modules/openat-safer-tests: New test.
42067         * tests/test-openat-safer.c: New file.
42068
42069         dirent-safer: new module
42070         * modules/dirent-safer: New file.
42071         * lib/dirent--.h: Likewise.
42072         * lib/dirent-safer.h: Likewise.
42073         * lib/opendir-safer.c: Likewise.
42074         * m4/dirent-safer.m4: Likewise.
42075         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
42076         * modules/dirent-safer-tests: New test.
42077         * tests/test-dirent-safer.c: New file.
42078         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
42079
42080         fdopendir: optimize on mingw
42081         * lib/unistd.in.h (_gl_directory_name): New prototype.
42082         * lib/fchdir.c (_gl_directory_name): Implement it.
42083         (fchdir): Use it to simplify implementation.
42084         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
42085         fchdir, when available, to avoid calling [f]chdir().
42086
42087         fdopendir: split into its own module
42088         * lib/openat.c (fdopendir): Move...
42089         * lib/fdopendir.c: ...into new file.
42090         * modules/fdopendir: New module.
42091         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
42092         * modules/openat (Depends-on): Add fdopendir.
42093         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
42094         fdopendir here.
42095         * modules/savedir (Depends-on): Only need fdopendir, not full
42096         openat.
42097         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
42098         * lib/openat.h (fdopendir): Drop prototype.
42099         * lib/dirent.in.h (fdopendir): Provide prototype.
42100         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
42101         * modules/dirent (Makefile.am): Substitute them.
42102         * MODULES.html.sh (File system functions): Mention it.
42103         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
42104         * modules/fdopendir-tests: New file.
42105         * tests/test-fdopendir.c: Likewise.
42106
42107         fchdir: use more consistent macro convention
42108         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
42109         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
42110         REPLACE_FCHDIR, rather than relying on config.h macros.
42111         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
42112         inside a single make-time REPLACE_FCHDIR block, rather than using
42113         the config.h FCHDIR_REPLACEMENT.
42114         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
42115         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
42116         Manage fstat replacement.
42117         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
42118         REPLACE_FCHDIR.
42119         * modules/sys_stat (Files): Add m4/unistd_h.m4.
42120         (Makefile.am): Substitute REPLACE_FCHDIR.
42121         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
42122         FCHDIR_REPLACEMENT.
42123         * lib/dup-safer.c (dup_safer): Likewise.
42124         * lib/dup2.c (rpl_dup2): Likewise.
42125         * lib/dup3.c (rpl_dup3): Likewise.
42126         * lib/open.c (rpl_open): Likewise.
42127
42128         fchdir: simplify error handling, and support dup3
42129         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
42130         stdbool, malloc-posix, realloc-posix.
42131         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
42132         (ensure_dirs_slot): Return false on allocation failure.
42133         (rpl_dup2): Delete.
42134         (_gl_register_dup): New function.
42135         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
42136         (_gl_register_fd): Close fd on allocation failure.
42137         * lib/fcntl.in.h (_gl_register_fd): Update signature.
42138         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
42139         prototype.
42140         (rpl_dup2_fchdir): Delete prototype.
42141         * lib/open.c (open): Update caller.
42142         * lib/dup2.c (dup2): Track fchdir metadata.
42143         * lib/dup3.c (dup3): Likewise.
42144         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
42145         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
42146
42147 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42148
42149         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
42150         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
42151         don't pass arguments to AC_OUTPUT.
42152
42153 2009-09-02  Bruno Haible  <bruno@clisp.org>
42154
42155         * modules/mkdtemp (License): Relicense under LGPLv2+.
42156         Reported by Paolo Bonzini.
42157
42158 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42159
42160         Replace uses of obsolete autoconf macros in Jim's modules.
42161         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
42162         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
42163         can evoke a warning from autoconf when run with -Wobsolete
42164         enabled.  They were declared obsolete for good reasons (see
42165         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
42166         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
42167         should not continue using the deprecated macros.
42168         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
42169         obsolete Autoconf macros with modern counterparts.
42170         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
42171         * m4/dos.m4 (gl_AC_DOS): Likewise.
42172         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
42173         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
42174         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
42175         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
42176         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
42177         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
42178         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
42179         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
42180         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
42181         Likewise.
42182         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
42183         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
42184         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
42185         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
42186         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
42187         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
42188
42189 2009-09-01  Eric Blake  <ebb9@byu.net>
42190
42191         fchdir: fix off-by-one bug in previous patch
42192         * lib/fchdir.c (rpl_fstat): Use correct bounds.
42193         (_gl_unregister_fd): Delete useless if.
42194
42195 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
42196
42197         maint.mk: sort the list of syntax-check rules
42198         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
42199         easier to get a sense of progress when the rules are run sequentially
42200         and take a long time.
42201
42202 2009-09-01  Simon Josefsson  <simon@josefsson.org>
42203
42204         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
42205         * modules/netinet_in: Likewise.
42206         * modules/sys_file: Likewise.
42207         * modules/sys_ioctl: Likewise.
42208         * modules/sys_select: Likewise.
42209         * modules/sys_socket: Likewise.
42210         * modules/sys_stat: Likewise.
42211         * modules/sys_time: Likewise.
42212         * modules/sys_times: Likewise.
42213         * modules/sys_utsname: Likewise.
42214         * modules/sys_wait: Likewise.
42215
42216 2009-09-01  Jim Meyering  <meyering@redhat.com>
42217
42218         fts: help ensure that return values are not ignored
42219         * lib/fts_.h (__GNUC_PREREQ): Define.
42220         (__attribute_warn_unused_result__): Define.
42221         (fts_children, fts_close, fts_open, fts_read): Declare with
42222         __attribute_warn_unused_result__.
42223
42224         fts: fts_close now fails also when closing a dir file descriptor fails
42225         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
42226         and propagate to caller, along with errno.
42227
42228         announce-gen: correct formatting in --help output
42229         * build-aux/announce-gen (usage): Move the one-line description in
42230         --help output "up", to where it belongs, just after Usage:.
42231
42232 2009-08-31  Eric Blake  <ebb9@byu.net>
42233
42234         fchdir: port to mingw
42235         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
42236         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
42237         opened, then use a substitute.
42238         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
42239         replacement.
42240         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
42241         (_gl_register_fd): No need to check stat if open already filters
42242         all directories.
42243         (fchdir): Fix error condition to match POSIX.
42244         * modules/fchdir (Depends-on): Add sys_stat.
42245         * doc/posix-functions/open.texi (open): Document the limitation.
42246         * modules/fchdir-tests: New file.
42247         * tests/test-fchdir.c: Likewise.
42248
42249         canonicalize: allow cross-testing from cygwin to mingw
42250         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
42251         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
42252         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
42253         Likewise.
42254         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
42255         target does not support symlinks.
42256         * tests/test-canonicalize-lgpl.sh: Likewise.
42257
42258         chown: avoid compilation warning on mingw
42259         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
42260         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
42261         mingw.
42262         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
42263         * modules/chown (Depends-on): Add errno.
42264
42265 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
42266
42267         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
42268         command.
42269
42270 2009-08-31  Jim Meyering  <meyering@redhat.com>
42271
42272         canonicalize: remove useless initialization
42273         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
42274         initialization of local, "end".
42275
42276 2009-08-30  Bruno Haible  <bruno@clisp.org>
42277
42278         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
42279         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
42280         ENOSYS.
42281
42282 2009-08-30  Bruno Haible  <bruno@clisp.org>
42283
42284         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
42285         /usr/xpg4/bin/tr when it exists.
42286         * tests/test-pipe-filter-gi1.sh: Likewise.
42287
42288 2009-08-30  Bruno Haible  <bruno@clisp.org>
42289
42290         Work around deficient /usr/bin/id program on Solaris.
42291         * tests/test-file-has-acl.sh (ID): New variable.
42292         * tests/test-set-mode-acl.sh (ID): Likewise.
42293         * tests/test-copy-acl.sh (ID): Likewise.
42294         * tests/test-copy-file.sh (ID): Likewise.
42295
42296 2009-08-30  Bruno Haible  <bruno@clisp.org>
42297
42298         New module 'xstriconveh'.
42299         * lib/xstriconveh.h: New file.
42300         * lib/xstriconveh.c: New file.
42301         * modules/xstriconveh: New file.
42302
42303 2009-08-30  Bruno Haible  <bruno@clisp.org>
42304
42305         Make it easier to use mem_cd_iconveh.
42306         * lib/striconveh.h (iconveh_t): New type.
42307         (iconveh_open, iconveh_close): New declarations.
42308         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
42309         with a single 'const iconveh_t *' argument.
42310         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
42311         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
42312         with a single 'const iconveh_t *' argument.
42313         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
42314         * tests/test-striconveh.c (main): Update.
42315         * NEWS: Mention the change.
42316
42317 2009-08-30  Bruno Haible  <bruno@clisp.org>
42318
42319         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
42320         problem.
42321
42322 2009-08-30  Bruno Haible  <bruno@clisp.org>
42323
42324         Work around iconv_open problem on Solaris.
42325         * lib/iconv_open-solaris.gperf: New file.
42326         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
42327         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
42328         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
42329         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
42330         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
42331         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
42332
42333 2009-08-29  Jim Meyering  <meyering@redhat.com>
42334
42335         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
42336         * top/maint.mk (cvs-check): Remove target; it was just an alias
42337         to the better-named vc-diff-check.
42338         (maintainer-distcheck): Remove rule.  It was used only from
42339         the (alpha/beta/major) target, and all of its commands but one
42340         were coreutils-specific.
42341         (vc-dist): Remove rule.
42342         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
42343         Run vc-diff-check, not vc-dist.
42344         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
42345
42346 2009-08-27  Bruno Haible  <bruno@clisp.org>
42347
42348         * tests/test-bitrotate.c (main): Remove test that uses a shift count
42349         of 0.
42350
42351 2009-08-27  Bruno Haible  <bruno@clisp.org>
42352
42353         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
42354         compilers.
42355         * doc/func.texi: Document the SunPRO C bug.
42356
42357 2009-08-27  Bruno Haible  <bruno@clisp.org>
42358
42359         Fix link error on Solaris.
42360         * tests/test-parse-duration.c (xstrdup): Remove function.
42361
42362 2009-08-26  Pádraig Brady  <P@draigbrady.com>
42363
42364         ignore-value: handle pointer types, too
42365         * lib/ignore-value.h (__attribute__): Remove definition.
42366         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
42367         of a more concise and more-often effective "(void) i" statement.
42368         (ignore_ptr): New function to suppress warnings from functions that
42369         return pointers, and to make it explicit that one function doesn't
42370         handle all cases.
42371
42372 2009-08-25  Bruno Haible  <bruno@clisp.org>
42373
42374         dup2: work around a Linux bug.
42375         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
42376         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
42377         * doc/posix-functions/dup2.texi: Mention the Linux bug.
42378         Reported by Simon Josefsson.
42379
42380 2009-08-25  Jim Meyering  <meyering@redhat.com>
42381
42382         libguestfs uses gnulib
42383         * users.txt: Add libguestfs.
42384
42385 2009-08-24  Eric Blake  <ebb9@byu.net>
42386
42387         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
42388         * lib/pipe2.c (includes): Add binary-io.h.
42389         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
42390
42391 2009-08-24  Bruno Haible  <bruno@clisp.org>
42392
42393         Tolerate declared but missing accept4 syscall.
42394         * lib/accept4.c (accept4): Invoke original accept4 function first, if
42395         available.
42396         * lib/sys_socket.in.h (accept4): If the function is already present,
42397         override it.
42398         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
42399         * modules/accept4 (Makefile.am): Compile accept4.c always.
42400         Reported by Paolo Bonzini and Eric Blake.
42401
42402 2009-08-23  Bruno Haible  <bruno@clisp.org>
42403
42404         New module 'accept4'.
42405         * lib/sys_socket.in.h (accept4): New declaration.
42406         * lib/accept4.c: New file.
42407         * m4/accept4.m4: New file.
42408         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
42409         GNULIB_ACCEPT4, HAVE_ACCEPT4.
42410         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
42411         HAVE_ACCEPT4.
42412         * modules/accept4: New file.
42413         * doc/glibc-functions/accept4.texi: Mention the new module.
42414
42415 2009-08-24  Jim Meyering  <meyering@redhat.com>
42416
42417         progname: also set global program_invocation_name, when possible
42418         Before this change, a libtool-enabled program that calls glibc's
42419         error function would report the program name as
42420         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
42421         * modules/progname (configure.ac): Check for a declaration of
42422         program_invocation_name.
42423         * lib/progname.c:  Include <errno.h>.
42424         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
42425         Set program_invocation_name.
42426
42427 2009-08-23  Bruno Haible  <bruno@clisp.org>
42428
42429         * lib/dup3.c: Include <string.h>.
42430
42431 2009-08-23  Bruno Haible  <bruno@clisp.org>
42432
42433         * lib/dup3.c (dup3): Test only once whether the system actually exists.
42434         * lib/pipe2.c (pipe2): Likewise.
42435         Suggested by Eric Blake.
42436
42437 2009-08-23  Bruno Haible  <bruno@clisp.org>
42438
42439         Tolerate declared but missing dup3 syscall.
42440         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
42441         * lib/unistd.in.h (dup3): If the function is already present,
42442         override it.
42443         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
42444         * modules/dup3 (Makefile.am): Compile dup3.c always.
42445         Reported by Paolo Bonzini.
42446
42447 2009-08-23  Bruno Haible  <bruno@clisp.org>
42448
42449         Tolerate declared but missing pipe2 syscall.
42450         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
42451         available.
42452         * lib/unistd.in.h (pipe2): If the function is already present,
42453         override it.
42454         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
42455         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
42456         Reported by Paolo Bonzini.
42457
42458 2009-08-23  Bruno Haible  <bruno@clisp.org>
42459
42460         * lib/pipe2.c (pipe2): Move #ifs inside function.
42461
42462 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
42463
42464         quotearg: document limitations of quote_these_too
42465         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
42466         those limitations are created.
42467         * lib/quotearg.h (set_char_quoting): Document that digits and
42468         letters that are special after backslash are not permitted.
42469         (quotearg_char): Cross-reference set_char_quoting documentation.
42470
42471 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
42472
42473         quotearg: implement custom_quoting_style
42474         * lib/quotearg.c: (struct quoting_options): Add left_quote and
42475         right_quote fields.
42476         (set_custom_quoting): New public function.
42477         (quotearg_buffer_restyled): Add left_quote and right_quote
42478         arguments, handle them very much like locale quoting, and update
42479         all uses.
42480         (quotearg_n_custom): New public function.
42481         (quotearg_n_custom_mem): New public function.
42482         (quotearg_custom): New public function.
42483         (quotearg_custom_mem): New public function.
42484         * lib/quotearg.h: Prototype and document new public functions.
42485         (enum quoting_style): For escape_quoting_style and
42486         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
42487         ignored even though they're otherwise like c_quoting_style.
42488         Add custom_quoting_style member and document with comparison to
42489         clocale_quoting_style.
42490         * tests/test-quotearg.c (custom_quotes): New array.
42491         (custom_results): New array.
42492         (main): Extend to test custom quoting.
42493
42494 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
42495
42496         quotearg: fix right quote escaping when it's in quote_these_too
42497         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
42498         quote, be sure to prepend only one backslash.
42499         * tests/test-quotearg.c (use_quote_double_quotes): New function.
42500         (main): Test it.
42501
42502 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
42503
42504         quotearg-tests: test escaping of embedded locale quotes
42505         * tests/test-quotearg.c (struct result_strings): Add member for
42506         new input.
42507         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
42508         (inputs): Add new input.
42509         (results_g): Add expected results.
42510         (flag_results): Likewise.
42511         (locale_results): Likewise.
42512         (compare_strings): Check those.
42513
42514 2009-08-23  Bruno Haible  <bruno@clisp.org>
42515
42516         Tests for module 'dup3'.
42517         * modules/dup3-tests: New file.
42518         * tests/test-dup3.c: New file.
42519
42520         New module 'dup3'.
42521         * lib/unistd.in.h (dup3): New declaration.
42522         * lib/dup3.c: New file.
42523         * m4/dup3.m4: New file.
42524         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
42525         HAVE_DUP3.
42526         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
42527         * modules/dup3: New file.
42528         * doc/glibc-functions/dup3.texi: Mention the new module.
42529
42530 2009-08-23  Bruno Haible  <bruno@clisp.org>
42531
42532         Tweak the dup2 test.
42533         * tests/test-dup2.c (main): Create the test file empty. Verify that an
42534         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
42535         the test file is still empty. Fix argument order of lseek.
42536
42537 2009-08-23  Bruno Haible  <bruno@clisp.org>
42538
42539         Avoid test link errors when the modules getopt-gnu, gettext are used.
42540         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
42541         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42542
42543 2009-08-23  Bruno Haible  <bruno@clisp.org>
42544
42545         Fix getdtablesize() on mingw.
42546         * lib/getdtablesize.c (getdtablesize): Implement differently.
42547         * lib/unistd.in.h (getdtablesize): Improve comment.
42548
42549 2009-08-23  Bruno Haible  <bruno@clisp.org>
42550
42551         New module 'mkostemp'.
42552         Based on Ulrich Drepper's 2007-08-10 change in glibc.
42553         * lib/stdlib.in.h (mksotemp): New declaration.
42554         * lib/mkostemp.c: New file, from glibc with modifications.
42555         * lib/tempname.h (GT_FILE): Remove outdated comment.
42556         (gen_tempname): Add flags argument.
42557         * lib/tempname.c (__GT_BIGFILE): Remove macro.
42558         (__GT_FILE): Map to 1.
42559         (small_open, large_open): Remove macros.
42560         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
42561         * lib/mkstemp.c (mkstemp): Update.
42562         * lib/mkdtemp.c (mkdtemp): Likewise.
42563         * m4/mkostemp.m4: New file.
42564         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
42565         HAVE_MKOSTEMP.
42566         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
42567         HAVE_MKOSTEMP.
42568         * modules/mkostemp: New file, based on modules/mkstemp.
42569         * doc/glibc-functions/mkostemp.texi: Mention the new module.
42570         * NEWS: Mention the change.
42571
42572 2009-08-23  Bruno Haible  <bruno@clisp.org>
42573
42574         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
42575         Reported by Eric Blake.
42576
42577 2009-08-23  Bruno Haible  <bruno@clisp.org>
42578
42579         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
42580         Reported by Eric Blake.
42581
42582 2009-08-23  Bruno Haible  <bruno@clisp.org>
42583
42584         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
42585         * modules/pipe2 (Depends-on): Likewise.
42586
42587 2009-08-23  Eric Blake  <ebb9@byu.net>
42588
42589         fcntl-h: add O_TTY_INIT support
42590         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
42591         * tests/test-fcntl-h.c (o): Test it.
42592         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
42593
42594         fcntl-h: rename from fcntl, in preparation for fcntl(2)
42595         * modules/fcntl: Move <fcntl.h> header replacement...
42596         * modules/fcntl-h: ...to new name, so as not to collide with
42597         like-named function.
42598         * tests/test-fcntl.c: Rename...
42599         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
42600         * modules/fcntl-tests: Rename...
42601         * modules/fcntl-h-tests: ...to this.  Update test file name.
42602         * modules/chdir-long (Depends-on): Update clients.
42603         * modules/chdir-safer (Depends-on): Likewise.
42604         * modules/fcntl-safer (Depends-on): Likewise.
42605         * modules/fts (Depends-on): Likewise.
42606         * modules/mkancesdirs (Depends-on): Likewise.
42607         * modules/mkdir-p (Depends-on): Likewise.
42608         * modules/open (Depends-on): Likewise.
42609         * modules/savewd (Depends-on): Likewise.
42610         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
42611         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
42612
42613 2009-08-22  Bruno Haible  <bruno@clisp.org>
42614
42615         * modules/binary-io (License): Relicense under LGPL.
42616         * modules/pipe2 (License): Likewise.
42617
42618 2009-08-22  Bruno Haible  <bruno@clisp.org>
42619
42620         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
42621         return value.
42622         * lib/pipe-filter-gi.c (filter_init): Likewise.
42623         Reported by Eric Blake.
42624
42625 2009-08-22  Bruno Haible  <bruno@clisp.org>
42626
42627         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
42628         * modules/pipe (Depends-on): Add pipe2.
42629
42630 2009-08-22  Bruno Haible  <bruno@clisp.org>
42631
42632         Tests for module 'pipe2'.
42633         * modules/pipe2-tests: New file.
42634         * tests/test-pipe2.c: New file.
42635
42636         New module 'pipe2'.
42637         * lib/unistd.in.h (pipe2): New declaration.
42638         * lib/pipe2.c: New file.
42639         * m4/pipe2.m4: New file.
42640         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
42641         HAVE_PIPE2.
42642         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
42643         * modules/pipe2: New file.
42644         * doc/glibc-functions/pipe2.texi: Mention the new module.
42645
42646 2009-08-22  Bruno Haible  <bruno@clisp.org>
42647
42648         Reference some new glibc functions.
42649         * doc/glibc-functions/accept4.texi: New file.
42650         * doc/glibc-functions/dup3.texi: New file.
42651         * doc/glibc-functions/mkostemp.texi: New file.
42652         * doc/glibc-functions/pipe2.texi: New file.
42653         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
42654         (Glibc sys/socket.h): Refer to accept4.
42655         (Glibc unistd.h): Refer to dup3, pipe2.
42656         Reported by Eric Blake.
42657
42658 2009-08-22  Jim Meyering  <meyering@redhat.com>
42659             Bruno Haible  <bruno@clisp.org>
42660
42661         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
42662         This makes it so packages using automake-1.11's silent-rules option
42663         can print e.g., a single "GEN    configmake.h" line, rather than
42664         the 30+ statements that perform the job.  If you want to see the
42665         actual commands, you can still run "make V=1".
42666         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
42667         so that make output is abbreviated when those variables are defined
42668         appropriately.
42669         * modules/argz: Likewise.
42670         * modules/arpa_inet: Likewise.
42671         * modules/byteswap: Likewise.
42672         * modules/configmake: Likewise.
42673         * modules/dirent: Likewise.
42674         * modules/errno: Likewise.
42675         * modules/fcntl: Likewise.
42676         * modules/float: Likewise.
42677         * modules/fnmatch: Likewise.
42678         * modules/getopt-posix: Likewise.
42679         * modules/glob: Likewise.
42680         * modules/iconv_open: Likewise.
42681         * modules/inttypes: Likewise.
42682         * modules/localcharset: Likewise.
42683         * modules/locale: Likewise.
42684         * modules/math: Likewise.
42685         * modules/netdb: Likewise.
42686         * modules/netinet_in: Likewise.
42687         * modules/poll: Likewise.
42688         * modules/posix_spawnp-tests: Likewise.
42689         * modules/sched: Likewise.
42690         * modules/search: Likewise.
42691         * modules/selinux-h: Likewise.
42692         * modules/signal: Likewise.
42693         * modules/spawn: Likewise.
42694         * modules/stdarg: Likewise.
42695         * modules/stdbool: Likewise.
42696         * modules/stddef: Likewise.
42697         * modules/stdint: Likewise.
42698         * modules/stdio: Likewise.
42699         * modules/stdlib: Likewise.
42700         * modules/string: Likewise.
42701         * modules/strings: Likewise.
42702         * modules/sys_file: Likewise.
42703         * modules/sys_ioctl: Likewise.
42704         * modules/sys_select: Likewise.
42705         * modules/sys_socket: Likewise.
42706         * modules/sys_stat: Likewise.
42707         * modules/sys_time: Likewise.
42708         * modules/sys_times: Likewise.
42709         * modules/sys_utsname: Likewise.
42710         * modules/sys_wait: Likewise.
42711         * modules/sysexits: Likewise.
42712         * modules/time: Likewise.
42713         * modules/unistd: Likewise.
42714         * modules/wchar: Likewise.
42715         * modules/wctype: Likewise.
42716
42717 2009-08-22  Jim Meyering  <meyering@redhat.com>
42718
42719         announce-gen: detect write failure
42720         * build-aux/announce-gen: Add Coda at end.
42721         Remove equivalent-but-more-verbose block at top.
42722
42723 2009-08-19  Akim Demaille  <demaille@gostai.com>
42724
42725         bootstrap: --help to stdout.
42726         * bootstrap (usage): Don't send --help to stderr.
42727         Use a here doc instead of a long string.
42728
42729 2009-08-21  Eric Blake  <ebb9@byu.net>
42730
42731         test-popen-safer: split from test-popen
42732         * tests/test-popen.c (main): Move...
42733         * tests/test-popen.h: ...into new file.
42734         * tests/test-popen-safer2.c: New file.
42735         * modules/popen-tests (Files): Add test-popen.h.
42736         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
42737         Suggested by Bruno Haible.
42738
42739         test-fcntl-safer: split from test-open
42740         * tests/test-open.c (main): Move...
42741         * tests/test-open.h: ...into new file.
42742         * tests/test-fcntl-safer.c: New file.
42743         * modules/open-tests (Files): Add test-open.h.
42744         * modules/fcntl-safer-tests: New file.
42745         Suggested by Bruno Haible.
42746
42747         test-fopen-safer: split from test-fopen
42748         * tests/test-fopen.c (main): Move...
42749         * tests/test-fopen.h: ...into new file.
42750         * tests/test-fopen-safer.c: New file.
42751         * modules/fopen-tests (Files): Add test-fopen.h.
42752         * modules/fopen-safer-tests: New file.
42753         Suggested by Bruno Haible.
42754
42755 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
42756
42757         popen-safer: test O_CLOEXEC at run-time.
42758         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
42759
42760 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
42761
42762         fcntl: move more flags to the header
42763         * lib/cloexec.c: Do not define FD_CLOEXEC here.
42764         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
42765         * lib/fcntl.in.h: Do both things here.
42766
42767 2009-08-21  Jim Meyering  <meyering@redhat.com>
42768
42769         consistently remove $@-t before redirecting to it
42770         * modules/argz: Remove $@-t and $@ before redirecting to the former.
42771         * modules/alloca-opt: Likewise.
42772         * modules/byteswap: Likewise.
42773         * modules/fnmatch: Likewise.
42774         * modules/getopt-posix: Likewise.
42775         * modules/glob: Likewise.
42776         * modules/poll: Likewise.
42777         * modules/posix_spawnp-tests: Likewise.
42778         * modules/sys_socket: Likewise.
42779         * modules/sysexits: Likewise.
42780
42781 2009-08-21  Eric Blake  <ebb9@byu.net>
42782
42783         popen: simplify access to original popen
42784         * lib/popen.c (rpl_popen): No need to worry about popen being a
42785         macro.
42786         Reported by Bruno Haible.
42787
42788 2009-08-20  Eric Blake  <ebb9@byu.net>
42789
42790         build: avoid some compiler warnings
42791         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
42792         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
42793         type.
42794         (new_exclude_segment, excluded_file_pattern_p)
42795         (excluded_file_name_p): Reduce scope.
42796         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
42797         old-style declaration.
42798
42799 2009-08-20  Simon Josefsson  <simon@josefsson.org>
42800
42801         * tests/test-exclude1.sh: Handle Windows EOL.
42802         * tests/test-exclude2.sh: Likewise.
42803         * tests/test-exclude3.sh: Likewise.
42804         * tests/test-exclude4.sh: Likewise.
42805         * tests/test-exclude5.sh: Likewise.
42806         * tests/test-exclude6.sh: Likewise.
42807         * tests/test-exclude7.sh: Likewise.
42808
42809 2009-08-19  Akim Demaille  <demaille@gostai.com>
42810
42811         bootstrap: find sha1sum when named gsha1sum.
42812         * bootstrap (find_tool): New.
42813         ($SHA1SUM): New.
42814         Use it.
42815
42816 2009-08-20  Jim Meyering  <meyering@redhat.com>
42817
42818         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
42819         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
42820         expression that converts "." in a file name to "\." in the resulting
42821         regexp.  Start with a dummy statement, so that prior shell variable
42822         definitions are expanded portably.  Reported by Simon Josefsson.
42823
42824 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
42825
42826         Fix polling for writeability of a screen buffer.
42827         * lib/poll.c: Distinguish input and screen buffers for the
42828         Win32 implementation.
42829         * lib/select.c: Likewise.
42830
42831 2009-08-19  Eric Blake  <ebb9@byu.net>
42832
42833         popen-safer: prevent popen from clobbering std descriptors
42834         * modules/popen-safer: New file.
42835         * lib/popen-safer.c: Likewise.
42836         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
42837         * lib/stdio--.h (popen): Provide override.
42838         * lib/stdio-safer.h (popen_safer): Provide declaration.
42839         * tests/test-popen.c (includes): Partially test this.
42840         * modules/popen-safer-tests: New file, for more tests.
42841         * tests/test-popen-safer.c: Likewise.
42842         * MODULES.html.sh (file stream based Input/Output): Mention it.
42843
42844         tests: test some of the *-safer modules
42845         * modules/fopen-safer (Depends-on): Add fopen.
42846         * modules/fcntl-safer (Depends-on): Add fcntl.
42847         * modules/stdlib-safer (Depends-on): Add stdlib.
42848         (configure.ac): Set indicator.
42849         * modules/unistd-safer (configure.ac): Likewise.
42850         * modules/tmpfile-safer (configure.ac): Likewise.
42851         (Depends-on): Add tmpfile.
42852         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
42853         active.
42854         * tests/test-fopen.c (includes): Test safer versions when they are
42855         in use.
42856         * tests/test-open.c (includes): Likewise.
42857
42858         popen: fix cygwin 1.5 bug when stdin closed
42859         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
42860         * modules/popen: New file.
42861         * modules/popen-tests: Likewise.
42862         * tests/test-popen.c: Likewise.
42863         * m4/popen.m4: Likewise.
42864         * lib/popen.c: Likewise.
42865         * lib/stdio.in.h (popen): New declaration.
42866         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
42867         * modules/stdio (Makefile.am): Likewise.
42868         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
42869
42870 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
42871
42872         maint.mk: give full control over update-copyright exclusions
42873         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
42874         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
42875         (update-copyright): Don't force inclusion of top-level
42876         ChangeLog.  Don't force exclusion of all COPYING files, but make
42877         them the default exclusion instead.
42878
42879 2009-08-16  Bruno Haible  <bruno@clisp.org>
42880
42881         Fix test failures on Solaris 10.
42882         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
42883         tests when Solaris iconv() is used.
42884         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
42885         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
42886         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
42887         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
42888         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
42889
42890 2009-08-16  Bruno Haible  <bruno@clisp.org>
42891
42892         Fix test failures on Solaris 10.
42893         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
42894         'tr' program and pass it as first argument.
42895         * tests/test-pipe-filter-gi1.sh: Likewise.
42896         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
42897         program as first argument.
42898         * tests/test-pipe-filter-gi1.c (main): Likewise.
42899
42900 2009-08-16  Eric Blake  <ebb9@byu.net>
42901
42902         fpurge: fix previous commits
42903         * modules/fpurge (Makefile.am): Make replacement conditional,
42904         partially reverting 2007-04-29 change; missed in previous
42905         attempt.
42906         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
42907         is missing.
42908
42909 2009-08-16  Bruno Haible  <bruno@clisp.org>
42910
42911         Clarify fpurge's effect on the file position.
42912         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
42913         * tests/test-fpurge.c (main): Make a second pass for checking the file
42914         position.
42915
42916 2009-08-16  Bruno Haible  <bruno@clisp.org>
42917
42918         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
42919         declaration of fpurge is missing.
42920         * tests/test-fpurge.c (main): Check that the file has not more contents
42921         than expected. Close the file before removing it.
42922
42923 2009-08-15  Eric Blake  <ebb9@byu.net>
42924
42925         fpurge: don't wrap working cygwin implementation
42926         * lib/fpurge.c (fpurge): Fix comment typo.
42927         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
42928         1.7 to avoid replacement.
42929         * tests/test-fpurge.c (main): Enhance test.
42930
42931 2009-08-15  Eric Blake  <ebb9@byu.net>
42932         and Jim Meyering  <meyering@redhat.com>
42933
42934         test-update-copyright: skip if perl is insufficient
42935         * tests/test-update-copyright.sh: Failure to run maintainer tool
42936         should not cause testsuite failure on cygwin 1.5.
42937
42938 2009-08-14  Eric Blake  <ebb9@byu.net>
42939
42940         doc: mention more functions added in cygwin 1.7.0
42941         * doc/posix-headers/limits.texi (limits.h): Update for recent
42942         cygwin additions.
42943         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
42944         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
42945         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
42946         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
42947         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
42948
42949 2009-08-14  Eric Blake  <ebb9@byu.net>
42950
42951         maint.mk: simplify update-copyright rule
42952         * top/maint.mk (update-copyright-local): Delete, and document how
42953         to do it in cfg.mk instead.
42954         (update-copyright-exclude-regexp): Delete, and document how to do
42955         it in .x-update-copyright instead.
42956         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
42957         exclude ChangeLog.
42958
42959 2009-08-14  Bruno Haible  <bruno@clisp.org>
42960
42961         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
42962
42963 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
42964
42965         maint.mk: support update-copyright-env
42966         * top/maint.mk (update-copyright-env): Define place-holder.
42967         (update-copyright): Expand $(update-copyright-env) before
42968         invoking update-copyright.
42969
42970 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
42971
42972         update-copyright: implement forced reformatting
42973         * build-aux/update-copyright: Implement and document
42974         UPDATE_COPYRIGHT_FORCE.
42975         * tests/test-update-copyright.sh: Test it.
42976
42977 2009-08-14  Eric Blake  <ebb9@byu.net>
42978         and Bruno Haible  <bruno@clisp.org>
42979
42980         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
42981         * tests/test-locale.c: Revert previous patch related to NULL.
42982         * tests/test-stdio.c: Likewise.
42983         * tests/test-stdlib.c: Likewise.
42984         * tests/test-string.c: Likewise.
42985         * tests/test-unistd.c: Likewise.
42986         * modules/time-tests (Depends-on): Add verify.
42987         * modules/wchar-tests (Depends-on): Likewise.
42988         * tests/test-time.c: Test for NULL compliance.
42989         * tests/test-wchar.c: Likewise.
42990         * modules/locale (Depends-on): Add stddef.
42991         * modules/stdio (Depends-on): Likewise.
42992         * modules/stdlib (Depends-on): Likewise.
42993         * modules/string (Depends-on): Likewise.
42994         * modules/time (Depends-on): Likewise.
42995         * modules/unistd (Depends-on): Likewise.
42996         * modules/wchar (Depends-on): Likewise.
42997         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
42998         * lib/stdlib.in.h (includes): Likewise.
42999         * lib/string.in.h (includes): Likewise.
43000         * lib/time.in.h (includes): Likewise.
43001         * lib/unistd.in.h (includes): Likewise.
43002         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
43003         replaced.
43004         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
43005         * m4/stddef_h.m4: New file.
43006         * modules/stddef: Likewise.
43007         * lib/stddef.in.h: Likewise.
43008         * modules/stddef-tests: Likewise.
43009         * tests/test-stddef.c: Likewise.
43010         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
43011         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
43012         * doc/posix-headers/locale.texi (locale.h): Likewise.
43013         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
43014         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
43015         * doc/posix-headers/string.texi (string.h): Likewise.
43016         * doc/posix-headers/time.texi (time.h): Likewise.
43017         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
43018         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
43019
43020 2009-08-14  Eric Blake  <ebb9@byu.net>
43021
43022         doc: improve git diff of texinfo files
43023         * .gitattributes: Add rule for *.texi files, with hint on how to
43024         use it.
43025         Copied from m4, and based on a report by Bruno Haible.
43026
43027 2009-08-14  Bruno Haible  <bruno@clisp.org>
43028
43029         Disable multithread support by default on Cygwin 1.5.x for real.
43030         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
43031
43032 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
43033
43034         update-copyright: much ado about intervals
43035         * build-aux/update-copyright: Implement and document
43036         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
43037         of copyright year intervals.
43038         Also, document UPDATE_COPYRIGHT_YEAR.
43039         * tests/test-update-copyright.sh: Test it.
43040
43041         update-copyright: convert 2-digit to 4-digit years
43042         * build-aux/update-copyright: Implement and document.
43043         * tests/test-update-copyright.sh: Update.
43044
43045 2009-08-14  Jim Meyering  <meyering@redhat.com>
43046
43047         test-exclude: avoid coreutils "make check" failure
43048         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
43049         just as in test-argmatch.c.
43050
43051 2009-08-13  Eric Blake  <ebb9@byu.net>
43052
43053         test-dup2: fix bad assumption
43054         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
43055         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
43056
43057         test-version-etc: fix CRLF portability issue
43058         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
43059         recognize \r.
43060         * tests/test-argp-version-etc-1.sh: Likewise.
43061
43062         getopt: update client modules
43063         * modules/argp (Depends-on): Use getopt-gnu.
43064         * modules/git-merge-changelog (Depends-on): Likewise.
43065         * modules/long-options (Depends-on): Likewise.
43066         * modules/xstrtol (Depends-on): Likewise.
43067
43068 2009-08-13  Simon Josefsson  <simon@josefsson.org>
43069
43070         * tests/test-version-etc.sh: Don't fail on different
43071         project/version.  Don't fail on CRLF differences.  Rewrite to use
43072         multiple -e instead of multiple sed forks, suggested by Eric Blake
43073         <ebb9@byu.net>.
43074         * tests/test-argp-version-etc-1.sh: Likewise.
43075
43076 2009-08-13  Simon Josefsson  <simon@josefsson.org>
43077
43078         * tests/test-version-etc.sh: Don't fail on different
43079         project/version.
43080
43081 2009-08-12  Bruno Haible  <bruno@clisp.org>
43082
43083         Tests for modules 'getopt-posix', 'getopt-gnu'.
43084         * modules/getopt-posix-tests: New file.
43085         * tests/test-getopt.c: New file.
43086         * tests/test-getopt.h: New file.
43087         * tests/test-getopt_long.h: New file.
43088
43089         New modules 'getopt-posix', 'getopt-gnu'.
43090         * modules/getopt-gnu: New file, renamed from modules/getopt.
43091         * modules/getopt-posix: New file.
43092         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
43093         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
43094         (gl_GETOPT): Remove macro.
43095         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
43096         Disable the test against BSD systems that declare optreset. Test
43097         against mingw bug. Test against lack of support of optional arguments
43098         on many platforms.
43099         * doc/glibc-headers/getopt.texi: Update module name and list of
43100         relevant platforms.
43101         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
43102         'getopt-gnu' and more portability problems.
43103         * NEWS: Mention the changes.
43104
43105 2009-08-12  Bruno Haible  <bruno@clisp.org>
43106
43107         Ensure that optarg etc. get declared by <unistd.h>.
43108         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
43109         AC_USE_SYSTEM_EXTENSIONS.
43110         * modules/getopt (Depends-on): Add 'extensions'.
43111
43112 2009-08-12  Bruno Haible  <bruno@clisp.org>
43113
43114         Avoid test link errors.
43115         * modules/pipe-filter-ii-tests (Makefile.am): Define
43116         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
43117         * modules/pipe-filter-gi-tests (Makefile.am): Define
43118         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
43119         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43120
43121 2009-08-12  Bruno Haible  <bruno@clisp.org>
43122
43123         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
43124         gl_GETOPT_SUBSTITUTE before.
43125         (gl_GETOPT): Use it.
43126         * m4/argp.m4 (gl_ARGP): Update.
43127         Reported by Sergey Poznyakoff.
43128
43129         * m4/getopt.m4: Reorder macros.
43130         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
43131         (gl_GETOPT_SUBSTITUTE): Remove macro.
43132
43133 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
43134
43135         Minor improvement in gitlog-to-changelog
43136
43137         * build-aux/gitlog-to-changelog: New option `--format' makes
43138         output format string configurable.
43139
43140 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
43141
43142         Optimize exclude: use hash tables for non-wildcard patterns.
43143
43144         * lib/exclude.c: Include hash.h and mbuiter.h
43145         (struct exclude_pattern, exclude_segment): New data types.
43146         (struct exclude): Rewrite.
43147         (fnmatch_pattern_has_wildcards): New function.
43148         (new_exclude_segment, free_exclude_segment): New functions.
43149         (excluded_file_pattern_p, excluded_file_name_p): New functions.
43150         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
43151         * lib/exclude.h (is_fnmatch_pattern): New prototype.
43152         * modules/exclude: Depend on hash and mbuiter.
43153
43154         * modules/exclude-tests: New file.
43155         * tests/test-exclude.c: New file.
43156         * tests/test-exclude1.sh: New file.
43157         * tests/test-exclude2.sh: New file.
43158         * tests/test-exclude3.sh: New file.
43159         * tests/test-exclude4.sh: New file.
43160         * tests/test-exclude5.sh: New file.
43161         * tests/test-exclude6.sh: New file.
43162         * tests/test-exclude7.sh: New file.
43163
43164 2009-08-12  Bruno Haible  <bruno@clisp.org>
43165
43166         Ensure that getopt() gets declared by <unistd.h>.
43167         * lib/unistd.in.h: Conditionally include getopt.h.
43168         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
43169         Set GNULIB_UNISTD_H_GETOPT.
43170         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
43171         GNULIB_UNISTD_H_GETOPT.
43172         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
43173
43174 2009-08-12  Bruno Haible  <bruno@clisp.org>
43175
43176         Clarify logic.
43177         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
43178         gl_replace_getopt instead of GETOPT_H.
43179
43180 2009-08-12  Bruno Haible  <bruno@clisp.org>
43181
43182         * m4/getopt.m4: Add comments.
43183
43184 2009-08-12  Bruno Haible  <bruno@clisp.org>
43185
43186         Disable multithread support by default on Cygwin 1.5.x.
43187         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
43188         set gl_use_threads=no if not specified otherwise.
43189
43190 2009-08-11  Bruno Haible  <bruno@clisp.org>
43191
43192         Avoid compilation error on NetBSD 5.0.
43193         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
43194         * tests/test-stdio.c: Likewise.
43195         * tests/test-stdlib.c: Likewise.
43196         * tests/test-string.c: Likewise.
43197         * tests/test-unistd.c: Likewise.
43198         Reported by Greg Troxel <gdt@ir.bbn.com>
43199         at <https://savannah.gnu.org/support/?106973>.
43200
43201 2009-08-11  Bruno Haible  <bruno@clisp.org>
43202
43203         * modules/dup2-tests (Depends-on): Remove close.
43204
43205         Undo 2009-07-19 commit.
43206         * modules/acl-tests (Depends-on): Remove close.
43207         * modules/binary-io-tests (Depends-on): Likewise.
43208         * modules/closein-tests (Depends-on): Likewise.
43209         * modules/flock-tests (Depends-on): Likewise.
43210         * modules/fsync-tests (Depends-on): Likewise.
43211         * modules/lseek-tests (Depends-on): Likewise.
43212         * modules/pipe-tests (Depends-on): Likewise.
43213         * modules/posix_spawn-tests (Depends-on): Likewise.
43214         * modules/posix_spawnp-tests (Depends-on): Likewise.
43215         * modules/stat-time-tests (Depends-on): Likewise.
43216         * modules/yesno-tests (Depends-on): Likewise.
43217
43218 2009-08-10  Bruno Haible  <bruno@clisp.org>
43219
43220         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
43221
43222 2009-08-10  Bruno Haible  <bruno@clisp.org>
43223
43224         Fix a gcc warning.
43225         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
43226
43227 2009-08-10  Bruno Haible  <bruno@clisp.org>
43228
43229         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
43230         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
43231         not only the first time.
43232         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
43233         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
43234         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
43235         is 1, not only the the first time.
43236
43237 2009-08-10  Bruno Haible  <bruno@clisp.org>
43238
43239         Make it possible to use module 'gethostname' without module 'close'.
43240         * lib/unistd.in.h (close): Evoke a link error only if
43241         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
43242         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
43243         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
43244         * modules/unistd (Makefile.am): Substitute
43245         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
43246         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
43247         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
43248         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
43249         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
43250         * modules/sys_ioctl (Makefile.am): Substitute
43251         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
43252         * modules/socket (configure.ac): On native Windows, set
43253         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
43254         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
43255         Reported by Sam Steingold <sds@gnu.org>.
43256
43257 2009-08-10  Bruno Haible  <bruno@clisp.org>
43258
43259         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
43260         * modules/ioctl (configure.ac): Likewise.
43261
43262 2009-08-10  Bruno Haible  <bruno@clisp.org>
43263
43264         Avoid collision between gnulib wrapper and libintl wrapper.
43265         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
43266         already defined in intl/printf.c.
43267         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
43268         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
43269
43270 2009-08-09  Bruno Haible  <bruno@clisp.org>
43271
43272         Make <sys/select.h> really self-contained, also on Solaris 10.
43273         * lib/sys_select.in.h: Include <string.h>.
43274         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
43275         Solaris 10 problem.
43276         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
43277         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
43278         Reported by Jim Meyering.
43279
43280 2009-08-09  Bruno Haible  <bruno@clisp.org>
43281
43282         Avoid warnings from 'aclocal' that are due to a use of macro name
43283         AM_XGETTEXT_OPTION that is not defined in automake.
43284         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
43285         automake.
43286         * modules/error (configure.ac): Likewise.
43287         * modules/propername (configure.ac): Likewise.
43288         * modules/vasprintf (configure.ac): Likewise.
43289         * modules/verror (configure.ac): Likewise.
43290         * modules/xprintf (configure.ac): Likewise.
43291         * modules/xvasprintf (configure.ac): Likewise.
43292
43293 2009-08-08  Bruno Haible  <bruno@clisp.org>
43294
43295         Avoid compilation error in C++ mode.
43296         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
43297         Reported by Sam Steingold <sds@gnu.org>.
43298
43299 2009-08-08  Bruno Haible  <bruno@clisp.org>
43300
43301         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
43302         for the various Unix platforms.
43303         * doc/posix-headers/limits.texi: Update platforms list regarding
43304         HOST_NAME_MAX.
43305         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43306
43307 2009-08-07  Jim Meyering  <meyering@redhat.com>
43308
43309         selinux-at: fix typo in a comment
43310         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
43311         Spotted by Paolo Bonzini.
43312
43313         selinux-at: remove redundant m4 code, add documentation
43314         * modules/selinux-at (configure.ac): Remove redundant code.
43315         LIB_SELINUX is already set via the dependent module, selinux-h.
43316         (Include): Add quotes around selinux-at.h.
43317         * lib/selinux-at.h: Add documentation.
43318         Reported by Bruno Haible in
43319         http://marc.info/?l=gnulib-bug&m=124958988300749
43320
43321 2009-08-07  Bruno Haible  <bruno@clisp.org>
43322
43323         Avoid link error on MacOS X 10.3 and 10.4.
43324         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
43325         on non-ELF systems.
43326         * lib/argp-pv.c (argp_program_version): Likewise.
43327         Reported by Simon Josefsson.
43328
43329 2009-08-07  Simon Josefsson  <simon@josefsson.org>
43330
43331         * tests/test-version-etc.sh: Use $EXEEXT.
43332
43333 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
43334
43335         update-copyright: update documentation to point to maint.mk
43336         * build-aux/update-copyright: Here.
43337
43338 2009-08-06  Jim Meyering  <meyering@redhat.com>
43339
43340         maint.mk: support update-copyright-local
43341         * top/maint.mk (update-copyright-local): Define place-holder.
43342         (update-copyright): Depend on $(update-copyright-local).
43343
43344 2009-08-06  Jim Meyering  <meyering@redhat.com>
43345
43346         selinux-at: new module
43347         Initially written for coreutils, this module will soon be
43348         used by findutils, too.
43349         * MODULES.html.sh [Misc]: Add selinux-at.
43350         * lib/selinux-at.h: New file, from coreutils.
43351         * lib/selinux-at.c: Likewise.
43352         * modules/selinux-at: Likewise.
43353         (License): Change from LGPL to GPL, since it depends
43354         on the GPL'd openat module.
43355
43356         doc: update README
43357         * README: Remove references to cogito.
43358         Remove cvs-repo-updating instructions from 2007.
43359         Don't imply that CVS is better if you have limited disk space.
43360
43361 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
43362
43363         update-copyright: support C-style comments
43364         * build-aux/update-copyright: Implement and document.
43365         * tests/test-update-copyright.sh: Test.
43366
43367 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
43368
43369         update-copyright: support omitted "(C)"
43370         * build-aux/update-copyright: Implement and document.  Also,
43371         allow variable whitespace before "(C)".
43372         * tests/test-update-copyright.sh: Test.
43373
43374 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
43375
43376         update-copyright: don't trip on non-FSF copyright statements
43377         * build-aux/update-copyright: Fix so that the first correctly
43378         formatted FSF copyright statement is recognized no matter what
43379         appears before it.  Update documentation.
43380         * tests/test-update-copyright.sh: Test that.
43381
43382 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
43383
43384         update-copyright: clean up code a little
43385         * build-aux/update-copyright: Append "_re" to the name of any
43386         variable holding a regular expression.
43387         Replace "old" and "new" with "stmt" in variable names.
43388         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
43389         handled correctly.
43390         Format code more consistently.
43391
43392 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
43393
43394         update-copyright-tests: improve portability
43395         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
43396         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
43397
43398 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
43399
43400         update-copyright: support @copyright{} and &copy;
43401         * build-aux/update-copyright: Implement and document.
43402         * tests/test-update-copyright.sh: Test.
43403
43404 2009-08-04  Jim Meyering  <meyering@redhat.com>
43405
43406         update-copyright-tests: correctly test EOL=\r\n handling
43407         * tests/test-update-copyright.sh: Put \r at the end of some lines
43408         for the dos-eol tests.  Based on a patch by Joel E. Denny.
43409
43410         maint.mk: make update-copyright exclusion list more configurable
43411         * top/maint.mk (update-copyright): Default to excluding COPYING,
43412         but allow an override, in case someone does want to update that file.
43413
43414         maint.mk: don't update copyright date in COPYING
43415         * top/maint.mk (update-copyright): Exclude COPYING.
43416
43417         maint.mk: add a copyright-updating rule
43418         * top/maint.mk (update-copyright): New rule.
43419         Derived from coreutils/Makefile.am.
43420
43421         update-copyright: rename some variables
43422         * build-aux/update-copyright: Rename a few variables for clarity.
43423         Tweak syntax.  List Joel E. Denny as coauthor.
43424
43425 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
43426
43427         update-copyright: fix bug for 2-digit last year and add tests
43428         * build-aux/update-copyright: Fix bug.
43429         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
43430         specified.
43431         * modules/update-copyright-tests: New
43432         * tests/test-update-copyright.sh: New.
43433
43434 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
43435
43436         update-copyright: handle leading tabs in line prefix
43437         * build-aux/update-copyright: Count leading tabs as 8 spaces
43438         when computing margin.  This helps with the formatting of
43439         ChangeLogs, for example.
43440         Fix documentation a little.
43441
43442 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
43443
43444         update-copyright: support EOL=\r\n
43445         * build-aux/update-copyright: Implement that.
43446
43447 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
43448
43449         update-copyright: automatically format copyright statements
43450         * build-aux/update-copyright: Implement that.
43451         Also, be a little more predictable and safer by always failing
43452         when the full copyright format is not perfectly recognized as an
43453         unbroken whole.  Discussed at
43454         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
43455         Rewrite documentation.
43456
43457 2009-08-03  Bruno Haible  <bruno@clisp.org>
43458
43459         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
43460
43461 2009-08-02  Bruno Haible  <bruno@clisp.org>
43462
43463         Tests for module 'uname'.
43464         * modules/uname-tests: New file.
43465         * tests/test-uname.c: New file.
43466
43467         New module 'uname'.
43468         * lib/uname.c: New file.
43469         * m4/uname.m4: New file.
43470         * modules/uname: New file.
43471         * doc/posix-functions/uname.texi: Mention the new module.
43472
43473 2009-08-02  Bruno Haible  <bruno@clisp.org>
43474
43475         Tests for module 'sys_utsname'.
43476         * modules/sys_utsname-tests: New file.
43477         * tests/test-sys_utsname.c: New file.
43478
43479         New module 'sys_utsname'.
43480         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
43481         * m4/sys_utsname_h.m4: New file.
43482         * modules/sys_utsname: New file.
43483         * doc/posix-headers/sys_utsname.texi: Mention the new module.
43484
43485 2009-08-02  Bruno Haible  <bruno@clisp.org>
43486
43487         Implicitly initialize the sockets library.
43488         * lib/gethostname.c: Include sockets.h.
43489         (rpl_gethostname): Invoke gl_sockets_startup.
43490         * lib/socket.c: Include sockets.h.
43491         (rpl_socket): Invoke gl_sockets_startup.
43492         * modules/gethostname (Depends-on): Add sockets.
43493         * modules/socket (Depends-on): Likewise.
43494         * tests/test-poll.c: Don't include sockets.h.
43495         (main): Don't invoke gl_sockets_startup.
43496         * tests/test-select.c: Don't include sockets.h.
43497         (main): Don't invoke gl_sockets_startup.
43498
43499 2009-08-02  Bruno Haible  <bruno@clisp.org>
43500
43501         Allow multiple calls to gl_sockets_startup.
43502         * lib/sockets.c (initialized_sockets_version): New variable.
43503         (gl_sockets_startup): Do nothing if already called for this or a higher
43504         version.
43505         (gl_sockets_cleanup): Reset initialized_sockets_version.
43506
43507 2009-08-03  Simon Josefsson  <simon@josefsson.org>
43508
43509         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
43510         different project/version.
43511
43512 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
43513             Bruno Haible  <bruno@clisp.org>
43514
43515         Tests for module 'pipe-filter-gi'.
43516         * modules/pipe-filter-gi-tests: New file.
43517         * tests/test-pipe-filter-gi1.sh: New file.
43518         * tests/test-pipe-filter-gi1.c: New file.
43519         * tests/test-pipe-filter-gi2.sh: New file.
43520         * tests/test-pipe-filter-gi2-main.c: New file.
43521         * tests/test-pipe-filter-gi2-child.c: New file.
43522
43523         New module 'pipe-filter-gi'.
43524         * lib/pipe-filter-gi.c: New file.
43525         * modules/pipe-filter-gi: New file.
43526
43527 2009-08-02  Bruno Haible  <bruno@clisp.org>
43528             Paolo Bonzini  <bonzini@gnu.org>
43529
43530         Tests for module 'pipe-filter-ii'.
43531         * modules/pipe-filter-ii-tests: New file.
43532         * tests/test-pipe-filter-ii1.sh: New file.
43533         * tests/test-pipe-filter-ii1.c: New file.
43534         * tests/test-pipe-filter-ii2.sh: New file.
43535         * tests/test-pipe-filter-ii2-main.c: New file.
43536         * tests/test-pipe-filter-ii2-child.c: New file.
43537
43538         New module 'pipe-filter-ii'.
43539         * lib/pipe-filter.h: New file.
43540         * lib/pipe-filter-ii.c: New file.
43541         * lib/pipe-filter-aux.h: New file.
43542         * modules/pipe-filter-ii: New file.
43543
43544 2009-08-02  Simon Josefsson  <simon@josefsson.org>
43545
43546         * lib/gc-libgcrypt.c: Change copyright to FSF.
43547         * lib/gc-gnulib.c: Likewise.
43548
43549 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
43550
43551         * lib/gethostname.c: Include limits.h.
43552
43553 2009-08-02  Simon Josefsson  <simon@josefsson.org>
43554             Bruno Haible  <bruno@clisp.org>
43555
43556         Ensure HOST_NAME_MAX as part of the gethostname module.
43557         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
43558         define also HOST_NAME_MAX.
43559         * tests/test-gethostname.c: Include <limits.h>.
43560         (main): Check also HOST_NAME_MAX.
43561         * doc/posix-headers/limits.texi: Document the mingw problem.
43562
43563 2009-08-02  Bruno Haible  <bruno@clisp.org>
43564
43565         * lib/gethostname.c (gethostname): Fix handling of large len argument.
43566         Add comments.
43567
43568 2009-03-31  Simon Josefsson  <simon@josefsson.org>
43569
43570         * lib/gethostname.c: Add Windows wrapper.
43571         * m4/gethostname.m4: Look for gethostname in -lws2_32.
43572         * modules/gethostname: Depend on sys_socket & errno, for also
43573         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
43574         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
43575
43576 2009-07-31  Jim Meyering  <meyering@redhat.com>
43577
43578         getloadavg: fix symbol name in comment
43579         * lib/getloadavg.c: Correct a typo I introduced when adding
43580         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
43581         Matt Kraai spotted the problem.
43582
43583 2009-07-29  Matt Kraai  <mkraai@beckman.com>
43584
43585         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
43586         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
43587         code also if ! defined N_NAME_POINTER.
43588         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
43589         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
43590         but the n_name member is a 12-byte array.
43591
43592 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
43593
43594         update-copyright: generalize comment handling
43595         * build-aux/update-copyright: Handle copyright statements
43596         within more comment styles.
43597         Document usage.
43598         Report any file with an external copyright holder or parse failure.
43599
43600 2009-07-29  Jim Meyering  <meyering@redhat.com>
43601
43602         mktime: correct setting of REPLACE_MKTIME
43603         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
43604
43605         update-copyright: new module
43606         * modules/update-copyright: New file.
43607         * build-aux/update-copyright: New file.
43608         * MODULES.html.sh (maint+release support): Add update-copyright.
43609
43610 2009-07-27  Bruno Haible  <bruno@clisp.org>
43611
43612         Fix compilation error when <ctime> is used and mktime is replaced.
43613         * lib/time.in.h (mktime): New declaration.
43614         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
43615         REPLACE_MKTIME instead of defining mktime in config.h.
43616         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
43617         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
43618         Reported by Ross McFarland <rwmcfa1@neces.com>.
43619
43620 2009-07-27  Bruno Haible  <bruno@clisp.org>
43621
43622         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
43623         Reported by Matt Kraai <mkraai@beckman.com>.
43624
43625 2009-07-25  Jim Meyering  <meyering@redhat.com>
43626
43627         maint.mk: avoid warnings about missing files
43628         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
43629         diagnostic when .prev-version does not exist.
43630         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
43631         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
43632         nonexistent cfg.mk.
43633         Suggestions from Simon Josefsson.
43634
43635 2009-07-25  Bruno Haible  <bruno@clisp.org>
43636
43637         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
43638         defined as macros. Needed on QNX 6.4.1.
43639         Reported by Matt Kraai <mkraai@beckman.com>.
43640
43641 2009-07-23  Jim Meyering  <meyering@redhat.com>
43642
43643         maint.mk: invoke "make dist" with a working value of XZ_OPT
43644         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
43645
43646 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
43647
43648         Make fseeko.c compile on QNX.
43649         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
43650
43651 2009-07-22  Peter Simons  <simons@cryp.to>
43652
43653         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
43654         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
43655         * lib/md4.h: Likewise.
43656         * lib/md5.h: Likewise.
43657         * lib/sha1.h: Likewise.
43658         * lib/sha256.h: Likewise.
43659         * lib/sha512.h: Likewise.
43660
43661         tests-sha1: don't assign literal string to 'char *' variable
43662         * tests/test-sha1.c (main): Declare locals with "const" to match
43663         attributes of the right hand side.
43664
43665 2009-07-21  Eric Blake  <ebb9@byu.net>
43666
43667         dup2: fix more mingw problems
43668         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
43669         fd to itself.
43670         * doc/posix-functions/dup2.texi (dup2): Document the bug.
43671         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
43672         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
43673         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
43674         care of mingw bugs.
43675
43676 2009-07-21  Jim Meyering  <meyering@redhat.com>
43677
43678         vc-list-files: avoid failure when /bin/sh is dash
43679         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
43680         On some Debian based systems, /bin/sh is a symlink to dash, and running
43681         this command would omit the "/" following each 'tests' prefix:
43682           dash -x build-aux/vc-list-files -C . tests
43683         That is because bash and dash work differently:
43684           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
43685           bash ok
43686           dash odd
43687
43688 2009-07-21  Eric Blake  <ebb9@byu.net>
43689
43690         dup2-tests: test previous patch
43691         * modules/dup2-tests: New file.
43692         * tests/test-dup2.c: Likewise.
43693         * tests/test-open.c (main): Avoid unspecified behavior.
43694         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
43695         test.
43696
43697         dup2: work around mingw and cygwin 1.5 bug
43698         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
43699         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
43700         * modules/unistd (Makefile.am): Substitute it.
43701         * lib/unistd.in.h (dup2): Declare the replacement.
43702         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
43703         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
43704         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
43705         * modules/execute (Depends-on): Add dup2.
43706         * modules/fseterr (Depends-on): Likewise.
43707         * modules/pipe (Depends-on): Likewise.
43708         * modules/posix_spawn-internal (Depends-on): Likewise.
43709
43710 2009-07-21  Bruno Haible  <bruno@clisp.org>
43711
43712         * modules/.gitattributes: New file.
43713
43714 2009-07-20  Bruno Haible  <bruno@clisp.org>
43715
43716         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
43717         (main): Use it.
43718
43719 2009-07-20  Eric Blake  <ebb9@byu.net>
43720
43721         test-pipe: make a bit more robust.
43722         * tests/test-pipe.c (myerr): Allow error messages regardless of
43723         what we do to stderr.
43724         (test_pipe): Rearrange to avoid deadlock.
43725         (child_main): Try a larger read, to ensure we avoided deadlock.
43726         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
43727         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
43728         if misused.
43729
43730 2009-07-19  Jim Meyering  <meyering@redhat.com>
43731
43732         fts: avoid false-positive cycle-detection
43733         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
43734         for each new command line argument.
43735
43736 2009-07-19  Bruno Haible  <bruno@clisp.org>
43737
43738         Fix build error on mingw with the modules sys_select and unistd.
43739         * modules/acl-tests (Depends-on): Add close.
43740         * modules/binary-io-tests (Depends-on): Likewise.
43741         * modules/closein-tests (Depends-on): Likewise.
43742         * modules/flock-tests (Depends-on): Likewise.
43743         * modules/fsync-tests (Depends-on): Likewise.
43744         * modules/lseek-tests (Depends-on): Likewise.
43745         * modules/pipe-tests (Depends-on): Likewise.
43746         * modules/posix_spawn-tests (Depends-on): Likewise.
43747         * modules/posix_spawnp-tests (Depends-on): Likewise.
43748         * modules/stat-time-tests (Depends-on): Likewise.
43749         * modules/yesno-tests (Depends-on): Likewise.
43750
43751 2009-07-19  Bruno Haible  <bruno@clisp.org>
43752
43753         Unify conditionals.
43754         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
43755         macros, not at the compiler macros.
43756         * lib/pipe.c: Likewise.
43757         * lib/execute.c: Likewise.
43758         * lib/spawni.c: Likewise.
43759
43760 2009-07-19  Bruno Haible  <bruno@clisp.org>
43761
43762         Fix handling of closed stdin/stdout/stderr on mingw.
43763         * lib/w32spawn.h: Include unistd.h.
43764         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
43765         file descriptor with O_NOINHERIT flag.
43766         (fd_safer_noinherit): New function, based on fd-safer.c.
43767         (dup_safer_noinherit): New function, based on dup-safer.c.
43768         (undup_safer_noinherit): New function.
43769         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
43770         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
43771         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
43772         instead of fd_safer.
43773         * tests/test-pipe.c: Include <windows.h>.
43774         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
43775         result.
43776
43777         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
43778         from main.
43779         (test_pipe): Pass an extra argument for disambiguation.
43780         (main): Invoke parent_main or child_main.
43781
43782         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
43783         consistently.
43784
43785 2009-07-18  Eric Blake  <ebb9@byu.net>
43786
43787         test-pipe: fix mingw build
43788         * tests/test-pipe.c (main): Avoid fcntl on mingw.
43789
43790 2009-07-18  Bruno Haible  <bruno@clisp.org>
43791
43792         * modules/pipe-tests (Makefile.am): Fix typo.
43793
43794 2009-07-18  Eric Blake  <ebb9@byu.net>
43795
43796         error: fix mingw build
43797         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
43798         Reported by Bruno Haible.
43799
43800         error: avoid undefined use of stdout
43801         * lib/error.c (error, error_at_line): Check that fd 1 is open
43802         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
43803         is handling faults and the close_stdout module wants to report the
43804         detection of closed stdout as an error.
43805
43806 2009-07-17  Eric Blake  <ebb9@byu.net>
43807
43808         pipe: be robust in face of closed fds
43809         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
43810         should cause child to misbehave.
43811         * modules/pipe-tests: New module.
43812         * tests/test-pipe.c: New file.
43813         * tests/test-pipe.sh: New file.
43814         Reported by Akim Demaille.
43815
43816 2009-07-14  Bruno Haible  <bruno@clisp.org>
43817
43818         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
43819         Reported by anonymous kc.
43820
43821 2009-07-07  Jim Meyering  <meyering@redhat.com>
43822
43823         maint.mk: don't look for translatable strings in *.m4 or *.mk
43824         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
43825         when searching for translatable strings.
43826
43827 2009-07-05  Jim Meyering  <meyering@redhat.com>
43828
43829         remove superfluous parentheses in STREQ definition
43830         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
43831         * lib/getugroups.c (STREQ): Likewise.
43832         * lib/fnmatch.c (STREQ): Likewise.
43833         Spotted by Bruno Haible.
43834
43835 2009-07-04  Jim Meyering  <meyering@redhat.com>
43836
43837         argv-iter: new module
43838         * MODULES.html.sh: Add argv-iter.
43839         * lib/argv-iter.c, lib/argv-iter.h: New files.
43840         * modules/argv-iter: New file.
43841         * modules/argv-iter-tests: New file.
43842         * tests/test-argv-iter.c: Test it.
43843
43844 2009-07-04  Bruno Haible  <bruno@clisp.org>
43845
43846         Fix assertion.
43847         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
43848         contains more exact copies of a given entry than file2, leave the extra
43849         copies unpaired rather than aborting.
43850         Reported by Eric Blake.
43851
43852 2009-07-02  Bruno Haible  <bruno@clisp.org>
43853
43854         Speedup git-merge-changelog for git cherry-pick.
43855         * lib/git-merge-changelog.c (struct entries_mapping): New type.
43856         (entries_mapping_get): New function, extracted from compute_mapping.
43857         (entries_mapping_reverse_get): New function.
43858         (compute_mapping): Add a 'full' argument. Return the result in a
43859         'struct entries_mapping'.
43860         (main): Update. Access the mappings through entries_mapping_get.
43861         Reported by Eric Blake.
43862
43863 2009-07-02  Bruno Haible  <bruno@clisp.org>
43864
43865         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
43866         best_i.
43867
43868 2009-07-02  Bruno Haible  <bruno@clisp.org>
43869
43870         Speed up approximate search for matching ChangeLog entries.
43871         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
43872         argument. Call fstrcmp_bounded instead of fstrcmp.
43873         (compute_mapping, try_split_merged_entry, main): Update callers.
43874
43875 2009-07-02  Bruno Haible  <bruno@clisp.org>
43876
43877         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
43878
43879 2009-06-30  Bruno Haible  <bruno@clisp.org>
43880
43881         Reduce the number of uc_is_cased calls.
43882         * lib/unicase.h (casing_suffix_context_t): Add
43883         'first_char_except_ignorable' field.
43884         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
43885         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
43886         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
43887         Update initializer.
43888         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
43889         case-ignorable characters.
43890         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
43891         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
43892         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
43893         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
43894         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
43895
43896 2009-06-30  Bruno Haible  <bruno@clisp.org>
43897
43898         Tests for module 'unicase/ignorable'.
43899         * modules/unicase/ignorable-tests: New file.
43900         * tests/unicase/test-ignorable.c: New file, generated by
43901         gen-uni-tables.
43902
43903         Tests for module 'unicase/cased'.
43904         * modules/unicase/cased-tests: New file.
43905         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
43906         * tests/unicase/test-predicate-part1.h: New file, derived from
43907         tests/unictype/test-predicate-part1.h.
43908         * tests/unicase/test-predicate-part2.h: New file, same as
43909         tests/unictype/test-predicate-part2.h.
43910
43911         Fix evaluation of "Before C" condition of FINAL_SIGMA.
43912         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
43913         (output_casing_properties): New function.
43914         (main): Call it.
43915         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
43916         * lib/unicase/cased.c: Include unictype/bitmap.h.
43917         (uc_is_cased): Define through a bitmap lookup.
43918         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
43919         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
43920         (uc_is_case_ignorable): Define through a bitmap lookup.
43921         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
43922         lib/unictype/bitmap.h.
43923         (Depends-on): Add inline. Clean up.
43924         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
43925         lib/unictype/bitmap.h.
43926         (Depends-on): Add inline. Clean up.
43927         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
43928         recognition.
43929         * tests/unicase/test-u16-tolower.c (main): Likewise.
43930         * tests/unicase/test-u32-tolower.c (main): Likewise.
43931
43932 2009-06-30  Bruno Haible  <bruno@clisp.org>
43933
43934         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
43935         * lib/unicase/u16-casemap.c: Likewise.
43936         * lib/unicase/u32-casemap.c: Likewise.
43937
43938 2009-06-29  Bruno Haible  <bruno@clisp.org>
43939
43940         Define u32_casefold as a wrapper around u32_ct_casefold.
43941         * lib/unicase/u32-casefold.c: Update.
43942         * modules/unicase/u32-casefold (Depends-on): Add
43943         unicase/u32-ct-casefold, unicase/empty-prefix-context,
43944         unicase/empty-suffix-context. Clean up.
43945
43946         Define u16_casefold as a wrapper around u16_ct_casefold.
43947         * lib/unicase/u16-casefold.c: Update.
43948         * modules/unicase/u16-casefold (Depends-on): Add
43949         unicase/u16-ct-casefold, unicase/empty-prefix-context,
43950         unicase/empty-suffix-context. Clean up.
43951
43952         Define u8_casefold as a wrapper around u8_ct_casefold.
43953         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
43954         * lib/unicase/u8-casefold.c: Update.
43955         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
43956         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
43957
43958         Define u32_totitle as a wrapper around u32_ct_totitle.
43959         * lib/unicase/u32-totitle.c: Update.
43960         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
43961         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
43962
43963         Define u16_totitle as a wrapper around u16_ct_totitle.
43964         * lib/unicase/u16-totitle.c: Update.
43965         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
43966         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
43967
43968         Define u8_totitle as a wrapper around u8_ct_totitle.
43969         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
43970         functions.
43971         (FUNC): Delegate to U_CT_TOTITLE.
43972         * lib/unicase/u8-totitle.c: Update.
43973         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
43974         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
43975
43976         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
43977         invocation.
43978         * modules/unicase/u32-tolower (Depends-on): Add
43979         unicase/empty-prefix-context, unicase/empty-suffix-context.
43980
43981         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
43982         invocation.
43983         * modules/unicase/u16-tolower (Depends-on): Add
43984         unicase/empty-prefix-context, unicase/empty-suffix-context.
43985
43986         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
43987         * modules/unicase/u8-tolower (Depends-on): Add
43988         unicase/empty-prefix-context, unicase/empty-suffix-context.
43989
43990         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
43991         invocation.
43992         * modules/unicase/u32-toupper (Depends-on): Add
43993         unicase/empty-prefix-context, unicase/empty-suffix-context.
43994
43995         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
43996         invocation.
43997         * modules/unicase/u16-toupper (Depends-on): Add
43998         unicase/empty-prefix-context, unicase/empty-suffix-context.
43999
44000         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
44001         * modules/unicase/u8-toupper (Depends-on): Add
44002         unicase/empty-prefix-context, unicase/empty-suffix-context.
44003
44004         New module 'unicase/u32-ct-casefold'.
44005         * lib/unicase/u32-ct-casefold.c: New file.
44006         * modules/unicase/u32-ct-casefold: New file.
44007
44008         New module 'unicase/u16-ct-casefold'.
44009         * lib/unicase/u16-ct-casefold.c: New file.
44010         * modules/unicase/u16-ct-casefold: New file.
44011
44012         New module 'unicase/u8-ct-casefold'.
44013         * lib/unicase/u8-ct-casefold.c: New file.
44014         * lib/unicase/u-ct-casefold.h: New file, derived from
44015         lib/unicase/u-casefold.h.
44016         * modules/unicase/u8-ct-casefold: New file.
44017
44018         New module 'unicase/u32-ct-totitle'.
44019         * lib/unicase/u32-ct-totitle.c: New file.
44020         * modules/unicase/u32-ct-totitle: New file.
44021
44022         New module 'unicase/u16-ct-totitle'.
44023         * lib/unicase/u16-ct-totitle.c: New file.
44024         * modules/unicase/u16-ct-totitle: New file.
44025
44026         New module 'unicase/u8-ct-totitle'.
44027         * lib/unicase/u8-ct-totitle.c: New file.
44028         * lib/unicase/u-ct-totitle.h: New file, derived from
44029         lib/unicase/u-totitle.h.
44030         * modules/unicase/u8-ct-totitle: New file.
44031
44032         New module 'unicase/u32-ct-tolower'.
44033         * lib/unicase/u32-ct-tolower.c: New file.
44034         * modules/unicase/u32-ct-tolower: New file.
44035
44036         New module 'unicase/u16-ct-tolower'.
44037         * lib/unicase/u16-ct-tolower.c: New file.
44038         * modules/unicase/u16-ct-tolower: New file.
44039
44040         New module 'unicase/u8-ct-tolower'.
44041         * lib/unicase/u8-ct-tolower.c: New file.
44042         * modules/unicase/u8-ct-tolower: New file.
44043
44044         New module 'unicase/u32-ct-toupper'.
44045         * lib/unicase/u32-ct-toupper.c: New file.
44046         * modules/unicase/u32-ct-toupper: New file.
44047
44048         New module 'unicase/u16-ct-toupper'.
44049         * lib/unicase/u16-ct-toupper.c: New file.
44050         * modules/unicase/u16-ct-toupper: New file.
44051
44052         New module 'unicase/u8-ct-toupper'.
44053         * lib/unicase/u8-ct-toupper.c: New file.
44054         * modules/unicase/u8-ct-toupper: New file.
44055
44056         Add context arguments to u*_casemap functions.
44057         * lib/unicase/unicasemap.h: Include unicase.h.
44058         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
44059         suffix_context arguments.
44060         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
44061         functions.
44062         (FUNC): Add prefix_context and suffix_context arguments. Use
44063         uc_is_cased and uc_is_case_ignorable.
44064         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
44065         * lib/unicase/u16-casemap.c: Likewise.
44066         * lib/unicase/u32-casemap.c: Likewise.
44067         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
44068         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
44069         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
44070         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
44071         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
44072         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
44073
44074         New module 'unicase/u32-suffix-context'.
44075         * lib/unicase/u32-suffix-context.c: New file.
44076         * modules/unicase/u32-suffix-context: New file.
44077
44078         New module 'unicase/u16-suffix-context'.
44079         * lib/unicase/u16-suffix-context.c: New file.
44080         * modules/unicase/u16-suffix-context: New file.
44081
44082         New module 'unicase/u8-suffix-context'.
44083         * lib/unicase/u8-suffix-context.c: New file.
44084         * lib/unicase/u-suffix-context.h: New file.
44085         * modules/unicase/u8-suffix-context: New file.
44086
44087         New module 'unicase/empty-suffix-context'.
44088         * lib/unicase/empty-suffix-context.c: New file.
44089         * modules/unicase/empty-suffix-context: New file.
44090
44091         New module 'unicase/u32-prefix-context'.
44092         * lib/unicase/u32-prefix-context.c: New file.
44093         * modules/unicase/u32-prefix-context: New file.
44094
44095         New module 'unicase/u16-prefix-context'.
44096         * lib/unicase/u16-prefix-context.c: New file.
44097         * modules/unicase/u16-prefix-context: New file.
44098
44099         New module 'unicase/u8-prefix-context'.
44100         * lib/unicase/u8-prefix-context.c: New file.
44101         * lib/unicase/u-prefix-context.h: New file.
44102         * lib/unicase/context.h: New file.
44103         * modules/unicase/u8-prefix-context: New file.
44104
44105         New module 'unicase/empty-prefix-context'.
44106         * lib/unicase/empty-prefix-context.c: New file.
44107         * modules/unicase/empty-prefix-context: New file.
44108
44109         New module 'unicase/ignorable'.
44110         * lib/unicase/ignorable.c: New file.
44111         * modules/unicase/ignorable: New file.
44112
44113         New module 'unicase/cased'.
44114         * lib/unicase/caseprop.h: New file.
44115         * lib/unicase/cased.c: New file.
44116         * modules/unicase/cased: New file.
44117
44118         New functions for case mapping of substrings.
44119         * lib/unicase.h (casing_prefix_context_t): New type.
44120         (unicase_empty_prefix_context): New variable.
44121         (u8_casing_prefix_context, u16_casing_prefix_context,
44122         u32_casing_prefix_context, u8_casing_prefixes_context,
44123         u16_casing_prefixes_context, u32_casing_prefixes_context): New
44124         declarations.
44125         (casing_suffix_context_t): New type.
44126         (unicase_empty_suffix_context): New variable.
44127         (u8_casing_suffix_context, u16_casing_suffix_context,
44128         u32_casing_suffix_context, u8_casing_suffixes_context,
44129         u16_casing_suffixes_context, u32_casing_suffixes_context,
44130         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
44131         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
44132         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
44133         declarations.
44134
44135 2009-06-28  Jim Meyering  <meyering@redhat.com>
44136
44137         boostrap: indent only with spaces
44138         * build-aux/bootstrap: Indent only with spaces, never TABs.
44139
44140         bootstrap: split long lines
44141         * build-aux/bootstrap: Keep line length < 80.
44142
44143         bootstrap: sync from coreutils
44144         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
44145         just as autoreconf does.  Verify a list of prerequisite
44146         package-name,version-number pairs if defined in bootstrap.conf.
44147         Refer to README-prereq, if prerequisites are not satisfied.
44148
44149 2009-06-27  Eric Blake  <ebb9@byu.net>
44150
44151         tests: add test for bogus NULL definition
44152         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
44153         * tests/test-stdlib.c: Likewise.
44154         * tests/test-string.c: Likewise.
44155         * tests/test-locale.c: Likewise.
44156         * tests/test-unistd.c: Likewise.
44157         * modules/stdio-tests (Depends-on): Add verify.
44158         * modules/stdlib-tests (Depends-on): Likewise.
44159         * modules/string-tests (Depends-on): Likewise.
44160         * modules/locale-tests (Depends-on): Likewise.
44161         * modules/unistd-tests (Depends-on): Likewise.
44162
44163 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
44164
44165         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
44166         self-explaining comment.
44167         * m4/selinux-selinux-h: Update serial.
44168         (gl_LIBSELINUX): New macro, adding a warning for missing development
44169         packages to code extracted from...
44170         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
44171         Add warning for missing development packages here, too.
44172
44173 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
44174
44175         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
44176
44177 2009-06-25  Eric Blake  <ebb9@byu.net>
44178
44179         version-etc: fix regression
44180         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
44181         gcc.
44182         (version_etc): Use it, to catch bugs with trailing NULL.
44183         * lib/version-etc.c (version_etc_arn): Delete unused argument.
44184         (version_etc_va): Fix logic bug.
44185         * modules/version-etc-tests: Add test.
44186         * tests/test-version-etc.c: New file.
44187         * tests/test-version-etc.sh: Likewise.
44188
44189 2009-06-25  Sam Steingold  <sds@gnu.org>
44190
44191         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
44192         mbtowc declaration.
44193
44194 2009-06-25  Eric Blake  <ebb9@byu.net>
44195
44196         fpurge: migrate into <stdio.h>
44197         * lib/fpurge.h: Delete...
44198         * lib/stdio.in.h (fpurge): ...and declare here, instead.
44199         * lib/fpurge.c (fpurge): Change declaring header.
44200         * modules/fpurge (Files): Drop deleted file.
44201         (Depends-on): Add stdio.
44202         (configure.ac): Set witness.
44203         * modules/stdio (Makefile.am): Support fpurge macros.
44204         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
44205         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
44206         * lib/fflush.c: Update client.
44207         * tests/test-fpurge.c: Likewise.
44208         * NEWS: Mention the change.
44209
44210 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
44211
44212         * lib/argp-version-etc.c (program_authors): Add const
44213         qualifier.
44214         * lib/version-etc.c: Fix typos in the comments.
44215         * modules/argp-version-etc: Depends on version-etc.
44216
44217 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
44218
44219         argp-version-etc: new module.
44220
44221         * lib/argp-version-etc.c: New file.
44222         * lib/argp-version-etc.h: New file.
44223         * modules/argp-version-etc: New file.
44224         * modules/argp-version-etc-tests: New file.
44225         * tests/test-argp-version-etc.c: New test.
44226         * tests/test-argp-version-etc-1.sh: New test.
44227
44228 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
44229
44230         Provide additional interfaces and documentation for version-etc
44231         module.
44232
44233         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
44234         interfaces.
44235         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
44236         prototypes.
44237
44238 2009-06-24  Bruno Haible  <bruno@clisp.org>
44239
44240         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
44241         HAVE_LIB${NAME} macro.
44242         Reported by Sam Steingold <sds@gnu.org>.
44243
44244 2009-06-23  Simon Josefsson  <simon@josefsson.org>
44245
44246         * modules/hash-tests (test_hash_LDADD): Link to libintl when
44247         needed.
44248
44249 2009-06-21  Bruno Haible  <bruno@clisp.org>
44250
44251         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
44252         work.
44253         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
44254         together with LIB${NAME}, LTLIB${NAME}.
44255         Reported by Sam Steingold <sds@gnu.org>.
44256
44257 2009-06-20  Jim Meyering  <meyering@redhat.com>
44258
44259         tests: make sc_require_test_exit_idiom more generic
44260         * top/maint.mk (Exit_witness_file): New overridable variable.
44261         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
44262         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
44263
44264 2009-06-19  Jim Meyering  <meyering@redhat.com>
44265
44266         hash: reverse order of src/dst parameters in an internal interface
44267         * lib/hash.c (transfer_entries): Reverse order of parameters to
44268         put DST before SRC.  Adjust callers.
44269
44270         tests: test-hash: avoid wholesale duplication
44271         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
44272         Instead, use a loop and add a single conditional.
44273
44274         tests: test-hash: allow seed selection via a command line argument
44275         * tests/test-hash.c (get_seed): New function.
44276         (main): Use it.
44277
44278 2009-06-19  Eric Blake  <ebb9@byu.net>
44279
44280         hash: avoid memory leak on allocation failure
44281         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
44282         failure.  Factor repeated algorithm...
44283         (transfer_entries): ...into new helper routine.
44284         (hash_delete): React to hash_rehash return value.
44285
44286         hash: reduce memory pressure in hash_rehash no-op case
44287         * lib/hash.c (next_prime): Avoid overflow.
44288         (hash_initialize): Factor bucket size computation...
44289         (compute_bucket_size): ...into new helper function.
44290         (hash_rehash): Use new function and open coding to reduce memory
44291         pressure, and avoid a memory leak in USE_OBSTACK code.
44292         Reported by Jim Meyering.
44293
44294 2009-06-18  Eric Blake  <ebb9@byu.net>
44295
44296         hash: make rotation more obvious
44297         * modules/hash (Depends-on): Add bitrotate and stdint.
44298         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
44299         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
44300         (SIZE_MAX): Rely on headers for definition.
44301         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
44302         (raw_hasher): Use rotr_sz.
44303         Suggested by Jim Meyering.
44304
44305         hash: fix memory leak in last patch
44306         * lib/hash.c (hash_rehash): Avoid memory leak.
44307
44308         hash: avoid no-op rehashing
44309         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
44310
44311         hash: provide default callback functions
44312         * lib/hash.c (raw_hasher, raw_comparator): New functions.
44313         (hash_initialize): Use them as defaults.
44314         * tests/test-hash.c (main): Test this.
44315
44316         hash: minor optimization
44317         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
44318         when possible.
44319         (hash_initialize): Document this promise.
44320         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
44321         * tests/test-hash.c (hash_compare_strings): Test this.
44322
44323 2009-06-18  Bruno Haible  <bruno@clisp.org>
44324
44325         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
44326         going to be replaced anyway.
44327
44328 2009-06-18  Bruno Haible  <bruno@clisp.org>
44329
44330         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
44331         in one place.
44332         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
44333         be replaced anyway.
44334
44335 2009-06-18  Eric Blake  <ebb9@byu.net>
44336
44337         hash: check for resize before insertion
44338         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
44339         threshold before insertion, so that a pathological hash_rehash
44340         that fills every bucket can still trigger another rehash.
44341
44342 2009-06-18  Jim Meyering  <meyering@redhat.com>
44343
44344         hash-tests: add a loop around the small tests
44345         * tests/test-hash.c (main): Repeat small tests with selected
44346         small initial table sizes.
44347
44348 2009-06-17  Eric Blake  <ebb9@byu.net>
44349
44350         hash: minor cleanups
44351         * lib/hash.h (hash_entry): Make opaque, by moving...
44352         * lib/hash.c (hash_entry): ...here.
44353         (hash_insert): Clarify restrictions on what can be inserted.
44354         (hash_get_next): Clarify when it is safe to remove an element
44355         during traversal.
44356         (check_tuning): Skip verification when tuning is known safe.
44357         (hash_initialize): Clarify restrictions on tuning.
44358
44359 2009-06-17  Jim Meyering  <jim@meyering.net>
44360         and Eric Blake  <ebb9@byu.net>
44361
44362         hash-tests: new module
44363         * modules/hash-tests: New file.
44364         * tests/test-hash.c: New file.
44365
44366 2009-06-17  Eric Blake  <ebb9@byu.net>
44367
44368         strstr-simple: document new module
44369         * MODULES.html.sh: Document new module.
44370
44371         strstr, strcasestr: replace on platforms with broken memchr
44372         * modules/strstr: Split into...
44373         * modules/strstr-simple: ...new module that does not care about
44374         performance, but does care about glibc bug.
44375         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
44376         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
44377         if platform memchr is broken, per Debian bug 521737.
44378         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
44379         memchr.
44380         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
44381         * doc/posix-functions/strstr.texi (strstr): Document the fix.
44382         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
44383         * modules/mountlist (Depends-on): Add strstr-simple.
44384         * modules/gen-uni-tables (Depends-on): Likewise.
44385         * modules/argz (Depends-on): Add strstr.
44386
44387 2009-06-17  Bruno Haible  <bruno@clisp.org>
44388
44389         * modules/posix_spawn-internal (Depends-on): Add errno.
44390
44391 2009-06-17  Bruno Haible  <bruno@clisp.org>
44392
44393         Define missing ESTALE on Interix 3.5.
44394         * lib/errno.in.h (ESTALE): Assign a value if missing.
44395         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
44396         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
44397         missing.
44398         * doc/posix-headers/errno.texi: Mention the Interix bug.
44399         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
44400
44401 2009-06-15  Eric Blake  <ebb9@byu.net>
44402
44403         memchr, memchr2: add valgrind exception
44404         * lib/memchr.valgrind: New file.
44405         * lib/memchr2.valgrind: New file.
44406         * modules/memchr (Files): Distribute valgrind file.
44407         * modules/memchr2 (Files): Likewise.
44408
44409         docs: memchr is no longer obsolete
44410         * MODULES.html.sh: Move memchr from obsolete to string.h section.
44411         * lib/string.in.h (memchr): Simplify logic.
44412
44413 2009-06-14  Jim Meyering  <meyering@redhat.com>
44414
44415         link-follow: fix the "checking..." message to not mention trailing slash
44416         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
44417         never considered trailing slashes.
44418
44419 2009-06-14  Bruno Haible  <bruno@clisp.org>
44420
44421         * m4/memchr.m4: Mention also the bug on IA-64.
44422         * doc/posix-functions/memchr.texi: Likewise.
44423
44424 2009-06-12  Eric Blake  <ebb9@byu.net>
44425
44426         memchr: detect broken x86_64 and alpha implementations
44427         * modules/memchr-tests (Depends-on): Move mmap detection...
44428         * modules/memchr (Depends-on): ...here.
44429         (configure.ac): Set indicator.
44430         * lib/string.in.h (memchr): Declare replacement.
44431         * modules/string (Makefile.am): Trigger replacement.
44432         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
44433         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
44434         bugs.
44435         * doc/posix-functions/memchr.texi (memchr): Document the bug.
44436         * modules/getpagesize (License): Relax license.
44437
44438 2009-06-11  Bruno Haible  <bruno@clisp.org>
44439
44440         * lib/idpriv.h: Add more references.
44441
44442 2009-06-08  Bruno Haible  <bruno@clisp.org>
44443
44444         Tests for module 'idpriv-droptemp'.
44445         * modules/idpriv-droptemp-tests: New file.
44446         * tests/test-idpriv-droptemp.sh: New file.
44447         * tests/test-idpriv-droptemp.su.sh: New file.
44448         * tests/test-idpriv-droptemp.c: New file.
44449
44450         New module 'idpriv-droptemp'.
44451         * lib/idpriv-droptemp.c: New file.
44452         * modules/idpriv-droptemp: New file.
44453
44454 2009-06-08  Bruno Haible  <bruno@clisp.org>
44455
44456         Tests for module 'idpriv-drop'.
44457         * modules/idpriv-drop-tests: New file.
44458         * tests/test-idpriv-drop.sh: New file.
44459         * tests/test-idpriv-drop.su.sh: New file.
44460         * tests/test-idpriv-drop.c: New file.
44461
44462         New module 'idpriv-drop'.
44463         * lib/idpriv.h: New file.
44464         * lib-idpriv-drop.c: New file.
44465         * m4/idpriv.m4: New file.
44466         * modules/idpriv-drop: New file.
44467
44468 2009-06-08  Bruno Haible  <bruno@clisp.org>
44469
44470         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
44471         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
44472         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
44473         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
44474         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
44475         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
44476         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
44477
44478 2009-06-08  Eric Blake  <ebb9@byu.net>
44479
44480         test-strstr: use memory fence, when possible
44481         * tests/test-strstr.c (main): Use memory fence, in order to be
44482         more likely to trigger Debian bug 521737.
44483         * modules/strstr-tests (Files): Pull in additional files.
44484
44485         memchr: no longer obsolete, for wider field testing
44486         * modules/memchr (Status, Notice): Delete, this module is no
44487         longer obsolete.
44488         * modules/vasnprintf (Depends-on): Add memchr.
44489
44490 2009-06-07  Jim Meyering  <meyering@redhat.com>
44491
44492         hash: declare some functions with the warn_unused_result attribute
44493         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
44494
44495 2009-06-07  Bruno Haible  <bruno@clisp.org>
44496
44497         * tests/test-alignof.c: Don't test int64_t if it does not exist.
44498         Reported by Eric Blake.
44499
44500 2009-06-06  Eric Blake  <ebb9@byu.net>
44501
44502         test-alignof: fix typo with long double
44503         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
44504         compiler error.
44505
44506 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
44507
44508         Escape non-texinfo { and }s.
44509         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
44510         markup error.
44511
44512 2009-06-04  Jim Meyering  <meyering@redhat.com>
44513
44514         gitlog-to-changelog: don't infloop on an empty commit log
44515         * build-aux/gitlog-to-changelog: Warn about an empty log message.
44516         Reported by Boris Petersen <transacid@centerim.org>.
44517
44518 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
44519
44520         version-etc: extend for packagers
44521         Add three new configure options, intended for packagers:
44522           --with-packager="packager name"
44523           --with-packager-version="packager-specific version"
44524           --with-packager-bug-reports="packager bug reporting"
44525         An example with coreutils:
44526           $ ./configure \
44527             --with-packager=Gentoo \
44528             --with-packager-bug-report=http://bugs.gentoo.org/ \
44529             --with-packager-version="patchset 1.6"
44530           $ ./src/ls --version | head -n2
44531           ls (GNU coreutils) 7.1-dirty
44532           Packaged by Gentoo (patchset 1.6)
44533         Note that the bug reporting info via --help doesn't show up because
44534         coreutils uses its own custom emit_bug_reporting_address() implementation
44535         in src/system.h.  If it didn't, it'd look like:
44536           $ ./src/ls --help | tail -n4
44537           Report bugs to <bug-coreutils@gnu.org>.
44538           Report Gentoo bugs to <http://bugs.gentoo.org/>.
44539           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
44540           General help using GNU software: <http://www.gnu.org/gethelp/>.
44541         * lib/version-etc.c: Print new information, if provided.
44542         * m4/version-etc.m4: New file.
44543         * modules/version-etc (Files): Add m4/version-etc.m4.
44544         (configure.ac): Add gl_VERSION_ETC.
44545
44546 2009-05-31  Bruno Haible  <bruno@clisp.org>
44547
44548         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
44549         and 'int64_t'.
44550         * modules/alignof-tests (Dependencies): Add stdint.
44551         Reported by Eric Blake.
44552
44553 2009-05-31  Bruno Haible  <bruno@clisp.org>
44554
44555         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
44556         restriction due to compiler bugs.
44557         Reported by Eric Blake.
44558
44559 2009-05-31  Simon Josefsson  <simon@josefsson.org>
44560             Bruno Haible  <bruno@clisp.org>
44561
44562         Fix test-alignof failure.
44563         * lib/alignof.h (alignof_slot): New macro.
44564         (alignof_type): New macro, with the same semantics as the previous
44565         'alignof'.
44566         (alignof): Alias to alignof_slot.
44567         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
44568         check that the results are usable as constant expressions.
44569
44570 2009-05-31  Bruno Haible  <bruno@clisp.org>
44571
44572         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
44573         * tests/test-memchr.c (main): Check that memchr does not read past the
44574         first occurrence of the byte.
44575         * tests/test-strstr.c (main): Update comment.
44576         Suggested by Eric Blake.
44577
44578 2009-05-30  Bruno Haible  <bruno@clisp.org>
44579
44580         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
44581         detail how to use dumpbin.
44582         Reported by David Byron <dbyron@dbyron.com>.
44583
44584 2009-06-02  Simon Josefsson  <simon@josefsson.org>
44585
44586         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
44587
44588 2009-06-02  Simon Josefsson  <simon@josefsson.org>
44589
44590         * m4/manywarnings.m4: Add GCC 4.4 warnings.
44591
44592 2009-05-28  Bruno Haible  <bruno@clisp.org>
44593
44594         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
44595         build-aux/ files.
44596
44597 2009-05-28  Simon Josefsson  <simon@josefsson.org>
44598
44599         * gnulib-tool (func_import): Transform license on build-aux/ files too.
44600
44601 2009-05-27  Simon Josefsson  <simon@josefsson.org>
44602
44603         * gnulib-tool (sed_transform_main_lib_file)
44604         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
44605         regexps.
44606
44607 2009-05-26  Simon Josefsson  <simon@josefsson.org>
44608
44609         * tests/test-strstr.c: Add another self-test.
44610         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
44611         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
44612
44613 2009-05-23  Bruno Haible  <bruno@clisp.org>
44614
44615         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
44616         change.
44617
44618 2009-05-21  Bruno Haible  <bruno@clisp.org>
44619
44620         Simplify use of mode_t varargs.
44621         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
44622         uses 'mode_t' or 'int'.
44623         * lib/openat.c (openat): Likewise.
44624         * lib/open-safer.c (open_safer): Likewise.
44625         * m4/mode_t.m4: New file.
44626         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
44627         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
44628         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
44629         * modules/open (Files): Add m4/mode_t.m4.
44630         * modules/openat (Files): Likewise.
44631         * modules/fcntl-safer (Files): Likewise.
44632         Suggested by Eric Blake.
44633
44634 2009-05-21  Pádraig Brady  <P@draigbrady.com>
44635
44636         * doc/glibc-functions/fallocate.texi: New file.
44637         * doc/gnulib.texi: Include it.
44638
44639 2009-05-21  Eric Blake  <ebb9@byu.net>
44640             Bruno Haible  <bruno@clisp.org>
44641
44642         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
44643         invocations.
44644         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
44645
44646 2009-05-21  Eric Blake  <ebb9@byu.net>
44647             Bruno Haible  <bruno@clisp.org>
44648
44649         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
44650         include_next. Fix of 2008-11-20 commit.
44651         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
44652         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
44653         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
44654         NEXT_MATH_H.
44655         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
44656         instead of NEXT_MATH_H.
44657
44658 2009-05-21  Bruno Haible  <bruno@clisp.org>
44659
44660         Avoid redefinition warnings for SIZE_MAX.
44661         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
44662         Reported by Simon Josefsson.
44663
44664 2009-05-21  Bruno Haible  <bruno@clisp.org>
44665
44666         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
44667         AC_CACHE_VAL.
44668
44669 2009-05-20  Bruno Haible  <bruno@clisp.org>
44670
44671         Make zeroptr.h work on mingw.
44672         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
44673         mprotect.
44674         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
44675         * modules/memchr2-tests (configure.ac): Likewise.
44676         * modules/memcmp-tests (configure.ac): Likewise.
44677         * modules/memmem-tests (configure.ac): Likewise.
44678         * modules/memrchr-tests (configure.ac): Likewise.
44679         Reported by Simon Josefsson.
44680
44681 2009-05-20  Simon Josefsson  <simon@josefsson.org>
44682
44683         * tests/test-glob.c: Include string.h for strcmp prototype.
44684
44685 2009-05-20  Simon Josefsson  <simon@josefsson.org>
44686
44687         * modules/getdelim (Depends-on): Add explicit stdint, although it
44688         was implicitly already pulled in via realloc-posix.
44689         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
44690
44691 2009-05-20  Simon Josefsson  <simon@josefsson.org>
44692
44693         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
44694         G. Christensen" <tgc@jupiterrise.com>.
44695         * m4/sys_socket_h.m4: Check for sa_family_t.
44696         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
44697         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
44698         * tests/test-sys_socket.c: Check that sa_family_t works.
44699
44700 2009-05-18  Eric Blake  <ebb9@byu.net>
44701
44702         maint.mk: allow gnulib_dir in VPATH build
44703         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
44704
44705 2009-05-15  Jim Meyering  <meyering@redhat.com>
44706
44707         maint.mk: Give gnulib_dir a default definition.
44708         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
44709         Thus, most packages no longer need to specify this variable in cfg.mk
44710
44711 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
44712
44713         rename.m4: fix typos that would make non-mingw cross-configure fail
44714         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
44715
44716 2009-05-13  Eric Blake  <ebb9@byu.net>
44717
44718         mmap-anon: avoid out-of-order autoconf expansion
44719         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
44720         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
44721         * modules/memchr-tests (Depends-on): Add extensions.
44722         * modules/memchr2-tests (Depends-on): Add extensions.
44723         * modules/memcmp-tests (Depends-on): Add extensions.
44724         * modules/memmem-tests (Depends-on): Add extensions.
44725         * modules/memrchr-tests (Depends-on): Add extensions.
44726
44727 2009-05-13  Bruno Haible  <bruno@clisp.org>
44728
44729         Make some tests ISO C 99 compliant.
44730         * tests/zerosize-ptr.h: New file.
44731         * tests/test-memchr.c: Include zerosize-ptr.h.
44732         (main): Use a zero-size object pointer instead of NULL.
44733         * tests/test-memchr2.c: Include zerosize-ptr.h.
44734         (main): Use a zero-size object pointer instead of NULL.
44735         * tests/test-memcmp.c: Include zerosize-ptr.h.
44736         (main): Use a zero-size object pointer instead of NULL.
44737         * tests/test-memmem.c: Include zerosize-ptr.h.
44738         (main): Use a zero-size object pointer instead of NULL.
44739         * tests/test-memrchr.c: Include zerosize-ptr.h.
44740         (main): Use a zero-size object pointer instead of NULL.
44741         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
44742         m4/mmap-anon.m4.
44743         (Depends-on): Add getpagesize.
44744         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
44745         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
44746         m4/mmap-anon.m4.
44747         (Depends-on): Add getpagesize.
44748         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
44749         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
44750         m4/mmap-anon.m4.
44751         (Depends-on): Add getpagesize.
44752         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
44753         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
44754         m4/mmap-anon.m4.
44755         (Depends-on): Add getpagesize.
44756         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
44757         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
44758         m4/mmap-anon.m4.
44759         (Depends-on): Add getpagesize.
44760         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
44761
44762 2009-05-12  Bruno Haible  <bruno@clisp.org>
44763
44764         Tests for module 'alignof'.
44765         * modules/alignof-tests: New file.
44766         * tests/test-alignof.c: New file.
44767
44768 2009-05-12  Bruno Haible  <bruno@clisp.org>
44769
44770         Fix alignof macro.
44771         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
44772         vendor compilers that are always correct.
44773
44774 2009-05-12  Bruno Haible  <bruno@clisp.org>
44775
44776         Make the MAP_ANONYMOUS detection work on HP-UX 11.
44777         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
44778         not whether its fully works.
44779
44780 2009-05-12  Bruno Haible  <bruno@clisp.org>
44781
44782         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
44783
44784 2009-05-12  Jim Meyering  <meyering@redhat.com>
44785
44786         * top/maint.mk: Adjust backslash alignment.
44787
44788 2009-05-11  Simon Josefsson  <simon@josefsson.org>
44789
44790         * top/maint.mk: Make $(srcdir)/build-aux configurable.
44791
44792 2009-05-11  Eric Blake  <ebb9@byu.net>
44793
44794         argp: avoid undefined behavior
44795         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
44796         macros.
44797
44798 2009-05-08  Simon Josefsson  <simon@josefsson.org>
44799
44800         * tests/test-vc-list-files-git.sh: Do git config of user.email and
44801         user.name to prevent git commit from complaining.
44802
44803 2009-05-10  Bruno Haible  <bruno@clisp.org>
44804
44805         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
44806         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
44807         it rewrites every file name only once.
44808         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
44809
44810 2009-05-08  Bruno Haible  <bruno@clisp.org>
44811
44812         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
44813         instead of 'max'.
44814
44815 2009-05-08  Simon Josefsson  <simon@josefsson.org>
44816
44817         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
44818         sockaddr_storage test.
44819
44820 2009-05-07  Simon Josefsson  <simon@josefsson.org>
44821
44822         * modules/sys_socket (Makefile.am): Substitute
44823         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
44824         * m4/sys_socket_h.m4: Check for sockaddr_storage.
44825         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
44826         * tests/test-sys_socket.c: Check sockaddr_storage.
44827
44828 2009-05-08  Bruno Haible  <bruno@clisp.org>
44829
44830         New module 'alignof'.
44831         * lib/alignof.h: New file.
44832         * modules/alignof: New file.
44833
44834 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
44835             Bruno Haible  <bruno@clisp.org>
44836
44837         Fix test-file-has-acl on FreeBSD.
44838         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
44839         mask is implicitly added.
44840         * tests/test-file-has-acl.c: Include <signal.h>.
44841         (main): Terminate the test after 5 seconds.
44842         * modules/acl-tests (configure.ac): Check for alarm function.
44843
44844 2009-05-04  Bruno Haible  <bruno@clisp.org>
44845
44846         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
44847         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
44848         * modules/errno (configure.ac): Drop AC_REQUIRE.
44849         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
44850         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
44851
44852 2009-05-04  Simon Josefsson  <simon@josefsson.org>
44853
44854         * modules/glob-tests: New module.
44855         * tests/test-glob.c: Add.
44856
44857 2009-05-04  Simon Josefsson  <simon@josefsson.org>
44858
44859         * modules/fnmatch-tests: New module.
44860         * tests/test-fnmatch.c: Add.
44861
44862 2009-05-04  Eric Blake  <ebb9@byu.net>
44863
44864         maint: make the new no-submodule-changes rule VPATH-safe
44865         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
44866
44867 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
44868             Bruno Haible  <bruno@clisp.org>
44869
44870         acl: Fix infinite loop on FreeBSD.
44871         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
44872         of return value from acl_get_entry.
44873         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
44874         Likewise.
44875
44876 2009-05-03  Bruno Haible  <bruno@clisp.org>
44877
44878         * lib/acl-internal.h (acl_entries): Clarify return value.
44879         * lib/acl_entries.c (acl_entries): Likewise.
44880
44881 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
44882
44883         Bug fix in acl module.
44884         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
44885
44886 2009-05-03  Bruno Haible  <bruno@clisp.org>
44887
44888         Create gperf-generated file in the source dir, not in the build dir.
44889         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
44890         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
44891         * modules/unicase/locale-language (unicase/locale-languages.h):
44892         Likewise.
44893         * modules/unicase/special-casing (unicase/special-casing-table.h):
44894         Likewise.
44895         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
44896         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
44897         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
44898         Reported by Ralf Wildenhues.
44899
44900 2009-05-03  Bruno Haible  <bruno@clisp.org>
44901
44902         * modules/fnmatch (Description, configure.ac): Taken from
44903         fnmatch-posix.
44904         * modules/fnmatch-posix: Turn into a symbolic reference to the
44905         'fnmatch' module, and deprecate.
44906         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
44907
44908 2009-05-03  Bruno Haible  <bruno@clisp.org>
44909
44910         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
44911         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
44912         Reported by Ralf Wildenhues.
44913
44914 2009-05-04  Simon Josefsson  <simon@josefsson.org>
44915
44916         * m4/fnmatch.m4: Fix fnmatch re-define.
44917
44918 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
44919
44920         priv-set: new module and tests; adapt write-any-file
44921         * lib/priv-set.c: New file.
44922         * lib/priv-set.h: New file.
44923         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
44924         * lib/write-any-file.c: Simplify by using priv-set module.
44925         * m4/priv-set.m4: New file.
44926         * modules/priv-set: New file.
44927         * modules/unlinkdir: Add dependency on priv-set module.
44928         * modules/write-any-file: Likewise.
44929
44930         Tests for module 'priv-set'.
44931         * modules/priv-set-tests: New file.
44932         * tests/test-priv-set.c: New file.
44933
44934 2009-05-03  Jim Meyering  <meyering@redhat.com>
44935             Bruno Haible  <bruno@clisp.org>
44936
44937         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
44938         use the converted UTF-8 variant of the name instead.
44939
44940 2009-05-03  Jim Meyering  <meyering@redhat.com>
44941
44942         tests: tighten some getdate tests
44943         * tests/test-getdate.c (main): Tighten tests: require equality,
44944         not just greater than.  Set TZ envvar to UTC0.
44945
44946 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
44947
44948         getdate: correctly interpret "next monday" when run on a Monday
44949         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
44950         that e.g., "next tues" (when run on a tuesday) results in a date
44951         that is one week in the future, and not today's date.
44952         I.e., add a week when the wday is the same as the current one.
44953         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
44954         and earlier by Martin Bernreuther and Jan Minář.
44955         * tests/test-getdate.c (main): Check that "next DAY" is always in
44956         the future and that "last DAY" is always in the past.
44957
44958 2009-05-02  Jim Meyering  <meyering@redhat.com>
44959
44960         build: ensure that a release build fails when a submodule is unclean
44961         * top/maint.mk (no-submodule-changes): New rule.
44962         (alpha beta major): Depend on it.
44963
44964 2009-05-02  Bruno Haible  <bruno@clisp.org>
44965
44966         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
44967         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
44968         shell variable gl_fnmatch_required to detect which variant is
44969         requested.
44970         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
44971         gl_FUNC_FNMATCH_POSIX.
44972         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
44973         exclude fnmatch-posix.
44974
44975 2009-05-02  Bruno Haible  <bruno@clisp.org>
44976
44977         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
44978         * modules/mbsrtowcs (License): Change to LGPLv2+.
44979         * modules/strnlen1 (License): Likewise.
44980         Reported by Simon Josefsson.
44981
44982 2009-05-02  Bruno Haible  <bruno@clisp.org>
44983
44984         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
44985         "cross".
44986         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
44987         gnulib-tool was called with option --source-base=lib.
44988
44989 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44990
44991         Use automake *-local hooks without commands, for extensibility.
44992         * modules/localcharset (Makefile.am): Rename install-exec-local
44993         rule to install-exec-localcharset, and make it a prerequisite of
44994         install-exec-local.  Likewise, rename the uninstall-local rule to
44995         uninstall-localcharset, and make it a prerequisite of the former.
44996
44997 2009-05-01  Bruno Haible  <bruno@clisp.org>
44998
44999         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
45000         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
45001         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
45002         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
45003         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
45004         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
45005         m4/locale-zh.m4, m4/codeset.m4.
45006
45007         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
45008         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
45009         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
45010         m4/locale-zh.m4.
45011
45012         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
45013         REPLACE_WCRTOMB if mbstate_t must be replaced.
45014         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
45015         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
45016
45017 2009-05-01  Bruno Haible  <bruno@clisp.org>
45018
45019         Avoid compiler warnings when redefining macros defined by <libintl.h>.
45020         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
45021         dngettext, dcngettext, textdomain, bindtextdomain,
45022         bind_textdomain_codeset): Undefine before redefining.
45023
45024 2009-04-30  Bruno Haible  <bruno@clisp.org>
45025
45026         Fix bug introduced on 2009-04-25.
45027         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
45028         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
45029         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
45030         is defined.
45031         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
45032         is defined.
45033         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
45034         is defined.
45035         Reported by Elbert_Pol <elbert.pol@gmail.com>.
45036
45037 2009-04-28  Bruno Haible  <bruno@clisp.org>
45038
45039         Comment tweaks.
45040         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
45041         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
45042         * lib/unicase.h (u*_casexfrm): Likewise.
45043         Reported by Paolo Bonzini.
45044
45045 2009-04-28  Bruno Haible  <bruno@clisp.org>
45046
45047         Fix a compilation error.
45048         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
45049         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
45050         Reported by Jim Meyering.
45051
45052 2009-04-27  Bruno Haible  <bruno@clisp.org>
45053
45054         New module 'libunistring'.
45055         * modules/libunistring: New file.
45056         * m4/libunistring.m4: New file.
45057         * MODULES.html.sh (Unicode string functions): Add it.
45058
45059 2009-04-27  Eric Blake  <ebb9@byu.net>
45060
45061         maint.mk: allow package-specific header to provide <config.h>
45062         * top/maint.mk (sc_require_config_h): New variable.
45063         (sc_require_config_h, sc_require_config_h_first): Use it.
45064
45065 2009-04-27  Simon Josefsson  <simon@josefsson.org>
45066
45067         * top/maint.mk (sc_avoid_if_before_free): Except
45068         useless-if-before-free script.
45069
45070 2009-04-27  Eric Blake  <ebb9@byu.net>
45071
45072         maintainer-makefile: depend on all required helper scripts
45073         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
45074         useless-if-before-free.
45075         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
45076         version, rather than assuming gnulib checkout is available.
45077         Reported by Simen Josefsson.
45078
45079 2009-04-26  Bruno Haible  <bruno@clisp.org>
45080
45081         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
45082         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
45083         "../" or "..".
45084
45085 2009-04-26  Bruno Haible  <bruno@clisp.org>
45086
45087         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
45088         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
45089         AC_LIB_HAVE_LINKFLAGS.
45090
45091 2009-04-26  Bruno Haible  <bruno@clisp.org>
45092
45093         Simplify calling convention of u*_conv_from_encoding.
45094         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
45095         u32_conv_from_encoding): Expect a resultbuf argument and return the
45096         result directly as a pointer.
45097         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
45098         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
45099         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
45100         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
45101         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
45102         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
45103         Update.
45104         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
45105         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
45106         * lib/vasnprintf.c (VASNPRINTF): Update.
45107         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
45108         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
45109         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
45110         * NEWS: Mention the change.
45111
45112 2009-04-26  Bruno Haible  <bruno@clisp.org>
45113
45114         Simplify calling convention of u*_conv_to_encoding.
45115         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
45116         u32_conv_to_encoding): Expect a resultbuf argument and return the
45117         result directly as a pointer.
45118         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
45119         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
45120         freeing scaled_offsets if mem_iconveha failed.
45121         * lib/unicase/u-casexfrm.h (FUNC): Update.
45122         * lib/uninorm/u-normxfrm.h (FUNC): Update.
45123         * lib/vasnprintf.c (VASNPRINTF): Update.
45124         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
45125         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
45126         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
45127         * NEWS: Mention the change.
45128
45129 2009-04-26  Bruno Haible  <bruno@clisp.org>
45130
45131         Avoid test failures on AIX and OSF/1.
45132         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
45133         malloc(0).
45134         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
45135         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
45136         Likewise.
45137         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
45138         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
45139         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
45140         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
45141         * doc/posix-functions/malloc.texi: Document the portability problem
45142         related to malloc(0).
45143
45144 2009-04-26  Bruno Haible  <bruno@clisp.org>
45145
45146         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
45147         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
45148         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
45149
45150 2009-04-25  Bruno Haible  <bruno@clisp.org>
45151
45152         Avoid link error when creating a namespace clean library.
45153         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
45154         as macro with arguments if already defined as an alias.
45155         * lib/signbitf.c (gl_signbitf): Don't undefine.
45156         * lib/signbitd.c (gl_signbitd): Don't undefine.
45157         * lib/signbitl.c (gl_signbitl): Don't undefine.
45158
45159 2009-04-25  Jim Meyering  <meyering@redhat.com>
45160
45161         vc-list-files: fix another quoting bug
45162         * build-aux/vc-list-files: Avoid sed backslash expansion
45163         of pathological directory names.
45164
45165 2009-04-25  Eric Blake  <ebb9@byu.net>
45166
45167         vc-list-files: fix shell quoting error
45168         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
45169         timestamp.
45170
45171 2009-04-25  Jim Meyering  <meyering@redhat.com>
45172
45173         vc-list-files: restore lost functionality with subdir argument
45174         * build-aux/vc-list-files: When given a non-"." sub-directory
45175         argument, substitute the $dir/ prefix back onto each resulting name.
45176         Otherwise, coreutils' root_tests check would fail.
45177
45178 2009-04-24  Eric Blake  <ebb9@byu.net>
45179
45180         vc-list-files: ignore git symlinks
45181         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
45182         than ls-files, to ignore git symlinks.
45183
45184         maint.mk: import improvements from m4
45185         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
45186         (move_if_change): Delete unused macro.
45187         (news-date-check, vc-diff-check): Support VPATH builds.
45188         (announcement): Likewise.  Split --bootstrap-tools list...
45189         (boostrap-tools): ...into separate list, which can be overridden
45190         in cfg.mk.
45191         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
45192         requiring dependency on useless-if-before-free module.
45193         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
45194         Support VPATH builds.
45195
45196 2009-04-24  Jim Meyering  <meyering@redhat.com>
45197
45198         maint.mk: remove coreutils-specific rules and variables
45199         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
45200         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
45201         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
45202
45203         maint.mk: remove obsolete rule
45204         * top/maint.mk (rel-check): Remove rule.
45205         (WGET, WGETFLAGS): Remove now-unused variables.
45206
45207 2009-04-24  Simon Josefsson  <simon@josefsson.org>
45208
45209         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
45210         consistency.
45211
45212         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
45213         '$(PATH_SEPARATOR)' instead of ':'.
45214
45215 2009-04-24  Simon Josefsson  <simon@josefsson.org>
45216
45217         * lib/getopt1.c (main): Use 'const' for static array.
45218
45219 2009-04-24  Simon Josefsson  <simon@josefsson.org>
45220
45221         * top/maint.mk: Sync with coreutils.
45222         * NEWS: Explain incompatibilities.
45223
45224 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45225             Bruno Haible  <bruno@clisp.org>
45226
45227         Fix cross-compilation results.
45228         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
45229         statement, as third argument of AC_TRY_RUN.
45230         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
45231         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
45232         Likewise.
45233         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
45234         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
45235         Likewise.
45236         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
45237         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
45238         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
45239
45240 2009-04-20  Bruno Haible  <bruno@clisp.org>
45241
45242         Avoid test failure on mingw.
45243         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
45244
45245 2009-04-20  Bruno Haible  <bruno@clisp.org>
45246
45247         Avoid compilation error on mingw.
45248         * modules/localename-tests (Depends-on): Add locale.
45249
45250 2009-04-19  Bruno Haible  <bruno@clisp.org>
45251
45252         Support for building a shared library on Windows platforms.
45253         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
45254         (main): Test the presence of UNINORM_NFC here.
45255         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
45256         (main): Test the presence of UNINORM_NFD here.
45257         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
45258         (main): Test the presence of UNINORM_NFKC here.
45259         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
45260         (main): Test the presence of UNINORM_NFKD here.
45261
45262 2009-04-19  Bruno Haible  <bruno@clisp.org>
45263
45264         Avoid a compiler warning.
45265         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
45266         Change type of variable 'sequence'.
45267
45268 2009-04-19  Bruno Haible  <bruno@clisp.org>
45269
45270         * modules/configmake (Makefile.am): When the contents of configmake.h
45271         does not change, arrange to preserve its modification time.
45272
45273 2009-04-17  Simon Josefsson  <simon@josefsson.org>
45274
45275         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
45276         gettext domain.
45277
45278 2009-04-16  Jim Meyering  <meyering@redhat.com>
45279
45280         useless-if-before-free: improve conversion code
45281         * build-aux/useless-if-before-free: Adjust code-in-comment to match
45282         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
45283
45284 2009-04-14  Bruno Haible  <bruno@clisp.org>
45285
45286         * modules/fcntl (Depends-on): Add extensions.
45287         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
45288
45289 2009-04-12  Ben Pfaff  <blp@gnu.org>
45290
45291         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
45292         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
45293
45294 2009-03-20  Ben Pfaff  <blp@gnu.org>
45295
45296         Make rename replace existing destinations on Windows.
45297         * m4/rename.m4: Add test for Mingw.
45298         * lib/rename.c: Add rename replacement that uses MoveFileEx with
45299         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
45300         * doc/posix-functions/rename.texi: Document.
45301
45302 2009-04-10  Bruno Haible  <bruno@clisp.org>
45303
45304         New include file "iconveh.h".
45305         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
45306         * lib/striconveh.h: Include it.
45307         (enum iconv_ilseq_handler): Remove definition.
45308         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
45309         striconveh.h.
45310         * lib/striconveha.c: Include striconveh.h.
45311         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
45312         * modules/striconveh (Files): Add lib/iconveh.h.
45313         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
45314         lib/striconveh.h.
45315
45316 2009-04-10  Bruno Haible  <bruno@clisp.org>
45317
45318         * lib/uniconv.h: Update comment.
45319
45320 2009-04-10  Bruno Haible  <bruno@clisp.org>
45321
45322         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
45323         always.
45324         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
45325         * lib/unistr/u16-mbtouc-aux.c: Likewise.
45326         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
45327         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
45328         "unistring-notinline.h", so that the function gets defined always.
45329         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
45330         * lib/unistr/u8-uctomb.c: Likewise.
45331         * lib/unistr/u16-mbtouc.c: Likewise.
45332         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
45333         * lib/unistr/u16-uctomb.c: Likewise.
45334         * lib/unistr/u32-mbtouc.c: Likewise.
45335         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
45336         * lib/unistr/u32-uctomb.c: Likewise.
45337
45338 2009-04-10  Bruno Haible  <bruno@clisp.org>
45339
45340         Mark 'utime' obsolete.
45341         * modules/utime (Status, Notice): New sections.
45342         Suggested by Jim Meyering.
45343
45344         Fix cross-compile guess for utime test.
45345         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
45346         autoconf.
45347         * doc/posix-functions/utime.texi: Give more precisions.
45348         Reported by Jan <ipif@ymail.com>.
45349
45350 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
45351
45352         filevercmp: correct today's change
45353         * lib/filevercmp.c: Also handle coreutils' test inputs.
45354         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
45355
45356         Fix regression in 'filevercmp' module. Thanks Sven Joachim
45357         for reporting it.
45358         * lib/filevercmp.c: Special handle for "", "." and "..".
45359         * tests/test-filevercmp.c: Enlarge the set suite.
45360
45361 2009-04-07  Jim Meyering  <meyering@redhat.com>
45362
45363         useless-if-before-free: show how to remove braced useless free, too
45364         * build-aux/useless-if-before-free: still only in a comment, though.
45365
45366 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
45367
45368         maint.mk: import changes to syntax-check macros from coreutils
45369         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
45370         Use them in the relevant macros.
45371
45372 2009-04-06  Bruno Haible  <bruno@clisp.org>
45373
45374         Fix unportable use of bit-fields.
45375         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
45376         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
45377         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
45378
45379 2009-04-06  Bruno Haible  <bruno@clisp.org>
45380
45381         Avoid test failures on AIX and OSF/1.
45382         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
45383         that malloc(0) = NULL.
45384         * tests/unicase/test-u8-tolower.c (check): Likewise.
45385         * tests/unicase/test-u8-totitle.c (check): Likewise.
45386         * tests/unicase/test-u8-toupper.c (check): Likewise.
45387         * tests/unicase/test-u16-casefold.c (check): Likewise.
45388         * tests/unicase/test-u16-tolower.c (check): Likewise.
45389         * tests/unicase/test-u16-totitle.c (check): Likewise.
45390         * tests/unicase/test-u16-toupper.c (check): Likewise.
45391         * tests/unicase/test-u32-casefold.c (check): Likewise.
45392         * tests/unicase/test-u32-tolower.c (check): Likewise.
45393         * tests/unicase/test-u32-totitle.c (check): Likewise.
45394         * tests/unicase/test-u32-toupper.c (check): Likewise.
45395         * tests/uninorm/test-u8-nfc.c (check): Likewise.
45396         * tests/uninorm/test-u8-nfd.c (check): Likewise.
45397         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
45398         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
45399         * tests/uninorm/test-u16-nfc.c (check): Likewise.
45400         * tests/uninorm/test-u16-nfd.c (check): Likewise.
45401         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
45402         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
45403         * tests/uninorm/test-u32-nfc.c (check): Likewise.
45404         * tests/uninorm/test-u32-nfd.c (check): Likewise.
45405         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
45406         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
45407
45408 2009-04-05  Bruno Haible  <bruno@clisp.org>
45409
45410         Work around an autoconf limitation.
45411         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
45412         comment line if it would be longer than 3 KB.
45413
45414 2009-04-05  Bruno Haible  <bruno@clisp.org>
45415
45416         Avoid test failure with libiconv-1.13.
45417         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
45418         of the expected test results.
45419
45420 2009-04-05  Bruno Haible  <bruno@clisp.org>
45421
45422         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
45423         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
45424         that it should be installed.
45425
45426 2009-04-05  Bruno Haible  <bruno@clisp.org>
45427
45428         * gnulib-tool: New option --copy-file.
45429         (func_usage): Document it.
45430         (func_dest_tmpfilename): Moved out of func_import.
45431         (func_add_file, func_update_file): New functions, extracted from
45432         func_import.
45433         (func_import): Update.
45434
45435 2009-04-05  Karl Berry  <karl@gnu.org>
45436
45437         * README: prominently mention gnulib-tool.
45438         Rearrange sections so getting the code is near the top.
45439
45440 2009-04-05  Bruno Haible  <bruno@clisp.org>
45441
45442         * lib/unicase.h: Mention u*_cmp2.
45443         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
45444         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
45445         * lib/unicase/ulc-casecmp.c: Likewise.
45446         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
45447         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
45448         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
45449         unistr/u8-cmp.
45450         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
45451         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
45452         unistr/u16-cmp.
45453         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
45454         unistr/u32-cmp.
45455
45456         * lib/uninorm.h: Mention u*_cmp2.
45457         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
45458         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
45459         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
45460         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
45461         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
45462         unistr/u8-cmp.
45463         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
45464         unistr/u16-cmp.
45465         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
45466         unistr/u32-cmp.
45467
45468         New module 'unistr/u32-cmp2'.
45469         * lib/unistr/u32-cmp2.c: New file.
45470         * modules/unistr/u32-cmp2: New file.
45471
45472         New module 'unistr/u16-cmp2'.
45473         * lib/unistr/u16-cmp2.c: New file.
45474         * modules/unistr/u16-cmp2: New file.
45475
45476         New module 'unistr/u8-cmp2'.
45477         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
45478         * lib/unistr/u8-cmp2.c: New file.
45479         * lib/unistr/u-cmp2.h: New file.
45480         * modules/unistr/u8-cmp2: New file.
45481
45482 2009-04-05  Bruno Haible  <bruno@clisp.org>
45483
45484         * lib/unictype.h (uc_property_is_valid): New macro.
45485         * tests/unictype/test-pr_byname.c (main): Use it.
45486
45487         * lib/unistr.h: Doc fixes.
45488         * lib/uniconv.h: Doc fixes.
45489         * lib/unictype.h: Doc fixes.
45490
45491 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
45492
45493         Port coreutils 7.2 to Solaris 8.
45494
45495         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
45496         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
45497         for Solaris 8.  This is a bit of a hack, as it means it's the
45498         caller's responsibility to add -lnsl if needed, but most likely it
45499         won't be needed since only getaddrinfo uses this and getaddrinfo
45500         isn't needed on Solaris 8.
45501
45502         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
45503         problem to Solaris 8 encountered with coreutils 7.2, which
45504         resulted in a message "fnmatch.c:292: warning: passing argument 4
45505         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
45506         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
45507
45508 2009-04-03  Simon Josefsson  <simon@josefsson.org>
45509
45510         * m4/ld-version-script.m4: Add FIXME comment.
45511
45512 2009-04-02  Simon Josefsson  <simon@josefsson.org>
45513
45514         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
45515         SOVERSION variable.
45516
45517 2009-04-02  Bruno Haible  <bruno@clisp.org>
45518
45519         * Makefile (info, html, dvi, pdf): Combine the rules.
45520         Suggested by Jim Meyering.
45521
45522 2009-04-01  Bruno Haible  <bruno@clisp.org>
45523
45524         * Makefile (info, html, dvi, pdf): New targets.
45525         Reported by Reuben Thomas <rrt@sc3d.org>.
45526
45527 2009-04-01  Bruno Haible  <bruno@clisp.org>
45528
45529         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
45530         can be put into PATH.
45531         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
45532
45533 2009-04-01  Bruno Haible  <bruno@clisp.org>
45534
45535         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
45536
45537 2009-04-01  Bruno Haible  <bruno@clisp.org>
45538
45539         Rename module 'visibility'.
45540         * modules/lib-symbol-visibility: Renamed from modules/visibility.
45541         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
45542         * doc/gnulib.texi: Update.
45543         * MODULES.html.sh (Misc): Update.
45544         * NEWS: Mention the change.
45545
45546 2009-04-01  Simon Josefsson  <simon@josefsson.org>
45547
45548         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
45549         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
45550         Eric Blake <ebb9@byu.net> for review.
45551         * MODULES.html.sh: Add lib-msvc-compat.
45552         * doc/gnulib.texi: Link to new section.
45553         * m4/ld-output-def.m4: New file.
45554         * doc/ld-output-def.texi: New file.
45555
45556 2009-04-01  Simon Josefsson  <simon@josefsson.org>
45557
45558         Rename ld-version-script to lib-symbol-versions.  Suggested by
45559         Bruno Haible <bruno@clisp.org>.
45560         * modules/ld-version-script: Renamed to lib-symbol-versions.
45561         * doc/ld-version-script.texi: Fix module name.
45562         * MODULES.html.sh: Add lib-symbol-versions.
45563
45564 2009-03-31  Simon Josefsson  <simon@josefsson.org>
45565
45566         * modules/u64-tests: New file.
45567         * tests/test-u64.c: New file.
45568
45569 2009-03-04  Simon Josefsson  <simon@josefsson.org>
45570
45571         * MODULES.html.sh: Mention u64.
45572         * modules/u64: New module.
45573         * modules/crypto/sha512: Depend on u64 module instead of providing
45574         u64.h.
45575
45576 2009-03-27  Eric Blake  <ebb9@byu.net>
45577
45578         test-strerror: make debugging EAI_SYSTEM easier
45579         * modules/getaddrinfo-tests (Depends-on): Add strerror.
45580         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
45581         failure was EAI_SYSTEM.
45582
45583 2009-03-25  Bruno Haible  <bruno@clisp.org>
45584
45585         Fix a problem with --enable-relocatable on Solaris 7.
45586         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
45587         since 2008-02-24.
45588
45589 2009-03-25  Eric Blake  <ebb9@byu.net>
45590
45591         test-sockets: avoid gcc warning
45592         * tests/test-sockets.c (main): Silence compiler warning.
45593
45594 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
45595
45596         New modules nproc, pthread, contributed by Glen Lenker.
45597
45598         * MODULES.html.sh: Add pthread, nproc.
45599         * lib/nproc.c: New file.
45600         * lib/nproc.h: New file.
45601         * lib/pthread.in.h: New file.
45602         * m4/pthread.m4: New file.
45603         * modules/nproc: New file.
45604         * modules/pthread: New file.
45605
45606 2009-03-24  Simon Josefsson  <simon@josefsson.org>
45607
45608         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
45609         New variable.
45610
45611 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
45612
45613         filevercmp: handle simple~ and numbered.~3~ backup suffixes
45614         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
45615         * tests/test-filevercmp.c: Add tests for backup suffixes.
45616
45617 2009-03-24  Simon Josefsson  <simon@josefsson.org>
45618
45619         * modules/stdlib (Depends-on): Add stdint, needed when defining
45620         struct random_data on, for example, HP-UX 10.20.  Reported by
45621         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
45622
45623 2009-03-24  Simon Josefsson  <simon@josefsson.org>
45624
45625         * lib/readline.c (readline): Call fflush on stdout after printing
45626         prompt.
45627
45628 2009-03-20  Bruno Haible  <bruno@clisp.org>
45629
45630         Remove dependency from 'close' module to -lws2_32 on native Windows.
45631         * lib/close-hook.h: New file.
45632         * lib/close-hook.c: New file.
45633         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
45634         w32sock.h.
45635         (_gl_close_fd_maybe_socket): Remove function.
45636         (rpl_close): Invoke execute_all_close_hooks instead of
45637         _gl_close_fd_maybe_socket.
45638         * lib/sockets.c: Include close-hook.h, w32sock.h.
45639         (close_fd_maybe_socket): New function, essentially from lib/close.c.
45640         (close_sockets_hook): New variable.
45641         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
45642         (gl_sockets_cleanup): Unregister it.
45643         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
45644         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
45645         * modules/close-hook: New file.
45646         * modules/close (Files): Remove lib/w32sock.h.
45647         (Depends-on): Add close-hook.
45648         (Link): Remove section.
45649         * modules/sockets (Files): Add lib/w32sock.h.
45650         (Depends-on): Add close-hook.
45651         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
45652         invocation.
45653         * NEWS: Mention that LIB_CLOSE is gone.
45654
45655 2009-03-23  Eric Blake  <ebb9@byu.net>
45656
45657         signal-tests: test previous patch
45658         * tests/test-signal.c: New file.
45659         * modules/signal-tests: Likewise.
45660
45661         signal.h: always support 'volatile sig_atomic_t'
45662         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
45663         (gl_SIGNAL_H_DEFAULTS): Add a default.
45664         * modules/signal (Makefile.am): Substitute if needed.
45665         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
45666         users can blindly add volatile.
45667         * doc/posix-headers/signal.texi (signal.h): Document it.
45668         Reported by Matthew Woehlke.
45669
45670 2009-03-23  Jim Meyering  <meyering@redhat.com>
45671
45672         pathmax: PATH_MAX: use pathconf only when available
45673         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
45674         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
45675         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
45676         This avoids a link failure in a PSP cross-compilation environment
45677         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
45678
45679         * lib/vasnprintf.c (divide): Fix typo in comment.
45680
45681 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45682
45683         * gnulib-tool (func_filter_filelist): Fix comment.
45684
45685 2009-03-20  Bruno Haible  <bruno@clisp.org>
45686
45687         Make sockets.h self-contained.
45688         * lib/sockets.c: Include sockets.h first.
45689         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
45690
45691 2009-03-19  Eric Blake  <ebb9@byu.net>
45692
45693         doc: mention more functions added in cygwin 1.7.0
45694         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
45695         addition.
45696         * doc/posix-functions/log2f.texi: Likewise.
45697
45698 2009-03-19  Jim Meyering  <meyering@redhat.com>
45699
45700         fsusage: avoid syntax error due to statement-before-declaration
45701         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
45702         after all declarations.  Reported by Matthew Woehlke in
45703         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
45704
45705 2009-03-18  Eric Blake  <ebb9@byu.net>
45706
45707         build-aux/compile: sync from automake
45708         * build-aux/compile: New file, from automake.
45709         * config/srclist.txt: Mention build-aux/compile.
45710
45711 2009-03-17  Bruno Haible  <bruno@clisp.org>
45712
45713         * lib/git-merge-changelog.c: Fix typo in comment.
45714         Reported by Reuben Thomas <rrt@sc3d.org>.
45715
45716 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
45717
45718         * m4/regex.m4: update and improve help for
45719         --without-included-regex.
45720
45721 2009-03-17  Simon Josefsson  <simon@josefsson.org>
45722
45723         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
45724         failure on missing include files.
45725
45726 2009-03-17  Eric Blake  <ebb9@byu.net>
45727
45728         doc: mention more functions added in cygwin 1.7.0
45729         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
45730         addition.
45731         * doc/posix-functions/fwscanf.texi: Likewise.
45732         * doc/posix-functions/swprintf.texi: Likewise.
45733         * doc/posix-functions/swscanf.texi: Likewise.
45734         * doc/posix-functions/vfwprintf.texi: Likewise.
45735         * doc/posix-functions/vfwscanf.texi: Likewise.
45736         * doc/posix-functions/vswprintf.texi: Likewise.
45737         * doc/posix-functions/vswscanf.texi: Likewise.
45738         * doc/posix-functions/vwprintf.texi: Likewise.
45739         * doc/posix-functions/vwscanf.texi: Likewise.
45740         * doc/posix-functions/wcscasecmp.texi: Likewise.
45741         * doc/posix-functions/wcsdup.texi: Likewise.
45742         * doc/posix-functions/wcsftime.texi: Likewise.
45743         * doc/posix-functions/wcsncasecmp.texi: Likewise.
45744         * doc/posix-functions/wprintf.texi: Likewise.
45745         * doc/posix-functions/wscanf.texi: Likewise.
45746         * doc/glibc-functions/gethostbyname2.texi: Likewise.
45747
45748 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45749
45750         maint.mk: really add $(AM_MAKEFLAGS)
45751         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
45752         was inadvertently omitted in the last commit.
45753         Spotted by Bruno Haible.
45754
45755         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
45756         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
45757         $(AM_MAKEFLAGS)' rather than plain `make'.
45758
45759         gnulib-tool: execute $MAKE not make
45760         * gnulib-tool: Default $MAKE to 'make'.
45761         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
45762         than make.  Initialize $MAKE in the do-autobuild script.
45763
45764         gnulib-tool: use $MAKE not make in generated files
45765         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
45766         make, in generated files.  Initialize $MAKE in the do-autobuild
45767         script.
45768
45769         * top/GNUmakefile (_have-git-version-gen): Fix typo.
45770
45771         GNUmakefile: disable parallelism only for multiple, recursive targets
45772         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
45773         additions in the Makefile.
45774         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
45775         by Automake.
45776         (.NOTPARALLEL): Only disable parallel builds if multiple targets
45777         are listed on the command line and at least one of them is
45778         listed in $(ALL_RECURSIVE_TARGETS).
45779
45780 2009-03-14  Bruno Haible  <bruno@clisp.org>
45781
45782         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
45783         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
45784         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
45785         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
45786         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
45787         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
45788         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
45789         unistr/u8-uctomb.
45790         * modules/unistr/u8-strchr (Depends-on): Likewise.
45791         * modules/unistr/u8-strrchr (Depends-on): Likewise.
45792         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
45793         unistr/u16-uctomb.
45794         * modules/unistr/u16-strchr (Depends-on): Likewise.
45795         * modules/unistr/u16-strrchr (Depends-on): Likewise.
45796
45797 2009-03-12  Bruno Haible  <bruno@clisp.org>
45798
45799         Work around select() bug on Interix 3.5.
45800         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
45801         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
45802         * m4/select.m4: New file.
45803         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
45804         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
45805         * modules/select (Files): Add m4/select.m4.
45806         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
45807         * modules/nanosleep (Depends-on): Add select.
45808         * modules/poll (Depends-on): Likewise.
45809         * doc/posix-functions/select.texi: Mention the Interix bug.
45810         Reported by Markus Duft <mduft@gentoo.org>.
45811
45812         * lib/select.c: Renamed from lib/winsock-select.c.
45813         * modules/select (Files): Add lib/select.c, remove
45814         lib/winsock-select.c.
45815         (configure.ac): Update.
45816
45817 2009-03-12  Jim Meyering  <meyering@redhat.com>
45818
45819         avoid gcc warnings about unused macro definitions
45820         * lib/readtokens.c (STREQ): Remove unused definition.
45821         * lib/xmalloc.c (SIZE_MAX): Likewise.
45822         * lib/openat-die.c (N_): Likewise.
45823         * lib/mountlist.c (SIZE_MAX): Remove definition.
45824         Instead, include <stdint.h>.
45825         * lib/readutmp.c: Likewise.
45826         * modules/readutmp (Depends-on): Add stdint.
45827         * modules/mountlist (Depends-on): Add stdint.
45828         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
45829
45830 2009-03-10  Bruno Haible  <bruno@clisp.org>
45831
45832         Tests for module 'mbmemcasecoll'.
45833         * modules/mbmemcasecoll-tests: New file.
45834         * tests/test-mbmemcasecoll1.sh: New file.
45835         * tests/test-mbmemcasecoll2.sh: New file.
45836         * tests/test-mbmemcasecoll3.sh: New file.
45837         * tests/test-mbmemcasecoll.c: New file.
45838
45839         New module 'mbmemcasecoll'.
45840         * lib/mbmemcasecoll.h: New file.
45841         * lib/mbmemcasecoll.c: New file.
45842         * modules/mbmemcasecoll: New file.
45843
45844         * tests/test-mbmemcasecmp.h: New file, extracted from
45845         tests/test-mbmemcasecmp.c.
45846         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
45847         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
45848         (main): Update.
45849         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
45850
45851 2009-03-09  Bruno Haible  <bruno@clisp.org>
45852
45853         Tests for module 'mbmemcasecmp'.
45854         * modules/mbmemcasecmp-tests: New file.
45855         * tests/test-mbmemcasecmp1.sh: New file.
45856         * tests/test-mbmemcasecmp2.sh: New file.
45857         * tests/test-mbmemcasecmp3.sh: New file.
45858         * tests/test-mbmemcasecmp.c: New file.
45859
45860         New module 'mbmemcasecmp'.
45861         * lib/mbmemcasecmp.h: New file.
45862         * lib/mbmemcasecmp.c: New file.
45863         * modules/mbmemcasecmp: New file.
45864
45865 2009-03-09  Bruno Haible  <bruno@clisp.org>
45866
45867         Tests for module 'unicase/ulc-casecoll'.
45868         * modules/unicase/ulc-casecoll-tests: New file.
45869         * tests/unicase/test-ulc-casecoll1.sh: New file.
45870         * tests/unicase/test-ulc-casecoll2.sh: New file.
45871         * tests/unicase/test-ulc-casecoll.c: New file.
45872
45873         New module 'unicase/ulc-casecoll'.
45874         * lib/unicase.h (ulc_casecoll): New declaration.
45875         * lib/unicase/ulc-casecoll.c: New file.
45876         * modules/unicase/ulc-casecoll: New file.
45877
45878         New module 'unicase/ulc-casexfrm'.
45879         * lib/unicase.h (ulc_casexfrm): New declaration.
45880         * lib/unicase/ulc-casexfrm.c: New file.
45881         * modules/unicase/ulc-casexfrm: New file.
45882
45883 2009-03-09  Bruno Haible  <bruno@clisp.org>
45884
45885         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
45886         invocations.
45887
45888         * m4/mbscasecmp.m4: Remove file.
45889         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
45890         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
45891
45892         * m4/mbscasestr.m4: Remove file.
45893         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
45894         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
45895
45896         * m4/mbschr.m4: Remove file.
45897         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
45898         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
45899
45900         * m4/mbscspn.m4: Remove file.
45901         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
45902         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
45903
45904         * m4/mbslen.m4: Remove file.
45905         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
45906         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
45907
45908         * m4/mbsncasecmp.m4: Remove file.
45909         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
45910         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
45911
45912         * m4/mbsnlen.m4: Remove file.
45913         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
45914         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
45915
45916         * m4/mbspbrk.m4: Remove file.
45917         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
45918         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
45919
45920         * m4/mbspcasecmp.m4: Remove file.
45921         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
45922         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
45923
45924         * m4/mbsrchr.m4: Remove file.
45925         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
45926         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
45927
45928         * m4/mbssep.m4: Remove file.
45929         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
45930         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
45931
45932         * m4/mbsspn.m4: Remove file.
45933         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
45934         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
45935
45936         * m4/mbsstr.m4: Remove file.
45937         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
45938         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
45939
45940         * m4/mbstok_r.m4: Remove file.
45941         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
45942         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
45943
45944         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
45945
45946         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
45947         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
45948
45949         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
45950
45951 2009-03-08  Bruno Haible  <bruno@clisp.org>
45952
45953         Tests for module 'unicase/ulc-casecmp'.
45954         * modules/unicase/ulc-casecmp-tests: New file.
45955         * tests/unicase/test-ulc-casecmp1.sh: New file.
45956         * tests/unicase/test-ulc-casecmp2.sh: New file.
45957         * tests/unicase/test-ulc-casecmp.c: New file.
45958
45959         New module 'unicase/ulc-casecmp'.
45960         * lib/unicase.h (ulc_casecmp): New declaration.
45961         * lib/unicase/ulc-casecmp.c: New file.
45962         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
45963         'const SRC_UNIT *'.
45964         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
45965         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
45966         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
45967         * modules/unicase/ulc-casecmp: New file.
45968
45969         Tests for module 'unicase/u32-is-cased'.
45970         * modules/unicase/u32-is-cased-tests: New file.
45971         * tests/unicase/test-u32-is-cased.c: New file.
45972
45973         Tests for module 'unicase/u16-is-cased'.
45974         * modules/unicase/u16-is-cased-tests: New file.
45975         * tests/unicase/test-u16-is-cased.c: New file.
45976
45977         Tests for module 'unicase/u8-is-cased'.
45978         * modules/unicase/u8-is-cased-tests: New file.
45979         * tests/unicase/test-u8-is-cased.c: New file.
45980         * tests/unicase/test-is-cased.h: New file.
45981
45982         New module 'unicase/u32-is-cased'.
45983         * lib/unicase/u32-is-cased.c: New file.
45984         * modules/unicase/u32-is-cased: New file.
45985
45986         New module 'unicase/u16-is-cased'.
45987         * lib/unicase/u16-is-cased.c: New file.
45988         * modules/unicase/u16-is-cased: New file.
45989
45990         New module 'unicase/u8-is-cased'.
45991         * lib/unicase/u8-is-cased.c: New file.
45992         * lib/unicase/u-is-cased.h: New file.
45993         * modules/unicase/u8-is-cased: New file.
45994
45995         Tests for module 'unicase/u32-is-casefolded'.
45996         * modules/unicase/u32-is-casefolded-tests: New file.
45997         * tests/unicase/test-u32-is-casefolded.c: New file.
45998
45999         Tests for module 'unicase/u16-is-casefolded'.
46000         * modules/unicase/u16-is-casefolded-tests: New file.
46001         * tests/unicase/test-u16-is-casefolded.c: New file.
46002
46003         Tests for module 'unicase/u8-is-casefolded'.
46004         * modules/unicase/u8-is-casefolded-tests: New file.
46005         * tests/unicase/test-u8-is-casefolded.c: New file.
46006         * tests/unicase/test-is-casefolded.h: New file.
46007
46008         New module 'unicase/u32-is-casefolded'.
46009         * lib/unicase/u32-is-casefolded.c: New file.
46010         * modules/unicase/u32-is-casefolded: New file.
46011
46012         New module 'unicase/u16-is-casefolded'.
46013         * lib/unicase/u16-is-casefolded.c: New file.
46014         * modules/unicase/u16-is-casefolded: New file.
46015
46016         New module 'unicase/u8-is-casefolded'.
46017         * lib/unicase/u8-is-casefolded.c: New file.
46018         * modules/unicase/u8-is-casefolded: New file.
46019
46020         Tests for module 'unicase/u32-is-titlecase'.
46021         * modules/unicase/u32-is-titlecase-tests: New file.
46022         * tests/unicase/test-u32-is-titlecase.c: New file.
46023
46024         Tests for module 'unicase/u16-is-titlecase'.
46025         * modules/unicase/u16-is-titlecase-tests: New file.
46026         * tests/unicase/test-u16-is-titlecase.c: New file.
46027
46028         Tests for module 'unicase/u8-is-titlecase'.
46029         * modules/unicase/u8-is-titlecase-tests: New file.
46030         * tests/unicase/test-u8-is-titlecase.c: New file.
46031         * tests/unicase/test-is-titlecase.h: New file.
46032
46033         New module 'unicase/u32-is-titlecase'.
46034         * lib/unicase/u32-is-titlecase.c: New file.
46035         * modules/unicase/u32-is-titlecase: New file.
46036
46037         New module 'unicase/u16-is-titlecase'.
46038         * lib/unicase/u16-is-titlecase.c: New file.
46039         * modules/unicase/u16-is-titlecase: New file.
46040
46041         New module 'unicase/u8-is-titlecase'.
46042         * lib/unicase/u8-is-titlecase.c: New file.
46043         * modules/unicase/u8-is-titlecase: New file.
46044
46045         Tests for module 'unicase/u32-is-lowercase'.
46046         * modules/unicase/u32-is-lowercase-tests: New file.
46047         * tests/unicase/test-u32-is-lowercase.c: New file.
46048
46049         Tests for module 'unicase/u16-is-lowercase'.
46050         * modules/unicase/u16-is-lowercase-tests: New file.
46051         * tests/unicase/test-u16-is-lowercase.c: New file.
46052
46053         Tests for module 'unicase/u8-is-lowercase'.
46054         * modules/unicase/u8-is-lowercase-tests: New file.
46055         * tests/unicase/test-u8-is-lowercase.c: New file.
46056         * tests/unicase/test-is-lowercase.h: New file.
46057
46058         New module 'unicase/u32-is-lowercase'.
46059         * lib/unicase/u32-is-lowercase.c: New file.
46060         * modules/unicase/u32-is-lowercase: New file.
46061
46062         New module 'unicase/u16-is-lowercase'.
46063         * lib/unicase/u16-is-lowercase.c: New file.
46064         * modules/unicase/u16-is-lowercase: New file.
46065
46066         New module 'unicase/u8-is-lowercase'.
46067         * lib/unicase/u8-is-lowercase.c: New file.
46068         * modules/unicase/u8-is-lowercase: New file.
46069
46070         Tests for module 'unicase/u32-is-uppercase'.
46071         * modules/unicase/u32-is-uppercase-tests: New file.
46072         * tests/unicase/test-u32-is-uppercase.c: New file.
46073
46074         Tests for module 'unicase/u16-is-uppercase'.
46075         * modules/unicase/u16-is-uppercase-tests: New file.
46076         * tests/unicase/test-u16-is-uppercase.c: New file.
46077
46078         Tests for module 'unicase/u8-is-uppercase'.
46079         * modules/unicase/u8-is-uppercase-tests: New file.
46080         * tests/unicase/test-u8-is-uppercase.c: New file.
46081         * tests/unicase/test-is-uppercase.h: New file.
46082
46083         New module 'unicase/u32-is-uppercase'.
46084         * lib/unicase/u32-is-uppercase.c: New file.
46085         * modules/unicase/u32-is-uppercase: New file.
46086
46087         New module 'unicase/u16-is-uppercase'.
46088         * lib/unicase/u16-is-uppercase.c: New file.
46089         * modules/unicase/u16-is-uppercase: New file.
46090
46091         New module 'unicase/u8-is-uppercase'.
46092         * lib/unicase/u8-is-uppercase.c: New file.
46093         * modules/unicase/u8-is-uppercase: New file.
46094
46095         New module 'unicase/u32-is-invariant'.
46096         * lib/unicase/u32-is-invariant.c: New file.
46097         * modules/unicase/u32-is-invariant: New file.
46098
46099         New module 'unicase/u16-is-invariant'.
46100         * lib/unicase/u16-is-invariant.c: New file.
46101         * modules/unicase/u16-is-invariant: New file.
46102
46103         New module 'unicase/u8-is-invariant'.
46104         * lib/unicase/u8-is-invariant.c: New file.
46105         * lib/unicase/invariant.h: New file.
46106         * lib/unicase/u-is-invariant.h: New file.
46107         * modules/unicase/u8-is-invariant: New file.
46108
46109         Tests for module 'unicase/u32-casecoll'.
46110         * modules/unicase/u32-casecoll-tests: New file.
46111         * tests/unicase/test-u32-casecoll.c: New file.
46112
46113         Tests for module 'unicase/u16-casecoll'.
46114         * modules/unicase/u16-casecoll-tests: New file.
46115         * tests/unicase/test-u16-casecoll.c: New file.
46116
46117         Tests for module 'unicase/u8-casecoll'.
46118         * modules/unicase/u8-casecoll-tests: New file.
46119         * tests/unicase/test-u8-casecoll.c: New file.
46120
46121         New module 'unicase/u32-casecoll'.
46122         * lib/unicase/u32-casecoll.c: New file.
46123         * modules/unicase/u32-casecoll: New file.
46124
46125         New module 'unicase/u16-casecoll'.
46126         * lib/unicase/u16-casecoll.c: New file.
46127         * modules/unicase/u16-casecoll: New file.
46128
46129         New module 'unicase/u8-casecoll'.
46130         * lib/unicase/u8-casecoll.c: New file.
46131         * lib/unicase/u-casecoll.h: New file.
46132         * modules/unicase/u8-casecoll: New file.
46133
46134         New module 'unicase/u32-casexfrm'.
46135         * lib/unicase/u32-casexfrm.c: New file.
46136         * modules/unicase/u32-casexfrm: New file.
46137
46138         New module 'unicase/u16-casexfrm'.
46139         * lib/unicase/u16-casexfrm.c: New file.
46140         * modules/unicase/u16-casexfrm: New file.
46141
46142         New module 'unicase/u8-casexfrm'.
46143         * lib/unicase/u8-casexfrm.c: New file.
46144         * lib/unicase/u-casexfrm.h: New file.
46145         * modules/unicase/u8-casexfrm: New file.
46146
46147         Tests for module 'unicase/u32-casecmp'.
46148         * modules/unicase/u32-casecmp-tests: New file.
46149         * tests/unicase/test-u32-casecmp.c: New file.
46150
46151         Tests for module 'unicase/u16-casecmp'.
46152         * modules/unicase/u16-casecmp-tests: New file.
46153         * tests/unicase/test-u16-casecmp.c: New file.
46154
46155         Tests for module 'unicase/u8-casecmp'.
46156         * modules/unicase/u8-casecmp-tests: New file.
46157         * tests/unicase/test-u8-casecmp.c: New file.
46158         * tests/unicase/test-casecmp.h: New file.
46159
46160         New module 'unicase/u32-casecmp'.
46161         * lib/unicase/u32-casecmp.c: New file.
46162         * modules/unicase/u32-casecmp: New file.
46163
46164         New module 'unicase/u16-casecmp'.
46165         * lib/unicase/u16-casecmp.c: New file.
46166         * modules/unicase/u16-casecmp: New file.
46167
46168         New module 'unicase/u8-casecmp'.
46169         * lib/unicase/u8-casecmp.c: New file.
46170         * lib/unicase/u-casecmp.h: New file.
46171         * modules/unicase/u8-casecmp: New file.
46172
46173         Tests for module 'unicase/u32-casefold'.
46174         * modules/unicase/u32-casefold-tests: New file.
46175         * tests/unicase/test-u32-casefold.c: New file.
46176
46177         Tests for module 'unicase/u16-casefold'.
46178         * modules/unicase/u16-casefold-tests: New file.
46179         * tests/unicase/test-u16-casefold.c: New file.
46180
46181         Tests for module 'unicase/u8-casefold'.
46182         * modules/unicase/u8-casefold-tests: New file.
46183         * tests/unicase/test-u8-casefold.c: New file.
46184
46185         New module 'unicase/u32-casefold'.
46186         * lib/unicase/u32-casefold.c: New file.
46187         * modules/unicase/u32-casefold: New file.
46188
46189         New module 'unicase/u16-casefold'.
46190         * lib/unicase/u16-casefold.c: New file.
46191         * modules/unicase/u16-casefold: New file.
46192
46193         New module 'unicase/u8-casefold'.
46194         * lib/unicase/u8-casefold.c: New file.
46195         * lib/unicase/u-casefold.h: New file.
46196         * modules/unicase/u8-casefold: New file.
46197
46198         New module 'unicase/tocasefold'.
46199         * lib/unicase/casefold.h: New file.
46200         * lib/unicase/tocasefold.c: New file.
46201         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
46202         * modules/unicase/tocasefold: New file.
46203
46204         Tests for module 'unicase/u32-totitle'.
46205         * modules/unicase/u32-totitle-tests: New file.
46206         * tests/unicase/test-u32-totitle.c: New file.
46207
46208         Tests for module 'unicase/u16-totitle'.
46209         * modules/unicase/u16-totitle-tests: New file.
46210         * tests/unicase/test-u16-totitle.c: New file.
46211
46212         Tests for module 'unicase/u8-totitle'.
46213         * modules/unicase/u8-totitle-tests: New file.
46214         * tests/unicase/test-u8-totitle.c: New file.
46215
46216         New module 'unicase/u32-totitle'.
46217         * lib/unicase/u32-totitle.c: New file.
46218         * modules/unicase/u32-totitle: New file.
46219
46220         New module 'unicase/u16-totitle'.
46221         * lib/unicase/u16-totitle.c: New file.
46222         * modules/unicase/u16-totitle: New file.
46223
46224         New module 'unicase/u8-totitle'.
46225         * lib/unicase/u8-totitle.c: New file.
46226         * lib/unicase/u-totitle.h: New file.
46227         * modules/unicase/u8-totitle: New file.
46228
46229         Tests for module 'unicase/u32-tolower'.
46230         * modules/unicase/u32-tolower-tests: New file.
46231         * tests/unicase/test-u32-tolower.c: New file.
46232
46233         Tests for module 'unicase/u16-tolower'.
46234         * modules/unicase/u16-tolower-tests: New file.
46235         * tests/unicase/test-u16-tolower.c: New file.
46236
46237         Tests for module 'unicase/u8-tolower'.
46238         * modules/unicase/u8-tolower-tests: New file.
46239         * tests/unicase/test-u8-tolower.c: New file.
46240
46241         New module 'unicase/u32-tolower'.
46242         * lib/unicase/u32-tolower.c: New file.
46243         * modules/unicase/u32-tolower: New file.
46244
46245         New module 'unicase/u16-tolower'.
46246         * lib/unicase/u16-tolower.c: New file.
46247         * modules/unicase/u16-tolower: New file.
46248
46249         New module 'unicase/u8-tolower'.
46250         * lib/unicase/u8-tolower.c: New file.
46251         * modules/unicase/u8-tolower: New file.
46252
46253         Tests for module 'unicase/u32-toupper'.
46254         * modules/unicase/u32-toupper-tests: New file.
46255         * tests/unicase/test-u32-toupper.c: New file.
46256
46257         Tests for module 'unicase/u16-toupper'.
46258         * modules/unicase/u16-toupper-tests: New file.
46259         * tests/unicase/test-u16-toupper.c: New file.
46260
46261         Tests for module 'unicase/u8-toupper'.
46262         * modules/unicase/u8-toupper-tests: New file.
46263         * tests/unicase/test-u8-toupper.c: New file.
46264
46265         New module 'unicase/u32-toupper'.
46266         * lib/unicase/u32-toupper.c: New file.
46267         * modules/unicase/u32-toupper: New file.
46268
46269         New module 'unicase/u16-toupper'.
46270         * lib/unicase/u16-toupper.c: New file.
46271         * modules/unicase/u16-toupper: New file.
46272
46273         New module 'unicase/u8-toupper'.
46274         * lib/unicase/u8-toupper.c: New file.
46275         * modules/unicase/u8-toupper: New file.
46276
46277         New module 'unicase/u32-casemap'.
46278         * lib/unicase/u32-casemap.c: New file.
46279         * modules/unicase/u32-casemap: New file.
46280
46281         New module 'unicase/u16-casemap'.
46282         * lib/unicase/u16-casemap.c: New file.
46283         * modules/unicase/u16-casemap: New file.
46284
46285         New module 'unicase/u8-casemap'.
46286         * lib/unicase/unicasemap.h: New file.
46287         * lib/unicase/u8-casemap.c: New file.
46288         * lib/unicase/u-casemap.h: New file.
46289         * modules/unicase/u8-casemap: New file.
46290
46291         New module 'unicase/special-casing'.
46292         * lib/unicase/special-casing.h: New file.
46293         * lib/unicase/special-casing.c: New file.
46294         * lib/unicase/special-casing-table.gperf: New file, generated by
46295         gen-uni-tables.c.
46296         * modules/unicase/special-casing: New file.
46297
46298         Tests for module 'unicase/locale-language'.
46299         * modules/unicase/locale-language-tests: New file.
46300         * tests/unicase/test-locale-language.sh: New file.
46301         * tests/unicase/test-locale-language.c: New file.
46302
46303         New module 'unicase/locale-language'.
46304         * lib/unicase/locale-language.c: New file.
46305         * lib/unicase/locale-languages.gperf: New file.
46306         * modules/unicase/locale-language: New file.
46307
46308         Generate more tables for case conversion and case folding.
46309         * lib/gen-uni-tables.c (SCC_*): New enum items.
46310         (struct special_casing_rule): New type.
46311         (casing_rules, num_casing_rules, allocated_casing_rules): New
46312         variables.
46313         (add_casing_rule, fill_casing_rules): New functions.
46314         (struct casefold_rule): New type.
46315         (casefolding_rules, num_casefolding_rules,
46316         allocated_casefolding_rules): New variables.
46317         (fill_casefolding_rules): New function.
46318         (unicode_casefold): New variable.
46319         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
46320         sort_casing_rules, output_casing_rules): New functions.
46321         (main): Accept to more arguments: SpecialCasing.txt and
46322         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
46323         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
46324         Output mapping for casefolding.
46325
46326         * lib/unicase.h: Include stdbool.h, uninorm.h.
46327         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
46328         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
46329         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
46330         arguments.
46331         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
46332         resultp arguments.
46333         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
46334         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
46335         resultp arguments.
46336         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
46337         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
46338         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
46339         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
46340         declarations.
46341         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
46342
46343 2009-03-08  Bruno Haible  <bruno@clisp.org>
46344
46345         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
46346         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
46347         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
46348         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
46349
46350 2009-03-07  Bruno Haible  <bruno@clisp.org>
46351
46352         Adjust u*_normcmp, u*_normcoll API.
46353         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
46354         u16_normcoll, u32_normcoll): Change failure conventions.
46355         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
46356         errno and return -1.
46357         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
46358
46359 2009-03-07  Bruno Haible  <bruno@clisp.org>
46360
46361         Tests for module 'uninorm/u32-normcoll'.
46362         * modules/uninorm/u32-normcoll-tests: New file.
46363         * tests/uninorm/test-u32-normcoll.c: New file.
46364
46365         Tests for module 'uninorm/u16-normcoll'.
46366         * modules/uninorm/u16-normcoll-tests: New file.
46367         * tests/uninorm/test-u16-normcoll.c: New file.
46368
46369         Tests for module 'uninorm/u8-normcoll'.
46370         * modules/uninorm/u8-normcoll-tests: New file.
46371         * tests/uninorm/test-u8-normcoll.c: New file.
46372
46373 2009-03-07  Bruno Haible  <bruno@clisp.org>
46374
46375         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
46376         tests/uninorm/test-u32-normcmp.c.
46377         * tests/uninorm/test-u32-normcmp.c: Include it.
46378         (test_nonascii): New function, extracted from main. Add some more
46379         tests.
46380         (main): Invoke test_ascii and test_nonascii.
46381         * modules/uninorm/u32-normcmp-tests (Files): Add
46382         tests/uninorm/test-u32-normcmp.h.
46383         (Depends-on): Remove uninorm/u32-normcmp.
46384
46385         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
46386         tests/uninorm/test-u16-normcmp.c.
46387         * tests/uninorm/test-u16-normcmp.c: Include it.
46388         (test_nonascii): New function, extracted from main. Add some more
46389         tests.
46390         (main): Invoke test_ascii and test_nonascii.
46391         * modules/uninorm/u16-normcmp-tests (Files): Add
46392         tests/uninorm/test-u16-normcmp.h.
46393         (Depends-on): Remove uninorm/u16-normcmp.
46394
46395         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
46396         tests/uninorm/test-u8-normcmp.c.
46397         * tests/uninorm/test-u8-normcmp.c: Include it.
46398         (test_nonascii): New function, extracted from main. Add some more
46399         tests.
46400         (main): Invoke test_ascii and test_nonascii.
46401         * modules/uninorm/u8-normcmp-tests (Files): Add
46402         tests/uninorm/test-u8-normcmp.h.
46403         (Depends-on): Remove uninorm/u8-normcmp.
46404
46405 2009-03-07  Bruno Haible  <bruno@clisp.org>
46406
46407         New module 'uninorm/u32-normcoll'.
46408         * lib/uninorm/u32-normcoll.c: New file.
46409         * modules/uninorm/u32-normcoll: New file.
46410
46411         New module 'uninorm/u16-normcoll'.
46412         * lib/uninorm/u16-normcoll.c: New file.
46413         * modules/uninorm/u16-normcoll: New file.
46414
46415         New module 'uninorm/u8-normcoll'.
46416         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
46417         declarations.
46418         * lib/uninorm/u8-normcoll.c: New file.
46419         * lib/uninorm/u-normcoll.h: New file.
46420         * modules/uninorm/u8-normcoll: New file.
46421
46422         New module 'uninorm/u32-normxfrm'.
46423         * lib/uninorm/u32-normxfrm.c: New file.
46424         * modules/uninorm/u32-normxfrm: New file.
46425
46426         New module 'uninorm/u16-normxfrm'.
46427         * lib/uninorm/u16-normxfrm.c: New file.
46428         * modules/uninorm/u16-normxfrm: New file.
46429
46430         New module 'uninorm/u8-normxfrm'.
46431         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
46432         declarations.
46433         * lib/uninorm/u8-normxfrm.c: New file.
46434         * lib/uninorm/u-normxfrm.h: New file.
46435         * modules/uninorm/u8-normxfrm: New file.
46436
46437 2009-03-07  Bruno Haible  <bruno@clisp.org>
46438
46439         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
46440         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
46441         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
46442
46443 2009-03-07  Bruno Haible  <bruno@clisp.org>
46444
46445         New module 'memxfrm'.
46446         * lib/memxfrm.h: New file.
46447         * lib/memxfrm.c: New file.
46448         * modules/memxfrm: New file.
46449
46450 2009-03-07  Bruno Haible  <bruno@clisp.org>
46451
46452         New module 'memcmp2'.
46453         * lib/memcmp2.h: New file.
46454         * lib/memcmp2.c: New file.
46455         * modules/memcmp2: New file.
46456
46457 2009-03-07  Bruno Haible  <bruno@clisp.org>
46458
46459         Tests for module 'uninorm/decomposing-form'.
46460         * modules/uninorm/decomposing-form-tests: New file.
46461         * tests/uninorm/test-decomposing-form.c: New file.
46462
46463         New module 'uninorm/decomposing-form'.
46464         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
46465         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
46466         Add 'decomposing_variant' field.
46467         * lib/uninorm/decomposing-form.c: New file.
46468         * lib/uninorm/nfc.c (uninorm_nfc): Update.
46469         * lib/uninorm/nfd.c (uninorm_nfd): Update.
46470         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
46471         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
46472         * modules/uninorm/decomposing-form: New file.
46473         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
46474         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
46475
46476 2009-03-07  Bruno Haible  <bruno@clisp.org>
46477
46478         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
46479         strings.
46480
46481 2009-03-06  Bruno Haible  <bruno@clisp.org>
46482
46483         Tests for module 'uninorm/u32-normcmp'.
46484         * tests/uninorm/test-u32-normcmp.c: New file.
46485         * modules/uninorm/u32-normcmp-tests: New file.
46486
46487         Tests for module 'uninorm/u16-normcmp'.
46488         * tests/uninorm/test-u16-normcmp.c: New file.
46489         * modules/uninorm/u16-normcmp-tests: New file.
46490
46491         Tests for module 'uninorm/u8-normcmp'.
46492         * tests/uninorm/test-u8-normcmp.c: New file.
46493         * modules/uninorm/u8-normcmp-tests: New file.
46494
46495         New module 'uninorm/u32-normcmp'.
46496         * lib/uninorm/u32-normcmp.c: New file.
46497         * modules/uninorm/u32-normcmp: New file.
46498
46499         New module 'uninorm/u16-normcmp'.
46500         * lib/uninorm/u16-normcmp.c: New file.
46501         * modules/uninorm/u16-normcmp: New file.
46502
46503         New module 'uninorm/u8-normcmp'.
46504         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
46505         declarations.
46506         * lib/uninorm/u8-normcmp.c: New file.
46507         * lib/uninorm/u-normcmp.h: New file.
46508         * modules/uninorm/u8-normcmp: New file.
46509
46510 2009-03-06  Bruno Haible  <bruno@clisp.org>
46511
46512         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
46513         Reported by Eric Blake.
46514
46515 2009-03-06  Eric Blake  <ebb9@byu.net>
46516             Bruno Haible  <bruno@clisp.org>
46517
46518         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
46519         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
46520         condition.
46521         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
46522         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
46523         condition.
46524         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
46525
46526 2009-03-06  Eric Blake  <ebb9@byu.net>
46527
46528         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
46529         to avoid compiler warnings.
46530         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
46531
46532 2009-03-05  Bruno Haible  <bruno@clisp.org>
46533
46534         * tests/test-ftell.c (main): Disable test beyond end of file on
46535         FreeMiNT.
46536         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
46537
46538 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
46539
46540         * lib/filevercmp.c: Move hidden files up in ordering.
46541         * tests/test-filevercmp.c: Add tests for hidden files.
46542
46543 2009-03-04  Bruno Haible  <bruno@clisp.org>
46544
46545         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
46546         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
46547         AM_CFLAGS.
46548         Reported by Simon Josefsson.
46549
46550 2009-03-03  Bruno Haible  <bruno@clisp.org>
46551
46552         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
46553         Reported by Simon Josefsson.
46554
46555         * doc/ld-version-script.texi: Update node reference.
46556
46557 2009-03-03  Bruno Haible  <bruno@clisp.org>
46558
46559         * modules/visibility (License): Change to 'unlimited'.
46560         Suggested by Simon Josefsson.
46561
46562 2009-03-03  Jim Meyering  <meyering@redhat.com>
46563
46564         unlinkdir: cannot_unlink_dir may modify process state
46565         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
46566         it's neither thread-safe nor appropriate for use in a library.
46567
46568 2009-03-03  Eric Blake  <ebb9@byu.net>
46569
46570         test-closein: silence test under Darwin
46571         * tests/test-closein.sh: Ignore stderr from cat, since we don't
46572         care if it dies from EPIPE or EBADF.
46573
46574 2009-03-03  Bruno Haible  <bruno@clisp.org>
46575
46576         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
46577         earlier.
46578         * doc/visibility.texi: Fix @node and @section.
46579
46580 2009-03-03  Simon Josefsson  <simon@josefsson.org>
46581
46582         * doc/gnulib.texi: Link to sections for ld version script and
46583         visibility.
46584         * doc/visibility.texi: Add @node and @section.
46585         * modules/ld-version-script: New module.
46586         * m4/ld-version-script.m4: New file.
46587         * doc/ld-version-script.texi: New file.
46588
46589 2009-03-02  David Lutterkort  <lutter@redhat.com>
46590
46591         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
46592         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46593
46594 2009-03-02  Bruno Haible  <bruno@clisp.org>
46595
46596         * doc/visibility.texi: Mention libtool's -export-symbols option.
46597
46598 2009-03-02  Jim Meyering  <meyering@redhat.com>
46599
46600         announce-gen: new option: --no-print-checksums
46601         * build-aux/announce-gen (usage): Describe it.
46602         (print_checksums): Print a newline here, not in the [*] footnote.
46603         (main): Honor it.
46604
46605 2009-03-01  Bruno Haible  <bruno@clisp.org>
46606
46607         Use socklen_t in the native Windows replacements prototypes.
46608         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
46609         instead of 'int'.
46610         * lib/getsockopt.c (rpl_getsockopt): Likewise.
46611         * lib/setsockopt.c (rpl_setsockopt): Likewise.
46612         * modules/getsockopt (Depends-on): Add socklen.
46613         * modules/setsockopt (Depends-on): Add socklen.
46614
46615 2009-03-01  Bruno Haible  <bruno@clisp.org>
46616
46617         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
46618         least 4.2.
46619
46620 2009-03-01  Eric Blake  <ebb9@byu.net>
46621             Bruno Haible  <bruno@clisp.org>
46622
46623         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
46624         error messages.
46625         * lib/wait-process.c (wait_subprocess): Omit error message about
46626         deadly signal sent to the child of termsigp != NULL.
46627
46628 2009-03-01  Eric Blake  <ebb9@byu.net>
46629
46630         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
46631
46632 2009-03-01  Bruno Haible  <bruno@clisp.org>
46633
46634         Avoid a gcc warning.
46635         * tests/test-sched.c (b): Make global.
46636         Reported by Eric Blake.
46637
46638 2009-01-19  Martin Lambers  <marlam@marlam.de>
46639
46640         Provide POSIX semantics for socket timeout options on W32.
46641         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
46642         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
46643         * modules/setsockopt: Depend on sys_time module for struct timeval.
46644         * modules/getsockopt: Depend on sys_time module for struct timeval.
46645
46646 2009-03-01  Simon Josefsson  <simon@josefsson.org>
46647
46648         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
46649         __USE_GNU, for consistency with netdb.in.h.
46650         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
46651
46652 2009-03-01  Bruno Haible  <bruno@clisp.org>
46653
46654         More support for FreeMiNT.
46655         * lib/fseeko.c (rpl_fseeko): Complete last commit.
46656         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
46657
46658 2009-03-01  Bruno Haible  <bruno@clisp.org>
46659
46660         More support for FreeMiNT.
46661         * lib/fpurge.c (fpurge): Correct last commit.
46662         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
46663
46664 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46665
46666         Fix unportable awk script in vc-list-files.
46667         * build-aux/vc-list-files: In the replacement awk script, use
46668         substr with a second argument of 1, not zero.
46669         Report by Simon Josefsson.
46670
46671 2009-02-28  Bruno Haible  <bruno@clisp.org>
46672
46673         More support for FreeMiNT.
46674         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
46675         to FreeMiNT today.
46676         * lib/fwriting.c (fwriting): Likewise.
46677         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
46678
46679 2009-02-28  Bruno Haible  <bruno@clisp.org>
46680
46681         * tests/test-freadseek.c (main): Disable test beyond end of file on
46682         FreeMiNT.
46683         * tests/test-ftello.c (main): Likewise.
46684         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
46685
46686 2009-02-28  Bruno Haible  <bruno@clisp.org>
46687
46688         Add tentative support for FreeMiNT.
46689         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
46690         * lib/fpurge.c (fpurge): Likewise.
46691         * lib/freadable.c (freadable): Likewise.
46692         * lib/freading.c (freading): Likewise.
46693         * lib/freadptr.c (freadptr): Likewise.
46694         * lib/freadseek.c (freadptrinc): Likewise.
46695         * lib/fseeko.c (rpl_fseeko): Likewise.
46696         * lib/fseterr.c (fseterr): Likewise.
46697         * lib/fwritable.c (fwritable): Likewise.
46698         * lib/fwriting.c (fwriting): Likewise.
46699         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
46700         Hourihane.
46701         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
46702
46703 2009-02-28  Bruno Haible  <bruno@clisp.org>
46704
46705         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
46706         SIGCHLD.
46707         Reported by Jim Meyering.
46708
46709 2009-02-28  Bruno Haible  <bruno@clisp.org>
46710
46711         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
46712         Mention the results of these tests on various platforms.
46713         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
46714         order.
46715         * doc/posix-functions/printf.texi: Likewise.
46716         * doc/posix-functions/snprintf.texi: Likewise.
46717         * doc/posix-functions/sprintf.texi: Likewise.
46718         * doc/posix-functions/vfprintf.texi: Likewise.
46719         * doc/posix-functions/vprintf.texi: Likewise.
46720         * doc/posix-functions/vsnprintf.texi: Likewise.
46721         * doc/posix-functions/vsprintf.texi: Likewise.
46722         * doc/glibc-functions/obstack_printf.texi: Likewise.
46723         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
46724
46725 2009-02-28  Bruno Haible  <bruno@clisp.org>
46726
46727         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
46728         Reported by Loïc Minier <lool@dooz.org>.
46729
46730 2009-02-27  Bruno Haible  <bruno@clisp.org>
46731
46732         * gnulib-tool (func_import): Make the sed expression used to create the
46733         sed script for updating the .gitignore file POSIX compliant.
46734         Reported by Eric Blake.
46735
46736 2009-02-27  Bruno Haible  <bruno@clisp.org>
46737
46738         * gnulib-tool (sed): Don't alias as "sed --posix".
46739         Reported by Eric Blake.
46740
46741 2009-02-27  Bruno Haible  <bruno@clisp.org>
46742
46743         Avoid test link errors.
46744         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
46745         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
46746         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
46747         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
46748         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46749
46750 2009-02-27  Bruno Haible  <bruno@clisp.org>
46751
46752         Avoid spurious "(cached)" in configure output.
46753         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
46754         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
46755         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
46756         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
46757         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
46758         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
46759         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
46760         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
46761         Reported by Eric Blake.
46762
46763 2009-02-27  Eric Blake  <ebb9@byu.net>
46764
46765         printf: fix regression in previous patch
46766         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
46767
46768 2009-02-27  Bruno Haible  <bruno@clisp.org>
46769
46770         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
46771         value.
46772         * lib/stdint.in.h: Likewise.
46773         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
46774
46775 2009-02-27  Eric Blake  <ebb9@byu.net>
46776
46777         doc: mention more functions added in cygwin 1.7.0
46778         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
46779         addition.
46780         * doc/posix-functions/open_wmemstream.texi: Likewise.
46781         * doc/posix-functions/wcsnlen.texi: Likewise.
46782         * doc/posix-functions/wcsnrtombs.texi: Likewise.
46783         * doc/posix-functions/wcstod.texi: Likewise.
46784         * doc/posix-functions/wcstof.texi: Likewise.
46785         * doc/posix-functions/wcstoimax.texi: Likewise.
46786         * doc/posix-functions/wcstok.texi: Likewise.
46787         * doc/posix-functions/wcstoumax.texi: Likewise.
46788
46789         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
46790         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
46791         * doc/posix-functions/fprintf.texi: Update.
46792         * doc/posix-functions/printf.texi: Update.
46793         * doc/posix-functions/snprintf.texi: Update.
46794         * doc/posix-functions/sprintf.texi: Update.
46795         * doc/posix-functions/vfprintf.texi: Update.
46796         * doc/posix-functions/vprintf.texi: Update.
46797         * doc/posix-functions/vsnprintf.texi: Update.
46798         * doc/posix-functions/vsprintf.texi: Update.
46799         * doc/glibc-functions/obstack_printf.texi: Update.
46800         * doc/glibc-functions/obstack_vprintf.texi: Update.
46801
46802 2009-02-26  Eric Blake  <ebb9@byu.net>
46803
46804         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
46805         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
46806         compilation bug by using runtime conversion.
46807         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
46808         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
46809         * modules/ceill-tests (Files): Use nan.h.
46810         * modules/floorl-tests (Files): Likewise.
46811         * modules/frexpl-tests (Files): Likewise.
46812         * modules/isnanl-tests (Files): Likewise.
46813         * modules/ldexpl-tests (Files): Likewise.
46814         * modules/roundl-tests (Files): Likewise.
46815         * modules/truncl-tests (Files): Likewise.
46816         * tests/test-ceill.c (main): Use a working NaN.
46817         * tests/test-floorl.c (main): Likewise.
46818         * tests/test-frexpl.c (main): Likewise.
46819         * tests/test-isnan.c (test_long_double): Likewise.
46820         * tests/test-isnanl.h (main): Likewise.
46821         * tests/test-ldexpl.h (main): Likewise.
46822         * tests/test-roundl.h (main): Likewise.
46823         * tests/test-truncl.h (main): Likewise.
46824         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
46825
46826 2009-02-26  Eric Blake  <ebb9@byu.net>
46827             Bruno Haible  <bruno@clisp.org>
46828
46829         Work around a *printf bug with %ls on Solaris.
46830         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
46831         precision is specified, sprintf stops converting the wide string
46832         argument when the number of bytes that have been produced by this
46833         conversion equals or exceeds the precision.
46834         * doc/posix-functions/fprintf.texi: Update.
46835         * doc/posix-functions/printf.texi: Update.
46836         * doc/posix-functions/snprintf.texi: Update.
46837         * doc/posix-functions/sprintf.texi: Update.
46838         * doc/posix-functions/vfprintf.texi: Update.
46839         * doc/posix-functions/vprintf.texi: Update.
46840         * doc/posix-functions/vsnprintf.texi: Update.
46841         * doc/posix-functions/vsprintf.texi: Update.
46842         * doc/glibc-functions/obstack_printf.texi: Update.
46843         * doc/glibc-functions/obstack_vprintf.texi: Update.
46844
46845 2009-02-26  Eric Blake  <ebb9@byu.net>
46846
46847         stdlib: favor compiler check of random.h
46848         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
46849         to avoid an ObjC random.h installed by Swarm.
46850
46851 2009-02-26  Bruno Haible  <bruno@clisp.org>
46852
46853         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
46854         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
46855         Reported by Gary V. Vaughan <gary@gnu.org>.
46856
46857 2009-02-26  Bruno Haible  <bruno@clisp.org>
46858
46859         Fix *printf behaviour regarding the %ls directive.
46860         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
46861         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
46862         NEED_PRINTF_DIRECTIVE_LS.
46863         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
46864         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
46865         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
46866         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
46867         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
46868         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
46869         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
46870         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
46871         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
46872         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
46873         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
46874         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
46875         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
46876         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
46877         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
46878         * doc/posix-functions/fprintf.texi: Update.
46879         * doc/posix-functions/printf.texi: Update.
46880         * doc/posix-functions/snprintf.texi: Update.
46881         * doc/posix-functions/sprintf.texi: Update.
46882         * doc/posix-functions/vfprintf.texi: Update.
46883         * doc/posix-functions/vprintf.texi: Update.
46884         * doc/posix-functions/vsnprintf.texi: Update.
46885         * doc/posix-functions/vsprintf.texi: Update.
46886         * doc/glibc-functions/obstack_printf.texi: Update.
46887         * doc/glibc-functions/obstack_vprintf.texi: Update.
46888         Reported by Eric Blake.
46889
46890 2009-02-25  Bruno Haible  <bruno@clisp.org>
46891
46892         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
46893         with known value.
46894         Reported by Gary V. Vaughan <gary@gnu.org>.
46895
46896 2009-02-25  Bruno Haible  <bruno@clisp.org>
46897
46898         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
46899         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
46900         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
46901         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
46902         Reported by Gary V. Vaughan <gary@gnu.org>.
46903
46904 2009-02-25  Bruno Haible  <bruno@clisp.org>
46905
46906         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
46907         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
46908         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
46909         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
46910         Reported by Gary V. Vaughan <gary@gnu.org>.
46911
46912 2009-02-25  Eric Blake  <ebb9@byu.net>
46913
46914         tests: skip fseek/ftell tests if ungetc is broken
46915         * m4/ungetc.m4: New file.
46916         * modules/fseek-tests: Split test, so ungetc dependency is
46917         separate from rest of test.
46918         * modules/fseeko-tests: Likewise.
46919         * modules/ftell-tests: Likewise.
46920         * modules/ftello-tests: Likewise.
46921         * tests/test-fseek.c (main): Isolate ungetc dependency.
46922         * tests/test-fseeko.c (main): Likewise.
46923         * tests/test-ftell.c (main): Likewise.
46924         * tests/test-ftello.c (main): Likewise.
46925         * tests/test-fseek2.sh: New file.
46926         * tests/test-fseeko2.sh: Likewise.
46927         * tests/test-ftell2.sh: Likewise.
46928         * tests/test-ftello2.sh: Likewise.
46929
46930 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
46931
46932         test-getaddrinfo: fix usage of skip return code 77
46933         * tests/test-gettaddrinfo.c: Return skip code 77 only
46934         for first occurrence of skip (4x77 is not 77)
46935
46936 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
46937
46938         strtod: avoid C99 decl-after-statement
46939         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
46940
46941 2009-02-24  Eric Blake  <ebb9@byu.net>
46942
46943         strtod: detect HP-UX 11.31 bug
46944         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
46945         Reported by Gary V. Vaughan.
46946
46947 2009-02-23  Bruno Haible  <bruno@clisp.org>
46948
46949         Fix invalid read past end of memory block.
46950         * lib/vasnprintf.c (DCHAR_SET): Define.
46951         (local_wcslen): Define only when needed.
46952         (local_strnlen, local_wcsnlen): New functions.
46953         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
46954         directives that involve a conversion ourselves.
46955         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
46956         wcsnlen, mbrtowc, wcrtomb.
46957         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
46958         * tests/test-vasprintf-posix.c (test_function): Likewise.
46959         * tests/test-snprintf-posix.h (test_function): Likewise.
46960         * tests/test-sprintf-posix.h (test_function): Likewise.
46961         Reported by Ben Pfaff <blp@cs.stanford.edu>.
46962
46963 2009-02-22  Bruno Haible  <bruno@clisp.org>
46964
46965         Implement new clarified decomposition of Hangul syllables.
46966         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
46967         of type LTV, return only a pairwise decomposition.
46968         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
46969         Likewise.
46970         * tests/uninorm/test-decomposition.c (main): Updated expected result.
46971         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
46972         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
46973
46974 2009-02-22  Bruno Haible  <bruno@clisp.org>
46975
46976         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
46977         zero-length results and shrink excess allocated memory.
46978         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
46979         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
46980         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
46981         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
46982         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
46983         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
46984         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
46985         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
46986         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
46987         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
46988         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
46989         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
46990
46991 2009-02-21  Bruno Haible  <bruno@clisp.org>
46992
46993         * doc/gnulib.texi: Include safe-alloc.texi earlier.
46994         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
46995         spaces after a period. Put a space between a macro name and its
46996         argument list. Trivial rewordings.
46997         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
46998         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
46999         (main): Return 0 explicitly.
47000
47001 2009-02-21  Bruno Haible  <bruno@clisp.org>
47002
47003         Tests for module 'uninorm/filter'.
47004         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
47005         * modules/uninorm/filter-tests: New file.
47006
47007         New module 'uninorm/filter'.
47008         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
47009         uninorm_filter_flush, uninorm_filter_free): New declarations.
47010         * lib/uninorm/uninorm-filter.c: New file.
47011         * modules/uninorm/filter: New file.
47012
47013 2009-02-21  Bruno Haible  <bruno@clisp.org>
47014
47015         Tests for module 'uninorm/nfkc'.
47016         * tests/uninorm/test-nfkc.c: New file.
47017         * tests/uninorm/test-u8-nfkc.c: New file.
47018         * tests/uninorm/test-u16-nfkc.c: New file.
47019         * tests/uninorm/test-u32-nfkc.c: New file.
47020         * tests/uninorm/test-u32-nfkc-big.sh: New file.
47021         * tests/uninorm/test-u32-nfkc-big.c: New file.
47022         * modules/uninorm/nfkc-tests: New file.
47023
47024         New module 'uninorm/nfkc'.
47025         * lib/uninorm/nfkc.c: New file.
47026         * modules/uninorm/nfkc: New file.
47027
47028         Tests for module 'uninorm/nfkd'.
47029         * tests/uninorm/test-nfkd.c: New file.
47030         * tests/uninorm/test-u8-nfkd.c: New file.
47031         * tests/uninorm/test-u16-nfkd.c: New file.
47032         * tests/uninorm/test-u32-nfkd.c: New file.
47033         * tests/uninorm/test-u32-nfkd-big.sh: New file.
47034         * tests/uninorm/test-u32-nfkd-big.c: New file.
47035         * modules/uninorm/nfkd-tests: New file.
47036
47037         New module 'uninorm/nfkd'.
47038         * lib/uninorm/nfkd.c: New file.
47039         * modules/uninorm/nfkd: New file.
47040
47041         Tests for module 'uninorm/nfc'.
47042         * tests/uninorm/test-nfc.c: New file.
47043         * tests/uninorm/test-u8-nfc.c: New file.
47044         * tests/uninorm/test-u16-nfc.c: New file.
47045         * tests/uninorm/test-u32-nfc.c: New file.
47046         * tests/uninorm/test-u32-nfc-big.sh: New file.
47047         * tests/uninorm/test-u32-nfc-big.c: New file.
47048         * modules/uninorm/nfc-tests: New file.
47049
47050         New module 'uninorm/nfc'.
47051         * lib/uninorm/nfc.c: New file.
47052         * modules/uninorm/nfc: New file.
47053
47054         Tests for module 'uninorm/nfd'.
47055         * tests/uninorm/test-nfd.c: New file.
47056         * tests/uninorm/test-u8-nfd.c: New file.
47057         * tests/uninorm/test-u16-nfd.c: New file.
47058         * tests/uninorm/test-u32-nfd.c: New file.
47059         * tests/uninorm/test-u32-nfd-big.sh: New file.
47060         * tests/uninorm/test-u32-nfd-big.c: New file.
47061         * tests/uninorm/test-u32-normalize-big.h: New file.
47062         * tests/uninorm/test-u32-normalize-big.c: New file.
47063         * tests/uninorm/NormalizationTest.txt: New file, created from
47064         Unicode 5.1.0 NormalizationTest.txt.
47065         * modules/uninorm/nfd-tests: New file.
47066
47067         New module 'uninorm/nfd'.
47068         * lib/uninorm/nfd.c: New file.
47069         * modules/uninorm/nfd: New file.
47070
47071         New module 'uninorm/u32-normalize'.
47072         * lib/uninorm/u32-normalize.c: New file.
47073         * modules/uninorm/u32-normalize: New file.
47074
47075         New module 'uninorm/u16-normalize'.
47076         * lib/uninorm/u16-normalize.c: New file.
47077         * modules/uninorm/u16-normalize: New file.
47078
47079         New module 'uninorm/u8-normalize'.
47080         * lib/uninorm/u8-normalize.c: New file.
47081         * lib/uninorm/normalize-internal.h: New file.
47082         * lib/uninorm/u-normalize-internal.h: New file.
47083         * modules/uninorm/u8-normalize: New file.
47084
47085         New module 'uninorm/decompose-internal'.
47086         * lib/uninorm/decompose-internal.c: New file.
47087         * modules/uninorm/decompose-internal: New file.
47088
47089         Tests for module 'uninorm/composition'.
47090         * tests/uninorm/test-composition.c: New file.
47091         * modules/uninorm/composition-tests: New file.
47092
47093         New module 'uninorm/composition'.
47094         * lib/uninorm/composition.c: New file.
47095         * lib/uninorm/composition-table.gperf: New file, generated by
47096         gen-uni-tables.
47097         * modules/uninorm/composition: New file.
47098
47099         Tests for module 'uninorm/compat-decomposition'.
47100         * tests/uninorm/test-compat-decomposition.c: New file.
47101         * modules/uninorm/compat-decomposition-tests: New file.
47102
47103         New module 'uninorm/compat-decomposition'.
47104         * lib/uninorm/decompose-internal.h: New file.
47105         * lib/uninorm/compat-decomposition.c: New file.
47106         * modules/uninorm/compat-decomposition: New file.
47107
47108         Tests for module 'uninorm/canonical-decomposition'.
47109         * tests/uninorm/test-canonical-decomposition.c: New file.
47110         * modules/uninorm/canonical-decomposition-tests: New file.
47111
47112         New module 'uninorm/canonical-decomposition'.
47113         * lib/uninorm/canonical-decomposition.c: New file.
47114         * modules/uninorm/canonical-decomposition: New file.
47115
47116         Tests for module 'uninorm/decomposition'.
47117         * tests/uninorm/test-decomposition.c: New file.
47118         * modules/uninorm/decomposition-tests: New file.
47119
47120         New module 'uninorm/decomposition'.
47121         * lib/uninorm/decomposition.c: New file.
47122         * modules/uninorm/decomposition: New file.
47123
47124         New module 'uninorm/decomposition-table'.
47125         * lib/uninorm/decomposition-table.h: New file.
47126         * lib/uninorm/decomposition-table.c: New file.
47127         * lib/uninorm/decomposition-table1.h: New file, generated by
47128         gen-uni-tables.
47129         * lib/uninorm/decomposition-table2.h: New file, generated by
47130         gen-uni-tables.
47131         * modules/uninorm/decomposition-table: New file.
47132
47133         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
47134         (UC_DECOMP_*): New enumeration items.
47135         (get_decomposition): New function.
47136         (struct decomp_table): New type.
47137         (output_decomposition, output_decomposition_tables): New functions.
47138         (unicode_composition_exclusions): New variable.
47139         (fill_composition_exclusions, debug_output_composition_tables): New
47140         functions.
47141         (main): Accept one more argument. Invoke fill_composition_exclusions.
47142         Output decomposition and composition tables.
47143
47144         New module 'uninorm/base'.
47145         * lib/uninorm.h: New file.
47146         * lib/unictype.h: Update comment.
47147         * modules/uninorm/base: New file.
47148
47149 2009-02-21  David Lutterkort  <lutter@redhat.com>
47150
47151         Tests for module 'safe-alloc'.
47152         * tests/test-safe-alloc.c: New file.
47153         * modules/safe-alloc-tests: New file.
47154
47155         New module 'safe-alloc'.
47156         * lib/safe-alloc.h: New file.
47157         * lib/safe-alloc.c: New file.
47158         * m4/safe-alloc.m4: New file.
47159         * modules/safe-alloc: New file.
47160         * doc/safe-alloc.texi: New file.
47161         * doc/gnulib.texi: Include it.
47162         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
47163         safe-alloc.
47164
47165 2009-02-18  Bruno Haible  <bruno@clisp.org>
47166
47167         Fix link error on non-glibc systems.
47168         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
47169         variable.
47170         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47171
47172 2009-02-18  Jim Meyering  <meyering@redhat.com>
47173
47174         fts: avoid used-uninitialized error due to recent change
47175         * lib/fts.c (fts_read): Guard uses of the new member,
47176         parent->fts_n_dirs_remaining, since it's not relevant for
47177         the parent of a directory specified on the command-line.
47178
47179 2009-02-17  James Youngman  <jay@gnu.org>
47180             Bruno Haible  <bruno@clisp.org>
47181
47182         * m4/include_next.m4: Reformulate comment.
47183
47184 2009-02-16  Jim Meyering  <meyering@redhat.com>
47185
47186         fts: add #if guards so that the fts_lgpl module still builds
47187         * lib/fts.c: Guard just-added hash-table-using parts with
47188         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
47189         Reported by Simon Josefsson.
47190
47191 2009-02-15  Bruno Haible  <bruno@clisp.org>
47192
47193         * modules/array-mergesort-tests: New file.
47194         * tests/test-array-mergesort.c: New file.
47195
47196         New module 'array-mergesort'.
47197         * modules/array-mergesort: New file.
47198         * lib/array-mergesort.h: New file.
47199
47200 2009-02-15  Bruno Haible  <bruno@clisp.org>
47201
47202         Fix 2009-02-07 commit.
47203         * lib/gen-uni-tables.c (output_predicate, output_category,
47204         output_combclass, output_bidi_category, output_decimal_digit,
47205         output_digit, output_numeric, output_mirror, output_scripts,
47206         output_ident_category, output_simple_mapping): Fix format directives.
47207         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
47208
47209 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
47210
47211         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
47212         fixes are available from IBM.
47213
47214 2009-02-13  Jim Meyering  <meyering@redhat.com>
47215
47216         fts: arrange not to stat non-directories in more cases
47217         This makes GNU find (when it doesn't need to stat each file)
47218         *much* more efficient at traversing reiserfs file systems.
47219         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
47220         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
47221         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
47222         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
47223         (leaf_optimization_applies): New function.
47224         (LCO_hash, LCO_compare): New helper functions.
47225         (link_count_optimize_ok): New function.
47226         (fts_stat): Initialize new member (if dir).
47227         (fts_read): Decrement parent's fts_n_dirs_remaining count if
47228         we've just stat'ed a directory.  Skip the stat call when possible.
47229         ---
47230         Note this AFS-related exchange:
47231         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
47232         and note find's pioctl call in find/fstype.c.
47233         But that is necessary only if you want to enable the
47234         optimization for AFS, and for now, I don't.
47235
47236         fts: move a function definition "up" (no semantic change)
47237         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
47238         "up" to precede upcoming use of a related function.
47239
47240 2009-02-11  Jim Meyering  <meyering@redhat.com>
47241
47242         fts: correct internal computation of nlinks (optimization-related)
47243         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
47244         whether the current entry is a directory, so don't test it.
47245
47246 2009-02-10  Bruno Haible  <bruno@clisp.org>
47247
47248         Tests for module 'uniwbrk/ulc-wordbreaks'.
47249         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
47250         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
47251         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
47252
47253         Tests for module 'uniwbrk/u32-wordbreaks'.
47254         * modules/uniwbrk/u32-wordbreaks-tests: New file.
47255         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
47256
47257         Tests for module 'uniwbrk/u16-wordbreaks'.
47258         * modules/uniwbrk/u16-wordbreaks-tests: New file.
47259         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
47260
47261         Tests for module 'uniwbrk/u8-wordbreaks'.
47262         * modules/uniwbrk/u8-wordbreaks-tests: New file.
47263         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
47264
47265 2009-02-10  Bruno Haible  <bruno@clisp.org>
47266
47267         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
47268         property.
47269         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
47270         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
47271         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
47272
47273 2009-02-10  Simon Josefsson  <simon@josefsson.org>
47274
47275         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
47276         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
47277
47278 2009-02-10  Bruno Haible  <bruno@clisp.org>
47279
47280         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
47281         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
47282         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
47283         * lib/unilbrk/u8-possible-linebreaks.c: Update.
47284         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
47285         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
47286
47287 2009-02-09  Simon Josefsson  <simon@josefsson.org>
47288
47289         * lib/sockets.h (gl_fd_to_handle): New function.
47290
47291         * tests/test-sockets.c: Call gl_fd_to_handle.
47292
47293 2009-02-09  Bruno Haible  <bruno@clisp.org>
47294
47295         * doc/havelib.texi: Document the conventions on bi-arch systems.
47296
47297 2009-02-08  Bruno Haible  <bruno@clisp.org>
47298
47299         Document the AC_LIB_LINKFLAGS macro.
47300         * doc/havelib.texi: New file, mostly written on 2005-05-24.
47301         * doc/gnulib.texi: Include it.
47302
47303 2009-02-08  Bruno Haible  <bruno@clisp.org>
47304
47305         Fix wrong order of sections, compared to TOC.
47306         * doc/gnulib.texi: Include relocatable-maint.texi after the
47307         "Regular expressions" node, not before.
47308
47309 2009-02-08  Bruno Haible  <bruno@clisp.org>
47310
47311         Tests for module 'unicase/totitle'.
47312         * modules/unicase/totitle-tests: New file.
47313
47314         Tests for module 'unicase/tolower'.
47315         * modules/unicase/tolower-tests: New file.
47316
47317         Tests for module 'unicase/toupper'.
47318         * modules/unicase/toupper-tests: New file.
47319         * tests/unicase/test-mapping-part1.h: New file.
47320         * tests/unicase/test-mapping-part2.h: New file.
47321
47322         New module 'unicase/totitle'.
47323         * modules/unicase/totitle: New file.
47324         * lib/unicase/totitle.c: New file.
47325
47326         New module 'unicase/tolower'.
47327         * modules/unicase/tolower: New file.
47328         * lib/unicase/tolower.c: New file.
47329
47330         New module 'unicase/toupper'.
47331         * modules/unicase/toupper: New file.
47332         * lib/unicase/toupper.c: New file.
47333         * lib/unicase/simple-mapping.h: New file.
47334
47335         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
47336         (mapping_table): New structure.
47337         (output_simple_mapping): New function.
47338         (main): Invoke output_simple_mapping_test and output_simple_mapping.
47339         * modules/gen-uni-tables (Description): Update.
47340         * lib/unicase/toupper.h: New file, automatically generated by
47341         gen-uni-tables.
47342         * lib/unicase/tolower.h: New file, automatically generated by
47343         gen-uni-tables.
47344         * lib/unicase/totitle.h: New file, automatically generated by
47345         gen-uni-tables.
47346         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
47347         gen-uni-tables.
47348         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
47349         gen-uni-tables.
47350         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
47351         gen-uni-tables.
47352
47353         New module 'unicase/base'.
47354         * modules/unicase/base: New file.
47355         * lib/unicase.h: New file.
47356
47357 2009-02-08  Bruno Haible  <bruno@clisp.org>
47358
47359         New module 'uniwbrk/ulc-wordbreaks'.
47360         * modules/uniwbrk/ulc-wordbreaks: New file.
47361         * lib/uniwbrk/ulc-wordbreaks.c: New file.
47362
47363         New module 'uniwbrk/u32-wordbreaks'.
47364         * modules/uniwbrk/u32-wordbreaks: New file.
47365         * lib/uniwbrk/u32-wordbreaks.c: New file.
47366
47367         New module 'uniwbrk/u16-wordbreaks'.
47368         * modules/uniwbrk/u16-wordbreaks: New file.
47369         * lib/uniwbrk/u16-wordbreaks.c: New file.
47370
47371         New module 'uniwbrk/u8-wordbreaks'.
47372         * modules/uniwbrk/u8-wordbreaks: New file.
47373         * lib/uniwbrk/u8-wordbreaks.c: New file.
47374         * lib/uniwbrk/u-wordbreaks.h: New file.
47375
47376         New module 'uniwbrk/table'.
47377         * modules/uniwbrk/table: New file.
47378         * lib/uniwbrk/wbrktable.h: New file.
47379         * lib/uniwbrk/wbrktable.c: New file.
47380
47381         New module 'uniwbrk/wordbreak-property'.
47382         * modules/uniwbrk/wordbreak-property: New file.
47383         * lib/uniwbrk/wordbreak-property.c: New file.
47384
47385         * lib/gen-uni-tables.c (WBP_*): New enum items.
47386         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
47387         (unicode_org_wbp): New variable.
47388         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
47389         New functions.
47390         (wbp_table): New structure.
47391         (output_wbp, output_wbrk_tables): New functions.
47392         (main): Accept additional argument. Invoke fill_org_wbp,
47393         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
47394         output_wbrk_tables.
47395         * modules/gen-uni-tables (Description): Update.
47396         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
47397         gen-uni-tables.
47398
47399         New module 'uniwbrk/base'.
47400         * modules/uniwbrk/base: New file.
47401         * lib/uniwbrk.h: New file.
47402
47403 2009-02-08  Bruno Haible  <bruno@clisp.org>
47404
47405         Update to Unicode 5.1.0.
47406         * lib/gen-uni-tables.c (is_property_alphabetic): Include
47407         U+2185..U+2188.
47408         (is_property_default_ignorable_code_point): Don't include characters
47409         of category Cc or Cs and not-a-characters.
47410         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
47411         U+0D79, U+109E, U+109F, U+A60C.
47412         * lib/unictype/bidi_of.h: Regenerated.
47413         * lib/unictype/blocks.h: Regenerated.
47414         * lib/unictype/categ_C.h: Regenerated.
47415         * lib/unictype/categ_Cf.h: Regenerated.
47416         * lib/unictype/categ_Cn.h: Regenerated.
47417         * lib/unictype/categ_L.h: Regenerated.
47418         * lib/unictype/categ_Ll.h: Regenerated.
47419         * lib/unictype/categ_Lm.h: Regenerated.
47420         * lib/unictype/categ_Lo.h: Regenerated.
47421         * lib/unictype/categ_Lu.h: Regenerated.
47422         * lib/unictype/categ_M.h: Regenerated.
47423         * lib/unictype/categ_Mc.h: Regenerated.
47424         * lib/unictype/categ_Me.h: Regenerated.
47425         * lib/unictype/categ_Mn.h: Regenerated.
47426         * lib/unictype/categ_N.h: Regenerated.
47427         * lib/unictype/categ_Nd.h: Regenerated.
47428         * lib/unictype/categ_Nl.h: Regenerated.
47429         * lib/unictype/categ_No.h: Regenerated.
47430         * lib/unictype/categ_P.h: Regenerated.
47431         * lib/unictype/categ_Pd.h: Regenerated.
47432         * lib/unictype/categ_Pe.h: Regenerated.
47433         * lib/unictype/categ_Pf.h: Regenerated.
47434         * lib/unictype/categ_Pi.h: Regenerated.
47435         * lib/unictype/categ_Po.h: Regenerated.
47436         * lib/unictype/categ_Ps.h: Regenerated.
47437         * lib/unictype/categ_S.h: Regenerated.
47438         * lib/unictype/categ_Sk.h: Regenerated.
47439         * lib/unictype/categ_Sm.h: Regenerated.
47440         * lib/unictype/categ_So.h: Regenerated.
47441         * lib/unictype/categ_of.h: Regenerated.
47442         * lib/unictype/combining.h: Regenerated.
47443         * lib/unictype/ctype_alnum.h: Regenerated.
47444         * lib/unictype/ctype_alpha.h: Regenerated.
47445         * lib/unictype/ctype_graph.h: Regenerated.
47446         * lib/unictype/ctype_lower.h: Regenerated.
47447         * lib/unictype/ctype_print.h: Regenerated.
47448         * lib/unictype/ctype_punct.h: Regenerated.
47449         * lib/unictype/ctype_upper.h: Regenerated.
47450         * lib/unictype/decdigit.h: Regenerated.
47451         * lib/unictype/digit.h: Regenerated.
47452         * lib/unictype/mirror.h: Regenerated.
47453         * lib/unictype/numeric.h: Regenerated.
47454         * lib/unictype/pr_alphabetic.h: Regenerated.
47455         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
47456         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
47457         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
47458         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
47459         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
47460         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
47461         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
47462         * lib/unictype/pr_combining.h: Regenerated.
47463         * lib/unictype/pr_dash.h: Regenerated.
47464         * lib/unictype/pr_decimal_digit.h: Regenerated.
47465         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
47466         * lib/unictype/pr_deprecated.h: Regenerated.
47467         * lib/unictype/pr_diacritic.h: Regenerated.
47468         * lib/unictype/pr_extender.h: Regenerated.
47469         * lib/unictype/pr_format_control.h: Regenerated.
47470         * lib/unictype/pr_grapheme_base.h: Regenerated.
47471         * lib/unictype/pr_grapheme_extend.h: Regenerated.
47472         * lib/unictype/pr_grapheme_link.h: Regenerated.
47473         * lib/unictype/pr_id_continue.h: Regenerated.
47474         * lib/unictype/pr_id_start.h: Regenerated.
47475         * lib/unictype/pr_ideographic.h: Regenerated.
47476         * lib/unictype/pr_ignorable_control.h: Regenerated.
47477         * lib/unictype/pr_lowercase.h: Regenerated.
47478         * lib/unictype/pr_math.h: Regenerated.
47479         * lib/unictype/pr_numeric.h: Regenerated.
47480         * lib/unictype/pr_other_alphabetic.h: Regenerated.
47481         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
47482         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
47483         * lib/unictype/pr_other_id_continue.h: Regenerated.
47484         * lib/unictype/pr_other_lowercase.h: Regenerated.
47485         * lib/unictype/pr_other_math.h: Regenerated.
47486         * lib/unictype/pr_punctuation.h: Regenerated.
47487         * lib/unictype/pr_sentence_terminal.h: Regenerated.
47488         * lib/unictype/pr_soft_dotted.h: Regenerated.
47489         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
47490         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
47491         * lib/unictype/pr_unified_ideograph.h: Regenerated.
47492         * lib/unictype/pr_uppercase.h: Regenerated.
47493         * lib/unictype/pr_xid_continue.h: Regenerated.
47494         * lib/unictype/pr_xid_start.h: Regenerated.
47495         * lib/unictype/pr_zero_width.h: Regenerated.
47496         * lib/unictype/scripts.h: Regenerated.
47497         * lib/unictype/scripts_byname.gperf: Regenerated.
47498         * lib/unictype/sy_java_ident.h: Regenerated.
47499         * lib/unilbrk/lbrkprop1.h: Regenerated.
47500         * lib/unilbrk/lbrkprop2.h: Regenerated.
47501         * tests/unictype/test-categ_C.c: Regenerated.
47502         * tests/unictype/test-categ_Cf.c: Regenerated.
47503         * tests/unictype/test-categ_Cn.c: Regenerated.
47504         * tests/unictype/test-categ_L.c: Regenerated.
47505         * tests/unictype/test-categ_Ll.c: Regenerated.
47506         * tests/unictype/test-categ_Lm.c: Regenerated.
47507         * tests/unictype/test-categ_Lo.c: Regenerated.
47508         * tests/unictype/test-categ_Lu.c: Regenerated.
47509         * tests/unictype/test-categ_M.c: Regenerated.
47510         * tests/unictype/test-categ_Mc.c: Regenerated.
47511         * tests/unictype/test-categ_Me.c: Regenerated.
47512         * tests/unictype/test-categ_Mn.c: Regenerated.
47513         * tests/unictype/test-categ_N.c: Regenerated.
47514         * tests/unictype/test-categ_Nd.c: Regenerated.
47515         * tests/unictype/test-categ_Nl.c: Regenerated.
47516         * tests/unictype/test-categ_No.c: Regenerated.
47517         * tests/unictype/test-categ_P.c: Regenerated.
47518         * tests/unictype/test-categ_Pd.c: Regenerated.
47519         * tests/unictype/test-categ_Pe.c: Regenerated.
47520         * tests/unictype/test-categ_Pf.c: Regenerated.
47521         * tests/unictype/test-categ_Pi.c: Regenerated.
47522         * tests/unictype/test-categ_Po.c: Regenerated.
47523         * tests/unictype/test-categ_Ps.c: Regenerated.
47524         * tests/unictype/test-categ_S.c: Regenerated.
47525         * tests/unictype/test-categ_Sk.c: Regenerated.
47526         * tests/unictype/test-categ_Sm.c: Regenerated.
47527         * tests/unictype/test-categ_So.c: Regenerated.
47528         * tests/unictype/test-ctype_alnum.c: Regenerated.
47529         * tests/unictype/test-ctype_alpha.c: Regenerated.
47530         * tests/unictype/test-ctype_graph.c: Regenerated.
47531         * tests/unictype/test-ctype_lower.c: Regenerated.
47532         * tests/unictype/test-ctype_print.c: Regenerated.
47533         * tests/unictype/test-ctype_punct.c: Regenerated.
47534         * tests/unictype/test-ctype_upper.c: Regenerated.
47535         * tests/unictype/test-decdigit.h: Regenerated.
47536         * tests/unictype/test-digit.h: Regenerated.
47537         * tests/unictype/test-numeric.h: Regenerated.
47538         * tests/unictype/test-pr_alphabetic.c: Regenerated.
47539         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
47540         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
47541         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
47542         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
47543         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
47544         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
47545         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
47546         * tests/unictype/test-pr_combining.c: Regenerated.
47547         * tests/unictype/test-pr_dash.c: Regenerated.
47548         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
47549         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
47550         * tests/unictype/test-pr_deprecated.c: Regenerated.
47551         * tests/unictype/test-pr_diacritic.c: Regenerated.
47552         * tests/unictype/test-pr_extender.c: Regenerated.
47553         * tests/unictype/test-pr_format_control.c: Regenerated.
47554         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
47555         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
47556         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
47557         * tests/unictype/test-pr_id_continue.c: Regenerated.
47558         * tests/unictype/test-pr_id_start.c: Regenerated.
47559         * tests/unictype/test-pr_ideographic.c: Regenerated.
47560         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
47561         * tests/unictype/test-pr_lowercase.c: Regenerated.
47562         * tests/unictype/test-pr_math.c: Regenerated.
47563         * tests/unictype/test-pr_numeric.c: Regenerated.
47564         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
47565         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
47566         Regenerated.
47567         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
47568         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
47569         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
47570         * tests/unictype/test-pr_other_math.c: Regenerated.
47571         * tests/unictype/test-pr_punctuation.c: Regenerated.
47572         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
47573         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
47574         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
47575         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
47576         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
47577         * tests/unictype/test-pr_uppercase.c: Regenerated.
47578         * tests/unictype/test-pr_xid_continue.c: Regenerated.
47579         * tests/unictype/test-pr_xid_start.c: Regenerated.
47580         * tests/unictype/test-pr_zero_width.c: Regenerated.
47581
47582         Update to Unicode 5.1.0.
47583         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
47584         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
47585         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
47586         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
47587         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
47588         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
47589         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
47590         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
47591         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
47592         (nonspacing_table_ind): Update.
47593         * tests/uniwidth/test-uc_width2.sh: Update expected result.
47594
47595         Update to Unicode 5.1.0.
47596         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
47597         code transform.
47598         * lib/uniname/uniname.c (unicode_character_name,
47599         unicode_name_character): Add the range 0x1Fxxx to the code transform.
47600         * lib/uniname/uninames.h: Regenerated.
47601         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
47602
47603 2009-02-07  Bruno Haible  <bruno@clisp.org>
47604
47605         Merge gen-ctype and gen-lbrk into a single program.
47606         * lib/gen-uni-tables.c: New file, incorporating
47607         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
47608         Add directory prefixes to the names of the generated files.
47609         * lib/unictype/gen-ctype.c: Remove file.
47610         * lib/unilbrk/gen-lbrk.c: Remove file.
47611         * modules/gen-uni-tables: New file.
47612         * modules/unictype/gen-ctype: Remove file.
47613         * modules/unilbrk/gen-lbrk: Remove file.
47614
47615 2009-02-07  Bruno Haible  <bruno@clisp.org>
47616
47617         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
47618
47619         New module 'unistr/u32-strcoll'.
47620         * modules/unistr/u32-strcoll: New file.
47621         * lib/unistr/u32-strcoll.c: New file.
47622
47623         New module 'unistr/u16-strcoll'.
47624         * modules/unistr/u16-strcoll: New file.
47625         * lib/unistr/u16-strcoll.c: New file.
47626
47627         New module 'unistr/u8-strcoll'.
47628         * modules/unistr/u8-strcoll: New file.
47629         * lib/unistr/u8-strcoll.c: New file.
47630         * lib/unistr/u-strcoll.h: New file.
47631
47632 2009-02-07  Bruno Haible  <bruno@clisp.org>
47633
47634         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
47635         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
47636         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
47637         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
47638         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
47639         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
47640
47641 2009-02-07  Bruno Haible  <bruno@clisp.org>
47642
47643         Make 64-bit clean.
47644         * lib/unictype/gen-ctype.c (output_predicate, output_category,
47645         output_combclass, output_bidi_category, output_decimal_digit,
47646         output_digit, output_numeric, output_mirror, output_scripts,
47647         output_ident_category): Use proper width specifier in format strings.
47648
47649 2009-02-07  Bruno Haible  <bruno@clisp.org>
47650
47651         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
47652         failure behaviour.
47653
47654 2009-02-07  Jim Meyering  <meyering@redhat.com>
47655
47656         regex: avoid compilation failure with upcoming gcc-4.4
47657         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
47658         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
47659         "... error: integer overflow in preprocessor expression".
47660
47661 2009-02-05  Ben Pfaff  <blp@gnu.org>
47662
47663         Fix link errors on Windows when close module is used.
47664         * modules/close: Add $(LIB_CLOSE) to Link section.
47665         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
47666         $(LIB_CLOSE) on Windows.
47667
47668 2009-02-05  Jim Meyering  <meyering@redhat.com>
47669
47670         still avoid unused-parameter warnings, but do it cleanly
47671         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
47672         (get_fs_usage): Cast to void instead.
47673         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
47674         (dev_from_mount_options, read_file_system_list): Cast to void.
47675         Prompted by Bruno Haible.
47676
47677 2009-02-04  Jim Meyering  <meyering@redhat.com>
47678
47679         fsusage.c: correct copyright year
47680         * lib/fsusage.c: Reflect year in which the change is pushed into
47681
47682         avoid misc. warnings
47683         * lib/fsusage.c (UNUSED_PARAM): Define.
47684         (get_fs_usage): Mark parameter "disk" as unused.
47685         * lib/getugroups.c (getgrent): Use "void" in prototype.
47686         * lib/mountlist.c: Mark unused parameters.
47687         (read_file_system_list): Declare a local with "const".
47688         * lib/nanosleep.c (getnow): Declare static.
47689         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
47690
47691         dirfd: set errno upon failure
47692         * lib/dirfd.c: Include <errno.h>.
47693         Set errno to ENOTSUP when returning -1.
47694         * modules/dirfd (Depends-on): Add errno.
47695         Suggested by John Kodis <kodis@comcast.net>.
47696
47697 2009-02-01  Bruno Haible  <bruno@clisp.org>
47698
47699         Don't assume sizeof (long) >= sizeof (void *).
47700         * lib/memcmp.c: Include stdint.h.
47701         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
47702         srcp2 to 'const byte *'.
47703         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
47704         types to uintptr_t.
47705         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
47706         * modules/memcmp (Depends-on): Add stdint.
47707         Reported by Ozkan Sezer <sezeroz@gmail.com>.
47708
47709 2009-01-30  Eric Blake  <ebb9@byu.net>
47710
47711         fix more require-before-expand issues
47712         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
47713         expand, AC_PROG_AWK.
47714         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
47715
47716 2009-01-28  Eric Blake  <ebb9@byu.net>
47717
47718         version-etc: use consistent URL formatting
47719         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
47720         Improve formatting.  Use fputs for string without %.
47721
47722 2009-01-28  Jim Meyering  <meyering@redhat.com>
47723
47724         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
47725         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
47726         "underquoted definition of NAME" from autoconf-2.59.
47727
47728 2009-01-28  Bruno Haible  <bruno@clisp.org>
47729
47730         * doc/gnulib.texi: Add "Obsolete modules" to index.
47731
47732 2009-01-28  Jim Meyering  <meyering@redhat.com>
47733
47734         useless-if-before-free: recognize more variants
47735         * build-aux/useless-if-before-free: Also recognize e.g.,
47736         if (NULL != p) free (p);
47737
47738 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
47739
47740         test-getaddrinfo: skip (don't fail) this test when there's no network
47741         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
47742         on the presumption that it means you lack network access.
47743
47744 2009-01-26  Jim Meyering  <meyering@redhat.com>
47745
47746         fflush: avoid warnings on modern systems
47747         * lib/fflush.c (rpl_fflush): Move declarations of locals,
47748         pos and result, into scopes where they're used.
47749
47750 2009-01-26  Eric Blake  <ebb9@byu.net>
47751
47752         Silence warning reintroduced by recent extensions patch.
47753         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
47754         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
47755         autoconf.
47756
47757         Backport improved autoconf semantics of AC_DEFUN_ONCE.
47758         * m4/00gnulib.m4: New file.
47759         * gnulib-tool (func_get_filelist): Always use it.
47760         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
47761         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
47762
47763 2009-01-25  Bruno Haible  <bruno@clisp.org>
47764
47765         Make test-quotearg work on MacOS X and AIX.
47766         * tests/test-quotearg.sh: New file.
47767         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
47768         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
47769         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
47770         include <libintl.h>.
47771         (fake_locale): Remove variable.
47772         (gettext, dgettext, dcgettext): Remove functions.
47773         (main): Instead of setting a fake locale, set a real locale. Call
47774         textdomain and bindtextdomain.
47775         * modules/quotearg-tests (Files): Add the new files.
47776         (Depends-on): Add gettext, setenv, unsetenv.
47777         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
47778         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
47779         Augment TESTS_ENVIRONMENT.
47780
47781 2009-01-25  Bruno Haible  <bruno@clisp.org>
47782
47783         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
47784         fr_FR.ISO8859-1 locale on MacOS X.
47785         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
47786         ja_JP.eucJP locale on MacOS X.
47787         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
47788         zh_CN.GB18030 locale on MacOS X.
47789
47790 2009-01-25  Bruno Haible  <bruno@clisp.org>
47791
47792         Avoid link errors on MacOS X 10.3.
47793         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
47794         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
47795
47796 2009-01-25  Bruno Haible  <bruno@clisp.org>
47797
47798         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
47799         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
47800         * modules/pipe (Files): Remove m4/posix_spawn.m4.
47801         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
47802         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
47803         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
47804         posix_spawnattr_init, posix_spawnattr_setsigmask,
47805         posix_spawnattr_setflags, posix_spawnattr_destroy.
47806
47807         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
47808         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
47809         * modules/execute (Files): Remove m4/posix_spawn.m4.
47810         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
47811         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
47812         posix_spawnattr_init, posix_spawnattr_setsigmask,
47813         posix_spawnattr_setflags, posix_spawnattr_destroy.
47814
47815 2009-01-25  Bruno Haible  <bruno@clisp.org>
47816
47817         * lib/glthread/threadlib.c: Include <stdlib.h>.
47818
47819 2009-01-25  Bruno Haible  <bruno@clisp.org>
47820
47821         * lib/glthread/threadlib.c (dummy): New declaration.
47822
47823 2009-01-25  Bruno Haible  <bruno@clisp.org>
47824
47825         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
47826         multibyte characters also for the GB18030 encoding. Don't crash when
47827         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
47828
47829 2009-01-25  Bruno Haible  <bruno@clisp.org>
47830
47831         Avoid redefining 'struct random_data' on OSF/1 5.1.
47832         * lib/stdlib.in.h: Include <random.h> if it exists.
47833         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
47834         HAVE_RANDOM_H. Include <random.h> when testing whether
47835         'struct random_data' exists.
47836         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
47837
47838 2009-01-25  Bruno Haible  <bruno@clisp.org>
47839
47840         Don't install charset.alias on MacOS X >= 10.3.
47841         * lib/localcharset.c (DARWIN7): New macro.
47842         (get_charset_aliases): Hardcode the result for Darwin7.
47843         * modules/localcharset (install-exec-local): Don't install
47844         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
47845
47846 2009-01-25  Bruno Haible  <bruno@clisp.org>
47847
47848         Don't install charset.alias on mingw and Cygwin.
47849         * modules/localcharset (install-exec-local): Don't install
47850         charset.alias on mingw and Cygwin, if the file does not yet exist.
47851         The result for these platforms is hardcoded in localcharset.c.
47852
47853 2009-01-25  Bruno Haible  <bruno@clisp.org>
47854
47855         Make it possible again to use AC_GNU_SOURCE together with gnulib.
47856         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
47857         before requiring AC_USE_SYSTEM_EXTENSIONS.
47858
47859 2009-01-25  Jim Meyering  <meyering@redhat.com>
47860
47861         c-strtod: avoid warnings
47862         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
47863         "assignment discards qualifiers from pointer target type" warnings.
47864
47865 2009-01-24  Bruno Haible  <bruno@clisp.org>
47866
47867         Add support for non-UTF-8 locales on MacOS X.
47868         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
47869         canonical encodings. For Darwin 7 and newer, don't map traditional
47870         encodings to UTF-8.
47871         Reported by Vincent Lefevre <vincent@vinc17.org>
47872         at <http://savannah.gnu.org/bugs/?25235>.
47873
47874 2009-01-24  Bruno Haible  <bruno@clisp.org>
47875
47876         * doc/gnulib.texi (Obsolete modules): New section.
47877         Reported by Mike Frysinger <vapier@gentoo.org>.
47878
47879 2009-01-24  Bruno Haible  <bruno@clisp.org>
47880
47881         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
47882         (%.dvi): New rule.
47883
47884 2009-01-24  Bruno Haible  <bruno@clisp.org>
47885
47886         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
47887         Reported by Eric Blake.
47888
47889 2009-01-24  Bruno Haible  <bruno@clisp.org>
47890
47891         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
47892         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
47893         Reported by Gary V. Vaughan <gary@gnu.org>.
47894
47895 2009-01-24  Bruno Haible  <bruno@clisp.org>
47896
47897         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
47898
47899 2009-01-23  Bruno Haible  <bruno@clisp.org>
47900
47901         Make c-strtod, c-strtold usable in libraries.
47902         * lib/c-strtod.c: Include string.h instead of xalloc.h.
47903         (C_STRTOD): Call strdup instead of xstrdup.
47904         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
47905         * modules/c-strtold (Depends-on): Likewise.
47906         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
47907         * NEWS: Mention the change.
47908         Reported by Michael Gold <mgold@ncf.ca>.
47909
47910 2009-01-23  Jim Meyering  <meyering@redhat.com>
47911
47912         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
47913         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
47914         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
47915
47916 2009-01-23  Simon Josefsson  <simon@josefsson.org>
47917
47918         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
47919         GNU CoreUtils.
47920         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
47921         * modules/version-etc (Description): Update.
47922
47923 2009-01-22  Bruno Haible  <bruno@clisp.org>
47924
47925         Cache the C locale object.
47926         * lib/c-strtod.c (c_locale_cache): New variable.
47927         (c_locale): New function.
47928         (C_STRTOD): Use it, and don't call freelocale.
47929         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
47930         Suggested by Paolo Bonzini.
47931
47932 2009-01-21  Bruno Haible  <bruno@clisp.org>
47933
47934         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
47935         conditions other than overflow.
47936
47937 2009-01-21  Bruno Haible  <bruno@clisp.org>
47938
47939         * lib/c-strtod.c: Include errno.h.
47940         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
47941         value from STRTOD_L and STRTOD.
47942
47943 2009-01-21  Bruno Haible  <bruno@clisp.org>
47944         and Jim Meyering  <meyering@redhat.com>
47945
47946         nanosleep: skip configure test (fail it) for apple universal builds
47947         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
47948         universal builds, assume that nanosleep does not work.
47949         * modules/nanosleep (Depends-on): Add multiarch.
47950
47951         mktime: skip configure test (fail it) for apple universal builds
47952         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
47953         universal builds, assume that mktime does not work.
47954         * modules/mktime (Depends-on): Add multiarch.
47955
47956 2009-01-21  Eric Blake  <ebb9@byu.net>
47957
47958         multiarch: avoid expand-before-require warning
47959         * modules/multiarch (configure.ac): Require, rather than expand,
47960         gl_MULTIARCH.
47961         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
47962         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
47963         enforce that all clients require it.  Partial reversion of
47964         2008-12-29 patch.
47965
47966         error: avoid expand-before-require warning
47967         * modules/errno (configure.ac): Require, rather than expand,
47968         gl_HEADER_ERRNO_H.
47969         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
47970         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
47971         enforce that all clients require it.
47972
47973         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
47974         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
47975         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
47976         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
47977
47978 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
47979
47980         Revert:
47981         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
47982
47983         regex: do not depend on obsolete modules.
47984         * modules/regex: Remove memcmp and memmove.
47985
47986 2009-01-20  Bruno Haible  <bruno@clisp.org>
47987
47988         Make the 'link' module link on Windows NT 4.
47989         * lib/link.c (_WIN32_WINNT): Don't define.
47990         (CreateHardLinkFuncType): New type.
47991         (CreateHardLinkFunc, initialized): New variables.
47992         (initialize): New function.
47993         (link): Invoke CreateHardLink indirectly through the function pointer.
47994
47995 2009-01-20  Bruno Haible  <bruno@clisp.org>
47996
47997         Fix compilation failure on mingw.
47998         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
47999
48000 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
48001
48002         * doc/c-strtod.texi: Mention a couple of restrictions.
48003
48004 2009-01-20  Jim Meyering  <meyering@redhat.com>
48005
48006         gettimeofday: move more declarations out of functions
48007         * lib/gettimeofday.c: Move extern declarations of tzset and
48008         gmtime out of containing functions.  Prompted by Bruno Haible.
48009
48010 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
48011
48012         regex: do not depend on obsolete modules.
48013         * modules/regex: Remove memcmp and memmove.
48014
48015 2009-01-19  Bruno Haible  <bruno@clisp.org>
48016
48017         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
48018         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
48019         gl_BIGENDIAN, not AC_C_BIGENDIAN.
48020         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
48021         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
48022
48023 2009-01-19  Bruno Haible  <bruno@clisp.org>
48024
48025         * tests/test-link.c: Include <errno.h>.
48026         (main): Exit with code 77 when a hard link cannot be created due to
48027         the file system.
48028         * tests/test-link.sh: Skip test when a hard link cannot be created due
48029         to the file system.
48030         Suggested by Eric Blake.
48031
48032 2009-01-19  Martin Lambers  <marlam@marlam.de>
48033
48034         * modules/link-tests: New file.
48035         * tests/test-link.sh: New file.
48036         * tests/test-link.c: New file.
48037
48038 2009-01-19  Eric Blake  <ebb9@byu.net>
48039
48040         doc: mention another function added in cygwin 1.7.0
48041         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
48042         Another new function in cygwin 1.7.
48043
48044 2009-01-19  Bruno Haible  <bruno@clisp.org>
48045
48046         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
48047         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
48048         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
48049         gl_BIGENDIAN, not AC_C_BIGENDIAN.
48050         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
48051         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
48052         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
48053         * m4/md4.m4 (gl_MD4): Likewise.
48054         * m4/md5.m4 (gl_MD5): Likewise.
48055         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
48056         * m4/sha1.m4 (gl_SHA1): Likewise.
48057         * m4/sha256.m4 (gl_SHA256): Likewise.
48058         * m4/sha512.m4 (gl_SHA512): Likewise.
48059
48060 2009-01-19  Bruno Haible  <bruno@clisp.org>
48061
48062         * modules/uniname/uniname-tests (Depends-on): Add progname.
48063         * tests/uniname/test-uninames.c: Include progname.h.
48064         (main): Call set_program_name.
48065
48066         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
48067         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
48068         (main): Call set_program_name.
48069
48070         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
48071         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
48072         (main): Call set_program_name.
48073
48074         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
48075         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
48076         (main): Call set_program_name.
48077
48078         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
48079         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
48080         (main): Call set_program_name.
48081
48082         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
48083         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
48084         (main): Call set_program_name.
48085
48086         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
48087         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
48088         (main): Call set_program_name.
48089
48090         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
48091         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
48092         (main): Call set_program_name.
48093
48094         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
48095         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
48096         (main): Call set_program_name.
48097
48098 2009-01-19  Eric Blake  <ebb9@byu.net>
48099
48100         test-unistd: test previous patch
48101         * tests/test-unistd.c: Test *_FILENO macros.
48102
48103         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
48104         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
48105         Guarantee a definition.
48106         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
48107         * modules/unistd-safer (Depends-on): Add dependency on unistd.
48108         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
48109         * lib/dup-safer.c (STDERR_FILENO): Likewise.
48110         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
48111         Likewise.
48112         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
48113         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
48114         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
48115         Likewise.
48116         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
48117         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
48118         (STDERR_FILENO): Likewise.
48119         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
48120         (STDERR_FILENO): Likewise.
48121         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
48122         (STDERR_FILENO): Likewise.
48123         Reported by Elbert Pol.
48124
48125 2009-01-19  Eric Blake  <ebb9@byu.net>
48126
48127         doc: mention more functions added in cygwin 1.7.0
48128         * doc/posix-functions/abort.texi (abort): Update wording related
48129         to cygwin.
48130         * doc/posix-functions/daylight.texi (daylight): Likewise.
48131         * doc/posix-functions/optarg.texi (optarg): Likewise.
48132         * doc/posix-functions/optarg.texi (opterr): Likewise.
48133         * doc/posix-functions/optarg.texi (optind): Likewise.
48134         * doc/posix-functions/optarg.texi (optopt): Likewise.
48135         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
48136         worked in 1.5.x, and was withdrawn in 1.7.
48137         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
48138         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
48139         cygwin versions.
48140         * doc/posix-functions/perror.texi (perror): Likewise.
48141         * doc/posix-functions/printf.texi (printf): Likewise.
48142         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
48143         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
48144         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
48145         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
48146         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
48147         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
48148         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
48149         Likewise.
48150         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
48151         Likewise.
48152         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
48153         this function.
48154         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
48155         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
48156         Likewise.
48157         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
48158         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
48159         * doc/posix-functions/confstr.texi (confstr): Likewise.
48160         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
48161         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
48162         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
48163         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
48164         * doc/posix-functions/fputws.texi (fputws): Likewise.
48165         * doc/posix-functions/fwide.texi (fwide): Likewise.
48166         * doc/posix-functions/getwc.texi (getwc): Likewise.
48167         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
48168         * doc/posix-functions/putwc.texi (putwc): Likewise.
48169         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
48170         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
48171         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
48172         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
48173         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
48174         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
48175         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
48176         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
48177         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
48178         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
48179         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
48180
48181 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
48182
48183         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
48184         * lib/ioctl.c: Include <sys/ioctl.h>.
48185
48186 2009-01-19  Simon Josefsson  <simon@josefsson.org>
48187
48188         * modules/getdate-tests (Depends-on): Add progname.
48189         * tests/test-getdate.c: Use progname module, to avoid link errors
48190         on non-glibc systems.
48191
48192 2009-01-18  Simon Josefsson  <simon@josefsson.org>
48193
48194         * modules/filenamecat-tests (Depends-on): Add progname.
48195         * modules/fstrcmp-tests (Depends-on): Likewise.
48196
48197         * tests/test-filenamecat.c: Use progname module, to avoid link
48198         errors on non-glibc systems.
48199         * tests/test-fstrcmp.c: Likewise.
48200
48201 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
48202
48203         gettimeofday: avoid warning: nested extern declaration of 'localtime'
48204         * lib/gettimeofday.c: Move extern declaration out of function.
48205
48206 2009-01-18  Bruno Haible  <bruno@clisp.org>
48207
48208         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
48209         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
48210         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
48211
48212 2009-01-18  Bruno Haible  <bruno@clisp.org>
48213
48214         * lib/strftime.c (MEMPCPY): Remove unused macro.
48215         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
48216
48217 2009-01-18  Martin Lambers  <marlam@marlam.de>
48218
48219         New module 'link'.
48220         * lib/unistd.in.h (link): New declaration.
48221         * lib/link.c: New file.
48222         * m4/link.m4: New file.
48223         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
48224         HAVE_LINK.
48225         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
48226         * modules/link: New file.
48227         * doc/posix-functions/link.texi: Mention the new module.
48228
48229 2009-01-18  Bruno Haible  <bruno@clisp.org>
48230
48231         * tests/test-avltree_list.c (main): Call set_program_name.
48232         * tests/test-avltree_oset.c (main): Likewise.
48233         * tests/test-obstack-printf.c: Include progname.h.
48234         (main): Call set_program_name.
48235         * tests/test-quotearg.c: Include progname.h.
48236         (main): Call set_program_name.
48237         * tests/test-xmemdup0.c: Include progname.h.
48238         (main): Call set_program_name.
48239
48240 2009-01-18  Bruno Haible  <bruno@clisp.org>
48241
48242         New module 'alphasort'.
48243         * lib/dirent.in.h (alphasort): New declaration.
48244         * lib/alphasort.c: New file, from glibc with modifications.
48245         * m4/alphasort.m4: New file.
48246         * modules/alphasort: New file.
48247         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
48248         HAVE_ALPHASORT.
48249         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
48250         HAVE_ALPHASORT.
48251         * doc/posix-functions/alphasort.texi: Mention the new module and the
48252         portability problems.
48253
48254 2009-01-18  Bruno Haible  <bruno@clisp.org>
48255
48256         New module 'scandir'.
48257         * lib/dirent.in.h (scandir): New declaration.
48258         * lib/scandir.c: New file, from glibc with modifications.
48259         * m4/scandir.m4: New file.
48260         * modules/scandir: New file.
48261         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
48262         HAVE_SCANDIR.
48263         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
48264         HAVE_SCANDIR.
48265         * doc/posix-functions/scandir.texi: Mention the new module and the
48266         portability problems.
48267
48268 2009-01-17  Bruno Haible  <bruno@clisp.org>
48269
48270         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
48271         Update documentation.
48272         (func_remove_suffix): Escape all dots in the suffix. Update
48273         documentation.
48274         (func_filter_filelist): Update documentation.
48275         Reported by Ralf Wildenhues.
48276
48277 2009-01-17  Bruno Haible  <bruno@clisp.org>
48278
48279         * modules/dprintf-posix-tests: New file.
48280         * tests/test-dprintf-posix.sh: New file.
48281         * tests/test-dprintf-posix.c: New file.
48282
48283         New modules 'dprintf', 'dprintf-posix'.
48284         * lib/stdio.in.h (dprintf): New declaration.
48285         * lib/dprintf.c: New file.
48286         * m4/dprintf.m4: New file.
48287         * m4/dprintf-posix.m4: New file.
48288         * modules/dprintf: New file.
48289         * modules/dprintf-posix: New file.
48290         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
48291         HAVE_DPRINTF, REPLACE_DPRINTF.
48292         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
48293         HAVE_DPRINTF, REPLACE_DPRINTF.
48294         * doc/posix-functions/dprintf.texi: Mention the new modules.
48295
48296 2009-01-17  Bruno Haible  <bruno@clisp.org>
48297
48298         * modules/vdprintf-posix-tests: New file.
48299         * tests/test-vdprintf-posix.sh: New file.
48300         * tests/test-vdprintf-posix.c: New file.
48301
48302         New modules 'vdprintf', 'vdprintf-posix'.
48303         * lib/stdio.in.h (vdprintf): New declaration.
48304         * lib/vdprintf.c: New file.
48305         * m4/vdprintf.m4: New file.
48306         * m4/vdprintf-posix.m4: New file.
48307         * modules/vdprintf: New file.
48308         * modules/vdprintf-posix: New file.
48309         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
48310         HAVE_VDPRINTF, REPLACE_VDPRINTF.
48311         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
48312         HAVE_VDPRINTF, REPLACE_VDPRINTF.
48313         * doc/posix-functions/vdprintf.texi: Mention the new modules.
48314
48315 2009-01-17  Bruno Haible  <bruno@clisp.org>
48316
48317         Fix replacement of fopen on mingw.
48318         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
48319         mingw.
48320
48321 2009-01-17  Bruno Haible  <bruno@clisp.org>
48322
48323         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
48324         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
48325
48326 2009-01-17  Bruno Haible  <bruno@clisp.org>
48327
48328         Avoid test-fflush2.sh failure on mingw.
48329         * tests/test-fflush2.c: Include binary-io.h.
48330         (main): Put standard input into binary mode.
48331         * modules/fflush-tests (Depends-on): Add binary-io.
48332
48333 2009-01-17  Bruno Haible  <bruno@clisp.org>
48334
48335         * lib/wchar.in.h: In another particular situation, include only the
48336         system's <wchar.h> file.
48337         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
48338         Reported by Albert Chin-A-Young <china@thewrittenword.com>
48339         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
48340
48341 2009-01-17  Bruno Haible  <bruno@clisp.org>
48342
48343         Support for stripping executables in --enable-relocatable.
48344         * build-aux/install-reloc: Expect one more argument, or an environment
48345         variable RELOC_STRIP_PROG. If set, strip the destination program and
48346         its wrapper.
48347         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
48348         RELOC_STRIP_PROG.
48349         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
48350         to set RELOCATABLE_STRIP.
48351         * NEWS: Mention the new Makefile requirement.
48352
48353 2009-01-17  Bruno Haible  <bruno@clisp.org>
48354
48355         * build-aux/install-reloc: Remove debugging information left over by
48356         C compiler on MacOS X.
48357
48358 2009-01-17  Bruno Haible  <bruno@clisp.org>
48359
48360         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
48361         * lib/progreloc.c (find_executable): Fix type of pointer passed to
48362         _NSGetExecutablePath.
48363
48364 2009-01-16  Jim Meyering  <meyering@redhat.com>
48365
48366         strerror: avoid warnings about discarding "const"
48367         * lib/strerror.c (rpl_strerror): Instead of returning a const
48368         string from each and every "case", use a variable, and add a single
48369         cast after the switch.
48370
48371 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
48372
48373         * lib/arpa_inet.in.h: Add extern "C" block for C++.
48374
48375 2009-01-16  Bruno Haible  <bruno@clisp.org>
48376
48377         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
48378         array initializer syntax that also works in C++ mode.
48379         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
48380
48381 2009-01-16  Jim Meyering  <meyering@redhat.com>
48382
48383         poll: suppress a warning
48384         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
48385         to ignore "...unsigned expression < 0 is always false" warnings.
48386
48387 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
48388
48389         poll: remove declarations of unused variables
48390         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
48391         sockbuf and optlen.
48392
48393 2009-01-15  Bruno Haible  <bruno@clisp.org>
48394
48395         Make fflush-after-ungetc POSIX compliant on BSD systems.
48396         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
48397         (clear_ungetc_buffer): Implement also for other systems.
48398         (rpl_fflush): On glibc systems, invoke
48399         clear_ungetc_buffer_preserving_position. Otherwise, invoke
48400         clear_ungetc_buffer after fetching the stream's position, not before.
48401
48402 2009-01-15  Bruno Haible  <bruno@clisp.org>
48403
48404         Make fflush-after-ungetc POSIX compliant on glibc systems.
48405         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
48406         after ungetc.
48407         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
48408         (rpl_fflush): On glibc systems, simply call the system's fflush
48409         function after clearing the ungetc buffer.
48410         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
48411         Instead, lseek only to the end of file, then use the system's fseeko
48412         for the rest. On glibc systems, reset the EOF indicator bit.
48413
48414 2009-01-15  Jim Meyering  <meyering@redhat.com>
48415
48416         openmp.m4: revert quote-adding change, for portability to older autoconf
48417         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
48418         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
48419         Simon Josefsson noticed the problem when using autoconf-2.61.
48420
48421 2009-01-15  Bruno Haible  <bruno@clisp.org>
48422
48423         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
48424         * tests/test-fflush2.c (ASSERT): Always fail.
48425         (main): Add two tests for fflush() after ungetc(), taking into account
48426         the Austin Group's clarification.
48427         Suggested by Eric Blake.
48428
48429 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
48430
48431         mktime.m4: remove K&R-style function prototypes
48432         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
48433         for the Sun C++ compiler.
48434
48435 2009-01-14  Bruno Haible  <bruno@clisp.org>
48436
48437         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
48438         while including <wchar.h>.
48439         * lib/wchar.in.h: In two particular situations on HP-UX, include only
48440         the system's <wchar.h> file.
48441         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
48442
48443 2009-01-14  Bruno Haible  <bruno@clisp.org>
48444
48445         * m4/csharp.m4: Don't mention gettext on the serial number line.
48446         * m4/csharpexec.m4: Likewise.
48447         * m4/eaccess.m4: Likewise.
48448         * m4/javaexec.m4: Likewise.
48449         * m4/sig_atomic_t.m4: Likewise.
48450         * m4/tmpdir.m4: Likewise.
48451         * m4/intldir.m4: Bump gettext version.
48452         * m4/lib-ld.m4: Likewise.
48453
48454 2009-01-14  Bruno Haible  <bruno@clisp.org>
48455
48456         * lib/progname.c (set_program_name): Add more comments.
48457         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
48458
48459 2009-01-14  Simon Josefsson  <simon@josefsson.org>
48460
48461         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
48462         were sys/stat.h does not define it.
48463
48464 2009-01-14  Jim Meyering  <meyering@redhat.com>
48465
48466         many *.m4 files: improve m4 quoting
48467         99% of this change was performed by running the following commands:
48468         git ls-files | grep '\.m4$' | xargs perl -pi \
48469           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
48470           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
48471           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
48472           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
48473         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
48474         The remainder were to add Copyright dates, increment serial numbers,
48475         undo some changes in comments, exclude m4/intl.m4, and add quotes
48476         around the "1" in ",1" where the unusual spacing prohibited the
48477         above regexps from doing the job.  For more details, see
48478         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
48479         * m4/acl.m4: Modified.
48480         * m4/afs.m4: Likewise.
48481         * m4/alloca.m4: Likewise.
48482         * m4/argp.m4: Likewise.
48483         * m4/argz.m4: Likewise.
48484         * m4/atexit.m4: Likewise.
48485         * m4/bison-i18n.m4: Likewise.
48486         * m4/bison.m4: Likewise.
48487         * m4/byteswap.m4: Likewise.
48488         * m4/c-stack.m4: Likewise.
48489         * m4/c-strtod.m4: Likewise.
48490         * m4/calloc.m4: Likewise.
48491         * m4/canonicalize-lgpl.m4: Likewise.
48492         * m4/chown.m4: Likewise.
48493         * m4/clock_time.m4: Likewise.
48494         * m4/codeset.m4: Likewise.
48495         * m4/copy-file.m4: Likewise.
48496         * m4/csharp.m4: Likewise.
48497         * m4/csharpcomp.m4: Likewise.
48498         * m4/csharpexec.m4: Likewise.
48499         * m4/d-ino.m4: Likewise.
48500         * m4/d-type.m4: Likewise.
48501         * m4/dirfd.m4: Likewise.
48502         * m4/double-slash-root.m4: Likewise.
48503         * m4/eaccess.m4: Likewise.
48504         * m4/eealloc.m4: Likewise.
48505         * m4/environ.m4: Likewise.
48506         * m4/errno_h.m4: Likewise.
48507         * m4/euidaccess.m4: Likewise.
48508         * m4/execute.m4: Likewise.
48509         * m4/fatal-signal.m4: Likewise.
48510         * m4/fchdir.m4: Likewise.
48511         * m4/fcntl_h.m4: Likewise.
48512         * m4/fileblocks.m4: Likewise.
48513         * m4/filenamecat.m4: Likewise.
48514         * m4/findprog.m4: Likewise.
48515         * m4/flexmember.m4: Likewise.
48516         * m4/fnmatch.m4: Likewise.
48517         * m4/fopen.m4: Likewise.
48518         * m4/fpending.m4: Likewise.
48519         * m4/fprintf-posix.m4: Likewise.
48520         * m4/free.m4: Likewise.
48521         * m4/frexp.m4: Likewise.
48522         * m4/frexpl.m4: Likewise.
48523         * m4/fsusage.m4: Likewise.
48524         * m4/ftruncate.m4: Likewise.
48525         * m4/gc-camellia.m4: Likewise.
48526         * m4/gc-random.m4: Likewise.
48527         * m4/gc.m4: Likewise.
48528         * m4/getaddrinfo.m4: Likewise.
48529         * m4/getcwd-abort-bug.m4: Likewise.
48530         * m4/getcwd-path-max.m4: Likewise.
48531         * m4/getdate.m4: Likewise.
48532         * m4/getdomainname.m4: Likewise.
48533         * m4/getgroups.m4: Likewise.
48534         * m4/gethostname.m4: Likewise.
48535         * m4/gethrxtime.m4: Likewise.
48536         * m4/getline.m4: Likewise.
48537         * m4/getloadavg.m4: Likewise.
48538         * m4/getndelim2.m4: Likewise.
48539         * m4/getpass.m4: Likewise.
48540         * m4/gettext.m4: Likewise.
48541         * m4/gettime.m4: Likewise.
48542         * m4/gettimeofday.m4: Likewise.
48543         * m4/gnulib-common.m4: Likewise.
48544         * m4/group-member.m4: Likewise.
48545         * m4/host-os.m4: Likewise.
48546         * m4/iconv.m4: Likewise.
48547         * m4/iconv_open.m4: Likewise.
48548         * m4/inet_ntop.m4: Likewise.
48549         * m4/inet_pton.m4: Likewise.
48550         * m4/inline.m4: Likewise.
48551         * m4/intldir.m4: Likewise.
48552         * m4/intlmacosx.m4: Likewise.
48553         * m4/intmax.m4: Likewise.
48554         * m4/intmax_t.m4: Likewise.
48555         * m4/inttypes.m4: Likewise.
48556         * m4/inttypes_h.m4: Likewise.
48557         * m4/inttypes-pri.m4: Likewise.
48558         * m4/isapipe.m4: Likewise.
48559         * m4/isnand.m4: Likewise.
48560         * m4/isnanf.m4: Likewise.
48561         * m4/isnanl.m4: Likewise.
48562         * m4/javacomp.m4: Likewise.
48563         * m4/javaexec.m4: Likewise.
48564         * m4/jm-winsz1.m4: Likewise.
48565         * m4/jm-winsz2.m4: Likewise.
48566         * m4/lchown.m4: Likewise.
48567         * m4/lcmessage.m4: Likewise.
48568         * m4/ldexpl.m4: Likewise.
48569         * m4/lib-ld.m4: Likewise.
48570         * m4/lib-link.m4: Likewise.
48571         * m4/libsigsegv.m4: Likewise.
48572         * m4/link-follow.m4: Likewise.
48573         * m4/localcharset.m4: Likewise.
48574         * m4/locale-fr.m4: Likewise.
48575         * m4/locale-ja.m4: Likewise.
48576         * m4/locale-tr.m4: Likewise.
48577         * m4/locale-zh.m4: Likewise.
48578         * m4/lock.m4: Likewise.
48579         * m4/longlong.m4: Likewise.
48580         * m4/ls-mntd-fs.m4: Likewise.
48581         * m4/lstat.m4: Likewise.
48582         * m4/malloc.m4: Likewise.
48583         * m4/mathl.m4: Likewise.
48584         * m4/mbrtowc.m4: Likewise.
48585         * m4/mbstate_t.m4: Likewise.
48586         * m4/mbswidth.m4: Likewise.
48587         * m4/memchr.m4: Likewise.
48588         * m4/memcmp.m4: Likewise.
48589         * m4/memcpy.m4: Likewise.
48590         * m4/memmem.m4: Likewise.
48591         * m4/memmove.m4: Likewise.
48592         * m4/mempcpy.m4: Likewise.
48593         * m4/memrchr.m4: Likewise.
48594         * m4/memset.m4: Likewise.
48595         * m4/minmax.m4: Likewise.
48596         * m4/mkdir-slash.m4: Likewise.
48597         * m4/mkdtemp.m4: Likewise.
48598         * m4/mktime.m4: Likewise.
48599         * m4/mmap-anon.m4: Likewise.
48600         * m4/mountlist.m4: Likewise.
48601         * m4/nanosleep.m4: Likewise.
48602         * m4/nls.m4: Likewise.
48603         * m4/nocrash.m4: Likewise.
48604         * m4/open.m4: Likewise.
48605         * m4/openat.m4: Likewise.
48606         * m4/openmp.m4: Likewise.
48607         * m4/pathmax.m4: Likewise.
48608         * m4/perl.m4: Likewise.
48609         * m4/physmem.m4: Likewise.
48610         * m4/pipe.m4: Likewise.
48611         * m4/po.m4: Likewise.
48612         * m4/poll.m4: Likewise.
48613         * m4/posixtm.m4: Likewise.
48614         * m4/posixver.m4: Likewise.
48615         * m4/printf-frexp.m4: Likewise.
48616         * m4/printf-frexpl.m4: Likewise.
48617         * m4/printf-posix.m4: Likewise.
48618         * m4/printf-posix-rpl.m4: Likewise.
48619         * m4/printf.m4: Likewise.
48620         * m4/progtest.m4: Likewise.
48621         * m4/putenv.m4: Likewise.
48622         * m4/readline.m4: Likewise.
48623         * m4/readlink.m4: Likewise.
48624         * m4/readutmp.m4: Likewise.
48625         * m4/realloc.m4: Likewise.
48626         * m4/regex.m4: Likewise.
48627         * m4/relocatable.m4: Likewise.
48628         * m4/relocatable-lib.m4: Likewise.
48629         * m4/rename-dest-slash.m4: Likewise.
48630         * m4/rename.m4: Likewise.
48631         * m4/rmdir-errno.m4: Likewise.
48632         * m4/rmdir.m4: Likewise.
48633         * m4/roundf.m4: Likewise.
48634         * m4/roundl.m4: Likewise.
48635         * m4/rpmatch.m4: Likewise.
48636         * m4/save-cwd.m4: Likewise.
48637         * m4/selinux-selinux-h.m4: Likewise.
48638         * m4/setenv.m4: Likewise.
48639         * m4/settime.m4: Likewise.
48640         * m4/sig2str.m4: Likewise.
48641         * m4/sig_atomic_t.m4: Likewise.
48642         * m4/signalblocking.m4: Likewise.
48643         * m4/signbit.m4: Likewise.
48644         * m4/sigpipe.m4: Likewise.
48645         * m4/sockets.m4: Likewise.
48646         * m4/sockpfaf.m4: Likewise.
48647         * m4/st_dm_mode.m4: Likewise.
48648         * m4/stat-time.m4: Likewise.
48649         * m4/stdbool.m4: Likewise.
48650         * m4/stdint.m4: Likewise.
48651         * m4/stdint_h.m4: Likewise.
48652         * m4/stpcpy.m4: Likewise.
48653         * m4/stpncpy.m4: Likewise.
48654         * m4/strcase.m4: Likewise.
48655         * m4/strchrnul.m4: Likewise.
48656         * m4/strcspn.m4: Likewise.
48657         * m4/strdup.m4: Likewise.
48658         * m4/strftime.m4: Likewise.
48659         * m4/strndup.m4: Likewise.
48660         * m4/strnlen.m4: Likewise.
48661         * m4/strpbrk.m4: Likewise.
48662         * m4/strptime.m4: Likewise.
48663         * m4/strsep.m4: Likewise.
48664         * m4/strtod.m4: Likewise.
48665         * m4/strtoimax.m4: Likewise.
48666         * m4/strtok_r.m4: Likewise.
48667         * m4/strtol.m4: Likewise.
48668         * m4/strtoll.m4: Likewise.
48669         * m4/strtoul.m4: Likewise.
48670         * m4/strtoull.m4: Likewise.
48671         * m4/strtoumax.m4: Likewise.
48672         * m4/strverscmp.m4: Likewise.
48673         * m4/threadlib.m4: Likewise.
48674         * m4/timegm.m4: Likewise.
48675         * m4/tm_gmtoff.m4: Likewise.
48676         * m4/tmpdir.m4: Likewise.
48677         * m4/tmpfile.m4: Likewise.
48678         * m4/tzset.m4: Likewise.
48679         * m4/uintmax_t.m4: Likewise.
48680         * m4/unlinkdir.m4: Likewise.
48681         * m4/unlocked-io.m4: Likewise.
48682         * m4/uptime.m4: Likewise.
48683         * m4/userspec.m4: Likewise.
48684         * m4/utimbuf.m4: Likewise.
48685         * m4/utime.m4: Likewise.
48686         * m4/utimes-null.m4: Likewise.
48687         * m4/utimes.m4: Likewise.
48688         * m4/vararrays.m4: Likewise.
48689         * m4/vasnprintf.m4: Likewise.
48690         * m4/vfprintf-posix.m4: Likewise.
48691         * m4/vprintf-posix.m4: Likewise.
48692         * m4/wait-process.m4: Likewise.
48693         * m4/wchar_t.m4: Likewise.
48694         * m4/wint_t.m4: Likewise.
48695         * m4/write-any-file.m4: Likewise.
48696         * m4/yield.m4: Likewise.
48697
48698 2009-01-13  Bruno Haible  <bruno@clisp.org>
48699
48700         Avoid test-copy-file.sh failures when ACL support insufficient.
48701         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
48702         TESTS_ENVIRONMENT.
48703         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
48704         Reported by Jim Meyering.
48705
48706 2009-01-13  Bruno Haible  <bruno@clisp.org>
48707
48708         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
48709         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
48710         * modules/unistdio/u8-printf-parse (Files): Likewise.
48711         * modules/unistdio/u32-printf-parse (Files): Likewise.
48712         * modules/unistdio/ulc-printf-parse (Files): Likewise.
48713
48714 2009-01-13  Simon Josefsson  <simon@josefsson.org>
48715
48716         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
48717         and m4/inttypes_h.m4 too.
48718
48719 2009-01-12  Eric Blake  <ebb9@byu.net>
48720
48721         tests: IRIX 6.2 cc can't compile -0.0 into .data
48722         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
48723         rather than at compile-time.
48724         * tests/test-floorl.c (minus_zero): Likewise.
48725         * tests/test-frexpl.c (minus_zero): Likewise.
48726         * tests/test-isnan.c (minus_zerol): Likewise.
48727         * tests/test-isnanl.h (minus_zero): Likewise.
48728         * tests/test-ldexpl.c (minus_zero): Likewise.
48729         * tests/test-roundl.c (minus_zero): Likewise.
48730         * tests/test-signbit.c (minus_zerol): Likewise.
48731         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
48732         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
48733         * tests/test-truncl.c (minus_zero): Likewise.
48734         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
48735         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
48736         Reported by Tom G. Christensen and Nelson H. F. Beebe.
48737
48738 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
48739
48740         regex: fix glibc bug 9697
48741         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
48742         handling.
48743
48744 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
48745
48746         regex: fix glibc bug 697
48747         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
48748         being NULL also if there are no backreferences.
48749
48750 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
48751
48752         regex: merge glibc changes
48753         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
48754         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
48755         re_string_skip_chars, re_string_reconstruct): Likewise.
48756         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
48757
48758 2009-01-07  Jim Meyering  <meyering@redhat.com>
48759
48760         poll: filter through cppi
48761         * lib/poll.c: Indent cpp directives to reflect nesting.
48762
48763 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
48764
48765         poll: don't return uninitialized
48766         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
48767
48768 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
48769
48770         avoid compile failure on AIX 6.1
48771         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
48772         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
48773
48774 2009-01-04  Jim Meyering  <meyering@redhat.com>
48775
48776         remove duplicate inclusion of <stdio.h>
48777         * tests/test-fprintf-posix.c: Likewise.
48778         * tests/test-printf-posix.c: Likewise.
48779         * tests/test-snprintf-posix.c: Likewise.
48780         * tests/test-sprintf-posix.c: Likewise.
48781         * tests/test-vasprintf-posix.c: Likewise.
48782         * tests/test-vfprintf-posix.c: Likewise.
48783         * tests/test-vprintf-posix.c: Likewise.
48784         * tests/test-vsnprintf-posix.c: Likewise.
48785         * tests/test-vsprintf-posix.c: Likewise.
48786
48787 2009-01-03  Jim Meyering  <meyering@redhat.com>
48788
48789         gnulib-tool: fix sed-based filtering
48790         * gnulib-tool (func_filter_filelist): Remove extra backslash
48791         in sed_fff_filter definition.
48792
48793 2009-01-02  Jim Meyering  <meyering@redhat.com>
48794
48795         strftime: avoid compilation failure on Solaris 2.6
48796         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
48797         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
48798         Don't #define mbrlen or mbsinit, since now they're guaranteed to
48799         be available.  Reported by Tom G. Christensen.  Details in
48800         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
48801
48802 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48803             Bruno Haible  <bruno@clisp.org>
48804
48805         Speed up gnulib-tool by doing more string processing through shell
48806         built-ins.
48807         * gnulib-tool (fast_func_append): New variable.
48808         (func_remove_prefix, func_remove_suffix): New functions.
48809         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
48810         (func_filter_filelist): New function.
48811         (func_get_dependencies): Use func_remove_suffix instead of sed.
48812         (func_get_automake_snippet): Use func_filter_filelist instead of a
48813         subshell and sed invocation.
48814
48815 2009-01-01  Bruno Haible  <bruno@clisp.org>
48816
48817         Fix a security bug.
48818         * gnulib-tool (func_import, import, update): Don't allow the characters
48819         '"', '$', '`', '\' in macro arguments that become part of commands that
48820         are evaluated.
48821
48822 2009-01-01  Bruno Haible  <bruno@clisp.org>
48823
48824         * gnulib-tool (func_reset_sigpipe): Add more comments.
48825
48826 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48827
48828         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
48829         func_emit_tests_Makefile_am, func_import): Abort loops early if we
48830         already know the answer.
48831
48832 2009-01-01  Jim Meyering  <meyering@redhat.com>
48833
48834         * lib/version-etc.c (version_etc_va): Update copyright year.
48835
48836 2008-12-30  Bruno Haible  <bruno@clisp.org>
48837
48838         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
48839         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
48840         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
48841
48842 2008-12-29  Eric Blake  <ebb9@byu.net>
48843
48844         multiarch: avoid autoconf AC_REQUIRE bug
48845         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
48846         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
48847         2.63 and older.
48848         Reported by Bruno Haible, and analyzed in
48849         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
48850
48851 2008-12-29  Bruno Haible  <bruno@clisp.org>
48852
48853         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
48854         files in subdirectories correctly.
48855         Reported by Ralf Wildenhues.
48856
48857 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48858
48859         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
48860         rather than 'join FILE -', for Solaris join.
48861
48862 2008-12-29  Bruno Haible  <bruno@clisp.org>
48863
48864         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
48865         quoting.
48866         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
48867         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
48868         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
48869         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
48870         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
48871         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
48872         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
48873         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
48874         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
48875         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
48876         * m4/nls.m4 (AM_NLS): Likewise.
48877         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
48878         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
48879         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
48880         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
48881         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
48882         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
48883         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
48884         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
48885         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
48886         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
48887         * m4/xsize.m4 (gl_XSIZE): Likewise.
48888         Suggested by Jim Meyering.
48889
48890 2008-11-17  Bruce Korb  <bkorb@gnu.org>
48891
48892         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
48893         * lib/parse-duration.c: use a switch instead of cascading if's.
48894
48895 2008-12-29  Eric Blake  <ebb9@byu.net>
48896
48897         wchar.h: supply WEOF on Irix 5.3
48898         * lib/wchar.in.h (wint_t): Also supply WEOF.
48899         * lib/wctype.in.h (wint_t): Likewise.
48900         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
48901         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
48902         Reported by Tom G. Christensen.
48903
48904 2008-12-26  Bruno Haible  <bruno@clisp.org>
48905
48906         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
48907         i486, i586, i686.
48908
48909 2008-12-26  Bruno Haible  <bruno@clisp.org>
48910
48911         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
48912
48913 2008-12-26  Bruno Haible  <bruno@clisp.org>
48914
48915         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
48916         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
48917         not __STDC_CONSTANT_MACROS.
48918         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
48919
48920 2008-12-25  Bruno Haible  <bruno@clisp.org>
48921
48922         Add support for universal builds to vasnprintf.
48923         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
48924         universal builds, guess no.
48925         * modules/vasnprintf-posix (Depends-on): Add multiarch.
48926         * modules/vasprintf-posix (Depends-on): Likewise.
48927         * modules/fprintf-posix (Depends-on): Likewise.
48928         * modules/vfprintf-posix (Depends-on): Likewise.
48929         * modules/snprintf-posix (Depends-on): Likewise.
48930         * modules/vsnprintf-posix (Depends-on): Likewise.
48931         * modules/sprintf-posix (Depends-on): Likewise.
48932         * modules/vsprintf-posix (Depends-on): Likewise.
48933         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
48934         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
48935         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
48936         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
48937         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
48938         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
48939         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
48940
48941         Add support for universal builds to <inttypes.h>.
48942         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
48943         _SCNu64_PREFIX): In Apple
48944         universal builds, define directly, using _LP64.
48945         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
48946         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
48947         * modules/inttypes (Depends-on): Add multiarch.
48948         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
48949
48950         Add support for universal builds to <stdint.h>.
48951         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
48952         universal builds, define directly, using _LP64.
48953         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
48954         Apple universal builds, don't test for the size and suffix of ptrdiff_t
48955         and size_t.
48956         * modules/stdint (Depends-on): Add multiarch.
48957         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
48958
48959         New module 'multiarch'.
48960         * modules/multiarch: New file.
48961         * m4/multiarch.m4: New file.
48962
48963 2008-12-25  Bruno Haible  <bruno@clisp.org>
48964
48965         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
48966
48967 2008-12-25  Bruno Haible  <bruno@clisp.org>
48968
48969         * modules/btowc (License): Relicense under LGPLv2+.
48970         * modules/mbsinit (License): Likewise.
48971         * modules/mbrtowc (License): Likewise.
48972         * modules/wcrtomb (License): Likewise.
48973         * modules/streq (License): Likewise.
48974         Reported by David Lutterkort <lutter@redhat.com>.
48975
48976 2008-12-23  Bruno Haible  <bruno@clisp.org>
48977
48978         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
48979
48980 2008-12-23  Bruno Haible  <bruno@clisp.org>
48981
48982         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
48983         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
48984         GETADDRINFO_LIB, not in LIBS.
48985         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
48986         * modules/canon-host (Link): Likewise.
48987         * NEWS: Mention the change.
48988         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
48989         GETADDRINFO_LIB.
48990
48991 2008-12-22  Bruno Haible  <bruno@clisp.org>
48992
48993         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
48994         * doc/posix-functions/iswalpha_l.texi: Likewise.
48995         * doc/posix-functions/iswblank_l.texi: Likewise.
48996         * doc/posix-functions/iswcntrl_l.texi: Likewise.
48997         * doc/posix-functions/iswctype_l.texi: Likewise.
48998         * doc/posix-functions/iswdigit_l.texi: Likewise.
48999         * doc/posix-functions/iswgraph_l.texi: Likewise.
49000         * doc/posix-functions/iswlower_l.texi: Likewise.
49001         * doc/posix-functions/iswprint_l.texi: Likewise.
49002         * doc/posix-functions/iswpunct_l.texi: Likewise.
49003         * doc/posix-functions/iswspace_l.texi: Likewise.
49004         * doc/posix-functions/iswupper_l.texi: Likewise.
49005         * doc/posix-functions/iswxdigit_l.texi: Likewise.
49006         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
49007         * doc/posix-functions/open_wmemstream.texi: Likewise.
49008         * doc/posix-functions/swscanf.texi: Likewise.
49009         * doc/posix-functions/towctrans_l.texi: Likewise.
49010         * doc/posix-functions/towlower.texi: Likewise.
49011         * doc/posix-functions/towlower_l.texi: Likewise.
49012         * doc/posix-functions/towupper.texi: Likewise.
49013         * doc/posix-functions/towupper_l.texi: Likewise.
49014         * doc/posix-functions/vfwprintf.texi: Likewise.
49015         * doc/posix-functions/vfwscanf.texi: Likewise.
49016         * doc/posix-functions/vswscanf.texi: Likewise.
49017         * doc/posix-functions/vwprintf.texi: Likewise.
49018         * doc/posix-functions/vwscanf.texi: Likewise.
49019         * doc/posix-functions/wcpcpy.texi: Likewise.
49020         * doc/posix-functions/wcpncpy.texi: Likewise.
49021         * doc/posix-functions/wcscasecmp.texi: Likewise.
49022         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
49023         * doc/posix-functions/wcscoll_l.texi: Likewise.
49024         * doc/posix-functions/wcsdup.texi: Likewise.
49025         * doc/posix-functions/wcsncasecmp.texi: Likewise.
49026         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
49027         * doc/posix-functions/wcsnlen.texi: Likewise.
49028         * doc/posix-functions/wcsnrtombs.texi: Likewise.
49029         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
49030         * doc/posix-functions/wctrans_l.texi: Likewise.
49031         * doc/posix-functions/wctype_l.texi: Likewise.
49032         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
49033         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
49034         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
49035         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
49036         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
49037         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
49038         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
49039         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
49040         * doc/glibc-functions/wcschrnul.texi: Likewise.
49041         * doc/glibc-functions/wcsftime_l.texi: Likewise.
49042         * doc/glibc-functions/wcstod_l.texi: Likewise.
49043         * doc/glibc-functions/wcstof_l.texi: Likewise.
49044         * doc/glibc-functions/wcstol_l.texi: Likewise.
49045         * doc/glibc-functions/wcstold_l.texi: Likewise.
49046         * doc/glibc-functions/wcstoll_l.texi: Likewise.
49047         * doc/glibc-functions/wcstoq.texi: Likewise.
49048         * doc/glibc-functions/wcstoul_l.texi: Likewise.
49049         * doc/glibc-functions/wcstoull_l.texi: Likewise.
49050         * doc/glibc-functions/wcstouq.texi: Likewise.
49051         * doc/glibc-functions/wmempcpy.texi: Likewise.
49052
49053 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
49054             Eric Blake  <ebb9@byu.net>
49055             Paolo Bonzini  <bonzini@gnu.org>
49056             Bruno Haible  <bruno@clisp.org>
49057
49058         Make c-stack work on Haiku.
49059         * lib/c-stack.c (SA_ONSTACK): Define fallback.
49060         (c_stack_action): Use SA_ONSTACK flag.
49061
49062 2008-12-22  Bruno Haible  <bruno@clisp.org>
49063
49064         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
49065
49066 2008-12-22  Bruno Haible  <bruno@clisp.org>
49067
49068         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
49069         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
49070         being overridden.
49071         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
49072         New macros.
49073         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
49074         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
49075         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
49076         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
49077
49078 2008-12-22  Bruno Haible  <bruno@clisp.org>
49079
49080         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
49081         from test code.
49082
49083 2008-12-22  Eric Blake  <ebb9@byu.net>
49084
49085         Avoid gcc warnings on cygwin.
49086         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
49087         Avoid unused variable.
49088         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
49089         Likewise.
49090
49091 2008-12-22  Bruno Haible  <bruno@clisp.org>
49092
49093         Remove HAVE_MBRTOWC conditionals.
49094         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
49095         (mbscasecmp): Assume mbrtowc function.
49096         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
49097         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
49098         * lib/mbschr.c: Include mbuiter.h unconditionally.
49099         (mbschr): Assume mbrtowc function.
49100         * lib/mbscspn.c: Include mbuiter.h unconditionally.
49101         (mbscspn): Assume mbrtowc function.
49102         * lib/mbslen.c: Include mbuiter.h unconditionally.
49103         (mbslen): Assume mbrtowc function.
49104         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
49105         (mbsncasecmp): Assume mbrtowc function.
49106         * lib/mbsnlen.c: Include mbiter.h unconditionally.
49107         (mbsnlen): Assume mbrtowc function.
49108         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
49109         (mbspbrk): Assume mbrtowc function.
49110         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
49111         (mbspcasecmp): Assume mbrtowc function.
49112         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
49113         (mbsrchr): Assume mbrtowc function.
49114         * lib/mbssep.c: Include mbuiter.h unconditionally.
49115         (mbssep): Assume mbrtowc function.
49116         * lib/mbsspn.c: Include mbuiter.h unconditionally.
49117         (mbsspn): Assume mbrtowc function.
49118         * lib/mbsstr.c: Include mbuiter.h unconditionally.
49119         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
49120         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
49121         (mbstok_r): Assume mbrtowc function.
49122         * lib/propername.c: Include mbuiter.h unconditionally.
49123         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
49124         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
49125         (trim2): Assume mbrtowc function.
49126         * lib/mbswidth.c (mbsinit): Remove fallback definition.
49127         (mbsnwidth): Assume mbrtowc function.
49128         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
49129         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
49130         fallback definitions.
49131         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
49132
49133 2008-12-22  Bruno Haible  <bruno@clisp.org>
49134
49135         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
49136
49137 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
49138
49139         * modules/regex: Request emulations for the mb*/wc* functions we need.
49140         * m4/regex.m4: Don't look for those functions here.
49141         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
49142
49143 2008-12-22  Bruno Haible  <bruno@clisp.org>
49144
49145         * modules/fnmatch (Depends-on): Remove duplicated dependency.
49146
49147 2008-12-21  Bruno Haible  <bruno@clisp.org>
49148
49149         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
49150         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
49151         (Include): Remove conditionalization.
49152         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
49153         (Include): Remove conditionalization.
49154         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
49155         (Include): Remove conditionalization.
49156         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
49157         * m4/mbfile.m4 (gl_MBFILE): Likewise.
49158         * NEWS: Mention the change.
49159         Reported by Alan Hourihane <alanh@fairlite.co.uk>
49160         via Sergey Poznyakoff <gray@gnu.org.ua>.
49161
49162 2008-12-21  Bruno Haible  <bruno@clisp.org>
49163
49164         * MODULES.html.sh (Extended multibyte and wide character utilities
49165         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
49166         wcrtomb, wcsrtombs.
49167         (Support for systems lacking POSIX:2008): Add accept, bind, close,
49168         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
49169         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
49170         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
49171
49172 2008-12-21  Bruno Haible  <bruno@clisp.org>
49173
49174         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
49175
49176 2008-12-21  Bruno Haible  <bruno@clisp.org>
49177
49178         * modules/wcsnrtombs-tests: New file.
49179         * tests/test-wcsnrtombs1.sh: New file.
49180         * tests/test-wcsnrtombs2.sh: New file.
49181         * tests/test-wcsnrtombs3.sh: New file.
49182         * tests/test-wcsnrtombs4.sh: New file.
49183         * tests/test-wcsnrtombs.c: New file.
49184
49185         New module 'wcsnrtombs'.
49186         * lib/wchar.in.h (wcsnrtombs): New declaration.
49187         * lib/wcsnrtombs.c: New file.
49188         * lib/wcsrtombs-state.c: New file.
49189         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
49190         (internal_state): Remove variable.
49191         * m4/wcsnrtombs.m4: New file.
49192         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
49193         compilation units.
49194         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
49195         HAVE_WCSNRTOMBS.
49196         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
49197         HAVE_WCSNRTOMBS.
49198         * modules/wcsnrtombs: New file.
49199         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
49200         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
49201
49202 2008-12-21  Bruno Haible  <bruno@clisp.org>
49203
49204         * modules/wcsrtombs-tests: New file.
49205         * tests/test-wcsrtombs1.sh: New file.
49206         * tests/test-wcsrtombs2.sh: New file.
49207         * tests/test-wcsrtombs3.sh: New file.
49208         * tests/test-wcsrtombs4.sh: New file.
49209         * tests/test-wcsrtombs.c: New file.
49210
49211         New module 'wcsrtombs'.
49212         * lib/wchar.in.h (wcsrtombs): New declaration.
49213         * lib/wcsrtombs.c: New file.
49214         * m4/wcsrtombs.m4: New file.
49215         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
49216         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
49217         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
49218         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
49219         * modules/wcsrtombs: New file.
49220         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
49221         bugs.
49222
49223 2008-12-21  Bruno Haible  <bruno@clisp.org>
49224
49225         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
49226         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
49227         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
49228         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
49229         if not correct.
49230         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
49231         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
49232         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
49233         m4/locale-zh.m4, m4/codeset.m4.
49234         * doc/posix-functions/wcrtomb.texi: Document the bug.
49235
49236 2008-12-21  Bruno Haible  <bruno@clisp.org>
49237
49238         Work around a btowc() bug on IRIX 6.5.
49239         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
49240         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
49241         REPLACE_WTOBC if not.
49242         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
49243         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
49244         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
49245
49246 2008-12-21  Bruno Haible  <bruno@clisp.org>
49247
49248         * modules/wcrtomb-tests: New file.
49249         * tests/test-wcrtomb.sh: New file.
49250         * tests/test-wcrtomb.c: New file.
49251
49252         New module 'wcrtomb'.
49253         * lib/wchar.in.h (wcrtomb): New declaration.
49254         * lib/wcrtomb.c: New file.
49255         * m4/wcrtomb.m4: New file.
49256         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
49257         HAVE_WCRTOMB.
49258         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
49259         HAVE_WCRTOMB.
49260         * modules/wcrtomb: New file.
49261         * doc/posix-functions/wcrtomb.texi: Mention the new module.
49262
49263 2008-12-21  Bruno Haible  <bruno@clisp.org>
49264
49265         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
49266         * modules/mbsrtowcs (Files): Likewise.
49267         * modules/wctob (Files): Likewise.
49268         * modules/c-strcase-tests (Files): Likewise.
49269         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
49270         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
49271         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
49272         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
49273         * modules/vasnprintf-posix-tests (Files): Likewise.
49274
49275 2008-12-21  William Pursell  <bill.pursell@gmail.com>
49276
49277         gitlog-to-changelog: pass all command-line arguments to git-log
49278         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
49279         it is sometimes convenient to filter the commits in various ways.
49280         gitlog-to-changelog only allows --since to specify a start date,
49281         but git-log itself supports many other filtering mechanisms.
49282         At the moment, I want to filter by branch name.  Rather than
49283         adding a --branch option to gitlog-to-changelog, it seems more
49284         flexible to simply pass all options directly to git-log and let
49285         git do the work.  Notice that this effectively makes --since a
49286         redundant option for gitlog-to-changelog, but removing it would
49287         require current usage to change since calls would then require
49288         an additional '--'.
49289
49290 2008-12-21  Bruno Haible  <bruno@clisp.org>
49291
49292         * modules/mbsnrtowcs-tests: New file.
49293         * tests/test-mbsnrtowcs1.sh: New file.
49294         * tests/test-mbsnrtowcs2.sh: New file.
49295         * tests/test-mbsnrtowcs3.sh: New file.
49296         * tests/test-mbsnrtowcs4.sh: New file.
49297         * tests/test-mbsnrtowcs.c: New file.
49298
49299         New module 'mbsnrtowcs'.
49300         * lib/wchar.in.h (mbsnrtowcs): New declaration.
49301         * lib/mbsnrtowcs.c: New file.
49302         * lib/mbsrtowcs-state.c: New file.
49303         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
49304         (internal_state): Remove variable.
49305         * m4/mbsnrtowcs.m4: New file.
49306         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
49307         compilation units.
49308         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
49309         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
49310         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
49311         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
49312         * modules/mbsnrtowcs: New file.
49313         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
49314         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
49315         portability problem.
49316
49317 2008-12-21  Bruno Haible  <bruno@clisp.org>
49318
49319         Work around mbsrtowcs bug.
49320         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
49321         (gl_FUNC_MBSRTOWCS): Invoke it.
49322         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
49323         m4/locale-zh.m4.
49324         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
49325
49326 2008-12-21  Bruno Haible  <bruno@clisp.org>
49327
49328         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
49329
49330 2008-12-21  Bruno Haible  <bruno@clisp.org>
49331
49332         Update doc for AIX.
49333         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
49334         16-bit wchar_t type.
49335         * doc/posix-functions/btowc.texi: Likewise.
49336         * doc/posix-functions/fgetwc.texi: Likewise.
49337         * doc/posix-functions/fgetws.texi: Likewise.
49338         * doc/posix-functions/fputwc.texi: Likewise.
49339         * doc/posix-functions/fputws.texi: Likewise.
49340         * doc/posix-functions/fwide.texi: Likewise.
49341         * doc/posix-functions/fwprintf.texi: Likewise.
49342         * doc/posix-functions/fwscanf.texi: Likewise.
49343         * doc/posix-functions/getwchar.texi: Likewise.
49344         * doc/posix-functions/getwc.texi: Likewise.
49345         * doc/posix-functions/iswalnum.texi: Likewise.
49346         * doc/posix-functions/iswalpha.texi: Likewise.
49347         * doc/posix-functions/iswblank.texi: Likewise.
49348         * doc/posix-functions/iswcntrl.texi: Likewise.
49349         * doc/posix-functions/iswctype.texi: Likewise.
49350         * doc/posix-functions/iswdigit.texi: Likewise.
49351         * doc/posix-functions/iswgraph.texi: Likewise.
49352         * doc/posix-functions/iswlower.texi: Likewise.
49353         * doc/posix-functions/iswprint.texi: Likewise.
49354         * doc/posix-functions/iswpunct.texi: Likewise.
49355         * doc/posix-functions/iswspace.texi: Likewise.
49356         * doc/posix-functions/iswupper.texi: Likewise.
49357         * doc/posix-functions/iswxdigit.texi: Likewise.
49358         * doc/posix-functions/mbrtowc.texi: Likewise.
49359         * doc/posix-functions/mbsrtowcs.texi: Likewise.
49360         * doc/posix-functions/mbstowcs.texi: Likewise.
49361         * doc/posix-functions/mbtowc.texi: Likewise.
49362         * doc/posix-functions/putwchar.texi: Likewise.
49363         * doc/posix-functions/putwc.texi: Likewise.
49364         * doc/posix-functions/swprintf.texi: Likewise.
49365         * doc/posix-functions/tolower.texi: Likewise.
49366         * doc/posix-functions/toupper.texi: Likewise.
49367         * doc/posix-functions/towctrans.texi: Likewise.
49368         * doc/posix-functions/ungetwc.texi: Likewise.
49369         * doc/posix-functions/vswprintf.texi: Likewise.
49370         * doc/posix-functions/wcrtomb.texi: Likewise.
49371         * doc/posix-functions/wcscat.texi: Likewise.
49372         * doc/posix-functions/wcschr.texi: Likewise.
49373         * doc/posix-functions/wcscmp.texi: Likewise.
49374         * doc/posix-functions/wcscoll.texi: Likewise.
49375         * doc/posix-functions/wcscpy.texi: Likewise.
49376         * doc/posix-functions/wcscspn.texi: Likewise.
49377         * doc/posix-functions/wcsftime.texi: Likewise.
49378         * doc/posix-functions/wcslen.texi: Likewise.
49379         * doc/posix-functions/wcsncat.texi: Likewise.
49380         * doc/posix-functions/wcsncmp.texi: Likewise.
49381         * doc/posix-functions/wcsncpy.texi: Likewise.
49382         * doc/posix-functions/wcspbrk.texi: Likewise.
49383         * doc/posix-functions/wcsrchr.texi: Likewise.
49384         * doc/posix-functions/wcsrtombs.texi: Likewise.
49385         * doc/posix-functions/wcsspn.texi: Likewise.
49386         * doc/posix-functions/wcsstr.texi: Likewise.
49387         * doc/posix-functions/wcstod.texi: Likewise.
49388         * doc/posix-functions/wcstof.texi: Likewise.
49389         * doc/posix-functions/wcstoimax.texi: Likewise.
49390         * doc/posix-functions/wcstok.texi: Likewise.
49391         * doc/posix-functions/wcstold.texi: Likewise.
49392         * doc/posix-functions/wcstoll.texi: Likewise.
49393         * doc/posix-functions/wcstol.texi: Likewise.
49394         * doc/posix-functions/wcstombs.texi: Likewise.
49395         * doc/posix-functions/wcstoull.texi: Likewise.
49396         * doc/posix-functions/wcstoul.texi: Likewise.
49397         * doc/posix-functions/wcstoumax.texi: Likewise.
49398         * doc/posix-functions/wcswidth.texi: Likewise.
49399         * doc/posix-functions/wcsxfrm.texi: Likewise.
49400         * doc/posix-functions/wctob.texi: Likewise.
49401         * doc/posix-functions/wctomb.texi: Likewise.
49402         * doc/posix-functions/wctrans.texi: Likewise.
49403         * doc/posix-functions/wctype.texi: Likewise.
49404         * doc/posix-functions/wcwidth.texi: Likewise.
49405         * doc/posix-functions/wmemchr.texi: Likewise.
49406         * doc/posix-functions/wmemcmp.texi: Likewise.
49407         * doc/posix-functions/wmemcpy.texi: Likewise.
49408         * doc/posix-functions/wmemmove.texi: Likewise.
49409         * doc/posix-functions/wmemset.texi: Likewise.
49410         * doc/posix-functions/wprintf.texi: Likewise.
49411         * doc/posix-functions/wscanf.texi: Likewise.
49412
49413 2008-12-21  Bruno Haible  <bruno@clisp.org>
49414
49415         Update doc for HP-UX 11.11.
49416         * doc/posix-functions/btowc.texi: Clarify that the function is missing
49417         in HP-UX version 11.00, not in all versions of HP-UX 11.
49418         * doc/posix-functions/fwide.texi: Likewise.
49419         * doc/posix-functions/fwprintf.texi: Likewise.
49420         * doc/posix-functions/fwscanf.texi: Likewise.
49421         * doc/posix-functions/inet_ntop.texi: Likewise.
49422         * doc/posix-functions/inet_pton.texi: Likewise.
49423         * doc/posix-functions/mbrlen.texi: Likewise.
49424         * doc/posix-functions/mbrtowc.texi: Likewise.
49425         * doc/posix-functions/mbsinit.texi: Likewise.
49426         * doc/posix-functions/mbsrtowcs.texi: Likewise.
49427         * doc/posix-functions/swprintf.texi: Likewise.
49428         * doc/posix-functions/swscanf.texi: Likewise.
49429         * doc/posix-functions/towctrans.texi: Likewise.
49430         * doc/posix-functions/vfwprintf.texi: Likewise.
49431         * doc/posix-functions/vswprintf.texi: Likewise.
49432         * doc/posix-functions/vwprintf.texi: Likewise.
49433         * doc/posix-functions/wcrtomb.texi: Likewise.
49434         * doc/posix-functions/wcsrtombs.texi: Likewise.
49435         * doc/posix-functions/wcsstr.texi: Likewise.
49436         * doc/posix-functions/wctob.texi: Likewise.
49437         * doc/posix-functions/wctrans.texi: Likewise.
49438         * doc/posix-functions/wmemchr.texi: Likewise.
49439         * doc/posix-functions/wmemcmp.texi: Likewise.
49440         * doc/posix-functions/wmemcpy.texi: Likewise.
49441         * doc/posix-functions/wmemmove.texi: Likewise.
49442         * doc/posix-functions/wmemset.texi: Likewise.
49443         * doc/posix-functions/wprintf.texi: Likewise.
49444         * doc/posix-functions/wscanf.texi: Likewise.
49445
49446 2008-12-21  Bruno Haible  <bruno@clisp.org>
49447
49448         Work around a portability problem.
49449         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
49450         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
49451
49452 2008-12-20  Bruno Haible  <bruno@clisp.org>
49453
49454         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
49455         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
49456         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
49457         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
49458         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
49459
49460         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
49461         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
49462         set.
49463         (GNULIB_defined_mbstate_t): New macro.
49464         (mbsinit): Redefine if REPLACE_MBSINIT is set.
49465         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
49466         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
49467         reuses the system's mbrtowc function but works around the bugs.
49468         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
49469         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
49470         macros.
49471         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
49472         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
49473         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
49474         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
49475         REPLACE_MBSINIT if mbsinit needs to be overridden.
49476         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
49477         REPLACE_MBSINIT, REPLACE_MBRTOWC.
49478         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
49479         REPLACE_MBSINIT, REPLACE_MBRTOWC.
49480         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
49481         m4/locale-zh.m4.
49482         (Depends): Add mbsinit.
49483         * modules/mbsinit (Depends): Add mbrtowc.
49484         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
49485
49486 2008-12-20  Bruno Haible  <bruno@clisp.org>
49487
49488         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
49489         so that there are no conversion errors on AIX.
49490         * tests/test-mbsrtowcs.c (main): LIkewise.
49491
49492 2008-12-20  Bruno Haible  <bruno@clisp.org>
49493
49494         Work around wctob bug on Solaris <= 9.
49495         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
49496         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
49497         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
49498         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
49499         * modules/wctob (Files): Add m4/locale-fr.m4.
49500         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
49501
49502 2008-12-20  Bruno Haible  <bruno@clisp.org>
49503
49504         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
49505         /dev/null.
49506         * tests/test-select-in.sh: Likewise.
49507         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
49508
49509 2008-12-20  Bruno Haible  <bruno@clisp.org>
49510
49511         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
49512         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
49513         Cygwin 1.5.x.
49514
49515 2008-12-20  Bruno Haible  <bruno@clisp.org>
49516
49517         Ensure mbstate_t is defined on HP-UX 11.11.
49518         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
49519         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
49520         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
49521         AC_USE_SYSTEM_EXTENSIONS.
49522         * modules/fnmatch (Depends-on): Add extensions.
49523         * modules/mbrlen (Depends-on): Likewise.
49524         * modules/mbrtowc (Depends-on): Likewise.
49525         * modules/mbsinit (Depends-on): Likewise.
49526         * modules/mbsrtowcs (Depends-on): Likewise.
49527         * modules/mbswidth (Depends-on): Likewise.
49528         * modules/quotearg (Depends-on): Likewise.
49529         * modules/strftime (Depends-on): Likewise.
49530
49531 2008-12-20  Bruno Haible  <bruno@clisp.org>
49532
49533         Ensure wctob is declared on IRIX 6.5.
49534         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
49535         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
49536         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
49537         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
49538         of HAVE_WCTOB.
49539         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
49540         HAVE_WCTOB.
49541         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
49542
49543 2008-12-19  Bruno Haible  <bruno@clisp.org>
49544
49545         * modules/mbsrtowcs-tests: New file.
49546         * tests/test-mbsrtowcs1.sh: New file.
49547         * tests/test-mbsrtowcs2.sh: New file.
49548         * tests/test-mbsrtowcs3.sh: New file.
49549         * tests/test-mbsrtowcs4.sh: New file.
49550         * tests/test-mbsrtowcs.c: New file.
49551
49552         New module 'mbsrtowcs'.
49553         * lib/wchar.in.h (mbsrtowcs): New declaration.
49554         * lib/mbsrtowcs.c: New file.
49555         * m4/mbsrtowcs.m4: New file.
49556         * modules/mbsrtowcs: New file.
49557         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
49558         HAVE_MBSRTOWCS.
49559         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
49560         HAVE_MBSRTOWCS.
49561         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
49562
49563 2008-12-19  Bruno Haible  <bruno@clisp.org>
49564
49565         New module 'mbrlen'.
49566         * lib/wchar.in.h (mbrlen): New declaration.
49567         * lib/mbrlen.c: New file.
49568         * m4/mbrlen.m4: New file.
49569         * modules/mbrlen: New file.
49570         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
49571         HAVE_MBRLEN.
49572         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
49573         HAVE_MBRLEN.
49574         * doc/posix-functions/mbrlen.texi: Document the new module.
49575
49576 2008-12-19  Bruno Haible  <bruno@clisp.org>
49577
49578         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
49579         * modules/mbrtowc (Depends-on): Add verify.
49580         Suggested by Paul Eggert.
49581
49582 2008-12-18  Bruno Haible  <bruno@clisp.org>
49583
49584         * modules/mbsinit-tests: New file.
49585         * tests/test-mbsinit.sh: New file.
49586         * tests/test-mbsinit.c: New file.
49587
49588 2008-12-18  Bruno Haible  <bruno@clisp.org>
49589
49590         * modules/mbrtowc-tests: New file.
49591         * tests/test-mbrtowc1.sh: New file.
49592         * tests/test-mbrtowc2.sh: New file.
49593         * tests/test-mbrtowc3.sh: New file.
49594         * tests/test-mbrtowc4.sh: New file.
49595         * tests/test-mbrtowc.c: New file.
49596
49597         New module 'mbrtowc'.
49598         * lib/wchar.in.h (mbstate_t): Override when the system does not have
49599         mbsinit and mbrtowc.
49600         (mbrtowc): New declaration.
49601         * lib/mbrtowc.c: New file.
49602         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
49603         * modules/mbrtowc: New file.
49604         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
49605         HAVE_MBRTOWC.
49606         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
49607         HAVE_MBRTOWC.
49608         * doc/posix-functions/mbrtowc.texi: Document the new module.
49609
49610 2008-12-18  Bruno Haible  <bruno@clisp.org>
49611
49612         New module 'wctob'.
49613         * lib/wchar.in.h (wctob): New declaration.
49614         * lib/wctob.c: New file.
49615         * m4/wctob.m4: New file.
49616         * modules/wctob: New file.
49617         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
49618         HAVE_WCTOB.
49619         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
49620         * doc/posix-functions/wctob.texi: Document the new module.
49621
49622 2008-12-18  Bruno Haible  <bruno@clisp.org>
49623
49624         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
49625         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
49626
49627 2008-12-18  Simon Josefsson  <simon@josefsson.org>
49628
49629         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
49630         G. Christensen" <tgc@jupiterrise.com>.
49631
49632         * lib/flock.c: Need to include errno.h.  Reported by "Tom
49633         G. Christensen" <tgc@jupiterrise.com>.
49634
49635         * lib/flock.c: Need to include string.h.  Reported by "Tom
49636         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
49637         <ebb9@byu.net>.
49638
49639 2008-12-18  Bruno Haible  <bruno@clisp.org>
49640
49641         * m4/locale-ja.m4: New file, from GNU gettext.
49642
49643 2008-12-17  Bruno Haible  <bruno@clisp.org>
49644
49645         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
49646         Suggested by Eric Blake.
49647
49648 2008-12-17  Bruno Haible  <bruno@clisp.org>
49649
49650         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
49651
49652 2008-12-17  Bruno Haible  <bruno@clisp.org>
49653
49654         * lib/mbsinit.c: Include verify.h. Verify an assumption.
49655         * modules/mbsinit (Depends-on): Add verify.
49656         Suggested by Paul Eggert.
49657
49658 2008-12-17  Bruno Haible  <bruno@clisp.org>
49659
49660         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
49661         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
49662         gl_FUNC_MBRTOWC.
49663         * m4/mbiter.m4 (gl_MBITER): LIkewise.
49664         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
49665         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
49666         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
49667         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
49668         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
49669         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
49670         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
49671         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
49672         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
49673         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
49674         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
49675         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
49676         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
49677         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
49678         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
49679         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
49680         * modules/trim (configure.ac): Likewise.
49681
49682 2008-12-17  Bruno Haible  <bruno@clisp.org>
49683
49684         * modules/btowc-tests: New file.
49685         * tests/test-btowc1.sh: New file.
49686         * tests/test-btowc2.sh: New file.
49687         * tests/test-btowc.c: New file.
49688
49689         New module 'btowc'.
49690         * lib/wchar.in.h (btowc): New declaration.
49691         * lib/btowc.c: New file.
49692         * m4/btowc.m4: New file.
49693         * modules/btowc: New file.
49694         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
49695         HAVE_BTOWC.
49696         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
49697         * doc/posix-functions/btowc.texi: Document the new module.
49698
49699 2008-12-17  Bruno Haible  <bruno@clisp.org>
49700
49701         New module 'mbsinit'.
49702         * lib/wchar.in.h (mbsinit): New declaration.
49703         * lib/mbsinit.c: New file.
49704         * m4/mbsinit.m4: New file.
49705         * modules/mbsinit: New file.
49706         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
49707         HAVE_MBSINIT.
49708         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
49709         HAVE_MBSINIT.
49710         * doc/posix-functions/mbsinit.texi: Document the new module.
49711
49712 2008-12-16  Bruno Haible  <bruno@clisp.org>
49713
49714         * lib/unistd.in.h: Add comment.
49715         * tests/test-environ.c: Don't include <stdlib.h>.
49716
49717 2008-12-16  Bruno Haible  <bruno@clisp.org>
49718
49719         * lib/parse-duration.h (parse_duration): Document return value
49720         convention.
49721         * lib/parse-duration.c: Include specification header first. Add
49722         comments.
49723         (_): Remove macro.
49724         (parse_year_month_day, parse_hour_minute_second): Move side effects
49725         outside of strchr call.
49726         (parse_non_iso8601): Move side effects outside of isspace call.
49727         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
49728         call.
49729
49730 2008-12-16  Bruno Haible  <bruno@clisp.org>
49731
49732         * tests/test-parse-duration.sh: Produce no output when the test
49733         succeeds.
49734
49735 2008-12-16  Bruno Haible  <bruno@clisp.org>
49736
49737         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
49738         expressions.
49739
49740 2008-12-15  Bruno Haible  <bruno@clisp.org>
49741
49742         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
49743         * doc/glibc-functions/flistxattr.texi: Likewise.
49744         * doc/glibc-functions/fopencookie.texi: Likewise.
49745         * doc/glibc-functions/fremovexattr.texi: Likewise.
49746         * doc/glibc-functions/fsetxattr.texi: Likewise.
49747         * doc/glibc-functions/getxattr.texi: Likewise.
49748         * doc/glibc-functions/lgetxattr.texi: Likewise.
49749         * doc/glibc-functions/listxattr.texi: Likewise.
49750         * doc/glibc-functions/llistxattr.texi: Likewise.
49751         * doc/glibc-functions/lremovexattr.texi: Likewise.
49752         * doc/glibc-functions/lsetxattr.texi: Likewise.
49753         * doc/glibc-functions/removexattr.texi: Likewise.
49754         * doc/glibc-functions/setxattr.texi: Likewise.
49755         * doc/posix-functions/open_memstream.texi: Likewise.
49756
49757 2008-12-15  Eric Blake  <ebb9@byu.net>
49758
49759         Update doc for cygwin 1.7.
49760         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
49761         functions.
49762         * doc/posix-functions/fchmodat.texi: Likewise.
49763         * doc/posix-functions/fchownat.texi: Likewise.
49764         * doc/posix-functions/fdopendir.texi: Likewise.
49765         * doc/posix-functions/fmemopen.texi: Likewise.
49766         * doc/posix-functions/freeaddrinfo.texi: Likewise.
49767         * doc/posix-functions/fstatat.texi: Likewise.
49768         * doc/posix-functions/futimens.texi: Likewise.
49769         * doc/posix-functions/gai_strerror.texi: Likewise.
49770         * doc/posix-functions/getaddrinfo.texi: Likewise.
49771         * doc/posix-functions/getnameinfo.texi: Likewise.
49772         * doc/posix-functions/if_freenameindex.texi: Likewise.
49773         * doc/posix-functions/if_indextoname.texi: Likewise.
49774         * doc/posix-functions/if_nameindex.texi: Likewise.
49775         * doc/posix-functions/if_nametoindex.texi: Likewise.
49776         * doc/posix-functions/insque.texi: Likewise.
49777         * doc/posix-functions/linkat.texi: Likewise.
49778         * doc/posix-functions/llrint.texi: Likewise.
49779         * doc/posix-functions/llrintf.texi: Likewise.
49780         * doc/posix-functions/llrintl.texi: Likewise.
49781         * doc/posix-functions/lockf.texi: Likewise.
49782         * doc/posix-functions/lrintl.texi: Likewise.
49783         * doc/posix-functions/mkdirat.texi: Likewise.
49784         * doc/posix-functions/mkfifoat.texi: Likewise.
49785         * doc/posix-functions/mknodat.texi: Likewise.
49786         * doc/posix-functions/mq_close.texi: Likewise.
49787         * doc/posix-functions/mq_getattr.texi: Likewise.
49788         * doc/posix-functions/mq_notify.texi: Likewise.
49789         * doc/posix-functions/mq_open.texi: Likewise.
49790         * doc/posix-functions/mq_receive.texi: Likewise.
49791         * doc/posix-functions/mq_send.texi: Likewise.
49792         * doc/posix-functions/mq_setattr.texi: Likewise.
49793         * doc/posix-functions/mq_timedreceive.texi: Likewise.
49794         * doc/posix-functions/mq_timedsend.texi: Likewise.
49795         * doc/posix-functions/mq_unlink.texi: Likewise.
49796         * doc/posix-functions/open_memstream.texi: Likewise.
49797         * doc/posix-functions/openat.texi: Likewise.
49798         * doc/posix-functions/posix_fadvise.texi: Likewise.
49799         * doc/posix-functions/posix_fallocate.texi: Likewise.
49800         * doc/posix-functions/posix_madvise.texi: Likewise.
49801         * doc/posix-functions/posix_memalign.texi: Likewise.
49802         * doc/posix-functions/posix_openpt.texi: Likewise.
49803         * doc/posix-functions/readlinkat.texi: Likewise.
49804         * doc/posix-functions/remque.texi: Likewise.
49805         * doc/posix-functions/renameat.texi: Likewise.
49806         * doc/posix-functions/rintl.texi: Likewise.
49807         * doc/posix-functions/sem_unlink.texi: Likewise.
49808         * doc/posix-functions/shm_open.texi: Likewise.
49809         * doc/posix-functions/shm_unlink.texi: Likewise.
49810         * doc/posix-functions/signgam.texi: Likewise.
49811         * doc/posix-functions/sigset.texi: Likewise.
49812         * doc/posix-functions/stpcpy.texi: Likewise.
49813         * doc/posix-functions/stpncpy.texi: Likewise.
49814         * doc/posix-functions/strerror.texi: Likewise.
49815         * doc/posix-functions/strtod.texi: Likewise.
49816         * doc/posix-functions/symlinkat.texi: Likewise.
49817         * doc/posix-functions/unlinkat.texi: Likewise.
49818         * doc/posix-functions/utimensat.texi: Likewise.
49819         * doc/glibc-functions/bindresvport.texi: Likewise.
49820         * doc/glibc-functions/dn_expand.texi: Likewise.
49821         * doc/glibc-functions/exp10.texi: Likewise.
49822         * doc/glibc-functions/exp10f.texi: Likewise.
49823         * doc/glibc-functions/fgetxattr.texi: Likewise.
49824         * doc/glibc-functions/flistxattr.texi: Likewise.
49825         * doc/glibc-functions/fopencookie.texi: Likewise.
49826         * doc/glibc-functions/freeifaddrs.texi: Likewise.
49827         * doc/glibc-functions/fremovexattr.texi: Likewise.
49828         * doc/glibc-functions/fsetxattr.texi: Likewise.
49829         * doc/glibc-functions/getifaddrs.texi: Likewise.
49830         * doc/glibc-functions/getxattr.texi: Likewise.
49831         * doc/glibc-functions/lgetxattr.texi: Likewise.
49832         * doc/glibc-functions/listxattr.texi: Likewise.
49833         * doc/glibc-functions/llistxattr.texi: Likewise.
49834         * doc/glibc-functions/lremovexattr.texi: Likewise.
49835         * doc/glibc-functions/lsetxattr.texi: Likewise.
49836         * doc/glibc-functions/pow10.texi: Likewise.
49837         * doc/glibc-functions/pow10f.texi: Likewise.
49838         * doc/glibc-functions/rcmd_af.texi: Likewise.
49839         * doc/glibc-functions/removexattr.texi: Likewise.
49840         * doc/glibc-functions/res_init.texi: Likewise.
49841         * doc/glibc-functions/res_mkquery.texi: Likewise.
49842         * doc/glibc-functions/res_query.texi: Likewise.
49843         * doc/glibc-functions/res_querydomain.texi: Likewise.
49844         * doc/glibc-functions/res_send.texi: Likewise.
49845         * doc/glibc-functions/rresvport_af.texi: Likewise.
49846         * doc/glibc-functions/setxattr.texi: Likewise.
49847         * doc/glibc-functions/strcasestr.texi: Likewise.
49848
49849 2008-12-15  Bruno Haible  <bruno@clisp.org>
49850
49851         Fix compilation error on OSF/1 4.0.
49852         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
49853         <sys/time.h>, simply delegate to the system header.
49854         Reported by Daniel Richard G. <oss@teragram.com>.
49855
49856 2008-12-15  Bruno Haible  <bruno@clisp.org>
49857
49858         * doc/posix-functions/openat.texi: Mention the 'openat' module.
49859         * doc/posix-functions/fchmodat.texi: Likewise.
49860         * doc/posix-functions/fchownat.texi: Likewise.
49861         * doc/posix-functions/fdopendir.texi: Likewise.
49862         * doc/posix-functions/fstatat.texi: Likewise.
49863         * doc/posix-functions/mkdirat.texi: Likewise.
49864         * doc/posix-functions/unlinkat.texi: Likewise.
49865
49866 2008-12-14  Bruno Haible  <bruno@clisp.org>
49867
49868         Update doc for POSIX:2008.
49869         * doc/posix-functions/faccessat.texi: New file.
49870         * doc/posix-functions/fchmodat.texi: New file.
49871         * doc/posix-functions/fchownat.texi: New file.
49872         * doc/posix-functions/fdopendir.texi: New file.
49873         * doc/posix-functions/fstatat.texi: New file.
49874         * doc/posix-functions/futimens.texi: New file.
49875         * doc/posix-functions/linkat.texi: New file.
49876         * doc/posix-functions/mkdirat.texi: New file.
49877         * doc/posix-functions/mkfifoat.texi: New file.
49878         * doc/posix-functions/mknodat.texi: New file.
49879         * doc/posix-functions/open_wmemstream.texi: New file.
49880         * doc/posix-functions/openat.texi: New file.
49881         * doc/posix-functions/psiginfo.texi: New file.
49882         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
49883         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
49884         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
49885         * doc/posix-functions/readlinkat.texi: New file.
49886         * doc/posix-functions/renameat.texi: New file.
49887         * doc/posix-functions/strerror_l.texi: New file.
49888         * doc/posix-functions/symlinkat.texi: New file.
49889         * doc/posix-functions/unlinkat.texi: New file.
49890         * doc/posix-functions/utimensat.texi: New file.
49891         * doc/gnulib.texi (Function Substitutes): Add these subsections.
49892
49893 2008-12-14  Bruno Haible  <bruno@clisp.org>
49894
49895         Update doc for POSIX:2008.
49896         * doc/posix-functions/alphasort.texi: Renamed from
49897         doc/glibc-functions/alphasort.texi.
49898         * doc/posix-functions/dirfd.texi: Renamed from
49899         doc/glibc-functions/dirfd.texi.
49900         * doc/posix-functions/dprintf.texi: Renamed from
49901         doc/glibc-functions/dprintf.texi.
49902         * doc/posix-functions/duplocale.texi: Renamed from
49903         doc/glibc-functions/duplocale.texi.
49904         * doc/posix-functions/fexecve.texi: Renamed from
49905         doc/glibc-functions/fexecve.texi.
49906         * doc/posix-functions/fmemopen.texi: Renamed from
49907         doc/glibc-functions/fmemopen.texi.
49908         * doc/posix-functions/freelocale.texi: Renamed from
49909         doc/glibc-functions/freelocale.texi.
49910         * doc/posix-functions/getdate_err.texi: Renamed from
49911         doc/glibc-functions/getdate_err.texi.
49912         * doc/posix-functions/isalnum_l.texi: Renamed from
49913         doc/glibc-functions/isalnum_l.texi.
49914         * doc/posix-functions/isalpha_l.texi: Renamed from
49915         doc/glibc-functions/isalpha_l.texi.
49916         * doc/posix-functions/isblank_l.texi: Renamed from
49917         doc/glibc-functions/isblank_l.texi.
49918         * doc/posix-functions/iscntrl_l.texi: Renamed from
49919         doc/glibc-functions/iscntrl_l.texi.
49920         * doc/posix-functions/isdigit_l.texi: Renamed from
49921         doc/glibc-functions/isdigit_l.texi.
49922         * doc/posix-functions/isgraph_l.texi: Renamed from
49923         doc/glibc-functions/isgraph_l.texi.
49924         * doc/posix-functions/islower_l.texi: Renamed from
49925         doc/glibc-functions/islower_l.texi.
49926         * doc/posix-functions/isprint_l.texi: Renamed from
49927         doc/glibc-functions/isprint_l.texi.
49928         * doc/posix-functions/ispunct_l.texi: Renamed from
49929         doc/glibc-functions/ispunct_l.texi.
49930         * doc/posix-functions/isspace_l.texi: Renamed from
49931         doc/glibc-functions/isspace_l.texi.
49932         * doc/posix-functions/isupper_l.texi: Renamed from
49933         doc/glibc-functions/isupper_l.texi.
49934         * doc/posix-functions/iswalnum_l.texi: Renamed from
49935         doc/glibc-functions/iswalnum_l.texi.
49936         * doc/posix-functions/iswalpha_l.texi: Renamed from
49937         doc/glibc-functions/iswalpha_l.texi.
49938         * doc/posix-functions/iswblank_l.texi: Renamed from
49939         doc/glibc-functions/iswblank_l.texi.
49940         * doc/posix-functions/iswcntrl_l.texi: Renamed from
49941         doc/glibc-functions/iswcntrl_l.texi.
49942         * doc/posix-functions/iswctype_l.texi: Renamed from
49943         doc/glibc-functions/iswctype_l.texi.
49944         * doc/posix-functions/iswdigit_l.texi: Renamed from
49945         doc/glibc-functions/iswdigit_l.texi.
49946         * doc/posix-functions/iswgraph_l.texi: Renamed from
49947         doc/glibc-functions/iswgraph_l.texi.
49948         * doc/posix-functions/iswlower_l.texi: Renamed from
49949         doc/glibc-functions/iswlower_l.texi.
49950         * doc/posix-functions/iswprint_l.texi: Renamed from
49951         doc/glibc-functions/iswprint_l.texi.
49952         * doc/posix-functions/iswpunct_l.texi: Renamed from
49953         doc/glibc-functions/iswpunct_l.texi.
49954         * doc/posix-functions/iswspace_l.texi: Renamed from
49955         doc/glibc-functions/iswspace_l.texi.
49956         * doc/posix-functions/iswupper_l.texi: Renamed from
49957         doc/glibc-functions/iswupper_l.texi.
49958         * doc/posix-functions/iswxdigit_l.texi: Renamed from
49959         doc/glibc-functions/iswxdigit_l.texi.
49960         * doc/posix-functions/isxdigit_l.texi: Renamed from
49961         doc/glibc-functions/isxdigit_l.texi.
49962         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
49963         doc/glibc-functions/mbsnrtowcs.texi.
49964         * doc/posix-functions/mkdtemp.texi: Renamed from
49965         doc/glibc-functions/mkdtemp.texi.
49966         * doc/posix-functions/newlocale.texi: Renamed from
49967         doc/glibc-functions/newlocale.texi.
49968         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
49969         doc/glibc-functions/nl_langinfo_l.texi.
49970         * doc/posix-functions/open_memstream.texi: Renamed from
49971         doc/glibc-functions/open_memstream.texi.
49972         * doc/posix-functions/opterr.texi: Renamed from
49973         doc/glibc-functions/opterr.texi.
49974         * doc/posix-functions/optind.texi: Renamed from
49975         doc/glibc-functions/optind.texi.
49976         * doc/posix-functions/optopt.texi: Renamed from
49977         doc/glibc-functions/optopt.texi.
49978         * doc/posix-functions/psignal.texi: Renamed from
49979         doc/glibc-functions/psignal.texi.
49980         * doc/posix-functions/scandir.texi: Renamed from
49981         doc/glibc-functions/scandir.texi.
49982         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
49983         doc/glibc-functions/sched_get_priority_min.texi.
49984         * doc/posix-functions/signgam.texi: Renamed from
49985         doc/glibc-functions/signgam.texi.
49986         * doc/posix-functions/stpcpy.texi: Renamed from
49987         doc/glibc-functions/stpcpy.texi.
49988         * doc/posix-functions/stpncpy.texi: Renamed from
49989         doc/glibc-functions/stpncpy.texi.
49990         * doc/posix-functions/strcasecmp_l.texi: Renamed from
49991         doc/glibc-functions/strcasecmp_l.texi.
49992         * doc/posix-functions/strcoll_l.texi: Renamed from
49993         doc/glibc-functions/strcoll_l.texi.
49994         * doc/posix-functions/strfmon_l.texi: Renamed from
49995         doc/glibc-functions/strfmon_l.texi.
49996         * doc/posix-functions/strftime_l.texi: Renamed from
49997         doc/glibc-functions/strftime_l.texi.
49998         * doc/posix-functions/strncasecmp_l.texi: Renamed from
49999         doc/glibc-functions/strncasecmp_l.texi.
50000         * doc/posix-functions/strndup.texi: Renamed from
50001         doc/glibc-functions/strndup.texi.
50002         * doc/posix-functions/strnlen.texi: Renamed from
50003         doc/glibc-functions/strnlen.texi.
50004         * doc/posix-functions/strsignal.texi: Renamed from
50005         doc/glibc-functions/strsignal.texi.
50006         * doc/posix-functions/strxfrm_l.texi: Renamed from
50007         doc/glibc-functions/strxfrm_l.texi.
50008         * doc/posix-functions/timer_gettime.texi: Renamed from
50009         doc/glibc-functions/timer_gettime.texi.
50010         * doc/posix-functions/tolower_l.texi: Renamed from
50011         doc/glibc-functions/tolower_l.texi.
50012         * doc/posix-functions/toupper_l.texi: Renamed from
50013         doc/glibc-functions/toupper_l.texi.
50014         * doc/posix-functions/towctrans_l.texi: Renamed from
50015         doc/glibc-functions/towctrans_l.texi.
50016         * doc/posix-functions/towlower_l.texi: Renamed from
50017         doc/glibc-functions/towlower_l.texi.
50018         * doc/posix-functions/towupper_l.texi: Renamed from
50019         doc/glibc-functions/towupper_l.texi.
50020         * doc/posix-functions/uselocale.texi: Renamed from
50021         doc/glibc-functions/uselocale.texi.
50022         * doc/posix-functions/vdprintf.texi: Renamed from
50023         doc/glibc-functions/vdprintf.texi.
50024         * doc/posix-functions/wcpcpy.texi:
50025         Renamed from doc/glibc-functions/wcpcpy.texi.
50026         * doc/posix-functions/wcpncpy.texi: Renamed from
50027         doc/glibc-functions/wcpncpy.texi.
50028         * doc/posix-functions/wcscasecmp.texi: Renamed from
50029         doc/glibc-functions/wcscasecmp.texi.
50030         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
50031         doc/glibc-functions/wcscasecmp_l.texi.
50032         * doc/posix-functions/wcscoll_l.texi: Renamed from
50033         doc/glibc-functions/wcscoll_l.texi.
50034         * doc/posix-functions/wcsdup.texi: Renamed from
50035         doc/glibc-functions/wcsdup.texi.
50036         * doc/posix-functions/wcsncasecmp.texi: Renamed from
50037         doc/glibc-functions/wcsncasecmp.texi.
50038         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
50039         doc/glibc-functions/wcsncasecmp_l.texi.
50040         * doc/posix-functions/wcsnlen.texi: Renamed from
50041         doc/glibc-functions/wcsnlen.texi.
50042         * doc/posix-functions/wcsnrtombs.texi: Renamed from
50043         doc/glibc-functions/wcsnrtombs.texi.
50044         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
50045         doc/glibc-functions/wcsxfrm_l.texi.
50046         * doc/posix-functions/wctrans_l.texi: Renamed from
50047         doc/glibc-functions/wctrans_l.texi.
50048         * doc/posix-functions/wctype_l.texi: Renamed from
50049         doc/glibc-functions/wctype_l.texi.
50050         * doc/gnulib.texi (Function Substitutes): Add these subsections.
50051         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
50052         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
50053         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
50054         these subsections.
50055         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
50056         Remove sections.
50057
50058 2008-12-14  Bruno Haible  <bruno@clisp.org>
50059
50060         Update doc for POSIX:2008.
50061         * doc/posix-functions/*.texi: Update URL of POSIX specification.
50062
50063 2008-12-14  Bruno Haible  <bruno@clisp.org>
50064
50065         Update doc for POSIX:2008.
50066         * doc/pastposix-functions/bcmp.texi: Renamed from
50067         doc/posix-functions/bcmp.texi.
50068         * doc/pastposix-functions/bcopy.texi: Renamed from
50069         doc/posix-functions/bcopy.texi.
50070         * doc/pastposix-functions/bsd_signal.texi: Renamed from
50071         doc/posix-functions/bsd_signal.texi.
50072         * doc/pastposix-functions/bzero.texi: Renamed from
50073         doc/posix-functions/bzero.texi.
50074         * doc/pastposix-functions/ecvt.texi: Renamed from
50075         doc/posix-functions/ecvt.texi.
50076         * doc/pastposix-functions/fcvt.texi: Renamed from
50077         doc/posix-functions/fcvt.texi.
50078         * doc/pastposix-functions/ftime.texi: Renamed from
50079         doc/posix-functions/ftime.texi.
50080         * doc/pastposix-functions/gcvt.texi: Renamed from
50081         doc/posix-functions/gcvt.texi.
50082         * doc/pastposix-functions/getcontext.texi: Renamed from
50083         doc/posix-functions/getcontext.texi.
50084         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
50085         doc/posix-functions/gethostbyaddr.texi.
50086         * doc/pastposix-functions/gethostbyname.texi: Renamed from
50087         doc/posix-functions/gethostbyname.texi.
50088         * doc/pastposix-functions/getwd.texi: Renamed from
50089         doc/posix-functions/getwd.texi.
50090         * doc/pastposix-functions/h_errno.texi: Renamed from
50091         doc/posix-functions/h_errno.texi.
50092         * doc/pastposix-functions/index.texi: Renamed from
50093         doc/posix-functions/index.texi.
50094         * doc/pastposix-functions/makecontext.texi: Renamed from
50095         doc/posix-functions/makecontext.texi.
50096         * doc/pastposix-functions/mktemp.texi: Renamed from
50097         doc/posix-functions/mktemp.texi.
50098         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
50099         doc/posix-functions/pthread_attr_getstackaddr.texi.
50100         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
50101         doc/posix-functions/pthread_attr_setstackaddr.texi.
50102         * doc/pastposix-functions/rindex.texi: Renamed from
50103         doc/posix-functions/rindex.texi.
50104         * doc/pastposix-functions/scalb.texi: Renamed from
50105         doc/posix-functions/scalb.texi.
50106         * doc/pastposix-functions/setcontext.texi: Renamed from
50107         doc/posix-functions/setcontext.texi.
50108         * doc/pastposix-functions/swapcontext.texi: Renamed from
50109         doc/posix-functions/swapcontext.texi.
50110         * doc/pastposix-functions/ualarm.texi: Renamed from
50111         doc/posix-functions/ualarm.texi.
50112         * doc/pastposix-functions/usleep.texi: Renamed from
50113         doc/posix-functions/usleep.texi.
50114         * doc/pastposix-functions/vfork.texi: Renamed from
50115         doc/posix-functions/vfork.texi.
50116         * doc/pastposix-functions/wcswcs.texi: Renamed from
50117         doc/posix-functions/wcswcs.texi.
50118         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
50119         (Function Substitutes): Update.
50120
50121 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50122
50123         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
50124         m4/strerror.m4.
50125
50126 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50127             Bruno Haible  <bruno@clisp.org>
50128
50129         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
50130
50131 2008-12-13  Bruno Haible  <bruno@clisp.org>
50132
50133         * modules/strtoull (Depends-on): Remove unistd.
50134
50135 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50136
50137         * modules/strtoull (Depends-on): Add stdlib.
50138
50139 2008-12-11  Simon Josefsson  <simon@josefsson.org>
50140
50141         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
50142
50143 2008-12-10  Jim Meyering  <meyering@redhat.com>
50144
50145         gl_ASSERT: don't say assertions are disabled when they're not
50146         * m4/assert.m4 (gl_ASSERT): Do not make configure report
50147         "checking whether to enable assertions... no", when they are in
50148         fact enabled.  This is solely a bug in the output of configure.
50149         In spite of saying "no", NDEBUG was not defined in that case.
50150         Also, as noted by Eric Blake, leave assertions enabled upon
50151         --enable-assert=INVALID.
50152
50153 2008-12-10  Bruno Haible  <bruno@clisp.org>
50154
50155         Change MODULES.html to refer to POSIX:2008 where possible.
50156         * MODULES.html.sh (POSIX2008_URL): New variable.
50157         (posix_headers): Remove sys/timeb, ucontext.
50158         (posix2001_headers): New variable.
50159         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
50160         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
50161         index, makecontext, mktemp, pthread_attr_getstackaddr,
50162         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
50163         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
50164         (posix2001_functions): New variable.
50165         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
50166         otherwise.
50167
50168 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50169
50170         add missing include to parse-duration.c
50171         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
50172         * modules/parse-duration (Depends-on): Add xalloc.
50173
50174         fix sed script reading maint.mk
50175         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
50176         (syntax-check-rules): Use it.
50177
50178 2008-12-09  Bruno Haible  <bruno@clisp.org>
50179
50180         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
50181         MacOS X 10.4/PowerPC.
50182         Reported by Simon Josefsson.
50183
50184 2008-12-08  Jim Meyering  <meyering@redhat.com>
50185
50186         work around mingw's lack of some S_IF definitions
50187         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
50188         Reported by Simon Josefsson.
50189
50190 2008-12-08  Bruno Haible  <bruno@clisp.org>
50191
50192         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
50193         applied to variables. Needed on MacOS X 10.4/PowerPC.
50194         Reported by Simon Josefsson.
50195
50196 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
50197         and Eric Blake  <ebb9@byu.net>
50198
50199         assert: honor --enable-assert
50200         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
50201         order to honor --enable-assert, rather than treating it as a
50202         synonym for --disable-assert.
50203
50204 2008-12-08  Jim Meyering  <meyering@redhat.com>
50205
50206         * lib/posixtm.c: Remove now-useless declaration of mktime.
50207
50208         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
50209
50210 2008-12-07  Bruno Haible  <bruno@clisp.org>
50211
50212         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
50213         test_once): Mark functions as static.
50214         * tests/test-tls.c (test_tls): Likewise.
50215
50216 2008-12-07  Bruno Haible  <bruno@clisp.org>
50217
50218         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
50219         iconv_register_autodetect.
50220
50221 2008-12-07  Jim Meyering  <meyering@redhat.com>
50222
50223         posixtm.c: avoid a warning
50224         * lib/posixtm.c (posixtime): Don't initialize tm0.
50225         It's no longer needed to placate gcc4's -Wuninitialized,
50226         and the attempt to placate would elicit a new warning.
50227
50228         unicodeio.c: mark unused parameters
50229         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
50230         (fallback_failure_callback): Likewise.
50231
50232 2008-12-07  Bruno Haible  <bruno@clisp.org>
50233
50234         * gnulib-tool (func_create_testdir): When building the tests
50235         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
50236         Reported by Simon Josefsson.
50237
50238 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50239
50240         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
50241
50242 2008-12-06  Bruno Haible  <bruno@clisp.org>
50243
50244         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
50245         Suggested by Eric Blake.
50246
50247 2008-12-06  Bruno Haible  <bruno@clisp.org>
50248
50249         Fix a c-stack test failure on MacOS X.
50250         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
50251         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
50252         handler for SIGBUS as well.
50253         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
50254         install a signal handler for SIGBUS as well.
50255         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
50256
50257 2008-12-06  Bruno Haible  <bruno@clisp.org>
50258
50259         Advocacy documentation.
50260         * doc/gnulib-intro.texi (Benefits): New section.
50261         * doc/gnulib.texi: Update.
50262
50263 2008-12-06  Bruno Haible  <bruno@clisp.org>
50264
50265         Document the 'manywarnings' module.
50266         * doc/manywarnings.texi: New file.
50267         * doc/gnulib.texi: Include it.
50268
50269 2008-12-05  Eric Blake  <ebb9@byu.net>
50270
50271         tests: silence some gcc warnings
50272         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
50273         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
50274         type mismatches.
50275
50276 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50277             Bruno Haible  <bruno@clisp.org>
50278
50279         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
50280
50281 2008-11-29  Jim Meyering  <meyering@redhat.com>
50282
50283         unicodeio.c: mark unused parameters
50284         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
50285         (fallback_failure_callback): Likewise.
50286
50287         fts: fix a thinko
50288         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
50289         (set_stat_type): Return S_IF*-valued "type" directly.
50290         Prompted by James Youngman's spotting a related bug.
50291         Confirmed by further testing through find.
50292
50293         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
50294         * lib/fts.c (D_TYPE): Define.
50295         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
50296         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
50297         (s_ifmt_shift_bits): New function.
50298         (set_stat_type): New function.
50299         (fts_build): When not calling fts_stat, call set_stat_type
50300         to propagate dirent.d_type info to fts_read caller.
50301         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
50302         fts_statp->st_mode type information may be valid.
50303
50304 2008-11-28  Simon Josefsson  <simon@josefsson.org>
50305
50306         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
50307         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
50308         <sds@gnu.org>.
50309
50310 2008-11-20  Bruno Haible  <bruno@clisp.org>
50311
50312         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
50313         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
50314         INCLUDE_NEXT.
50315         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
50316         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
50317         * modules/math (Makefile.am): Substitute
50318         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
50319         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
50320
50321 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
50322             Bruno Haible  <bruno@clisp.org>
50323
50324         * lib/stdint.in.h: Define all type macros so that their expansion is
50325         a single typedef'ed token. Fixes a compilation failure in Boost which
50326         does "using ::int8_t;".
50327
50328 2008-11-18  Simon Josefsson  <simon@josefsson.org>
50329
50330         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
50331         gl_MANYWARN_ALL_GCC.
50332         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
50333         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
50334         * modules/manywarnings: New file.
50335         * MODULES.html.sh: Mention manywarnings module.
50336
50337 2008-11-18  Bruno Haible  <bruno@clisp.org>
50338
50339         * doc/gnulib-tool.texi (Unit tests): New section.
50340
50341 2008-11-18  Simon Josefsson  <simon@josefsson.org>
50342
50343         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
50344         paths like 'lib/po/foo.po'.
50345
50346 2008-11-17  Simon Josefsson  <simon@josefsson.org>
50347
50348         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
50349         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
50350
50351 2008-11-17  Simon Josefsson  <simon@josefsson.org>
50352
50353         * m4/warnings.m4: Use CPPFLAGS to really check whether the
50354         parameter works.
50355
50356 2008-11-17  Simon Josefsson  <simon@josefsson.org>
50357
50358         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
50359
50360 2008-11-17  Bruce Korb  <bkorb@gnu.org>
50361
50362         * modules/parse-duration-tests: New file.
50363         * tests/test-parse-duration.sh: New file.
50364         * tests/test-parse-duration.c: New file.
50365
50366         New module 'parse-duration'.
50367         * lib/parse-duration.h: New file.
50368         * lib/parse-duration.c: New file.
50369         * modules/parse-duration: New file.
50370
50371 2008-11-17  Bruno Haible  <bruno@clisp.org>
50372
50373         * tests/test-select-out.sh: Comment out the first pipe test.
50374         Reported by Simon Josefsson.
50375
50376 2008-11-17  Bruno Haible  <bruno@clisp.org>
50377
50378         * modules/getaddrinfo (Depends-on): Add servent, hostent.
50379         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
50380         gl_HOSTENT.
50381
50382 2008-11-17  Bruno Haible  <bruno@clisp.org>
50383
50384         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
50385         -lnetwork and -lnet. Needed for Haiku and BeOS.
50386
50387 2008-11-16  Bruno Haible  <bruno@clisp.org>
50388
50389         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
50390
50391 2008-11-16  Bruno Haible  <bruno@clisp.org>
50392
50393         Avoid test failure on Haiku.
50394         * tests/test-fsync.c: Include <errno.h>.
50395         (main): Don't require that fsync (0) fails.
50396
50397 2008-11-15  Bruno Haible  <bruno@clisp.org>
50398
50399         New module 'hostent'.
50400         * modules/hostent: New file.
50401         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
50402
50403 2008-11-15  Bruno Haible  <bruno@clisp.org>
50404
50405         New module 'servent'.
50406         * modules/servent: New file.
50407         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
50408
50409 2008-11-15  Bruno Haible  <bruno@clisp.org>
50410
50411         Avoid generating same test program with two different rules.
50412         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
50413         test-frexp to test-frexp-nolibm.
50414         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
50415         test-frexpl to test-frexpl-nolibm.
50416
50417 2008-11-15  Bruno Haible  <bruno@clisp.org>
50418
50419         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
50420         $(FREXPL_LIBM).
50421
50422 2008-11-15  Bruno Haible  <bruno@clisp.org>
50423
50424         * lib/netdb.in.h: Activate the definitions also when the system's
50425         <netdb.h> has 'struct addrinfo'.
50426         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
50427         EAI_OVERFLOW or AI_NUMERICSERV.
50428         * doc/posix-headers/netdb.texi: Document the problem.
50429
50430 2008-11-15  Bruno Haible  <bruno@clisp.org>
50431
50432         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
50433
50434         Make the 'sched' module work on platforms where <sched.h> exists but
50435         is incomplete (such as Haiku).
50436         * lib/sched.in.h; Include the system's <sched.h> if it exists.
50437         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
50438         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
50439         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
50440         HAVE_STRUCT_SCHED_PARAM.
50441         * modules/sched (Depends-on): Add include_next.
50442         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
50443         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
50444         * doc/posix-headers/sched.texi: Document the issue.
50445
50446 2008-11-13  Jim Meyering  <meyering@redhat.com>
50447
50448         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
50449         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
50450         test would fail due to the difference in the Report bugs to ...
50451         line.  The expected address is empty, "<>", while the actual
50452         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
50453
50454 2008-11-12  Bruno Haible  <bruno@clisp.org>
50455
50456         lstat: don't compile lstat.c on systems lacking lstat
50457         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
50458         which don't have lstat; this is handled by lib/sys_stat.in.h already.
50459         Reported by Daniel P. Berrange via Jim Meyering.
50460
50461 2008-11-12  Jim Meyering  <meyering@redhat.com>
50462
50463         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
50464
50465 2008-11-12  Simon Josefsson  <simon@josefsson.org>
50466
50467         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
50468         instead.
50469
50470 2008-11-12  Bruno Haible  <bruno@clisp.org>
50471
50472         * lib/unicodeio.c: Include unistr.h.
50473         (utf8_wctomb): Remove function.
50474         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
50475
50476 2008-11-12  Simon Josefsson  <simon@josefsson.org>
50477
50478         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
50479         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
50480         <bruno@clisp.org>.
50481         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
50482
50483 2008-11-12  Simon Josefsson  <simon@josefsson.org>
50484
50485         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
50486         * doc/gnulib.texi: Add section for warnings.
50487
50488 2008-11-11  Bruno Haible  <bruno@clisp.org>
50489
50490         * lib/sockets.h: Add a comment.
50491
50492 2008-11-11  Karl Berry  <karl@gnu.org>
50493
50494         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
50495
50496 2008-11-11  Eric Blake  <ebb9@byu.net>
50497
50498         fdl.texi: avoid git symlinks
50499         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
50500
50501 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
50502
50503         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
50504
50505 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
50506
50507         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
50508         (gl_WARN_ADD): Substitute $2 if literal.
50509
50510 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
50511
50512         * m4/warning.m4: Remove.
50513
50514 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
50515
50516         * m4/warnings.m4: Almost complete rewrite. :-)
50517
50518 2008-11-10  Simon Josefsson  <simon@josefsson.org>
50519
50520         * modules/warnings: New module.
50521         * m4/warnings.m4: New file.
50522         * MODULES.html.sh: Mention warnings module.
50523         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
50524         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50525
50526 2008-11-10  Eric Blake  <ebb9@byu.net>
50527
50528         fdl.texi: make a symlink to the latest version
50529         * doc/standards.texi: Revert today's earlier change.
50530         * doc/fdl-1.2.texi: Rename from old fdl.texi...
50531         * doc/fdl.texi: ...and replace this with a symlink to the newer
50532         fdl-1.3.texi.
50533
50534 2008-11-10  Bruno Haible  <bruno@clisp.org>
50535
50536         * tests/test-select-fd.c (main): Accept the result file name as fourth
50537         argument.
50538         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
50539         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
50540
50541 2008-11-10  Bruno Haible  <bruno@clisp.org>
50542
50543         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
50544         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
50545         as autoconf-substituted macros.
50546         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
50547         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
50548         gl_NETDB_H_DEFAULTS. Set these variables.
50549         * modules/netdb (Makefile.am): Substitute these variables.
50550
50551 2008-11-10  Eric Blake  <ebb9@byu.net>
50552
50553         standards.texi: include correct file for FDL 1.3
50554         * doc/standards.texi (GNU Free Documentation License): Change
50555         include file to pull in FDL 1.3, not 1.2.
50556
50557         fdl.texi: revert accidental change to license
50558         * doc/fdl.texi: This is FDL 1.2, not 1.3.
50559
50560 2008-11-10  Bruno Haible  <bruno@clisp.org>
50561
50562         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
50563         cross-compiling guesses also when the native compile gives no result.
50564
50565 2008-11-10  Bruno Haible  <bruno@clisp.org>
50566
50567         * lib/spawni.c (__spawni): Force variable into the stack.
50568
50569 2008-11-10  Bruno Haible  <bruno@clisp.org>
50570
50571         Add support for Haiku.
50572         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
50573         glibc and BeOS, but also on Haiku.
50574         * lib/fpurge.c (fpurge): Likewise.
50575         * lib/freadable.c (freadable): Likewise.
50576         * lib/freadahead.c (freadahead): Likewise.
50577         * lib/freading.c (freading): Likewise.
50578         * lib/freadptr.c (freadptr): Likewise.
50579         * lib/freadseek.c (freadptrinc): Likewise.
50580         * lib/fseeko.c (rpl_fseeko): Likewise.
50581         * lib/fseterr.c (fseterr): Likewise.
50582         * lib/fwritable.c (fwritable): Likewise.
50583         * lib/fwriting.c (fwriting): Likewise.
50584         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
50585
50586 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
50587
50588         * lib/config.charset: Treat Haiku like BeOS.
50589
50590 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
50591
50592         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
50593         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
50594
50595 2008-11-08  Bruno Haible  <bruno@clisp.org>
50596
50597         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
50598         AC_CACHE_CHECK.
50599
50600 2008-11-08  Bruno Haible  <bruno@clisp.org>
50601
50602         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
50603
50604 2008-11-08  Bruno Haible  <bruno@clisp.org>
50605
50606         * tests/test-select-fd.c: New file.
50607         * tests/test-select-in.sh: New file.
50608         * tests/test-select-out.sh: New file.
50609         * tests/test-select-stdin.c: New file.
50610         * modules/select-tests (Files): Add the new files.
50611         (Depends-on): Add gettimeofday.
50612         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
50613         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
50614         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
50615
50616 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
50617             Bruno Haible  <bruno@clisp.org>
50618
50619         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
50620
50621 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
50622
50623         * build-aux/pmccabe2html: Added support for C++ source files.
50624
50625 2008-11-05  Ben Pfaff  <blp@gnu.org>
50626
50627         Fix lib/close.c build on Windows.
50628         * modules/close (Files): Add lib/w32sock.h.
50629
50630 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
50631
50632         Accept Bison's NEWS format.
50633         * build-aux/announce-gen (print_news_deltas): Tweak
50634         $re_prefix.
50635
50636 2008-11-04  Bruno Haible  <bruno@clisp.org>
50637
50638         * modules/random_r (Maintainer): Add glibc.
50639
50640 2008-11-04  Simon Josefsson  <simon@josefsson.org>
50641
50642         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
50643         by karl@freefriends.org (Karl Berry).
50644         * doc/alloca.texi: Likewise.
50645         * doc/c-ctype.texi: Likewise.
50646         * doc/c-strcase.texi: Likewise.
50647         * doc/c-strcaseeq.texi: Likewise.
50648         * doc/c-strcasestr.texi: Likewise.
50649         * doc/c-strstr.texi: Likewise.
50650         * doc/c-strtod.texi: Likewise.
50651         * doc/c-strtold.texi: Likewise.
50652         * doc/ctime.texi: Likewise.
50653         * doc/error.texi: Likewise.
50654         * doc/fdl.texi: Likewise.
50655         * doc/gcd.texi: Likewise.
50656         * doc/getdate.texi: Likewise.
50657         * doc/gnulib-intro.texi: Likewise.
50658         * doc/gnulib-tool.texi: Likewise.
50659         * doc/gnulib.texi: Likewise.
50660         * doc/inet_ntoa.texi: Likewise.
50661         * doc/maintain.texi: Likewise.
50662         * doc/make-stds.texi: Likewise.
50663         * doc/quote.texi: Likewise.
50664         * doc/regexprops-generic.texi: Likewise.
50665         * doc/standards.texi: Likewise.
50666         * doc/verify.texi: Likewise.
50667         * doc/visibility.texi: Likewise.
50668         * doc/gnulib.texi (GNU Free Documentation License): Include
50669         fdl-1.3.texi instead of fdl.texi.
50670
50671 2008-11-04  Simon Josefsson  <simon@josefsson.org>
50672
50673         * doc/fdl-1.3.texi: New file, from
50674         <http://www.gnu.org/licenses/fdl-1.3.texi>.
50675         * modules/fdl-1.3: Add.
50676         * MODULES.html.sh: Add fdl-1.3.
50677
50678 2008-11-03  Bruno Haible  <bruno@clisp.org>
50679
50680         Make determination of absolute name of header file work with AIX xlc.
50681         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
50682         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
50683         preprocessing.
50684         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
50685         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
50686
50687 2008-11-03  Simon Josefsson  <simon@josefsson.org>
50688
50689         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
50690         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
50691         <ludo@gnu.org>.
50692
50693 2008-11-02  Bruno Haible  <bruno@clisp.org>
50694
50695         Mark 'strpbrk' obsolete.
50696         * modules/strpbrk (Status, Notice): New sections.
50697         * modules/strtok_r (Depends-on): Add strpbrk.
50698
50699 2008-11-02  Bruno Haible  <bruno@clisp.org>
50700
50701         Mark 'strdup' obsolete.
50702         * modules/strdup (Status, Notice): New sections.
50703         * modules/findprog (Depends-on): Add strdup.
50704         * modules/getaddrinfo (Depends-on): Likewise.
50705         * modules/localename (Depends-on): Likewise.
50706         * modules/relocatable-lib (Depends-on): Likewise.
50707         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
50708         * modules/relocatable-prog (Depends-on): Likewise.
50709         * modules/trim (Depends-on): Likewise.
50710         * modules/unictype/gen-ctype (Depends-on): Likewise.
50711         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
50712
50713 2008-11-02  Bruno Haible  <bruno@clisp.org>
50714
50715         Mark 'strcspn' obsolete.
50716         * modules/strcspn (Status, Notice): New sections.
50717
50718 2008-11-02  Bruno Haible  <bruno@clisp.org>
50719
50720         Mark 'rmdir' obsolete.
50721         * modules/rmdir (Status, Notice): New sections.
50722         * modules/clean-temp (Depends-on): Add rmdir.
50723         * modules/openat (Depends-on): Likewise.
50724
50725 2008-11-02  Bruno Haible  <bruno@clisp.org>
50726
50727         Mark 'raise' obsolete.
50728         * modules/raise (Status, Notice): New sections.
50729         (Include): Specify <signal.h>.
50730         * modules/stdio (Depends-on): Add raise.
50731         * modules/write (Depends-on): Likewise.
50732
50733 2008-11-02  Bruno Haible  <bruno@clisp.org>
50734
50735         Mark 'memset' obsolete.
50736         * modules/memset (Status, Notice): New sections.
50737
50738 2008-11-02  Bruno Haible  <bruno@clisp.org>
50739
50740         Mark 'memmove' obsolete.
50741         * modules/memmove (Status, Notice): New sections.
50742         * modules/argp (Depends-on): Add memmove.
50743         * modules/argz (Depends-on): Likewise.
50744         * modules/canonicalize (Depends-on): Likewise.
50745         * modules/canonicalize-lgpl (Depends-on): Likewise.
50746         * modules/fts (Depends-on): Likewise.
50747         * modules/getcwd (Depends-on): Likewise.
50748         * modules/human (Depends-on): Likewise.
50749         * modules/regex (Depends-on): Likewise.
50750         * modules/striconveh (Depends-on): Likewise.
50751         * modules/trim (Depends-on): Likewise.
50752         * modules/unistr/u8-move (Depends-on): Likewise.
50753         * modules/unistr/u16-move (Depends-on): Likewise.
50754         * modules/unistr/u32-move (Depends-on): Likewise.
50755
50756 2008-11-02  Bruno Haible  <bruno@clisp.org>
50757
50758         Mark 'memcpy' obsolete.
50759         * modules/memcpy (Status, Notice): New sections.
50760
50761 2008-11-02  Bruno Haible  <bruno@clisp.org>
50762
50763         Mark 'memcmp' obsolete.
50764         * modules/memcmp (Status, Notice): New sections.
50765         * modules/argmatch (Depends-on): Add memchr.
50766         * modules/backupfile (Depends-on): Likewise.
50767         * modules/c-strcasestr (Depends-on): Likewise.
50768         * modules/crypto/des (Depends-on): Likewise.
50769         * modules/csharpcomp (Depends-on): Likewise.
50770         * modules/fnmatch (Depends-on): Likewise.
50771         * modules/git-merge-changelog (Depends-on): Likewise.
50772         * modules/isnand (Depends-on): Likewise.
50773         * modules/isnand-nolibm (Depends-on): Likewise.
50774         * modules/isnanf (Depends-on): Likewise.
50775         * modules/isnanf-nolibm (Depends-on): Likewise.
50776         * modules/isnanl (Depends-on): Likewise.
50777         * modules/isnanl-nolibm (Depends-on): Likewise.
50778         * modules/mbchar (Depends-on): Likewise.
50779         * modules/memcoll (Depends-on): Likewise.
50780         * modules/quotearg (Depends-on): Likewise.
50781         * modules/regex (Depends-on): Likewise.
50782         * modules/relocatable-prog (Depends-on): Likewise.
50783         * modules/same (Depends-on): Likewise.
50784         * modules/signbit (Depends-on): Likewise.
50785         * modules/strcasestr-simple (Depends-on): Likewise.
50786         * modules/unictype/gen-ctype (Depends-on): Likewise.
50787         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
50788         * modules/uniname/uniname (Depends-on): Likewise.
50789         * modules/unistr/u8-cmp (Depends-on): Likewise.
50790
50791 2008-11-02  Bruno Haible  <bruno@clisp.org>
50792
50793         Mark 'memchr' obsolete.
50794         * modules/memchr (Status, Notice): New sections.
50795         * modules/argp (Depends-on): Add memchr.
50796         * modules/base64 (Depends-on): Likewise.
50797         * modules/c-strcasestr (Depends-on): Likewise.
50798         * modules/chdir-long (Depends-on): Likewise.
50799         * modules/fnmatch (Depends-on): Likewise.
50800         * modules/getsubopt (Depends-on): Likewise.
50801         * modules/git-merge-changelog (Depends-on): Likewise.
50802         * modules/glob (Depends-on): Likewise.
50803         * modules/strcasestr-simple (Depends-on): Likewise.
50804         * modules/strnlen (Depends-on): Likewise.
50805
50806 2008-11-02  Bruno Haible  <bruno@clisp.org>
50807
50808         Mark 'atexit' obsolete.
50809         * modules/atexit (Status, Notice): New sections.
50810         * modules/chdir-long (Depends-on): Add atexit.
50811         * modules/wait-process (Depends-on): Likewise.
50812
50813 2008-11-02  Bruno Haible  <bruno@clisp.org>
50814
50815         * gnulib-tool: New option --with-obsolete.
50816         (func_usage): Document it.
50817         (func_modules_transitive_closure): Drop obsolete dependencies if
50818         incobsolete is not true.
50819         (func_import): Read and save the incobsolete variable to the cache.
50820
50821 2008-11-02  Bruno Haible  <bruno@clisp.org>
50822
50823         * modules/TEMPLATE-EXTENDED: New field 'Status'.
50824         * gnulib-tool: New option --extract-status.
50825         (func_usage): Document it.
50826         (sed_extract_prog): Recognize it.
50827         (func_get_status): New function.
50828
50829 2008-10-30  Simon Josefsson  <simon@josefsson.org>
50830
50831         * modules/sockets (License): Change from LGPL to LGPLv2+.
50832
50833 2008-10-28  Simon Josefsson  <simon@josefsson.org>
50834
50835         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
50836
50837 2008-10-28  Simon Josefsson  <simon@josefsson.org>
50838
50839         * MODULES.html.sh (Support for systems lacking POSIX:2001):
50840         Mention times and sys_times.
50841         * modules/sys_times, modules/sys_times-tests: New modules.
50842         * modules/times, modules/times-tests: Likewise
50843         * m4/sys_times_h.m4: New file.
50844         * lib/sys_times.in.h: Likewise
50845         * lib/times.c: Likewise.
50846         * tests/test-sys_times.c: Likewise.
50847         * tests/test-times.c: Likewise.
50848         * doc/posix-headers/sys_times.texi: Update.
50849         * doc/posix-functions/times.texi: Update.
50850
50851 2008-10-28  Jim Meyering  <meyering@redhat.com>
50852
50853         * modules/tempname (Depends-on): Add lstat.
50854
50855         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
50856
50857 2008-10-28  Simon Josefsson  <simon@josefsson.org>
50858
50859         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
50860         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
50861         using idiom used elsewhere in gnulib.
50862
50863 2008-10-27  Jim Meyering  <meyering@redhat.com>
50864
50865         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
50866
50867 2008-10-27  Simon Josefsson  <simon@josefsson.org>
50868
50869         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
50870         TESTS_ENVIRONMENT, for shell scripts that needs to call built
50871         programs.
50872         * tests/test-argp-2.sh: Use $EXEEXT when needed.
50873
50874 2008-10-27  Simon Josefsson  <simon@josefsson.org>
50875
50876         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
50877
50878 2008-10-27  Bruno Haible  <bruno@clisp.org>
50879
50880         * tests/test-lstat.c: Include <stdio.h>.
50881
50882 2008-10-27  Simon Josefsson  <simon@josefsson.org>
50883
50884         * modules/lstat-tests: New module.
50885         * tests/test-lstat.c: New file.
50886
50887 2008-10-26  Jim Meyering  <meyering@redhat.com>
50888
50889         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
50890
50891 2008-10-26  Simon Josefsson  <simon@josefsson.org>
50892             Bruno Haible  <bruno@clisp.org>
50893
50894         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
50895         * modules/configmake (Include): Add a note that the include must come
50896         after all system headers.
50897         * lib/javaversion.c: Include configmake.h after all other includes.
50898
50899 2008-10-26  Bruno Haible  <bruno@clisp.org>
50900
50901         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
50902         HAVE_STRUCT_RANDOM_DATA to 1.
50903         (gl_STDLIB_H): Simplify.
50904
50905 2008-10-26  Simon Josefsson  <simon@josefsson.org>
50906
50907         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
50908         substitute HAVE_STRUCT_RANDOM_DATA.
50909         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
50910         random_data.
50911         * modules/stdlib (Makefile.am): Substitute
50912         HAVE_STRUCT_RANDOM_DATA.
50913
50914 2008-10-26  Simon Josefsson  <simon@josefsson.org>
50915
50916         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
50917         * doc/gnulib-intro.texi (Copyright): Likewise.
50918
50919 2008-10-26  Simon Josefsson  <simon@josefsson.org>
50920
50921         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
50922         findings.
50923
50924 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
50925             Bruno Haible  <bruno@clisp.org>
50926
50927         * lib/unistd.in.h: Include <winsock2.h>.
50928         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
50929         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
50930         Provide dummy declarations.
50931         (gethostname): Override.
50932         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
50933         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
50934         gl_PREREQ_SYS_H_WINSOCK2.
50935         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
50936         * doc/posix-functions/gethostname.texi: More details.
50937
50938 2008-10-25  Bruno Haible  <bruno@clisp.org>
50939
50940         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
50941         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
50942         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
50943
50944         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
50945         here ...
50946         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
50947         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
50948         gl_UNISTD_H_DEFAULTS.
50949
50950 2008-10-25  Eric Blake  <ebb9@byu.net>
50951
50952         signbit: avoid spurious compiler failure
50953         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
50954         declarations inside function.
50955
50956 2008-10-24  Simon Josefsson  <simon@josefsson.org>
50957             Bruno Haible  <bruno@clisp.org>
50958
50959         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
50960         * modules/random_r (Depends-on): Add stdint.
50961
50962 2008-10-24  Bruno Haible  <bruno@clisp.org>
50963
50964         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
50965         Eggert.
50966         * modules/strerror (License): Likewise.
50967
50968 2008-10-24  Jim Meyering  <meyering@redhat.com>
50969
50970         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
50971         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
50972
50973 2008-10-24  Eric Blake  <ebb9@byu.net>
50974
50975         getgroups: fix compilation when getgroups is available
50976         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
50977         but with <config.h> override of getgroups disabled.
50978
50979 2008-10-24  Simon Josefsson  <simon@josefsson.org>
50980
50981         * doc/gnulib.texi (Header files): Add note about C++ problems.
50982         Explained by Bruno Haible <bruno@clisp.org>.
50983
50984 2008-10-23  Bruno Haible  <bruno@clisp.org>
50985
50986         Define a dummy SA_NODEFER macro on Interix.
50987         * lib/signal.in.h (SA_NODEFER): Define fallback.
50988         Reported by Aleksey Cheusov <cheusov@tut.by> via
50989         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
50990
50991 2008-10-23  Bruno Haible  <bruno@clisp.org>
50992
50993         * modules/freadahead (License): Change to LGPLv2+.
50994         Suggested by Simon Josefsson.
50995
50996 2008-10-23  Jim Meyering  <meyering@redhat.com>
50997
50998         random_r: new module
50999         * modules/random_r: New file.
51000         * m4/random_r.m4: New file.
51001         * lib/random_r.c: New file, from glibc.
51002         * modules/random_r-tests: New file.
51003         * tests/test-random_r.c: New file.
51004         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
51005          Declare.
51006         (RAND_MAX): Define.
51007         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
51008         * modules/stdlib: Substitute them, too.
51009         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
51010         * doc/glibc-functions/initstate_r.texi: Mention the new module.
51011         * doc/glibc-functions/random_r.texi: Likewise.
51012         * doc/glibc-functions/setstate_r.texi: Likewise.
51013         * doc/glibc-functions/srandom_r.texi: Likewise.
51014         * config/srclist.txt: Mention it.
51015
51016 2008-10-23  David Lutterkort  <lutter@redhat.com>
51017
51018         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
51019         link requirement
51020
51021 2008-10-23  Jim Meyering  <meyering@redhat.com>
51022
51023         selinux-h: mark parameters of stub functions as intentionally unused
51024         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
51025         * lib/se-context.in.h: Likewise.
51026
51027 2008-10-22  Simon Josefsson  <simon@josefsson.org>
51028
51029         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
51030
51031 2008-10-22  Simon Josefsson  <simon@josefsson.org>
51032
51033         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
51034
51035 2008-10-22  Eric Blake  <ebb9@byu.net>
51036
51037         glthread/thread: avoid compiler warning
51038         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
51039         Add unreachable abort to silence compiler.
51040
51041 2008-10-22  Eric Blake  <ebb9@byu.net>
51042
51043         netdb: also supply struct addrinfo for cygwin 1.5.x
51044         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
51045         older cygwin.
51046         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
51047         cygwin.
51048         * doc/posix-headers/netdb.texi (netdb.h): Document this.
51049
51050 2008-10-22  Bruno Haible  <bruno@clisp.org>
51051
51052         * users.txt: Update entry about pspp.
51053
51054 2008-10-21  Bruno Haible  <bruno@clisp.org>
51055
51056         Simplification.
51057         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
51058         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
51059
51060         Simplification.
51061         * lib/ioctl.c (ioctl): Don't undefine.
51062         * lib/socket.c (socket): Don't undefine.
51063
51064         Remove unused module indicator macros.
51065         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
51066         GNULIB_$1 as a C macro.
51067
51068         * doc/posix-functions/close.texi: Undo last change.
51069         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
51070         Windows platforms.
51071
51072 2008-10-21  Bruno Haible  <bruno@clisp.org>
51073
51074         Add gethostname() declaration to <unistd.h>.
51075         * lib/unistd.in.h (gethostname): New declaration.
51076         * lib/gethostname.c: Include <unistd.h>.
51077         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
51078         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
51079         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
51080         and HAVE_GETHOSTNAME.
51081         * modules/gethostname (Depends-on): Add unistd.
51082         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51083         (Include): Specify <unistd.h>.
51084         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
51085         HAVE_GETHOSTNAME.
51086         * tests/test-gethostname.c: Include <unistd.h> first.
51087
51088 2008-10-21  Bruno Haible  <bruno@clisp.org>
51089
51090         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
51091         * modules/select-tests (Depends-on): Likewise.
51092         Reported by Simon Josefsson.
51093
51094 2008-10-21  Simon Josefsson  <simon@josefsson.org>
51095
51096         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
51097         * lib/accept.c: New file, based on winsock.c.
51098         * lib/bind.c: New file, based on winsock.c.
51099         * lib/connect.c: New file, based on winsock.c.
51100         * lib/getpeername.c: New file, based on winsock.c.
51101         * lib/getsockname.c: New file, based on winsock.c.
51102         * lib/getsockopt.c: New file, based on winsock.c.
51103         * lib/ioctl.c: New file, based on winsock.c.
51104         * lib/listen.c: New file, based on winsock.c.
51105         * lib/recv.c: New file, based on winsock.c.
51106         * lib/recvfrom.c: New file, based on winsock.c.
51107         * lib/send.c: New file, based on winsock.c.
51108         * lib/sendto.c: New file, based on winsock.c.
51109         * lib/setsockopt.c: New file, based on winsock.c.
51110         * lib/shutdown.c: New file, based on winsock.c.
51111         * lib/socket.c: New file, based on winsock.c.
51112         * lib/w32sock.h: New file, based on winsock.c.
51113         * lib/winsock.c: Remove file.
51114         * modules/accept: Likewise.
51115         * modules/bind: Likewise.
51116         * modules/connect: Likewise.
51117         * modules/getpeername: Likewise.
51118         * modules/getsockname: Likewise.
51119         * modules/getsockopt: Likewise.
51120         * modules/ioctl: Likewise.
51121         * modules/listen: Likewise.
51122         * modules/recv: Likewise.
51123         * modules/recvfrom: Likewise.
51124         * modules/send: Likewise.
51125         * modules/sendto: Likewise.
51126         * modules/setsockopt: Likewise.
51127         * modules/shutdown: Likewise.
51128         * modules/socket: Use socket.c instead of winsock.c.
51129         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
51130         * doc/posix-functions/accept.texi: Doc fix.
51131         * doc/posix-functions/bind.texi: Doc fix.
51132         * doc/posix-functions/close.texi: Doc fix.
51133         * doc/posix-functions/connect.texi: Doc fix.
51134         * doc/posix-functions/getpeername.texi: Doc fix.
51135         * doc/posix-functions/getsockname.texi: Doc fix.
51136         * doc/posix-functions/getsockopt.texi: Doc fix.
51137         * doc/posix-functions/ioctl.texi: Doc fix.
51138         * doc/posix-functions/listen.texi: Doc fix.
51139         * doc/posix-functions/recv.texi: Doc fix.
51140         * doc/posix-functions/recvfrom.texi: Doc fix.
51141         * doc/posix-functions/send.texi: Doc fix.
51142         * doc/posix-functions/sendto.texi: Doc fix.
51143         * doc/posix-functions/setsockopt.texi: Doc fix.
51144         * doc/posix-functions/shutdown.texi: Doc fix.
51145         * doc/posix-functions/socket.texi: Doc fix.
51146
51147 2008-10-20  Bruno Haible  <bruno@clisp.org>
51148
51149         Take into account the role of SIGABRT_COMPAT on Windows 2008.
51150         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
51151         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
51152         as an alias for SIGABRT.
51153         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
51154         (sigaction): Map it to SIGABRT.
51155         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
51156
51157 2008-10-20  Bruno Haible  <bruno@clisp.org>
51158
51159         * lib/fts.c: Don't include lstat.h.
51160         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
51161
51162         Move the lstat() declaration to <sys/stat.h>.
51163         * lib/lstat.h: Remove file.
51164         * lib/sys_stat.in.h: Add special invocation convention.
51165         (lstat): New declaration.
51166         * lib/lstat.c (orig_lstat): New function.
51167         (rpl_lstat): Use orig_lstat instead of lstat.
51168         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
51169         AC_C_INLINE. Set REPLACE_LSTAT.
51170         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
51171         and REPLACE_LSTAT.
51172         * modules/lstat (Files): Remove lib/lstat.h.
51173         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
51174         (Include): Specify <sys/stat.h> instead of lstat.h.
51175         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
51176         REPLACE_LSTAT.
51177         * NEWS: Mention the change.
51178
51179 2008-10-20  Bruno Haible  <bruno@clisp.org>
51180
51181         * modules/posix_spawn-tests: New file.
51182         * tests/test-posix_spawn3.c: New file.
51183
51184 2008-10-20  Bruno Haible  <bruno@clisp.org>
51185
51186         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
51187         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
51188         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
51189         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
51190         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
51191
51192 2008-10-20  Bruno Haible  <bruno@clisp.org>
51193
51194         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
51195         of posix_spawn on AIX 5.3.
51196
51197 2008-10-20  Bruno Haible  <bruno@clisp.org>
51198
51199         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
51200
51201 2008-10-20  Bruno Haible  <bruno@clisp.org>
51202
51203         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
51204         of AC_LANG_PROGRAM.
51205
51206 2008-10-20  Simon Josefsson  <simon@josefsson.org>
51207
51208         * lib/netdb.in.h: Don't define GNU specific constants until they
51209         are supported or needed.  Reported by Bruno Haible
51210         <bruno@clisp.org>.
51211
51212 2008-10-20  Simon Josefsson  <simon@josefsson.org>
51213
51214         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
51215
51216 2008-10-20  Simon Josefsson  <simon@josefsson.org>
51217
51218         * lib/getaddrinfo.h: Remove file.
51219         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
51220         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
51221         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
51222         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
51223         * modules/netdb: Substitute GNULIB_GETADDRINFO.
51224         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
51225         * tests/test-getaddrinfo.c: Likewise.
51226         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
51227         * NEWS: Mention change.
51228
51229 2008-10-19  Bruno Haible  <bruno@clisp.org>
51230
51231         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
51232
51233 2008-10-19  Bruno Haible  <bruno@clisp.org>
51234
51235         * lib/wait-process.c: Include simply <sys/wait.h>.
51236         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
51237         WIFSTOPPED): Remove fallback definitions.
51238         * modules/wait-process (Depends-on): Add sys_wait.
51239
51240         New module 'sys_wait'.
51241         * modules/sys_wait: New file.
51242         * lib/sys_wait.in.h: New file, partially copied from
51243         lib/wait-process.c.
51244         * m4/sys_wait_h.m4: New file.
51245         * doc/posix-headers/sys_wait.texi: Mention the new module.
51246
51247 2008-10-19  Bruno Haible  <bruno@clisp.org>
51248
51249         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
51250
51251 2008-10-19  Bruno Haible  <bruno@clisp.org>
51252
51253         Assume that waitpid() fills an 'int' status, not a 'union wait'.
51254         * lib/wait-process.c (WAIT_T): Remove type.
51255         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
51256         (wait_subprocess): Update.
51257
51258 2008-10-19  Bruno Haible  <bruno@clisp.org>
51259
51260         New module 'atoll'.
51261         * modules/atoll: New file.
51262         * lib/stdlib.in.h (atoll): New declaration.
51263         * lib/atoll.c: New file, from glibc with modifications.
51264         * m4/atoll.m4: New file.
51265         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
51266         HAVE_ATOLL.
51267         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
51268         * doc/posix-functions/atoll.texi: Mention the new module.
51269
51270 2008-10-19  Bruno Haible  <bruno@clisp.org>
51271
51272         Add strtoull() declaration to <stdlib.h>.
51273         * lib/stdlib.in.h (strtoull): New declaration.
51274         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
51275         Set HAVE_STRTOULL.
51276         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
51277         HAVE_STRTOULL.
51278         * modules/strtoull (Depends-on): Add stdlib.
51279         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
51280         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
51281         HAVE_STRTOULL.
51282
51283 2008-10-19  Bruno Haible  <bruno@clisp.org>
51284
51285         Add strtoll() declaration to <stdlib.h>.
51286         * lib/stdlib.in.h (strtoll): New declaration.
51287         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
51288         Set HAVE_STRTOLL.
51289         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
51290         HAVE_STRTOLL.
51291         * modules/strtoll (Depends-on): Add stdlib.
51292         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
51293         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
51294
51295 2008-10-19  Bruno Haible  <bruno@clisp.org>
51296
51297         * modules/bcopy (Depends-on): Add strings.
51298         (Include): Specify <strings.h>.
51299
51300 2008-10-19  Bruno Haible  <bruno@clisp.org>
51301
51302         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
51303
51304 2008-10-19  Bruno Haible  <bruno@clisp.org>
51305
51306         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
51307         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
51308         mingw.
51309
51310 2008-10-19  Bruno Haible  <bruno@clisp.org>
51311
51312         * lib/atanl.c: Don't include isnanl.h.
51313         * lib/cosl.c: Likewise.
51314         * lib/ldexpl.c: Likewise.
51315         * lib/logl.c: Likewise.
51316         * lib/sinl.c: Likewise.
51317         * lib/sqrtl.c: Likewise.
51318         * lib/tanl.c: Likewise.
51319
51320         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
51321         * lib/isnanf.h: Remove file.
51322         * lib/isnand.h: Remove file.
51323         * lib/isnanl.h: Remove file.
51324         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
51325         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
51326         macros.
51327         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
51328         HAVE_ISNANF, don't define it as a C macro.
51329         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
51330         HAVE_ISNAND, don't define it as a C macro.
51331         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
51332         HAVE_ISNANL, don't define it as a C macro.
51333         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
51334         HAVE_ISNAN[FDL].
51335         * modules/isnanf (Files): Remove lib/isnanf.h.
51336         (Depends-on): Add math.
51337         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
51338         (Include): Specify <math.h> instead of isnanf.h.
51339         * modules/isnand (Files): Remove lib/isnand.h.
51340         (Depends-on): Add math.
51341         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
51342         (Include): Specify <math.h> instead of isnand.h.
51343         * modules/isnanl (Files): Remove lib/isnanl.h.
51344         (Depends-on): Add math.
51345         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
51346         (Include): Specify <math.h> instead of isnanl.h.
51347         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
51348         HAVE_ISNAN[FDL].
51349         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
51350         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
51351         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
51352         * NEWS: Mention the change.
51353
51354 2008-10-18  Bruno Haible  <bruno@clisp.org>
51355
51356         Add getusershell(), setusershell(), endusershell() declarations to
51357         <unistd.h>.
51358         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
51359         declarations.
51360         * lib/getusershell.c: Include unistd.h.
51361         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
51362         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
51363         HAVE_GETUSERSHELL.
51364         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
51365         and HAVE_GETUSERSHELL.
51366         * modules/getusershell (Depends-on): Add unistd, extensions.
51367         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51368         (Include): Specify <unistd.h>.
51369         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
51370         HAVE_GETUSERSHELL.
51371
51372 2008-10-18  Bruno Haible  <bruno@clisp.org>
51373
51374         Add a getloadavg() declaration to <stdlib.h>.
51375         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
51376         getloadavg declaration.
51377         (getloadavg): New declaration.
51378         * lib/getloadavg.c: Include <stdlib.h> first.
51379         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
51380         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
51381         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
51382         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
51383         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
51384         * modules/getloadavg (Depends-on): Add stdlib, extensions.
51385         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
51386         (Include): Specify <stdlib.h>.
51387         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
51388         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
51389
51390 2008-10-18  Bruno Haible  <bruno@clisp.org>
51391
51392         * lib/dirchownmod.c: Don't include lchmod.h.
51393
51394         Move the lchmod() declaration to <sys/stat.h>.
51395         * lib/lchmod.h: Remove file.
51396         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
51397         (lchmod): New declaration, moved here from lib/lchown.h.
51398         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
51399         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
51400         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
51401         and HAVE_LCHMOD.
51402         * modules/lchmod (Files): Remove lib/lchmod.h.
51403         (Depends-on): Add sys_stat, extensions.
51404         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
51405         (Include): Specify <sys/stat.h> instead of lchmod.h.
51406         * modules/sys_stat (Depends-on): Add link-warning.
51407         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
51408         definition of GL_LINK_WARNING.
51409         * NEWS: Mention the change.
51410
51411 2008-10-18  Bruno Haible  <bruno@clisp.org>
51412
51413         * lib/fchdir.c: Don't include dirfd.h.
51414         * lib/fts.c: Likewise.
51415         * lib/getcwd.c: Likewise.
51416         * lib/glob.c: Likewise.
51417
51418         Move the dirfd() declaration to <dirent.h>.
51419         * lib/dirfd.h: Remove file.
51420         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
51421         (dirfd): New declaration.
51422         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
51423         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
51424         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
51425         HAVE_DECL_DIRFD.
51426         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
51427         HAVE_DECL_DIRFD.
51428         * modules/dirfd (Files): Remove lib/dirfd.h.
51429         (Depends-on): Add dirent, extensions.
51430         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
51431         (Include): Specify <dirent.h> instead of dirfd.h.
51432         * modules/dirent (Depends-on): Add link-warning.
51433         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
51434         definition of GL_LINK_WARNING.
51435         * NEWS: Mention the change.
51436
51437 2008-10-18  Bruno Haible  <bruno@clisp.org>
51438
51439         Move the euidaccess() declaration to <unistd.h>.
51440         * lib/euidaccess.h: Remove file.
51441         * lib/unistd.in.h (euidaccess): New declaration.
51442         * lib/euidaccess.c: Don't include euidaccess.h.
51443         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
51444         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
51445         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
51446         and HAVE_EUIDACCESS.
51447         * modules/euidaccess (Files): Remove lib/euidaccess.h.
51448         (Depends-on): Add unistd.
51449         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51450         (Include): Specify <unistd.h> instead of euidaccess.h.
51451         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
51452         HAVE_EUIDACCESS.
51453         * NEWS: Mention the change.
51454
51455 2008-10-18  Bruno Haible  <bruno@clisp.org>
51456
51457         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
51458
51459         Move the getdomainname() declaration to <unistd.h>.
51460         * lib/getdomainname.h: Remove file.
51461         * lib/unistd.in.h (getdomainname): New declaration.
51462         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
51463         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
51464         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
51465         HAVE_GETDOMAINNAME.
51466         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
51467         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
51468         * modules/getdomainname (Files): Remove lib/getdomainname.h.
51469         (Depends-on): Add unistd, extensions.
51470         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51471         (Includes): Specify <unistd.h> instead of getdomainname.h.
51472         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
51473         HAVE_GETDOMAINNAME.
51474         * NEWS: Mention the change.
51475
51476 2008-10-18  Bruno Haible  <bruno@clisp.org>
51477
51478         * modules/dirent: New file.
51479         * m4/dirent_h.m4: New file.
51480         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
51481         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
51482         * modules/fchdir (Files): Remove lib/dirent.in.h.
51483         (Depends-on): Add dirent.
51484         (Makefile.am): Move rules to modules/dirent.
51485         * doc/posix-headers/dirent.texi: Mention the new module.
51486
51487 2008-10-18  Bruno Haible  <bruno@clisp.org>
51488
51489         Avoid -Wunused-parameter warnings in public gnulib header files.
51490         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
51491         macro.
51492         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
51493
51494 2008-10-18  Bruno Haible  <bruno@clisp.org>
51495
51496         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
51497         * doc/glibc-functions/error.texi: Mention the module 'error'.
51498         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
51499         * doc/glibc-functions/getdomainname.texi: Mention the module
51500         'getdomainname'.
51501         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
51502         * doc/glibc-functions/getpagesize.texi: Mention the module
51503         'getpagesize'.
51504         * doc/glibc-functions/getusershell.texi: Mention the module
51505         'getusershell'.
51506         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
51507         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
51508         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
51509         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
51510         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
51511         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
51512         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
51513         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
51514         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
51515         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
51516         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
51517         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
51518         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
51519         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
51520
51521 2008-10-17  Bruno Haible  <bruno@clisp.org>
51522
51523         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
51524         HP-UX and IRIX, use -0.0L.
51525         * tests/test-ceill.c (minus_zero): Likewise.
51526         * tests/test-floorl.c (minus_zero): Likewise.
51527         * tests/test-frexpl.c (minus_zero): Likewise.
51528         * tests/test-isnan.c (minus_zerol): Likewise.
51529         * tests/test-isnanl.h (minus_zero): Likewise.
51530         * tests/test-ldexpl.c (minus_zero): Likewise.
51531         * tests/test-roundl.c (minus_zero): Likewise.
51532         * tests/test-signbit.c (minus_zerol): Likewise.
51533         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
51534         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
51535         * tests/test-truncl.c (minus_zero): Likewise.
51536         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
51537         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
51538         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
51539         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
51540
51541 2008-10-17  Bruno Haible  <bruno@clisp.org>
51542
51543         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
51544         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
51545         that it gets activated only for gcc >= 3.0.
51546         * lib/dirent.in.h: Likewise.
51547         * lib/errno.in.h: Likewise.
51548         * lib/fcntl.in.h: Likewise.
51549         * lib/float.in.h: Likewise.
51550         * lib/iconv.in.h: Likewise.
51551         * lib/inttypes.in.h: Likewise.
51552         * lib/locale.in.h: Likewise.
51553         * lib/math.in.h: Likewise.
51554         * lib/netdb.in.h: Likewise.
51555         * lib/netinet_in.in.h: Likewise.
51556         * lib/search.in.h: Likewise.
51557         * lib/signal.in.h: Likewise.
51558         * lib/spawn.in.h: Likewise.
51559         * lib/stdarg.in.h: Likewise.
51560         * lib/stdint.in.h: Likewise.
51561         * lib/stdio.in.h: Likewise.
51562         * lib/stdlib.in.h: Likewise.
51563         * lib/string.in.h: Likewise.
51564         * lib/strings.in.h: Likewise.
51565         * lib/sys_file.in.h: Likewise.
51566         * lib/sys_ioctl.in.h: Likewise.
51567         * lib/sys_select.in.h: Likewise.
51568         * lib/sys_socket.in.h: Likewise.
51569         * lib/sys_stat.in.h: Likewise.
51570         * lib/sys_time.in.h: Likewise.
51571         * lib/sysexits.in.h: Likewise.
51572         * lib/time.in.h: Likewise.
51573         * lib/unistd.in.h: Likewise.
51574         * lib/wchar.in.h: Likewise.
51575         * lib/wctype.in.h: Likewise.
51576         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
51577
51578 2008-10-17  Jim Meyering  <meyering@redhat.com>
51579
51580         ignore-value: don't depend on inline module
51581         * modules/ignore-value (Depends-on): Remove 'inline'.
51582         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
51583         Suggestion from Bruno Haible.
51584
51585 2008-10-17  Bruno Haible  <bruno@clisp.org>
51586
51587         New implementation of condition variables for Win32.
51588         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
51589         (gl_linked_waitqueue_t): New type.
51590         (gl_cond_t): Use it.
51591         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
51592         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
51593         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
51594         (glthread_cond_init_func, glthread_cond_wait_func,
51595         glthread_cond_timedwait_func, glthread_cond_signal_func,
51596         glthread_cond_broadcast_func, glthread_cond_destroy_func):
51597         Reimplemented on the basis of gl_linked_waitqueue_t.
51598         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
51599         gl_waitqueue_t.
51600         (gl_rwlock_t): Update.
51601         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
51602
51603 2008-10-17  Simon Josefsson  <simon@josefsson.org>
51604
51605         * modules/recvfrom (Depends-on): Add dependency on getpeername.
51606         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
51607
51608 2008-10-17  Jim Meyering  <meyering@redhat.com>
51609
51610         ignore-value: new module
51611         * modules/ignore-value: New file.
51612         * lib/ignore-value.h: New file.
51613         * MODULES.html.sh (Compiler warning management): New section,
51614         just for this module.  More to come.
51615
51616 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
51617
51618         open-safer.c: avoid 'signed and unsigned in conditional...' warning
51619         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
51620         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
51621
51622 2008-10-16  Jim Meyering  <meyering@redhat.com>
51623
51624         openat-die.c: avoid 'no previous prototype' warning
51625         * lib/openat-die.c: Include "openat.h".
51626         Reported by Reuben Thomas <rrt@sc3d.org>.
51627
51628 2008-10-16  Simon Josefsson  <simon@josefsson.org>
51629
51630         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
51631         * lib/netdb.in.h: Fix typo.
51632         Reported by Bruno Haible  <bruno@clisp.org>
51633
51634         * lib/netdb.in.h: Include sys/socket.h for platforms without
51635         netdb.h, to get structures like hostent on MinGW.
51636         * modules/netdb (Depends-on): Add sys_socket.
51637
51638 2008-10-15  Simon Josefsson  <simon@josefsson.org>
51639
51640         * modules/netdb, modules/netdb-tests: New file.
51641         * m4/netdb_h.m4: New file.
51642         * lib/netdb.in.h: Add, currently just an empty file pending
51643         definitions.
51644         * tests/test-netdb.c: New file.
51645         * doc/posix-headers/netdb.texi: Mention that we replace it if
51646         needed.
51647         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
51648         netdb.
51649
51650 2008-10-15  Simon Josefsson  <simon@josefsson.org>
51651
51652         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
51653         with code.
51654
51655 2008-10-13  Bruno Haible  <bruno@clisp.org>
51656
51657         * lib/glthread/cond.c (glthread_cond_wait_func,
51658         glthread_cond_timedwait_func): Add a comment.
51659
51660 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
51661
51662         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
51663         * tests/test-select.c: Likewise,
51664
51665 2008-10-13  Bruno Haible  <bruno@clisp.org>
51666
51667         * lib/glthread/cond.c (glthread_cond_wait_func,
51668         glthread_cond_timedwait_func): Fix variable name.
51669         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
51670
51671 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
51672
51673         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
51674         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
51675         struct sockaddr.sa_len.
51676         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
51677
51678 2008-10-13  Simon Josefsson  <simon@josefsson.org>
51679
51680         * build-aux/pmccabe2html: Add css and css_url parameters.
51681
51682 2008-10-12  Bruno Haible  <bruno@clisp.org>
51683
51684         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
51685         calling aclx_get.
51686         Reported by Rainer Tammer <tammer@tammer.net>.
51687
51688 2008-10-12  Bruno Haible  <bruno@clisp.org>
51689
51690         Use msvcrt aware primitives for creation/termination of Win32 threads.
51691         * lib/glthread/thread.c: Include <process.h>.
51692         (glthread_create_func): Use _beginthreadex instead of CreateThread.
51693         (wrapper_func): Update signature.
51694         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
51695
51696 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
51697             Bruno Haible  <bruno@clisp.org>
51698
51699         Provide a Win32 implementation of the 'cond' module.
51700         * lib/glthread/cond.h [USE_WIN32]: New implementation.
51701         * lib/glthread/cond.c (glthread_cond_init_func,
51702         glthread_cond_wait_func, glthread_cond_timedwait_func,
51703         glthread_cond_signal_func, glthread_cond_broadcast_func,
51704         glthread_cond_destroy_func) [USE_WIN32]: New functions.
51705         * modules/cond (Dependencies): Add gettimeofday.
51706
51707 2008-10-11  Bruno Haible  <bruno@clisp.org>
51708
51709         Make sleep work on older versions of mingw.
51710         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
51711         only whether it exists.
51712         * doc/posix-functions/sleep.texi: Mention the problem with older
51713         versions of mingw.
51714
51715 2008-10-11  Bruno Haible  <bruno@clisp.org>
51716
51717         New module 'shutdown'.
51718         * modules/shutdown: New file.
51719         * lib/sys_socket.in.h (shutdown): New declaration.
51720         * lib/winsock.c (shutdown): New function.
51721         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
51722         GNULIB_SHUTDOWN.
51723         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
51724         * doc/posix-functions/shutdown.texi: Document the new module.
51725
51726 2008-10-11  Jim Meyering  <meyering@redhat.com>
51727
51728         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
51729
51730 2008-10-11  Bruno Haible  <bruno@clisp.org>
51731
51732         New module 'fclose'.
51733         * modules/fclose: New file.
51734         * lib/stdio.in.h (fclose): New declaration.
51735         * lib/fclose.c: New file.
51736         * m4/fclose.m4: New file.
51737         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
51738         REPLACE_FCLOSE.
51739         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
51740         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
51741         REPLACE_FCLOSE.
51742         * modules/close (Depends-on): fclose.
51743         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
51744
51745 2008-10-11  Bruno Haible  <bruno@clisp.org>
51746
51747         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
51748         set errno and don't call _close.
51749
51750 2008-10-10  Bruno Haible  <bruno@clisp.org>
51751
51752         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
51753         ACL, not afterwards. Fixes test failure on Cygwin.
51754
51755 2008-10-09  Ben Pfaff  <blp@gnu.org>
51756
51757         * build-aux/announce-gen: Fix gnulib version related part of usage
51758         message.  Die with a useful error message if no tarballs are
51759         found.
51760
51761 2008-10-10  Jim Meyering  <meyering@redhat.com>
51762
51763         bootstrap: use git's --depth=N option only if it's supported
51764         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
51765         recognize the --depth option.  Reported by Pádraig Brady.
51766
51767 2008-10-09  Bruno Haible  <bruno@clisp.org>
51768
51769         New module 'ioctl'.
51770         * modules/ioctl: New file.
51771         * lib/sys_socket.in.h (ioctl): Remove declaration.
51772         * lib/winsock.c: Include <sys/ioctl.h>.
51773         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
51774         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
51775         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
51776         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
51777         * doc/posix-functions/ioctl.texi: Mention the new module.
51778
51779 2008-10-09  Bruno Haible  <bruno@clisp.org>
51780
51781         New module 'sys_ioctl'.
51782         * lib/sys_ioctl.in.h: New file.
51783         * m4/sys_ioctl_h.m4: New file.
51784         * modules/sys_ioctl: New file.
51785         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
51786
51787 2008-10-09  Bruno Haible  <bruno@clisp.org>
51788
51789         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
51790         * lib/winsock.c: Include <stdarg.h>.
51791         (rpl_ioctl): Change to second argument 'int' and then varargs.
51792
51793 2008-10-09  Bruno Haible  <bruno@clisp.org>
51794
51795         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
51796         when the sys_socket module is present and the system has <winsock2.h>.
51797
51798 2008-10-09  Bruno Haible  <bruno@clisp.org>
51799
51800         * doc/posix-functions/close.texi: Mention module 'close' instead of
51801         module 'sys_socket'.
51802
51803 2008-10-09  Bruno Haible  <bruno@clisp.org>
51804
51805         * doc/glibc-headers/sys_ioctl.texi: New file.
51806         * doc/gnulib.texi: Include it.
51807
51808 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
51809             Bruno Haible  <bruno@clisp.org>
51810
51811         Combine the two replacements of 'close'.
51812         * lib/sys_socket.in.h (close): Define to a reminder to include
51813         <unistd.h>.
51814         (_gl_close_fd_maybe_socket): New declaration.
51815         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
51816         * lib/winsock.c (close): Remove undefinition.
51817         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
51818         needed for the gnulib module 'close'.
51819         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
51820         define to an error symbol or to a warning, if suitable.
51821         * lib/close.c: Include <sys/socket.h>.
51822         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
51823         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
51824         UNISTD_H_HAVE_WINSOCK2_H.
51825         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
51826         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
51827         UNISTD_H_HAVE_WINSOCK2_H.
51828         * modules/sys_socket (Files): Add m4/unistd_h.m4.
51829         (configure.ac): Set a module indicator.
51830         (Makefile.am): Substitute GNULIB_CLOSE.
51831         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
51832         * modules/poll-tests (Depends-on): Add close.
51833         * modules/select-tests (Depends-on): Likewise.
51834
51835 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
51836             Bruno Haible  <bruno@clisp.org>
51837
51838         New module 'close'.
51839         * modules/close: New file.
51840         * lib/unistd.in.h (close): Move declaration out of the
51841         FCHDIR_REPLACEMENT scope.
51842         (_gl_unregister_fd): New declaration.
51843         * lib/close.c: New file.
51844         * lib/fchdir.c (rpl_close): Remove function.
51845         * m4/close.m4: New file.
51846         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
51847         close.
51848         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
51849         REPLACE_CLOSE.
51850         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
51851         REPLACE_CLOSE.
51852         * modules/fchdir (Depends-on): Add close.
51853
51854 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
51855             Bruno Haible  <bruno@clisp.org>
51856
51857         * lib/fcntl.in.h (open): Simplify conditionals.
51858         (_gl_register_fd): New declaration.
51859         * lib/fchdir.c (rpl_open): Remove function.
51860         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
51861         also.
51862         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
51863         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
51864         open.
51865
51866 2008-10-09  Jim Meyering  <meyering@redhat.com>
51867
51868         GNUmakefile: use the more name-space-friendly "_version"
51869         * top/GNUmakefile (_dummy): Update.
51870         (_version): Rename from "version".
51871
51872 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
51873             Bruno Haible  <bruno@clisp.org>
51874
51875         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
51876         rpl_close.
51877         (_gl_register_fd): New function, extracted from rpl_open.
51878         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
51879         (rpl_open, rpl_opendir): Use _gl_register_fd.
51880
51881 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
51882
51883         Fix organization of 'open' replacement.
51884         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
51885         (gl_FUNC_OPEN): Use it.
51886         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
51887
51888 2008-10-08  Bruno Haible  <bruno@clisp.org>
51889
51890         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
51891
51892 2008-10-08  Simon Josefsson  <simon@josefsson.org>
51893
51894         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
51895         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
51896         listen).
51897
51898 2008-10-08  Eric Blake  <ebb9@byu.net>
51899
51900         GNUmakefile: add 'make version' target
51901         * top/GNUmakefile (_curr-ver): Split version update rules...
51902         (version): ...into a target.
51903
51904 2008-10-07  Bruno Haible  <bruno@clisp.org>
51905
51906         Use a more portable replacement expression for -0.0L.
51907         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
51908         instead of -0.0L. Fix m4 quotation.
51909
51910         * tests/test-signbit.c: Include <float.h>.
51911         (minus_zero): New variable.
51912         (test_signbitl): Use minus_zero instead of -zero.
51913         * modules/signbit-tests (Depends-on): Add float.
51914
51915         * tests/test-ceill.c: Include <float.h>.
51916         (zero): Remove variable.
51917         (minus_zero): New variable.
51918         (main): Use minus_zero instead of -zero.
51919         * modules/ceill-tests (Depends-on): Add float.
51920
51921         * tests/test-floorl.c: Include <float.h>.
51922         (zero): Remove variable.
51923         (minus_zero): New variable.
51924         (main): Use minus_zero instead of -zero.
51925         * modules/floorl-tests (Depends-on): Add float.
51926
51927         * tests/test-roundl.c: Include <float.h>.
51928         (zero): Remove variable.
51929         (minus_zero): New variable.
51930         (main): Use minus_zero instead of -zero.
51931         * modules/roundl-tests (Depends-on): Add float.
51932
51933         * tests/test-truncl.c: Include <float.h>.
51934         (zero): Remove variable.
51935         (minus_zero): New variable.
51936         (main): Use minus_zero instead of -zero.
51937         * modules/truncl-tests (Depends-on): Add float.
51938
51939         * tests/test-frexpl.c (zero): Remove variable.
51940         (minus_zero): New variable.
51941         (main): Use minus_zero instead of -zero.
51942         * modules/frexpl-tests (Depends-on): Add float.
51943
51944         * tests/test-isnan.c (zerol): Remove variable.
51945         (minus_zerol): New variable.
51946         (test_long_double): Use minus_zerol instead of -zerol.
51947         * modules/isnan-tests (Depends-on): Add float.
51948
51949         * tests/test-isnanl.h (zero): Remove variable.
51950         (minus_zero): New variable.
51951         (main): Use minus_zero instead of -zero.
51952         * modules/isnanl-nolibm-tests (Depends-on): Add float.
51953         * modules/isnanl-tests (Depends-on): Add float.
51954
51955         * tests/test-ldexpl.c (zero): Remove variable.
51956         (minus_zero): New variable.
51957         (main): Use minus_zero instead of -zero.
51958         * modules/ldexpl-tests (Depends-on): Add float.
51959
51960         * tests/test-snprintf-posix.h (zerol): Remove variable.
51961         (minus_zerol): New variable.
51962         (test_function): Use minus_zerol instead of -zerol.
51963         * modules/snprintf-posix-tests (Depends-on): Add float.
51964         * modules/vsnprintf-posix-tests (Depends-on): Add float.
51965
51966         * tests/test-sprintf-posix.h (zerol): Remove variable.
51967         (minus_zerol): New variable.
51968         (test_function): Use minus_zerol instead of -zerol.
51969         * modules/sprintf-posix-tests (Depends-on): Add float.
51970         * modules/vsprintf-posix-tests (Depends-on): Add float.
51971
51972         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
51973         (minus_zerol): New variable.
51974         (test_function): Use minus_zerol instead of -zerol.
51975         * modules/vasnprintf-posix-tests (Depends-on): Add float.
51976
51977         * tests/test-vasprintf-posix.c (zerol): Remove variable.
51978         (minus_zerol): New variable.
51979         (test_function): Use minus_zerol instead of -zerol.
51980         * modules/vasprintf-posix-tests (Depends-on): Add float.
51981
51982 2008-10-07  Simon Josefsson  <simon@josefsson.org>
51983
51984         * MODULES.html.sh (Support for building documentation): Mention
51985         pmccabe2html.  Sort entries.
51986
51987         Add pmccabe2html module, from gnupdf.
51988         * build-aux/pmccabe.css: New file.
51989         * build-aux/pmccabe2html: New file.
51990         * m4/pmccabe2html.m4: New file.
51991         * modules/pmccabe2html: New file.
51992
51993 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
51994
51995         flock: new module
51996         * MODULES.html.sh: Add to list of modules.
51997         * lib/flock.c: flock implementation for Windows and Unix systems
51998         which have fcntl.
51999         * doc/glibc-functions/flock.texi: Update documentation.
52000         * lib/sys_file.in.h: <sys/file.h> header file.
52001         * m4/flock.m4: M4 macros.
52002         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
52003         * modules/flock: flock module.
52004         * modules/flock-tests: flock tests module.
52005         * modules/sys_file: sys/file.h module.
52006         * tests/test-flock.c: test suite for flock.
52007
52008 2008-10-06  Jim Meyering  <meyering@redhat.com>
52009
52010         bootstrap: check for LT_INIT more portably still ;-)
52011         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
52012         Spotted by Bruno Haible.
52013
52014 2008-10-06  Eric Blake  <ebb9@byu.net>
52015
52016         test-signbit: avoid tripping Irix cc bug on -0.0L
52017         * tests/test-signbit.c (minus_zerol): Delete, and replace with
52018         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
52019         entire testsuite consistent and avoids an Irix 6.2 bug.
52020
52021 2008-10-05  Bruno Haible  <bruno@clisp.org>
52022             Jim Meyering  <jim@meyering.net>
52023
52024         Add an option for ignoring EPIPE during close_stdout.
52025         * lib/closeout.h: Include <stdbool.h>.
52026         (close_stdout_set_ignore_EPIPE): New declaration.
52027         * lib/closeout.c: Include <stdbool.h>.
52028         (ignore_EPIPE): New variable.
52029         (close_stdout_set_ignore_EPIPE): New function.
52030         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
52031         * lib/close-stream.c (close_stream): Mention the possible EPIPE
52032         failure.
52033         * modules/closeout (Depends-on): Add stdbool.
52034
52035 2008-10-05  Bruno Haible  <bruno@clisp.org>
52036
52037         * modules/accept: New file.
52038         * modules/bind: New file.
52039         * modules/connect: New file.
52040         * modules/getpeername: New file.
52041         * modules/getsockname: New file.
52042         * modules/getsockopt: New file.
52043         * modules/listen: New file.
52044         * modules/recv: New file.
52045         * modules/recvfrom: New file.
52046         * modules/send: New file.
52047         * modules/sendto: New file.
52048         * modules/setsockopt: New file.
52049         * modules/socket: New file.
52050         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
52051         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
52052         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
52053         the particular module is requested. Add a link warning when the
52054         particular module is not requested.
52055         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
52056         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
52057         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
52058         the particular module is requested.
52059         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
52060         gl_SYS_SOCKET_H_DEFAULTS): New macros.
52061         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
52062         * modules/sys_socket (Depends-on): Add link-warning.
52063         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
52064         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
52065         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
52066         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
52067         GL_LINK_WARNING.
52068         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
52069         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
52070         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
52071         * doc/posix-functions/getpeername.texi: Mention the new module
52072         'getpeername'.
52073         * doc/posix-functions/getsockname.texi: Mention the new module
52074         'getsockname'.
52075         * doc/posix-functions/getsockopt.texi: Mention the new module
52076         'getsockopt'.
52077         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
52078         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
52079         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
52080         * doc/posix-functions/send.texi: Mention the new module 'send'.
52081         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
52082         * doc/posix-functions/setsockopt.texi: Mention the new module
52083         'setsockopt'.
52084         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
52085         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
52086         listen, connect, accept.
52087         * modules/select-tests (Depends-on): Likewise.
52088
52089 2008-10-05  Bruno Haible  <bruno@clisp.org>
52090
52091         * lib/winsock.c (strerror): Remove unused #undef.
52092         (rpl_close): Remove unused local variable.
52093
52094         * modules/sys_socket (Depends-on); Add errno.
52095
52096 2008-10-05  Bruno Haible  <bruno@clisp.org>
52097
52098         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
52099         (select): Add a link warning when the 'select' module is not used.
52100         * modules/sys_select (Depends-on): Add link-warning.
52101         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
52102         Suggested by Paolo Bonzini.
52103
52104 2008-10-05  Jim Meyering  <meyering@redhat.com>
52105
52106         bootstrap: check for LT_INIT more portably
52107         * build-aux/bootstrap: Avoid using grep -E, since it's not
52108         portable enough.  Suggestion from Bruno Haible.
52109
52110 2008-10-05  Bruno Haible  <bruno@clisp.org>
52111
52112         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
52113         as being fixed by gnulib.
52114
52115 2008-10-05  Bruno Haible  <bruno@clisp.org>
52116
52117         * modules/select-tests: New file, mostly copied from
52118         modules/sys_select-tests.
52119         * tests/test-select.c: New file, mostly copied from
52120         tests/test-sys_select.c.
52121         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
52122         * modules/sys_select-tests (Depends-on): Remove all dependencies.
52123         (Makefile.am): Remove test_sys_select_LDADD.
52124
52125         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
52126         to an undefined symbol, for an error message.
52127         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
52128         (gl_SYS_SELECT_H_DEFAULTS): New macro.
52129         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
52130         winsock-select.c here.
52131         * modules/sys_select (Files): Remove lib/winsock-select.c.
52132         (Depends-on): Remove alloca.
52133         (Makefile.am): Substitute GNULIB_SELECT.
52134         * modules/select: New file.
52135         * doc/posix-functions/select.texi: Update.
52136
52137 2008-10-05  Bruno Haible  <bruno@clisp.org>
52138
52139         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
52140         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
52141         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
52142         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
52143         getdtablesize.
52144         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
52145         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
52146
52147 2008-10-05  Bruno Haible  <bruno@clisp.org>
52148
52149         * modules/getdtablesize-tests: New file.
52150         * tests/test-getdtablesize.c: New file.
52151
52152         New module 'getdtablesize'.
52153         * lib/unistd.in.h (getdtablesize): New declaration.
52154         * lib/getdtablesize.c: New file.
52155         * m4/getdtablesize.m4: New file.
52156         * modules/getdtablesize: New file.
52157         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
52158         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
52159         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
52160         HAVE_GETDTABLESIZE.
52161         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
52162
52163 2008-10-05  Bruno Haible  <bruno@clisp.org>
52164
52165         * modules/sched (Makefile.am): Fix typo.
52166         Reported by Simon Josefsson.
52167
52168 2008-10-05  Jim Meyering  <meyering@redhat.com>
52169
52170         bootstrap: check for LT_INIT, too
52171         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
52172         are deprecated.  Suggestion from Ralf Wildenhues.
52173
52174 2008-10-05  Bruno Haible  <bruno@clisp.org>
52175
52176         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
52177         overriding them by ours.
52178         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
52179
52180 2008-10-05  Jim Meyering  <meyering@redhat.com>
52181
52182         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
52183         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
52184         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
52185
52186 2008-10-04  Bruno Haible  <bruno@clisp.org>
52187
52188         * modules/dup2 (License): Change to LGPLv2+.
52189         * modules/sleep (License): Likewise.
52190         * modules/perror (License): Likewise.
52191         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
52192         Blake.
52193         * modules/signal (License): Likewise.
52194         * modules/sigprocmask (License): Likewise.
52195         * modules/raise (License): Change to LGPLv2+, with approval by Jim
52196         Meyering.
52197
52198 2008-10-04  Bruno Haible  <bruno@clisp.org>
52199
52200         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
52201         Reported by Rainer Tammer <tammer@tammer.net>.
52202
52203 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
52204             Bruno Haible  <bruno@clisp.org>
52205
52206         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
52207         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
52208         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
52209
52210 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
52211
52212         filevercmp: new module
52213         * lib/filevercmp.h: New function filevercmp comparing version strings.
52214         * lib/filevercmp.c: Implementation of filevercmp function.
52215         * modules/filevercmp: Module metadata.
52216         * tests/test-filevercmp.c: Unit test for new module.
52217         * modules/filevercmp-tests: Unit test metadata.
52218         * MODULES.html.sh: Add filevercmp module.
52219
52220 2008-10-03  Bruno Haible  <bruno@clisp.org>
52221
52222         * lib/c-ctype.h: Add comment.
52223         Reported by Jim Meyering.
52224
52225 2008-10-02  Bruno Haible  <bruno@clisp.org>
52226
52227         * modules/posix_spawn-internal (Depends-on): Add 'open'.
52228
52229 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
52230
52231         * build-aux/bootstrap: Allow renaming bootstrap, and change the
52232         name of bootstrap.conf accordingly.
52233
52234 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
52235
52236         * build-aux/bootstrap: Install git-merge-changelog configuration
52237         items into .gitconfig if needed.
52238
52239 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
52240
52241         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
52242         git repository, and initialize/update it accordingly.
52243
52244 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
52245
52246         * modules/fsync-tests: New file.
52247         * tests/test-fsync.c: New file.
52248
52249         New module 'fsync'.
52250         * lib/fsync.c: New file.
52251         * m4/fsync.m4: New file.
52252         * modules/fsync: New file.
52253         * lib/unistd.in.h (fsync): New declaration.
52254         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
52255         GNULIB_FSYNC and HAVE_FSYNC.
52256         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
52257         * MODULES.html.sh (posix_functions): Add fsync.
52258         * doc/posix-functions/fsync.texi: Mention the new module.
52259
52260 2008-10-02  Jim Meyering  <meyering@redhat.com>
52261
52262         fts.c: sync with similar code from coreutils' remove.c
52263         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
52264         Guard also with "#if defined __linux__", since for now at least,
52265         this code is Linux-kernel-specific.
52266
52267 2008-10-02  Jim Meyering  <meyering@redhat.com>
52268
52269         fts: bug fixes
52270         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
52271         Include <sys/vfs.h>, not <sys/statfs.h>.
52272
52273         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
52274         Include <sys/vfs.h>, not <sys/statfs.h>.
52275
52276 2008-10-01  Bruno Haible  <bruno@clisp.org>
52277
52278         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
52279         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
52280         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
52281         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
52282         * doc/posix-functions/posix_spawnp.texi: Likewise.
52283         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
52284         whether posix_spawn actually works.
52285         * m4/pipe.m4 (gl_PIPE): Likewise.
52286         * modules/execute (Files): Add m4/posix_spawn.m4.
52287         * modules/pipe (Files): Add m4/posix_spawn.m4.
52288         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
52289
52290 2008-10-01  Jim Meyering  <meyering@redhat.com>
52291
52292         remove trailing spaces
52293         * NEWS: Likewise.
52294         * lib/poll.c (poll): Likewise.
52295         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
52296         * lib/winsock.c (rpl_close): Likewise.
52297         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
52298         * modules/yield: Likewise.
52299         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
52300         * tests/test-sys_select.c (connect_to_socket): Likewise.
52301
52302         fts.c: adjust a new interface to be more generally useful
52303         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
52304         (fts_build): Adjust caller.
52305
52306 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52307
52308         * modules/cond-tests: New file.
52309         * tests/test-cond.c: New file.
52310
52311 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52312             Bruno Haible  <bruno@clisp.org>
52313
52314         * modules/cond (Dependencies): Add errno, time.
52315         * lib/glthread/cond.h: Include <time.h>.
52316         (gl_cond_define, gl_cond_define_initialized): Use the same definition
52317         across platforms.
52318
52319 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52320             Bruno Haible  <bruno@clisp.org>
52321
52322         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
52323
52324 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52325             Bruno Haible  <bruno@clisp.org>
52326
52327         * modules/tls-tests (Depends-on): Add thread, yield.
52328         (configure.ac): Remove all checks.
52329         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
52330         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
52331         gl_thread_self): Remove definitions. Include glthread/thread.h and
52332         glthread/yield.h instead.
52333         (test_tls): Pass an additional NULL argument to gl_thread_join.
52334
52335 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52336             Bruno Haible  <bruno@clisp.org>
52337
52338         * modules/lock-tests (Depends-on): Add thread, yield.
52339         (configure.ac): Remove all checks.
52340         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
52341         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
52342         gl_thread_self): Remove definitions. Include glthread/thread.h and
52343         glthread/yield.h instead.
52344         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
52345         additional NULL argument to gl_thread_join.
52346
52347 2008-09-30  Bruno Haible  <bruno@clisp.org>
52348
52349         Fix the Win32 implementation of the 'thread' module.
52350         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
52351         pointer type.
52352         (gl_thread_self): Invoke gl_thread_self_func.
52353         (gl_thread_self_func): New declaration.
52354         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
52355         (do_init_self_key, init_self_key): New functions.
52356         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
52357         Remove some fields.
52358         (running_threads, running_lock): Remove variables.
52359         (get_current_thread_handle): New function.
52360         (gl_thread_self_func, wrapper_func, glthread_create_func,
52361         glthread_join_func, gl_thread_exit_func): Largely rewritten and
52362         simplified.
52363
52364 2008-09-30  Bruno Haible  <bruno@clisp.org>
52365
52366         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
52367         files.
52368
52369 2008-09-30  Jim Meyering  <meyering@redhat.com>
52370
52371         fts.m4: correct the test for statfs.f_type
52372         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
52373         when checking for statfs.f_type.
52374
52375 2008-09-15  Simon Josefsson  <simon@josefsson.org>
52376
52377         tests: avoid some compiler warnings
52378         * tests/test-memchr.c (main): Pass NULL indirectly.
52379         * tests/test-getdate.c (main): Remove unused variable 'ret'.
52380
52381 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
52382
52383         getdate.y: disallow countable dayshifts like "4 yesterday ago"
52384         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
52385         exactly specified dayshifts.
52386         (dayshift): New rule.
52387         (rel): Add dayshift.
52388         (relative_time_table) [tomorrow, yesterday, today, now]:
52389         Use tDAY_SHIFT in place of tDAY_UNIT.
52390         * tests/test-getdate.c: Add tests for now-disallowed countable
52391         dayshifts, e.g., "4 yesterday ago".
52392
52393 2008-09-29  Bruno Haible  <bruno@clisp.org>
52394
52395         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
52396         * tests/test-posix_spawn1.in.sh: Renamed from
52397         tests/test-posix_spawn.in.sh.
52398         * tests/test-posix_spawn2.c: New file.
52399         * tests/test-posix_spawn2.in.sh: New file.
52400         * modules/posix_spawnp-tests (Files): Update.
52401         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
52402
52403 2008-09-29  Bruno Haible  <bruno@clisp.org>
52404
52405         Propagate effects of putenv/setenv/unsetenv to child processes.
52406         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
52407         * lib/pipe.c (create_pipe): Likewise.
52408
52409 2008-09-29  Bruno Haible  <bruno@clisp.org>
52410
52411         Enable use of shell scripts as executables in mingw.
52412         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
52413         run the program as a shell script.
52414         * lib/pipe.c (create_pipe): Likewise.
52415         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
52416         resulting array.
52417
52418 2008-09-29  Eric Blake  <ebb9@byu.net>
52419
52420         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
52421
52422 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
52423
52424         * doc/posix-functions/accept.texi: Update mingw problems.
52425         * doc/posix-functions/bind.texi: Update mingw problems.
52426         * doc/posix-functions/close.texi: Update mingw problems.
52427         * doc/posix-functions/connect.texi: Update mingw problems.
52428         * doc/posix-functions/getpeername.texi: Update mingw problems.
52429         * doc/posix-functions/getsockname.texi: Update mingw problems.
52430         * doc/posix-functions/getsockopt.texi: Update mingw problems.
52431         * doc/posix-functions/ioctl.texi: Update mingw problems.
52432         * doc/posix-functions/listen.texi: Update mingw problems.
52433         * doc/posix-functions/recv.texi: Update mingw problems.
52434         * doc/posix-functions/recvfrom.texi: Update mingw problems.
52435         * doc/posix-functions/select.texi: Update mingw problems.
52436         * doc/posix-functions/send.texi: Update mingw problems.
52437         * doc/posix-functions/sendto.texi: Update mingw problems.
52438         * doc/posix-functions/setsockopt.texi: Update mingw problems.
52439         * doc/posix-functions/socket.texi: Update mingw problems.
52440
52441 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
52442             Bruno Haible  <bruno@clisp.org>
52443
52444         * lib/sys_select.in.h: Include sys/time.h.
52445         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
52446         * modules/sys_select: Depend on sys_time.
52447         * tests/test-sys_select.c: Test that sys/select.h defines struct
52448         timeval fully.
52449
52450 2008-09-29  Bruno Haible  <bruno@clisp.org>
52451
52452         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
52453         * lib/sys_select.in.h: Likewise.
52454
52455 2008-09-29  Bruno Haible  <bruno@clisp.org>
52456
52457         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
52458
52459 2008-09-29  Bruno Haible  <bruno@clisp.org>
52460
52461         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
52462         Set LIBSOCKET instead of augmenting LIBS.
52463         * modules/sockets (Link): New section.
52464         * modules/sockets-tests (test_sockets_LDADD): New variable.
52465         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
52466         * modules/poll-tests (test_poll_LDADD): New variable.
52467         * NEWS: Document the change.
52468
52469 2008-09-29  Bruno Haible  <bruno@clisp.org>
52470
52471         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
52472         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
52473         ARPA_INET_H directly.
52474         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
52475
52476 2008-09-28  Bruno Haible  <bruno@clisp.org>
52477
52478         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
52479         from gl_HEADER_SYS_SOCKET.
52480         (gl_HEADER_SYS_SOCKET): Invoke it.
52481         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
52482
52483 2008-09-28  Bruno Haible  <bruno@clisp.org>
52484
52485         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
52486         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
52487         Needed on OSF/1 4.0.
52488
52489 2008-09-28  Bruno Haible  <bruno@clisp.org>
52490
52491         Override open more carefully.
52492         * lib/open.c (orig_open): New function.
52493         (rpl_open): Use orig_open instead of open.
52494         * lib/fcntl.in.h: Add special invocation convention.
52495         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
52496         (gl_FUNC_OPEN): Invoke it.
52497
52498         Override freopen more carefully.
52499         * lib/freopen.c (orig_freopen): New function.
52500         (rpl_freopen): Use orig_freopen instead of freopen.
52501         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
52502         (gl_FUNC_FREOPEN): Invoke it.
52503
52504         Override fopen more carefully.
52505         * lib/fopen.c (orig_fopen): New function.
52506         (rpl_fopen): Use orig_fopen instead of fopen.
52507         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
52508         (gl_FUNC_FOPEN): Invoke it.
52509         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
52510
52511 2008-09-28  Bruno Haible  <bruno@clisp.org>
52512
52513         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
52514         SIGPIPE.
52515
52516 2008-09-28  Bruno Haible  <bruno@clisp.org>
52517
52518         * tests/test-sigaction.c (handler, main): Disable the check whether
52519         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
52520         glibc systems with LinuxThreads.
52521
52522 2008-09-28  Bruno Haible  <bruno@clisp.org>
52523
52524         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
52525
52526         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
52527         with AIX xlc.
52528         * lib/fcntl.in.h (open): Likewise.
52529         Reported by Rainer Tammer <tammer@tammer.net>.
52530
52531 2008-09-28  Bruno Haible  <bruno@clisp.org>
52532
52533         * modules/posix_spawnp-tests: New file.
52534         * tests/test-posix_spawn.c: New file.
52535         * tests/test-posix_spawn.in.sh: New file.
52536
52537         New module 'posix_spawnp'.
52538         * modules/posix_spawnp: New file.
52539         * lib/spawnp.c: New file, from GNU libc with modifications.
52540         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
52541
52542         New module 'posix_spawn'.
52543         * modules/posix_spawn: New file.
52544         * lib/spawn.c: New file, from GNU libc with modifications.
52545         * doc/posix-functions/posix_spawn.texi: Mention the new module.
52546
52547         New module 'posix_spawnattr_destroy'.
52548         * modules/posix_spawnattr_destroy: New file.
52549         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
52550         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
52551         module.
52552
52553         New module 'posix_spawnattr_setsigmask'.
52554         * modules/posix_spawnattr_setsigmask: New file.
52555         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
52556         modifications.
52557         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
52558         new module.
52559
52560         New module 'posix_spawnattr_getsigmask'.
52561         * modules/posix_spawnattr_getsigmask: New file.
52562         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
52563         modifications.
52564         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
52565         new module.
52566
52567         New module 'posix_spawnattr_setsigdefault'.
52568         * modules/posix_spawnattr_setsigdefault: New file.
52569         * lib/spawnattr_setdefault.c: New file, from GNU libc with
52570         modifications.
52571         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
52572         new module.
52573
52574         New module 'posix_spawnattr_getsigdefault'.
52575         * modules/posix_spawnattr_getsigdefault: New file.
52576         * lib/spawnattr_getdefault.c: New file, from GNU libc with
52577         modifications.
52578         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
52579         new module.
52580
52581         New module 'posix_spawnattr_setschedpolicy'.
52582         * modules/posix_spawnattr_setschedpolicy: New file.
52583         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
52584         modifications.
52585         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
52586         new module.
52587
52588         New module 'posix_spawnattr_getschedpolicy'.
52589         * modules/posix_spawnattr_getschedpolicy: New file.
52590         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
52591         modifications.
52592         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
52593         new module.
52594
52595         New module 'posix_spawnattr_setschedparam'.
52596         * modules/posix_spawnattr_setschedparam: New file.
52597         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
52598         modifications.
52599         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
52600         new module.
52601
52602         New module 'posix_spawnattr_getschedparam'.
52603         * modules/posix_spawnattr_getschedparam: New file.
52604         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
52605         modifications.
52606         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
52607         new module.
52608
52609         New module 'posix_spawnattr_setpgroup'.
52610         * modules/posix_spawnattr_setpgroup: New file.
52611         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
52612         modifications.
52613         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
52614         module.
52615
52616         New module 'posix_spawnattr_getpgroup'.
52617         * modules/posix_spawnattr_getpgroup: New file.
52618         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
52619         modifications.
52620         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
52621         module.
52622
52623         New module 'posix_spawnattr_setflags'.
52624         * modules/posix_spawnattr_setflags: New file.
52625         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
52626         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
52627         module.
52628
52629         New module 'posix_spawnattr_getflags'.
52630         * modules/posix_spawnattr_getflags: New file.
52631         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
52632         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
52633         module.
52634
52635         New module 'posix_spawnattr_init'.
52636         * modules/posix_spawnattr_init: New file.
52637         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
52638         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
52639         module.
52640
52641         New module 'posix_spawn_file_actions_destroy'.
52642         * modules/posix_spawn_file_actions_destroy: New file.
52643         * lib/spawn_faction_destroy.c: New file, from GNU libc with
52644         modifications.
52645         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
52646         the new module.
52647
52648         New module 'posix_spawn_file_actions_addopen'.
52649         * modules/posix_spawn_file_actions_addopen: New file.
52650         * lib/spawn_faction_addopen.c: New file, from GNU libc with
52651         modifications.
52652         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
52653         the new module.
52654
52655         New module 'posix_spawn_file_actions_adddup2'.
52656         * modules/posix_spawn_file_actions_adddup2: New file.
52657         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
52658         modifications.
52659         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
52660         the new module.
52661
52662         New module 'posix_spawn_file_actions_addclose'.
52663         * modules/posix_spawn_file_actions_addclose: New file.
52664         * lib/spawn_faction_addclose.c: New file, from GNU libc with
52665         modifications.
52666         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
52667         the new module.
52668
52669         New module 'posix_spawn_file_actions_init'.
52670         * modules/posix_spawn_file_actions_init: New file.
52671         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
52672         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
52673         new module.
52674
52675         New module 'posix_spawn-internal'.
52676         * modules/posix_spawn-internal: New file.
52677         * lib/spawn_int.h: New file, from GNU libc with modifications.
52678         * lib/spawni.c: New file, from GNU libc with modifications.
52679         * m4/posix_spawn.m4: New file.
52680
52681         New module 'spawn'.
52682         * modules/spawn: New file.
52683         * lib/spawn.in.h: New file, from GNU libc with modifications.
52684         * m4/spawn_h.m4: New file.
52685         * doc/posix-headers/spawn.texi: Mention the new module.
52686
52687 2008-09-28  Bruno Haible  <bruno@clisp.org>
52688
52689         * modules/sched-tests: New file.
52690         * tests/test-sched.c: New file.
52691
52692         New module 'sched'.
52693         * modules/sched: New file.
52694         * lib/sched.in.h: New file.
52695         * m4/sched_h.m4: New file.
52696         * doc/posix-headers/sched.texi: Mention the new module.
52697
52698 2008-09-27  Eric Blake  <ebb9@byu.net>
52699
52700         Fix previous patch, and tweak references to $0.
52701         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
52702         (func_version, func_gnulib_dir): Don't call this program
52703         gnulib-tool.
52704         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
52705         with using $0 in function.
52706         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
52707         (func_fatal_error): Reuse the name the user invoked us with.
52708
52709 2008-09-27  Bruno Haible  <bruno@clisp.org>
52710
52711         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
52712         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
52713         (gl_ICONV_H): Not here.
52714         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
52715         instead of assigning ICONV_H directly.
52716
52717         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
52718         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
52719         WCHAR_H directly.
52720
52721 2008-09-27  Bruno Haible  <bruno@clisp.org>
52722
52723         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
52724         * modules/arpa_inet (Depends-on): Add link-warning.
52725         (Makefile.am): Insert the definition of GL_LINK-WARNING.
52726         * modules/unistd (Makefile.am): Likewise.
52727
52728 2008-09-26  Bruno Haible  <bruno@clisp.org>
52729
52730         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
52731         variables.
52732         (func_version): Essentially copied from gnulib-tool.
52733         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
52734         func_readlink): Copied from gnulib-tool.
52735
52736 2008-09-26  Bruno Haible  <bruno@clisp.org>
52737
52738         * gnulib-tool (func_version): Change directory to $gnulib_dir before
52739         invoking git-version-gen.
52740
52741 2008-09-26  Bruno Haible  <bruno@clisp.org>
52742
52743         * posix-modules: Update to directory names changed on 2008-01-19.
52744         Remove commas in output before splitting into words. No more need to
52745         avoid 'ftruncate' since 2007-02-19.
52746
52747 2008-09-26  Bruno Haible  <bruno@clisp.org>
52748
52749         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
52750
52751 2008-09-26  Bruno Haible  <bruno@clisp.org>
52752
52753         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
52754         * modules/fwriteerror (Depends-on): Add errno.
52755
52756 2008-09-26  Bruno Haible  <bruno@clisp.org>
52757
52758         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
52759         * tests/test-vc-list-files-cvs.sh: Likewise.
52760
52761 2008-09-26  Bruno Haible  <bruno@clisp.org>
52762
52763         * doc/posix-headers/sys_resource.texi: Reorder items.
52764
52765 2008-09-26  Jim Meyering  <meyering@redhat.com>
52766
52767         fts: tweak inode comparison function
52768         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
52769         inode numbers, as documented.
52770
52771         fts: sort dirent entries on inode number before traversing
52772         This avoids a quadratic, seek-related performance penalty when
52773         operating on a directory containing many entries (measurable at 10k;
52774         3.5 hours at 2 million entries with a cold cache) on certain types
52775         of file systems, including ext3 and ext4, but not tmpfs.
52776         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
52777         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
52778         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
52779         (fs_handles_readdir_ordered_dirents_efficiently): New function.
52780         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
52781         (fts_build): Set the stat.st_ino member from D_INO.
52782         If it is likely to be useful, sort dirent entries on inode number.
52783
52784         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
52785         and the struct statfs.f_type member.
52786         * modules/fts (Depends-on): Add d-ino.
52787
52788 2008-09-26  Bruno Haible  <bruno@clisp.org>
52789
52790         * modules/sigpipe-die (Depends-on): Add sigpipe.
52791
52792         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
52793         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
52794         and GNULIB_STDIO_H_SIGPIPE are set.
52795         * lib/stdio-write.c: New file.
52796         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
52797         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
52798         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
52799         REPLACE_STDIO_WRITE_FUNCS.
52800         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
52801         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
52802         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
52803         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
52804         * modules/stdio (Files): Add lib/stdio-write.c.
52805         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
52806         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
52807         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
52808         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
52809         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
52810         REPLACE_FPRINTF_POSIX.
52811         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
52812         REPLACE_PRINTF_POSIX.
52813         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
52814         REPLACE_VFPRINTF_POSIX.
52815         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
52816         REPLACE_VPRINTF_POSIX.
52817         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
52818         SIGPIPE issue.
52819         * doc/posix-functions/fputc.texi: Likewise.
52820         * doc/posix-functions/fputs.texi: Likewise.
52821         * doc/posix-functions/fwrite.texi: Likewise.
52822         * doc/posix-functions/printf.texi: Likewise.
52823         * doc/posix-functions/putc.texi: Likewise.
52824         * doc/posix-functions/putchar.texi: Likewise.
52825         * doc/posix-functions/puts.texi: Likewise.
52826         * doc/posix-functions/vfprintf.texi: Likewise.
52827         * doc/posix-functions/vprintf.texi: Likewise.
52828
52829         * modules/safe-write (Depends-on): Add write.
52830
52831         * modules/sigpipe-tests: New file.
52832         * tests/test-sigpipe.c: New file.
52833         * tests/test-sigpipe.sh: New file.
52834
52835         * modules/write: New file.
52836         * lib/unistd.in.h: Include <sys/types.h>.
52837         (write): New declaration.
52838         * lib/write.c: New file.
52839         * m4/write.m4: New file.
52840         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
52841         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
52842         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
52843         GNULIB_WRITE, REPLACE_WRITE.
52844         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
52845         and the SIGPIPE issue.
52846
52847         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
52848         (raise): New declaration.
52849         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
52850         (ext_signal): New function.
52851         (rpl_raise): New function.
52852         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
52853         GNULIB_SIGNAL_H_SIGPIPE.
52854         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
52855         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
52856
52857         * modules/sigpipe: New file.
52858         * m4/sigpipe.m4: New file.
52859
52860 2008-09-25  Derek Price  <derek@ximbiot.com>
52861             Bruno Haible  <bruno@clisp.org>
52862
52863         * gnulib-tool (func_import): Report all license incompatibilities, not
52864         just the first one.
52865
52866 2008-09-25  Bruno Haible  <bruno@clisp.org>
52867
52868         * gnulib-tool (func_import): When computing the edits, consider not
52869         only the Makefile.ams that exist but also those that will be generated.
52870
52871 2008-09-25  Simon Josefsson  <simon@josefsson.org>
52872
52873         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
52874         fixes gnulib-tool --test warning about duplicate dependency.
52875
52876 2008-09-25  Bruno Haible  <bruno@clisp.org>
52877
52878         * gnulib-tool: Don't ask the user to perform edits in the generated
52879         Makefile.ams.
52880         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
52881         apply to the Makefile.am being generated.
52882         (func_emit_tests_Makefile_am): Execute edits that apply to the
52883         Makefile.am being generated.
52884         (func_import): Setup list of Makefile.am edits before emitting the
52885         Makefile.ams, not at the end.
52886         (func_create_testdir): Update.
52887         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
52888
52889 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52890
52891         * gnulib-tool (func_import): Store the --tests-base option in the
52892         comment in gnulib-cache.m4.
52893
52894 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
52895
52896         * NEWS: Document increased portability that sys_select now provides.
52897
52898         * lib/sys_select.in.h: Install select wrapper.
52899         * lib/sys_socket.in.h: Use more descriptive name when there is no
52900         select wrapper.
52901         * lib/winsock-select.c: New.
52902         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
52903         Require gl_HEADER_SYS_SOCKET.
52904         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
52905         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
52906         * tests/test-sys_select.c: Add functional tests.
52907
52908 2008-09-24  Eric Blake  <ebb9@byu.net>
52909
52910         open, fopen: close fd leak in last patch
52911         * lib/open.c (rpl_open): Close fd before returning error.
52912         * lib/fopen.c (rpl_fopen): Close fd before returning error.
52913         * doc/posix-functions/open.texi (open): Document that Irix also
52914         has the bug.
52915         * doc/posix-functions/fopen.texi (fopen): Likewise.
52916         Reported by Paolo Bonzini.
52917
52918 2008-09-24  Bruno Haible  <bruno@clisp.org>
52919
52920         Ensure that a filename ending in a slash cannot be used to access a
52921         non-directory.
52922         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
52923         to check whether it's really a directory.
52924         * lib/fopen.c: Include fcntl.h, unistd.h.
52925         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
52926         and fdopen().
52927         * modules/fopen (Depends-on): Add unistd.
52928         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
52929         * tests/test-fopen.c (main): Likewise.
52930         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
52931         * doc/posix-functions/fopen.texi: Likewise.
52932         Reported by Eric Blake.
52933
52934 2008-09-23  Eric Blake  <ebb9@byu.net>
52935
52936         c-stack: avoid compiler optimizations when provoking overflow
52937         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
52938         recursion harder to optimize, to ensure a stack overflow occurs.
52939         * tests/test-c-stack.c (recurse): Likewise.
52940         Borrowed from libsigsegv.
52941
52942         c-stack: work around Irix sigaltstack bug
52943         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
52944         whether sigaltstack uses wrong end of stack_t (copied in part from
52945         libsigsegv).
52946         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
52947         Irix bug, without requiring an over-allocation.
52948         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
52949         bug.
52950
52951         fopen: document mingw bug on directories
52952         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
52953         not allowing a stream visiting a directory, even though reading
52954         from such a stream is not portable.
52955
52956 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
52957
52958         * lib/poll.c: Rewrite.
52959         * modules/poll: Depend on alloca.
52960
52961 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
52962
52963         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
52964         instead define prototypes for a full set of wrappers.  Ensure
52965         that Cygwin does not use the compatibility code, which is only
52966         for MinGW.
52967         * lib/winsock.c: New.
52968         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
52969         * modules/sys_socket: Add lib/winsock.c.
52970
52971         * modules/poll-tests: Add errno and perror.
52972         * tests/test-poll.c: Use ioctl, not ioctlsocket.
52973
52974 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
52975
52976         * tests/test-poll.c: Downgrade minimum needed Winsock version.
52977
52978 2008-09-23  Bruno Haible  <bruno@clisp.org>
52979
52980         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
52981         * doc/glibc-functions/*: Likewise.
52982
52983 2008-09-23  Simon Josefsson  <simon@josefsson.org>
52984
52985         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
52986         success.
52987
52988 2008-09-22  Eric Blake  <ebb9@byu.net>
52989             Bruno Haible  <bruno@clisp.org>
52990
52991         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
52992         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
52993         supply %A but mishandle pseudo-NaN.
52994         Reported by Simon Josefsson.
52995
52996 2008-09-21  Bruno Haible  <bruno@clisp.org>
52997
52998         * tests/test-lock.c (main): Tweak skip message.
52999         * tests/test-tls.c (main): Likewise.
53000
53001 2008-09-21  Bruno Haible  <bruno@clisp.org>
53002
53003         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
53004         whether 'struct sigaction' has sa_sigaction here...
53005         (gl_PREREQ_SIG_HANDLER_H): ... not here.
53006         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
53007
53008 2008-09-21  Bruno Haible  <bruno@clisp.org>
53009
53010         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
53011         section.
53012         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
53013         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
53014         the new section.
53015         (Support for obsolete systems lacking POSIX:2001): New section.
53016         (String handling <string.h>): Move strdup to the new section.
53017         Suggested by Simon Josefsson and Paolo Bonzini.
53018
53019 2008-09-21  Bruno Haible  <bruno@clisp.org>
53020
53021         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
53022         exponents in %e and %g results on 'long double'. Needed for mingw's
53023         improved *printf functions.
53024         * tests/test-vasprintf-posix.c (test_function): Likewise.
53025         * tests/test-snprintf-posix.h (test_function): Likewise.
53026         * tests/test-sprintf-posix.h (test_function): Likewise.
53027         Reported by Eric Blake.
53028
53029 2008-09-21  Bruno Haible  <bruno@clisp.org>
53030
53031         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
53032         * tests/test-sprintf-posix.h (test_function): Likewise.
53033
53034 2008-09-21  Bruno Haible  <bruno@clisp.org>
53035
53036         * modules/getpass (Depends-on): Add strdup-posix.
53037
53038         New module 'strdup-posix'.
53039         * modules/strdup-posix: New file.
53040         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
53041         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
53042         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
53043         REPLACE_STRDUP.
53044         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
53045         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
53046         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
53047         strdup-posix.
53048
53049         * modules/strdup (Depends-on): Remove malloc-posix.
53050
53051 2008-09-20  Bruno Haible  <bruno@clisp.org>
53052
53053         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
53054         Wildenhues.
53055
53056 2008-09-20  Bruno Haible  <bruno@clisp.org>
53057
53058         Ensure that wint_t gets defined on IRIX 5.3.
53059         * lib/wchar.in.h (wint_t): Define if not defined by the system.
53060         * lib/wctype.in.h (wint_t): Likewise.
53061         (__wctype_wint_t): Remove type.
53062         (isw*): Use wint_t instead of __wctype_wint_t.
53063         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
53064         * modules/wchar (Files): Add m4/wint_t.m4.
53065         (Makefile.am): Substitute HAVE_WINT_T.
53066         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
53067         * tests/test-wctype.c: Check that wint_t is defined.
53068         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
53069         * doc/posix-headers/wctype.texi: Likewise.
53070         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
53071
53072 2008-09-18  Bruno Haible  <bruno@clisp.org>
53073
53074         * gnulib-tool (func_exit): Update comment.
53075
53076 2008-09-18  Simon Josefsson  <simon@josefsson.org>
53077
53078         * modules/getaddrinfo (Depends-on): Remove strdup, this module
53079         assumes strdup exists and does not depend on strdup to return
53080         ENOMEM on out of memory conditions.
53081
53082 2008-09-18  Bruno Haible  <bruno@clisp.org>
53083
53084         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
53085         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
53086         digits for the exponent.
53087
53088 2008-09-18  Jim Meyering  <meyering@redhat.com>
53089             Bruno Haible  <bruno@clisp.org>
53090
53091         * lib/vasnprintf.c (decimal_point_char): Define also if
53092         NEED_PRINTF_INFINITE_LONG_DOUBLE.
53093
53094 2008-09-16  Bruno Haible  <bruno@clisp.org>
53095         and Eric Blake  <ebb9@byu.net>
53096
53097         vasnprintf: support Irix 5.3
53098         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
53099         that mishandle long double infinity.
53100         Reported by Tom G. Christensen.
53101
53102 2008-09-16  Bruno Haible  <bruno@clisp.org>
53103
53104         * doc/glibc-functions/scandir.texi: Mention the function is missing on
53105         Solaris 9.
53106         * doc/glibc-functions/alphasort.texi: Likewise.
53107         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
53108
53109 2008-09-16  Jim Meyering  <meyering@redhat.com>
53110
53111         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
53112         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
53113         a umask modification leak out of a subshell.  Otherwise, the
53114         opensolaris /bin/sh would be accepted and thus cause unwarranted
53115         failures in the coreutils test suite.
53116
53117 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
53118
53119         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
53120         to succeed.
53121
53122 2008-09-16  Jim Meyering  <meyering@redhat.com>
53123
53124         avoid spurious test failure when library is built without ACL support
53125         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
53126         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
53127         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
53128         * tests/test-copy-acl.sh: Likewise.
53129
53130 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53131
53132         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
53133         based on character occurrence counts.
53134
53135 2008-09-15  Eric Blake  <ebb9@byu.net>
53136
53137         tests: avoid some compiler warnings
53138         * tests/test-memchr.c (main): Pass NULL indirectly.
53139         * tests/test-closein.c (main): Avoid unused variable.
53140
53141 2008-09-15  Bruno Haible  <bruno@clisp.org>
53142
53143         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
53144         are missing on OpenBSD 4.0 individually.
53145         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
53146
53147 2008-09-15  Bruno Haible  <bruno@clisp.org>
53148
53149         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
53150         * doc/posix-functions/strerror.texi: Mention also Cygwin.
53151         * doc/posix-functions/perror.texi: Likewise.
53152         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
53153         is missing.
53154         Reported by Eric Blake.
53155
53156         * lib/errno.in.h: Use replacement values >= 2000.
53157         Reported by Eric Blake.
53158
53159 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53160
53161         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
53162         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
53163         limit.
53164         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
53165         compareseq was aborted.
53166
53167 2008-09-14  Bruno Haible  <bruno@clisp.org>
53168
53169         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
53170         yvec_edit_count.
53171         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
53172         (fstrcmp_bounded): Simplify result computation accordingly.
53173
53174 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53175
53176         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
53177         (fstrcmp): Define in terms of fstrcmp_bounded.
53178         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
53179         lower_bound argument.
53180         Return quickly if the result is certainly < lower_bound.
53181         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
53182
53183 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53184
53185         * lib/diffseq.h (EARLY_ABORT): New macro.
53186         (compareseq): Change return type to bool. Return true when EARLY_ABORT
53187         evaluates to true.
53188
53189 2008-09-14  Bruno Haible  <bruno@clisp.org>
53190
53191         * modules/perror-tests: New file.
53192         * tests/test-perror.sh: New file.
53193         * tests/test-perror.c: New file.
53194
53195         New module 'perror'.
53196         * lib/stdio.in.h (perror): New declaration.
53197         * lib/perror.c: New file.
53198         * m4/perror.m4: New file.
53199         * modules/perror: New file.
53200         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
53201         * doc/posix-functions/perror.texi: Mention the perror module.
53202         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
53203         REPLACE_PERROR.
53204         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
53205         REPLACE_PERROR.
53206
53207 2008-09-14  Bruno Haible  <bruno@clisp.org>
53208
53209         * modules/stdio (Makefile.am): Reorder to match the order in
53210         lib/stdio.in.h.
53211         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
53212
53213 2008-09-13  Bruno Haible  <bruno@clisp.org>
53214
53215         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
53216
53217 2008-09-13  Bruno Haible  <bruno@clisp.org>
53218
53219         Extend strerror to cover the added errno values.
53220         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
53221         (rpl_strerror): Provide error messages for the added errno values and
53222         for the WSA* values.
53223         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
53224         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
53225         strerror.
53226         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
53227         * modules/strerror (Depends-on): Add errno.
53228         * doc/posix-functions/strerror.texi: Document the change.
53229         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
53230         and EOVERFLOW.
53231
53232 2008-09-13  Bruno Haible  <bruno@clisp.org>
53233
53234         * modules/EOVERFLOW: Remove file.
53235         * m4/eoverflow.m4: Remove file.
53236         * modules/EOVERFLOW-tests: Remove file.
53237         * tests/test-EOVERFLOW.c: Remove file.
53238         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
53239         * modules/ftell (Depends-on): Likewise.
53240         * modules/getdelim (Depends-on): Likewise.
53241         * modules/getugroups (Depends-on): Likewise.
53242         * modules/poll (Depends-on): Likewise.
53243         * modules/snprintf (Depends-on): Likewise.
53244         * modules/sprintf-posix (Depends-on): Likewise.
53245         * modules/vasnprintf (Depends-on): Likewise.
53246         * modules/vasprintf (Depends-on): Likewise.
53247         * modules/vfprintf-posix (Depends-on): Likewise.
53248         * modules/vsnprintf (Depends-on): Likewise.
53249         * modules/vsprintf-posix (Depends-on): Likewise.
53250         * modules/xvasprintf (Depends-on): Likewise.
53251         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
53252         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
53253         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
53254         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
53255         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
53256         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
53257         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
53258         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
53259         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
53260         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
53261         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
53262         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
53263         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
53264         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
53265         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
53266         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
53267         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
53268         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
53269         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
53270         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
53271         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
53272         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
53273         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
53274         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
53275         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
53276         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
53277         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
53278         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
53279         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
53280         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
53281         * MODULES.html.sh: Remove EOVERFLOW.
53282         * NEWS: Mention the change.
53283
53284 2008-09-13  Bruno Haible  <bruno@clisp.org>
53285
53286         * modules/errno-tests: New file.
53287         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
53288
53289         * lib/errno.in.h: New file.
53290         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
53291         * modules/errno: New file.
53292         * doc/posix-headers/errno.texi: Update documentation.
53293         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
53294
53295 2008-09-13  Bruno Haible  <bruno@clisp.org>
53296
53297         * tests/test-poll.c: Use #if for native Windows, rather than testing
53298         __MSVCRT__.
53299
53300 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53301             Bruno Haible  <bruno@clisp.org>
53302
53303         * lib/glob.c: Don't include <pwd.h> on native Windows.
53304         (WINDOWS32): New macro.
53305         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
53306
53307 2008-09-13  Bruno Haible  <bruno@clisp.org>
53308
53309         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
53310         (ETIMEDOUT): Remove macro.
53311         (glthread_cond_timedwait_multithreaded): New declaration.
53312         (glthread_cond_timedwait): Use it.
53313         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
53314         (glthread_cond_timedwait_multithreaded): New function.
53315
53316 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
53317
53318         * modules/poll-tests: Do not check for io.h.
53319         * tests/test-poll.c: Check for __MSVCRT__ instead.
53320
53321 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
53322
53323         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
53324         * modules/poll-tests: Add inet_pton, stdbool, sockets.
53325         * tests/test-poll.c: Use them.  Use _pipe on Windows.
53326
53327 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
53328
53329         * modules/poll-tests: New.
53330         * tests/test-poll.c: New.
53331
53332 2008-09-12  Eric Blake  <ebb9@byu.net>
53333
53334         frexp: test for NetBSD failure on -0.0
53335         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
53336         not all, bugs from NetBSD 3.0 have been fixed.
53337         * doc/posix-functions/frexp.texi (frexp): Document bug.
53338         Reported by Thomas Klausner.
53339
53340         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
53341         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
53342         literal -0.0.
53343         Reported by Jonathan C. Patschke <jp@centtech.com>.
53344
53345 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53346
53347         * lib/glthread/cond.h: Use dummy implementation also if
53348         USE_WIN32_THREADS.
53349
53350 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53351
53352         * modules/fnmatch-posix (License): Change to LGPLv2+.
53353         * modules/fnmatch-gnu (License): Likewise.
53354
53355 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53356
53357         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
53358
53359 2008-09-11  Jim Meyering  <meyering@redhat.com>
53360
53361         * users.txt: Add gtk-vnc.
53362
53363 2008-09-08  Simon Josefsson  <simon@josefsson.org>
53364
53365         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
53366         rotate amounts.
53367
53368         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
53369         required for 16-bit and 8-bit rotates.
53370         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
53371         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
53372         UINT8_MAX instead of hard-coded constants.
53373         Suggested by Paul Eggert.
53374
53375 2008-09-07  Bruno Haible  <bruno@clisp.org>
53376
53377         * tests/test-striconveh.c (main): Check behaviour when converting from
53378         UTF-7.
53379
53380         Make striconveh work better with stateful encodings.
53381         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
53382         that iconv does not increment the inptr when returning -1/EINVAL.
53383
53384 2008-09-07  Bruno Haible  <bruno@clisp.org>
53385
53386         * build-aux/config.rpath: Update according to libtool-2.2.6.
53387         * build-aux/config.libpath: Likewise.
53388
53389 2008-09-06  Bruno Haible  <bruno@clisp.org>
53390
53391         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
53392         * lib/freadptr.c (freadptr): Likewise.
53393         * lib/freadseek.c (freadptrinc): Likewise.
53394         Reported by Simon Josefsson.
53395
53396 2008-09-06  Bruno Haible  <bruno@clisp.org>
53397
53398         * modules/freadptr (License): Change to LGPLv2+.
53399         * modules/freadseek (License): Likewise.
53400         Suggested by Eric Blake.
53401
53402         * modules/memchr2 (License): Change to LGPLv2+.
53403         Approved by Eric Blake.
53404
53405 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53406             Bruno Haible  <bruno@clisp.org>
53407
53408         Make gnulib-tool work with native 'sed' on AIX.
53409         * gnulib-tool (sed_noop): New variable.
53410         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
53411         func_add_or_update, func_create_testdir): Use it to initialize sed
53412         script variables.
53413         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
53414
53415 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
53416             Bruno Haible  <bruno@clisp.org>
53417
53418         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
53419         also works after #include directives.
53420
53421 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
53422
53423         getdate.y: reject an out-of-range timezone value
53424         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
53425         the range [-24...+24].  When specified with only one or two digits,
53426         * tests/test-getdate.c: Tests for the fix.
53427         * doc/getdate.texi: Document this change.
53428
53429 2008-09-03  Bruno Haible  <bruno@clisp.org>
53430
53431         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
53432
53433 2008-09-02  Simon Josefsson  <simon@josefsson.org>
53434
53435         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
53436         <bruce.korb@gmail.com> with ideas from Ben Pfaff
53437         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
53438         Blake <ebb9@byu.net>.
53439
53440         * tests/test-bitrotate.c: Add more test vectors.
53441
53442 2008-09-02  Eric Blake  <ebb9@byu.net>
53443
53444         vasnprintf-posix: handle large precision via %.*d
53445         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
53446         when handling it ourselves.
53447         * tests/test-vasnprintf-posix.c (test_function): Add test.
53448         * tests/test-snprintf-posix.h (test_function): Likewise.
53449         * tests/test-sprintf-posix.h (test_function): Likewise.
53450         * tests/test-vasprintf-posix.c (test_function): Likewise.
53451         Reported by Alain Guibert.
53452
53453 2008-09-01  Eric Blake  <ebb9@byu.net>
53454
53455         c-stack: make configure-time check more robust
53456         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
53457         successful sigaction call.
53458         Reported by Tom G. Christensen.
53459
53460 2008-09-01  Bruno Haible  <bruno@clisp.org>
53461
53462         New module 'findprog-lgpl'.
53463         * modules/findprog-lgpl: New file.
53464         * lib/findprog-lgpl.c: New file.
53465         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
53466         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
53467         to decide whether to use strdup or xstrdup, concatenated_filename or
53468         xconcatenated_filename.
53469
53470 2008-09-01  Bruno Haible  <bruno@clisp.org>
53471
53472         Split module 'concat-filename' into 'concat-filename' (LGPL) and
53473         'xconcat-filename' (GPL).
53474         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
53475         (License): Change to LGPLv2+.
53476         * modules/xconcat-filename: New file.
53477         * lib/concat-filename.h (concatenated_filename): Change specification.
53478         (xconcatenated_filename): New declaration.
53479         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
53480         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
53481         memory situations.
53482         * lib/xconcat-filename.c: New file.
53483         * NEWS: Mention the change.
53484         * lib/findprog.c: Include concat-filename.h, not filename.h.
53485         (find_in_path): Use xconcatenated_filename instead of
53486         concatenated_filename.
53487         * lib/javacomp.c: Include concat-filename.h, not filename.h.
53488         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
53489         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
53490         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
53491         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
53492         instead of concatenated_filename.
53493         * lib/javaexec.c: Include concat-filename.h, not filename.h.
53494         (execute_java_class): Use xconcatenated_filename instead of
53495         concatenated_filename.
53496         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
53497         * modules/javacomp (Depends-on): Likewise.
53498         * modules/javaexec (Depends-on): Likewise.
53499
53500 2008-09-01  Bruno Haible  <bruno@clisp.org>
53501
53502         Split module 'filename' into 'filename' and 'concat-filename'.
53503         * modules/filename: Keep only lib/filename.h.
53504         (License): Change to LGPLv2+.
53505         * modules/concat-filename: New file, extracted from modules/filename.
53506         * lib/filename.h (concatenated_filename): Remove declaration.
53507         * lib/concat-filename.h: New file, extracted from lib/filename.h.
53508         * lib/concat-filename.c: Include concat-filename.h.
53509         * NEWS: Mention the change.
53510
53511 2008-09-01  Simon Josefsson  <simon@josefsson.org>
53512
53513         * lib/bitrotate.h (rotl8, rotr8): Add.
53514
53515         * modules/bitrotate (configure.ac): Need
53516         AC_REQUIRE([AC_C_INLINE]).
53517         (Description): Mention stdint.h.  Reported by Bruno Haible
53518         <bruno@clisp.org>.
53519
53520         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
53521         Paolo Bonzini <bonzini@gnu.org>.
53522
53523 2008-08-31  Bruno Haible  <bruno@clisp.org>
53524
53525         Assume Solaris specific bi-arch conventions on Solaris systems.
53526         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
53527         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
53528         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
53529         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
53530         like acl_libdirstem.
53531         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
53532         acl_libdirstem.
53533         * NEWS: Mention the change.
53534         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
53535
53536 2008-08-31  Jim Meyering  <meyering@redhat.com>
53537
53538         * lib/strftime.h: Add comments describing the two added arguments.
53539
53540         remove duplicate #include directives
53541         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
53542         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
53543
53544 2008-08-31  Bruno Haible  <bruno@clisp.org>
53545
53546         New module 'sigpipe-die'.
53547         * modules/sigpipe-die: New file.
53548         * lib/sigpipe-die.h: New file.
53549         * lib/sigpipe-die.c: New file.
53550         * MODULES.html.sh (Signal handling): Add sigpipe-die.
53551
53552 2008-08-31  Bruno Haible  <bruno@clisp.org>
53553
53554         Don't override previously installed signal handlers.
53555         * lib/fatal-signal.c (saved_sigactions): New variable.
53556         (uninstall_handlers): Reset the signal to the saved handler, not
53557         to SIG_DFL (except when ignored).
53558         (install_handlers): Save the previous handlers.
53559
53560 2008-08-30  Bruno Haible  <bruno@clisp.org>
53561
53562         * gnulib-tool (func_reset_sigpipe): New function.
53563         (func_get_automake_snippet, func_modules_transitive_closure,
53564         func_import): Invoke it before a join command that reads from stdin,
53565         to avoid "echo: write error: Broken pipe" error messages on stderr.
53566         Reported by Sam Steingold <sds@gnu.org>.
53567
53568 2008-08-30  Bruno Haible  <bruno@clisp.org>
53569
53570         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
53571         Code copied from m4/open.m4.
53572         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
53573         access and the filename ends in a slash. Code copied from lib/open.c.
53574         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
53575         * tests/test-fopen.c (main): Check against bug with trailing slash.
53576
53577 2008-08-29  Bruno Haible  <bruno@clisp.org>
53578
53579         Avoid some "gcc -pedantic" warnings.
53580         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
53581         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
53582         * lib/dirent.in.h: Likewise.
53583         * lib/fcntl.in.h: Likewise.
53584         * lib/float.in.h: Likewise.
53585         * lib/iconv.in.h: Likewise.
53586         * lib/inttypes.in.h: Likewise.
53587         * lib/locale.in.h: Likewise.
53588         * lib/math.in.h: Likewise.
53589         * lib/netinet_in.in.h: Likewise.
53590         * lib/search.in.h: Likewise.
53591         * lib/signal.in.h: Likewise.
53592         * lib/stdarg.in.h: Likewise.
53593         * lib/stdint.in.h: Likewise.
53594         * lib/stdio.in.h: Likewise.
53595         * lib/stdlib.in.h: Likewise.
53596         * lib/string.in.h: Likewise.
53597         * lib/strings.in.h: Likewise.
53598         * lib/sys_select.in.h: Likewise.
53599         * lib/sys_socket.in.h: Likewise.
53600         * lib/sys_stat.in.h: Likewise.
53601         * lib/sys_time.in.h: Likewise.
53602         * lib/sysexits.in.h: Likewise.
53603         * lib/time.in.h: Likewise.
53604         * lib/unistd.in.h: Likewise.
53605         * lib/wchar.in.h: Likewise.
53606         * lib/wctype.in.h: Likewise.
53607         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
53608         * modules/fchdir (Makefile.am): Likewise.
53609         * modules/fcntl (Makefile.am): Likewise.
53610         * modules/float (Makefile.am): Likewise.
53611         * modules/iconv_open (Makefile.am): Likewise.
53612         * modules/inttypes (Makefile.am): Likewise.
53613         * modules/locale (Makefile.am): Likewise.
53614         * modules/math (Makefile.am): Likewise.
53615         * modules/netinet_in (Makefile.am): Likewise.
53616         * modules/search (Makefile.am): Likewise.
53617         * modules/signal (Makefile.am): Likewise.
53618         * modules/stdarg (Makefile.am): Likewise.
53619         * modules/stdint (Makefile.am): Likewise.
53620         * modules/stdio (Makefile.am): Likewise.
53621         * modules/stdlib (Makefile.am): Likewise.
53622         * modules/string (Makefile.am): Likewise.
53623         * modules/strings (Makefile.am): Likewise.
53624         * modules/sys_select (Makefile.am): Likewise.
53625         * modules/sys_socket (Makefile.am): Likewise.
53626         * modules/sys_stat (Makefile.am): Likewise.
53627         * modules/sys_time (Makefile.am): Likewise.
53628         * modules/sysexits (Makefile.am): Likewise.
53629         * modules/time (Makefile.am): Likewise.
53630         * modules/unistd (Makefile.am): Likewise.
53631         * modules/wchar (Makefile.am): Likewise.
53632         * modules/wctype (Makefile.am): Likewise.
53633         Reported by Reuben Thomas <rrt@sc3d.org>.
53634
53635 2008-08-29  Bruno Haible  <bruno@clisp.org>
53636
53637         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
53638         any more.
53639
53640 2008-08-29  Simon Josefsson  <simon@josefsson.org>
53641
53642         * MODULES.html.sh (Misc): Add bitrotate.
53643
53644         * modules/bitrotate: New file.
53645
53646         * lib/bitrotate.h: New file.
53647
53648         * modules/bitrotate-tests: New file.
53649
53650         * tests/test-bitrotate.c: New file.
53651
53652         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
53653         on the bitrotate module.
53654
53655         * lib/arctwo.c: Use new bitrotate module.
53656
53657 2008-08-29  Jim Meyering  <meyering@redhat.com>
53658
53659         bootstrap: merge changes from coreutils
53660         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
53661         of copied files.  Remove a kludge, now that this is fixed.
53662         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
53663         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
53664         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
53665
53666 2008-08-29  Bruno Haible  <bruno@clisp.org>
53667
53668         * MODULES.html.sh: Remove --cvs-urls option.
53669
53670 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
53671
53672         maint.mk: adjust to file name change
53673         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
53674
53675 2008-08-28  Jim Meyering  <meyering@redhat.com>
53676
53677         * modules/getndelim2 (License): Relicense to LGPLv2+.
53678         Approved by Richard Stallman for the version of 1995, and by
53679         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
53680
53681 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
53682
53683         * lib/getdelim.c (flockfile, funlockfile): Make all of them
53684         dummy if one is not available.  Do not touch them if
53685         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
53686         (getc_maybe_unlocked): New.
53687         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
53688
53689 2008-08-26  Eric Blake  <ebb9@byu.net>
53690
53691         doc/INSTALL: resync from autoconf
53692         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
53693         (INSTALL_PRELUDE): Delete; this is done more efficiently by
53694         moving...
53695         * install.texi [!autoconf]: ...here.  Resync from autoconf.
53696         * INSTALL: Regenerate.
53697         * INSTALL.ISO: New file.
53698         * INSTALL.UTF-8: Likewise.
53699
53700 2008-08-26  Jim Meyering  <meyering@redhat.com>
53701
53702         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
53703         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
53704         these definitions conditional, so that they may be overridden, too.
53705
53706 2008-08-26  Bruno Haible  <bruno@clisp.org>
53707
53708         Generate INSTALL file variants with prettier quotes.
53709         * doc/Makefile (INSTALL_PRELUDE): New macro.
53710         (INSTALL): Use it.
53711         (INSTALL.ISO, INSTALL.UTF-8): New rules.
53712
53713 2008-08-26  Bruno Haible  <bruno@clisp.org>
53714
53715         Run makeinfo in an English locale.
53716         * doc/Makefile (MAKEINFO): New variable.
53717
53718 2008-08-26  Bruno Haible  <bruno@clisp.org>
53719
53720         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
53721         Suggested by Eric Blake.
53722
53723 2008-08-25  Bruno Haible  <bruno@clisp.org>
53724
53725         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
53726
53727 2008-08-25  Eric Blake  <ebb9@byu.net>
53728
53729         c-stack: test that stack overflow can be caught
53730         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
53731         that platform allows handling stack overflow; at least OS/2 EMX
53732         has sigaltstack, but crashes before transferring control to
53733         handler on stack overflow.
53734         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
53735         check for HAVE_STACK_OVERFLOW_HANDLING.
53736         Reported by Elbert Pol.
53737
53738 2008-08-25  Bruno Haible  <bruno@clisp.org>
53739
53740         * doc/posix-functions/strftime.texi: Fix description of strftime
53741         module.
53742
53743 2008-08-24  Bruno Haible  <bruno@clisp.org>
53744
53745         * tests/uniwidth/test-uc_width2.c: New file.
53746         * tests/uniwidth/test-uc_width2.sh: New file.
53747         * modules/uniwidth/width-tests (Files): Add the new files.
53748         (TESTS): Add uniwidth/test-uc_width2.sh.
53749         (TESTS_ENVIRONMENT): New variable.
53750         (check_PROGRAMS): Add test-uc_width2.
53751         (test_uc_width2_SOURCES): New variable.
53752
53753         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
53754         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
53755         not 0x00AB.
53756         Reported by Alexander V. Lukyanov <lav@netis.ru>.
53757
53758 2008-08-22  Eric Blake  <ebb9@byu.net>
53759
53760         test-lock, test-tls: mention why a test is skipped
53761         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
53762         skipped.
53763         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
53764
53765         count-one-bits: relax license
53766         * modules/count-one-bits (License): Relicense to LGPLv2+.
53767         Suggested by Ludovic Courtès, approved by Ben Pfaff.
53768
53769 2008-08-22  Andreas Schwab  <schwab@suse.de>
53770
53771         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
53772         Remove spurious space in assignment.
53773
53774 2008-08-21  Simon Josefsson  <simon@josefsson.org>
53775
53776         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
53777         Paul Eggert <eggert@CS.UCLA.EDU>.
53778
53779 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
53780
53781         * modules/gettext: Add m4/threadlib.m4.
53782
53783 2008-08-19  Eric Blake  <ebb9@byu.net>
53784
53785         test-c-stack: fix compilation failure on FreeBSD 5.0
53786         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
53787         headers before <sys/resource.h>.
53788         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
53789         the bug.
53790         Reported by Nelson H. F. Beebe.
53791
53792         strverscmp: migrate from "strverscmp.h" to <string.h>
53793         * modules/string (Makefile.am): Add new hooks.
53794         * modules/strverscmp (Files): Remove strverscmp.h.
53795         (Depends-on): Add string.
53796         (configure.ac): Add indicator.
53797         (Include): Mention new header.
53798         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
53799         defaults.
53800         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
53801         results.
53802         * lib/strverscmp.h: Delete.
53803         * lib/string.in.h (strverscmp): Provide declaration, when needed.
53804         * tests/test-strverscmp.c (includes): Adjust client.
53805         * lib/check-version.c (includes): Likewise.
53806         * NEWS: Document the change.
53807
53808         strverscmp: add unit test
53809         * modules/strverscmp-tests: New file.
53810         * tests/test-strverscmp.c: Likewise.
53811
53812 2008-08-19  Simon Josefsson  <simon@josefsson.org>
53813
53814         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
53815         regarding Windows crypto stuff, from Mono.
53816
53817 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
53818
53819         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
53820         if present, for intel RND.  Return error on failures.
53821
53822 2008-08-18  Ben Pfaff  <blp@gnu.org>
53823
53824         gitlog-to-changelog: give better diagnostic for failed pipe-open
53825         * build-aux/gitlog-to-changelog: Improve error message: suggest
53826         that the version of Git may be too old.
53827
53828 2008-08-18  Simon Josefsson  <simon@josefsson.org>
53829
53830         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
53831         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
53832
53833 2008-08-18  Bruno Haible  <bruno@clisp.org>
53834
53835         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
53836         pthread_in_use().
53837
53838 2008-08-18  Bruno Haible  <bruno@clisp.org>
53839
53840         * lib/glthread/threadlib.c: Include <pthread.h>.
53841
53842 2008-08-18  Bruno Haible  <bruno@clisp.org>
53843
53844         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
53845         glthread_recursive_lock_* macros.
53846         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
53847         Fix syntax error.
53848
53849 2008-08-18  Bruno Haible  <bruno@clisp.org>
53850
53851         * lib/glthread/thread.c: Avoid forcing a context switch right after
53852         thread creation.
53853
53854 2008-08-17  Bruno Haible  <bruno@clisp.org>
53855
53856         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
53857         * lib/glthread/thread.h: Provide Win32 specific implementation.
53858         * modules/thread (Files): Add lib/glthread/thread.c.
53859         (Depends-on): Add lock.
53860         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
53861
53862 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53863
53864         New module 'yield'.
53865         * modules/yield: New file.
53866         * lib/glthread/yield.h: New file.
53867         * m4/yield.m4: New file.
53868         * MODULES.html.sh (Multithreading): Add yield.
53869
53870 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53871
53872         New module 'thread'.
53873         * modules/thread: New file.
53874         * lib/glthread/thread.h: New file.
53875         * m4/thread.m4: New file.
53876         * MODULES.html.sh (Multithreading): Add thread.
53877
53878 2008-08-17  Bruno Haible  <bruno@clisp.org>
53879
53880         * lib/glthread/lock.h: Include <stdlib.h> always.
53881         * lib/glthread/tls.h: Likewise.
53882         * lib/glthread/cond.h: Likewise.
53883
53884 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53885
53886         New module 'cond'.
53887         * modules/cond: New file.
53888         * lib/glthread/cond.h: New file.
53889         * lib/glthread/cond.c: New file.
53890         * m4/cond.m4: New file.
53891         * MODULES.html.sh (Multithreading): Add cond.
53892
53893 2008-08-16  Eric Blake  <ebb9@byu.net>
53894
53895         c-stack: fix regression on Irix 5.3 from 2008-06-21
53896         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
53897         sa_sigaction...
53898         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
53899         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
53900         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
53901         * modules/signal (Makefile.am): Use the value.
53902         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
53903         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
53904         * doc/posix-headers/signal.texi (signal.h): Document this
53905         portability issue.
53906         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
53907         Reported by Tom G. Christensen.
53908
53909 2008-08-17  Bruno Haible  <bruno@clisp.org>
53910
53911         New module 'threadlib'.
53912         * modules/threadlib: New file.
53913         * lib/glthread/threadlib.c: New file, extracted from
53914         lib/glthread/lock.c.
53915         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
53916         functions.
53917         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
53918         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
53919         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
53920         macros.
53921         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
53922         (gl_DISABLE_THREADS): Remove macro.
53923         * modules/lock (Files): Remove build-aux/config.rpath.
53924         (Depends-on): Remove havelib. Add threadlib.
53925         (configure.ac-early): Remove section.
53926         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
53927         * modules/tls (Depends-on): Remove lock. Add threadlib.
53928         (Link): New section, copied from threadlib.
53929         * MODULES.html.sh (Multithreading): Add threadlib.
53930
53931 2008-08-14  Bruno Haible  <bruno@clisp.org>
53932
53933         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
53934         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
53935         glthread_rwlock_unlock, glthread_rwlock_destroy,
53936         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
53937         glthread_recursive_lock_destroy): Define as macros always.
53938         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
53939         glthread_lock_lock.
53940         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
53941         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
53942         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
53943         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
53944         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
53945         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
53946         (glthread_recursive_lock_lock_func): Renamed from
53947         glthread_recursive_lock_lock.
53948         (glthread_recursive_lock_unlock_func): Renamed from
53949         glthread_recursive_lock_unlock.
53950         (glthread_recursive_lock_destroy_func): Renamed from
53951         glthread_recursive_lock_destroy.
53952
53953 2008-08-14  Bruno Haible  <bruno@clisp.org>
53954
53955         * lib/glthread/lock.h: Renamed from lib/lock.h.
53956         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
53957         * lib/glthread/tls.h: Renamed from lib/tls.h.
53958         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
53959         * lib/fstrcmp.c: Update includes.
53960         * lib/strsignal.c: Update includes.
53961         * modules/lock (Files, Makefile.am): Update.
53962         (Include): Change to "glthread/lock.h".
53963         * modules/tls (Files, Makefile.am): Update.
53964         (Include): Change to "glthread/tls.h".
53965         * tests/test-lock.c: Update includes.
53966         * tests/test-tls.c: Update includes.
53967         * NEWS: Mention the renamed header files.
53968
53969 2008-08-11  Jim Meyering  <meyering@redhat.com>
53970
53971         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
53972
53973 2008-08-11  Eric Blake  <ebb9@byu.net>
53974
53975         test-c-stack: avoid C99-ism
53976         * tests/test-c-stack.c (main): Fix whitespace, move declaration
53977         before statement.
53978         Reported by Alain Guibert.
53979
53980 2008-08-10  Jim Meyering  <meyering@redhat.com>
53981
53982         ensure that return value of uinttostr et al are not ignored
53983         * lib/inttostr.h (__GNUC_PREREQ): Define.
53984         (__attribute_warn_unused_result__): Define.
53985         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
53986
53987 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
53988
53989         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
53990         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
53991
53992 2008-08-07  Jim Meyering  <meyering@redhat.com>
53993
53994         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
53995
53996         * modules/mkstemp (License): Relicense under LGPLv2+.
53997         * modules/tempname (License): Likewise.
53998
53999 2008-08-06  Bruno Haible  <bruno@clisp.org>
54000
54001         * lib/poll.c (poll): Further micro-optimization.
54002
54003 2008-08-06  Jim Meyering  <meyering@redhat.com>
54004
54005         inet_pton.c: use locale-independent tolower
54006         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
54007         (inet_pton6): Use c_tolower rather than tolower.
54008         * modules/inet_pton (Depends-on): Add c-ctype.
54009
54010 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
54011
54012         * lib/poll.c (poll): Avoid division when timeout is 0, cache
54013         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
54014
54015 2008-08-06  Jim Meyering  <meyering@redhat.com>
54016
54017         * modules/inet_pton (License): Relicense under LGPLv2+.
54018
54019 2008-08-03  Bruno Haible  <bruno@clisp.org>
54020
54021         Additional non-aborting API for lock and tls.
54022         * lib/lock.h: Include <errno.h>.
54023         (glthread_lock_init): New macro/function.
54024         (gl_lock_init): Define as wrapper around glthread_lock_init.
54025         (glthread_lock_lock): New macro/function.
54026         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
54027         (glthread_lock_unlock): New macro/function.
54028         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
54029         (glthread_lock_destroy): New macro/function.
54030         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
54031         (glthread_rwlock_init): New macro/function.
54032         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
54033         (glthread_rwlock_rdlock): New macro/function.
54034         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
54035         (glthread_rwlock_wrlock): New macro/function.
54036         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
54037         (glthread_rwlock_unlock): New macro/function.
54038         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
54039         (glthread_rwlock_destroy): New macro/function.
54040         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
54041         (glthread_recursive_lock_init): New macro/function.
54042         (gl_recursive_lock_init): Define as wrapper around
54043         glthread_recursive_lock_init.
54044         (glthread_recursive_lock_lock): New macro/function.
54045         (gl_recursive_lock_lock): Define as wrapper around
54046         glthread_recursive_lock_lock.
54047         (glthread_recursive_lock_unlock): New macro/function.
54048         (gl_recursive_lock_unlock): Define as wrapper around
54049         glthread_recursive_lock_unlock.
54050         (glthread_recursive_lock_destroy): New macro/function.
54051         (gl_recursive_lock_destroy): Define as wrapper around
54052         glthread_recursive_lock_destroy.
54053         (glthread_once): New macro/function.
54054         (gl_once): Define as wrapper around glthread_once.
54055         Update function declarations.
54056         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
54057         glthread_rwlock_init. Return error code.
54058         (glthread_rwlock_rdlock_multithreaded): Renamed from
54059         glthread_rwlock_rdlock. Return error code.
54060         (glthread_rwlock_wrlock_multithreaded): Renamed from
54061         glthread_rwlock_wrlock. Return error code.
54062         (glthread_rwlock_unlock_multithreaded): Renamed from
54063         glthread_rwlock_unlock. Return error code.
54064         (glthread_rwlock_destroy_multithreaded): Renamed from
54065         glthread_rwlock_destroy. Return error code.
54066         (glthread_recursive_lock_init_multithreaded): Renamed from
54067         glthread_recursive_lock_init. Return error code.
54068         (glthread_recursive_lock_lock_multithreaded): Renamed from
54069         glthread_recursive_lock_lock. Return error code.
54070         (glthread_recursive_lock_unlock_multithreaded): Renamed from
54071         glthread_recursive_lock_unlock. Return error code.
54072         (glthread_recursive_lock_destroy_multithreaded): Renamed from
54073         glthread_recursive_lock_destroy. Return error code.
54074         (glthread_once_call): Make static.
54075         (glthread_once_multithreaded): Renamed from glthread_once.
54076         * lib/tls.h: Include <errno.h>.
54077         (glthread_tls_key_init): New macro/function.
54078         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
54079         (glthread_tls_set): New macro/function.
54080         (gl_tls_set): Define as wrapper around glthread_tls_set.
54081         (glthread_tls_key_destroy): New macro/function.
54082         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
54083         Update function declarations.
54084         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
54085         glthread_tls_get.
54086         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
54087
54088 2008-08-04  Eric Blake  <ebb9@byu.net>
54089
54090         gnumakefile: use space, not TAB, outside of targets
54091         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
54092
54093 2008-08-02  Jim Meyering  <meyering@redhat.com>
54094
54095         getdate.y: avoid locale-dependent date parsing failure
54096         In Turkish locales, getdate would fail to recognize keywords
54097         containing a lowercase "i".  The solution is not to rely on
54098         locale-sensitive case-conversion.
54099         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
54100         (lookup_word): Use c_toupper in place of toupper.
54101         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
54102         Reported by Vefa Bicakci <bicave@superonline.com> in
54103         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
54104         * modules/getdate (Depends-on): Add c-ctype.
54105
54106 2008-08-02  Bruno Haible  <bruno@clisp.org>
54107
54108         * gnulib-tool (func_import): When updating or creating a .gitignore
54109         file, prepend each added line with a slash, and ignore leading slashes
54110         from the existing lines.
54111         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
54112
54113 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54114
54115         Portability fix for GNU make 3.79.1.
54116         * top/GNUmakefile: Avoid 'else COND', which older GNU make
54117         versions do not understand.
54118
54119 2008-08-01  Bruno Haible  <bruno@clisp.org>
54120
54121         Work around bug of HP-UX 10.20 cc with -0.0 literal.
54122         * tests/test-isnanf.h (zero): New variable.
54123         (main): Avoid literal -0.0f.
54124         * tests/test-isnand.h (zero): New variable.
54125         (main): Avoid literal -0.0.
54126         * tests/test-isnanl.h (zero): New variable.
54127         (main): Avoid literal -0.0L.
54128         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
54129         (test_float, test_double, test_long_double): Avoid literals -0.0f,
54130         -0.0, -0.0L.
54131         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
54132         (test_signbitd): Avoid literal -0.0.
54133         (test_signbitl): Avoid literal -0.0L.
54134         * tests/test-ceilf1.c (zero): New variable.
54135         (main): Avoid literal -0.0f.
54136         * tests/test-ceill.c (zero): New variable.
54137         (main): Avoid literal -0.0L.
54138         * tests/test-floorf1.c (zero): New variable.
54139         (main): Avoid literal -0.0f.
54140         * tests/test-floorl.c (zero): New variable.
54141         (main): Avoid literal -0.0L.
54142         * tests/test-roundf1.c (zero): New variable.
54143         (main): Avoid literal -0.0f.
54144         * tests/test-round1.c (zero): New variable.
54145         (main): Avoid literal -0.0.
54146         * tests/test-roundl.c (zero): New variable.
54147         (main): Avoid literal -0.0L.
54148         * tests/test-truncf1.c (zero): New variable.
54149         (main): Avoid literal -0.0f.
54150         * tests/test-trunc1.c (zero): New variable.
54151         (main): Avoid literal -0.0.
54152         * tests/test-truncl.c (zero): New variable.
54153         (main): Avoid literal -0.0L.
54154         * tests/test-frexp.c (zero): New variable.
54155         (main): Avoid literal -0.0.
54156         * tests/test-frexpl.c (zero): New variable.
54157         (main): Avoid literal -0.0L.
54158         * tests/test-ldexpl.c (zero): New variable.
54159         (main): Avoid literal -0.0L.
54160         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
54161         (zerod, zerol): New variables.
54162         (test_function): Avoid literals -0.0, -0.0L.
54163         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
54164         (zerod, zerol): New variables.
54165         (test_function): Avoid literals -0.0, -0.0L.
54166         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
54167         (zerod, zerol): New variables.
54168         (test_function): Avoid literals -0.0, -0.0L.
54169         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
54170         (zerod, zerol): New variables.
54171         (test_function): Avoid literals -0.0, -0.0L.
54172         * tests/test-strtod.c (zero): New variable.
54173         (main): Avoid literal -0.0.
54174         Reported by Jonathan C. Patschke <jp@centtech.com>.
54175
54176 2008-07-31  Jim Meyering  <meyering@redhat.com>
54177
54178         sha256.h: correct definition of SHA224_DIGEST_SIZE
54179         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
54180         Reported by Paulie Pena IV <paulie4@gmail.com>.
54181         Define as 224 / 8, rather than as a literal.
54182         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
54183         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
54184         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
54185
54186 2008-07-31  Bruno Haible  <bruno@clisp.org>
54187
54188         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
54189         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
54190         Reported by Jonathan Patschke <jp@centtech.com>.
54191
54192 2008-07-31  Bruno Haible  <bruno@clisp.org>
54193
54194         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
54195         Reported by Paolo Bonzini <bonzini@gnu.org>.
54196
54197 2008-07-30  Eric Blake  <ebb9@byu.net>
54198
54199         test-strtod: allow compilation without -lm
54200         * tests/test-strtod.c (main): Avoid link dependence on fabs.
54201         Reported by Dennis Clarke <blastwave@gmail.com>.
54202
54203 2008-07-28  Jim Meyering  <meyering@redhat.com>
54204
54205         bootstrap: work also when there are no .po files in po/
54206         * build-aux/bootstrap (update_po_files): Complete the change
54207         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
54208
54209 2008-07-27  Jim Meyering  <meyering@redhat.com>
54210
54211         * users.txt: Add zile.
54212
54213 2008-07-26  Ben Pfaff  <blp@gnu.org>
54214
54215         Add missing dependencies on new m4/exponent[fdl].m4 files.
54216         * modules/isnanf-nolibm: Add m4/exponentf.m4.
54217         * modules/isnand-nolibm: Add m4/exponentd.m4.
54218         * modules/isnanl-nolibm: Add m4/exponentl.m4.
54219         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
54220         m4/isnan[fdl].m4, because the macros actually used moved.
54221         Reported by Jim Meyering.
54222
54223 2008-07-14  Ben Pfaff  <blp@gnu.org>
54224
54225         Add isinf module.
54226         * lib/isinf.c: New file.
54227         * lib/math.in.h: Define isinf macro if we have decided to replace
54228         it.
54229         * m4/isinf.m4: New file.
54230         * m4/math_h.m4: Initialize and substitute variables for isinf
54231         module.
54232         * modules/isinf: New file.
54233         * modules/isinf-tests: New file.
54234         * modules/math: Add substitutions for new module.
54235         * tests/test-isinf.c: New file.
54236         * doc/posix-functions/isinf.texi: Mention new module.
54237         * MODULES.html.sh: Mention new module.
54238
54239 2008-07-14  Ben Pfaff  <blp@gnu.org>
54240
54241         Factor out some macros for use by additional modules.
54242         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
54243         exponentf.m4.
54244         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
54245         exponentd.m4.
54246         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
54247         file exponentl.m4.
54248         * m4/exponentf.m4: New file.
54249         * m4/exponentd.m4: New file.
54250         * m4/exponentl.m4: New file.
54251         * modules/isnanf: Use new file m4/exponentf.m4.
54252         * modules/isnand: Use new file m4/exponentd.m4.
54253         * modules/isnanl: Use new file m4/exponentl.m4.
54254
54255 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
54256
54257         mktime.c: normalize tp->tm_isdst value to -1/0/1.
54258         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
54259         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
54260         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
54261
54262         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
54263         readlink on platforms without PATH_MAX.
54264
54265 2008-07-21  Eric Blake  <ebb9@byu.net>
54266
54267         Warn, not fail, on stale version.
54268         * top/GNUmakefile (_curr-ver): Tone down previous patch.
54269
54270         Don't allow installation with stale devel version number.
54271         * top/GNUmakefile (_is-install-target): New macro.
54272         (_curr-ver): Forbid installation with stale version number.
54273
54274 2008-07-20  Bruno Haible  <bruno@clisp.org>
54275
54276         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
54277         TESTS_ENVIRONMENT.
54278         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
54279
54280 2008-07-20  Bruno Haible  <bruno@clisp.org>
54281
54282         * lib/c-stack.h (c_stack_action): Add documentation.
54283         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
54284
54285 2008-07-20  Bruno Haible  <bruno@clisp.org>
54286
54287         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
54288         * modules/readlink (License): Likewise.
54289
54290 2008-07-17  Eric Blake  <ebb9@byu.net>
54291
54292         * modules/c-stack (Link): Fix typo.
54293
54294         Make c-stack use libsigsegv, when available.
54295         * modules/c-stack (Depends-on): Add libsigsegv.
54296         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
54297         needed.
54298         * lib/c-stack.c (SIGSTKSZ): Define fallback.
54299         (segv_handler, overflow_handler, c_stack_action)
54300         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
54301         implementation when libsigsegv is available, but only when using
54302         the library is necessary.
54303         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
54304         comment, explaining why XSI check fails on Linux.
54305         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
54306         * tests/test-c-stack2.sh: Tweak skip message.
54307         * NEWS: Document new link-time requirements.
54308
54309 2008-07-16  Eric Blake  <ebb9@byu.net>
54310
54311         c-stack: Expose false positives when not using libsigsegv.
54312         * modules/c-stack-tests (Files): Expand test.
54313         * tests/test-c-stack.c (main): Add means to conditionally trigger
54314         non-overflow SIGSEGV.
54315         * tests/test-c-stack2.sh: New file.
54316
54317 2008-07-14  Bruno Haible  <bruno@clisp.org>
54318
54319         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
54320         Reported by Eric Blake.
54321
54322 2008-07-14  Sam Steingold  <sds@gnu.org>
54323             Bruno Haible  <bruno@clisp.org>
54324
54325         New module libsigsegv.
54326         * modules/libsigsegv: New file.
54327         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
54328         modifications.
54329         * MODULES.html.sh (Signal handling): New section.
54330
54331 2008-07-14  Bruno Haible  <bruno@clisp.org>
54332
54333         * modules/unictype/ctype-* (Description): Add the word "function".
54334         Improves the resulting doc in MODULES.html.
54335
54336 2008-07-12  Ben Pfaff  <blp@gnu.org>
54337
54338         Add longlong module.
54339         * modules/longlong: New file.
54340
54341 2008-07-12  Bruno Haible  <bruno@clisp.org>
54342
54343         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
54344         to empty.
54345
54346 2008-07-10  Ben Pfaff  <blp@gnu.org>
54347
54348         Add isnan module.
54349         * doc/posix-functions/isnan.texi: Mention new module.
54350         * lib/math.in.h: Define isnan macro if we have decided to replace
54351         it.
54352         * m4/isnan.m4: New file.
54353         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
54354         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
54355         also.
54356         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
54357         redundancy.
54358         * m4/math_h.m4: Initialize and substitute variables for isnan
54359         module.
54360         * modules/isnan: New file.
54361         * modules/isnan-tests: New file.
54362         * modules/math: Add substitutions for new module.
54363         * tests/test-isnan.c: New file.
54364         * MODULES.html.sh: Mention new module.
54365
54366 2008-07-10  Ben Pfaff  <blp@gnu.org>
54367
54368         Add isnanf module.
54369         * lib/isnanf.m4: New file.
54370         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
54371         (gl_HAVE_ISNANF_IN_LIBM): New macro.
54372         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
54373         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
54374         * modules/isnanf: New file.
54375         * modules/isnanf-tests: New file.
54376         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
54377         files.
54378         * tests/test-isnanf-nolibm.c: factored most of its contents into
54379         new file tests/test-isnanf.h.
54380         * tests/test-isnanf.h: New file.
54381         * tests/test-isnanf.c: New file.
54382         * MODULES.html.sh: Mention new module.
54383         * doc/glibc-functions/isnanf.texi: Mention new module.
54384
54385 2008-07-10  Ben Pfaff  <blp@gnu.org>
54386
54387         Add isnand module.
54388         * lib/isnand.h: New file.
54389         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
54390         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
54391         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
54392         functionality also.
54393         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
54394         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
54395         (gl_HAVE_ISNAND_IN_LIBM): New macro.
54396         * modules/isnand: New file.
54397         * modules/isnand-tests: New file.
54398         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
54399         files.
54400         * tests/test-isnand-nolibm.c: factored most of its contents into
54401         new file tests/test-isnand.h.
54402         * tests/test-isnand.h: New file.
54403         * tests/test-isnand.c: New file.
54404         * MODULES.html.sh: Mention new module.
54405
54406 2008-07-10  Ben Pfaff  <blp@gnu.org>
54407
54408         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
54409         * lib/isnand.h: Rename lib/isnand-nolibm.h.
54410         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
54411         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
54412         * modules/isnanf-nolibm: Update references to renamed files.
54413         * modules/isnand-nolibm: Likewise.
54414         * modules/isnanf-nolibm-tests: Likewise.
54415         * modules/isnand-nolibm-tests: Likewise.
54416         * lib/frexp.c: Likewise.
54417         * lib/isfinite.c: Likewise.
54418         * lib/signbitd.c: Likewise.
54419         * lib/signbitf.c: Likewise.
54420         * lib/vasnprintf.c: Likewise.
54421         * tests/test-ceilf1.c: Likewise.
54422         * tests/test-ceilf2.c: Likewise.
54423         * tests/test-floorf1.c: Likewise.
54424         * tests/test-floorf2.c: Likewise.
54425         * tests/test-frexp.c: Likewise.
54426         * tests/test-round1.c: Likewise.
54427         * tests/test-round2.c: Likewise.
54428         * tests/test-roundf1.c: Likewise.
54429         * tests/test-strtod.c: Likewise.
54430         * tests/test-trunc1.c: Likewise.
54431         * tests/test-trunc2.c: Likewise.
54432         * tests/test-truncf1.c: Likewise.
54433         * tests/test-truncf2.c: Likewise.
54434         * NEWS: Mention the renamed header files.
54435
54436 2008-07-11  Jim Meyering  <meyering@redhat.com>
54437
54438         vc-list-files: make the last-resort awk code more portable
54439         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
54440         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
54441         does not support it.
54442
54443 2008-07-10  Eric Blake  <ebb9@byu.net>
54444
54445         Work with tar's bootstrap.
54446         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
54447         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
54448         an m4 comment.
54449
54450 2008-07-09  Jim Meyering  <meyering@redhat.com>
54451
54452         posix-shell.m4: fix typo that made this test malfunction
54453         * m4/posix-shell.m4: Remove capitalization in variable name.
54454
54455 2008-07-08  Bruno Haible  <bruno@clisp.org>
54456
54457         * m4/onceonly.m4: Update comments.
54458         Reported by Ben Pfaff <blp@cs.stanford.edu>.
54459
54460 2008-07-04  Jim Meyering  <meyering@redhat.com>
54461
54462         * users.txt: Add vc-dwim.
54463         (bison, coreutils): Use the gitweb URL.
54464
54465 2008-07-03  Jim Meyering  <meyering@redhat.com>
54466
54467         * users.txt: Add libffcall.  From Sam Steingold.
54468
54469 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
54470
54471         getdate.y: do not ignore TZ with relative day, month or year offset
54472         * lib/getdate.y (get_date): Move the tz-handling block to follow the
54473         relative-date-handling, since otherwise, the latter would clobber the
54474         sole output (an updated Start value) of the tz-handling block.
54475         * tests/test-getdate.c: Tests for the fix
54476
54477 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54478
54479         Recognize 'foo_LIBRARIES += libgnu.a'.
54480         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
54481         makefile snippet has already specified an installation location,
54482         also using '+='.
54483
54484 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
54485
54486         getdate.y: factor out common actions
54487         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
54488         Use them in place of open-coded actions.
54489
54490 2008-07-01  Simon Josefsson  <simon@josefsson.org>
54491
54492         Add self-test for getdate module.
54493         * modules/getdate-tests: New file.
54494         * tests/test-getdate.c: New file.
54495
54496 2008-06-29  Bruno Haible  <bruno@clisp.org>
54497
54498         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
54499         .gitignore.
54500         Reported by Sylvain Beucler <beuc@beuc.net>.
54501
54502 2008-06-29  Bruno Haible  <bruno@clisp.org>
54503
54504         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
54505         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
54506
54507 2008-06-29  Bruno Haible  <bruno@clisp.org>
54508
54509         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
54510         EXTRA_DIST.
54511         Reported by Sylvain Beucler <beuc@beuc.net>.
54512
54513 2008-06-26  Jim Meyering  <meyering@redhat.com>
54514
54515         make several modules depend on the "open" module
54516         This provides slightly increased consistency when opening-for-write
54517         the name of a non-directory spelled with a trailing slash.
54518         * modules/chdir-safer: Likewise.
54519         * modules/chown: Likewise.
54520         * modules/clean-temp: Likewise.
54521         * modules/copy-file: Likewise.
54522         * modules/fchdir: Likewise.
54523         * modules/fcntl-safer: Likewise.
54524         * modules/pipe: Likewise.
54525         * modules/utime: Likewise.
54526         Prompted by Eric Blake and Bruno Haible.
54527
54528 2008-06-24  Andreas Schwab  <schwab@suse.de>
54529
54530         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
54531         literals can be used as initializers for global variables.
54532
54533 2008-06-23  Eric Blake  <ebb9@byu.net>
54534
54535         Make gnulib-cache.m4 easier to diff.
54536         * gnulib-tool (func_import): Allow newlines when reading cached
54537         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
54538
54539 2008-06-23  Bruno Haible  <bruno@clisp.org>
54540
54541         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
54542         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
54543         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
54544         m4/signalblocking.m4.
54545         (gl_PREREQ_SIGACTION): Don't invoke it.
54546         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
54547         gl_PREREQ_SIG_HANDLER_H.
54548         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
54549         Don't check for sigaction here.
54550
54551 2008-06-23  Bruno Haible  <bruno@clisp.org>
54552
54553         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
54554         (install_handlers): Don't set the SA_RESETHAND flag.
54555
54556 2008-06-23  Bruno Haible  <bruno@clisp.org>
54557
54558         * m4/sigaction.m4: Comment fixes.
54559         * lib/signal.in.h: Likewise.
54560
54561 2008-06-23  Eric Blake  <ebb9@byu.net>
54562
54563         Fix typo.
54564         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
54565
54566         Avoid SA_ namespace.
54567         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
54568         Reported by Ralf Wildenhues.
54569
54570         Avoid test failure due to SA_RESTORER.
54571         * tests/test-sigaction.c (SA_MASK): New macro.
54572         (main): Avoid failing due to extension flags being set.
54573         Reported by Jim Meyering.
54574
54575         Revert use of sig-handler.h in sigprocmask.c.
54576         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
54577         it requires the existence of struct sigaction.
54578         * lib/sigprocmask.c (handler_t): Restore typedef.
54579         (rpl_signal, old_handlers): Use local type.
54580
54581 2008-06-22  Bruno Haible  <bruno@clisp.org>
54582
54583         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
54584         conditionally.
54585         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
54586
54587 2008-06-22  Bruno Haible  <bruno@clisp.org>
54588
54589         * doc/posix-functions/siginterrupt.texi: Move note.
54590
54591         * lib/signal.in.h (SA_RESTART): New macro.
54592         * lib/sigaction.c: Update comment.
54593
54594         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
54595
54596         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
54597         (gl_PREREQ_SIGPROCMASK): Invoke it.
54598         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
54599
54600         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
54601
54602         * lib/sigprocmask.c: Update a comment.
54603
54604 2008-06-21  Eric Blake  <ebb9@byu.net>
54605
54606         Use sigaction module rather than signal().
54607         * modules/c-stack (Depends-on): Add sigaction.
54608         * modules/fatal-signal (Depends-on): Likewise.
54609         * modules/nanosleep (Depends-on): Likewise.
54610         * modules/sigprocmask (Files): Add sig-handler.h.
54611         * modules/sigaction (Files): Likewise.
54612         * lib/sig-handler.h (get_handler): New file, suggested by Paul
54613         Eggert.
54614         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
54615         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
54616         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
54617         (init_fatal_signals): Likewise.
54618         * lib/nanosleep.c (rpl_nanosleep): Likewise.
54619         (siginterrupt): Delete fallback.
54620         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
54621         instead.
54622         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
54623         siginterrupt.
54624
54625         New module sigaction, for mingw.
54626         * modules/sigaction: New module...
54627         * modules/sigaction-tests: ...and its test.
54628         * m4/sigaction.m4: New file.
54629         * lib/sigaction.c: Likewise.
54630         * tests/test-sigaction.c: Likewise.
54631         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
54632         * modules/signal (Makefile.am): Likewise.
54633         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
54634         needed.
54635         * doc/posix-headers/signal.texi (signal.h): Mention provided
54636         types.
54637         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
54638         that sigaction is preferable.
54639         * doc/posix-functions/sigaction.texi (sigaction): Mention new
54640         module.
54641         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54642         sigaction.
54643
54644         Improve robustness of sigprocmask by overriding signal.
54645         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
54646         is in use.
54647         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
54648         (SIGKILL, SIGSTOP): Provide fallbacks.
54649         (rpl_signal): Implement.
54650         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
54651         signal can be called inside handlers.
54652
54653         Fix nanosleep module on mingw.
54654         * modules/nanosleep (Depends-on): Add sys_select.
54655         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
54656
54657         Fix licensing of sigprocmask.
54658         * modules/raise (License): Relicense as LGPL.
54659
54660 2008-06-21  Bruno Haible  <bruno@clisp.org>
54661
54662         * lib/propername.c (proper_name_utf8): Don't use the transliterated
54663         result if it contains question marks.
54664         Reported by Michael Geng <linux@michaelgeng.de>.
54665
54666 2008-06-19  Bruno Haible  <bruno@clisp.org>
54667
54668         Fix CVS-ism.
54669         * doc/gnulib.texi: Include updated-stamp.texi.
54670         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
54671         (updated-stamp.texi): New rule.
54672         (gnulib.info): Depend on it.
54673         * doc/.gitignore: Add updated-stamp.texi.
54674         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
54675
54676 2008-06-19  Bruno Haible  <bruno@clisp.org>
54677
54678         * doc/Makefile (gnulib.info): Update and simplify dependencies.
54679         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
54680
54681 2008-06-19  Eric Blake  <ebb9@byu.net>
54682
54683         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
54684         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
54685         Reported by Stepan Kasal.
54686
54687 2008-06-18  Bruno Haible  <bruno@clisp.org>
54688
54689         * lib/fatal-signal.c (init_fatal_signals): Add comment.
54690         Reported by Eric Blake.
54691
54692 2008-06-18  Eric Blake  <ebb9@byu.net>
54693
54694         Work around cygwin 1.5.25 strsignal bug.
54695         * tests/test-strsignal.c: Allow for const char *.
54696         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
54697
54698 2008-06-18  Simon Josefsson  <simon@josefsson.org>
54699
54700         * users.txt: Update URL to article and add author/date
54701         information.
54702
54703 2008-06-17  Bruno Haible  <bruno@clisp.org>
54704
54705         New macro gl_DISABLE_THREADS.
54706         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
54707         if the user did not pass --enable-threads or --disable-threads option.
54708         (gl_DISABLE_THREADS): New macro.
54709         Reported by Eric Blake <ebb9@byu.net>.
54710
54711 2008-06-17  Bruno Haible  <bruno@clisp.org>
54712
54713         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
54714         when the macro ignores it.
54715         Based on a patch by Eric Blake <ebb9@byu.net>.
54716
54717 2008-06-17  Bruno Haible  <bruno@clisp.org>
54718
54719         * modules/tls (License): Change to LGPLv2+.
54720         Reported by Eric Blake.
54721
54722 2008-06-17  Eric Blake  <ebb9@byu.net>
54723
54724         Simplify c-stack prerequisites.
54725         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
54726         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
54727         no longer requires <ucontext.h> to exist.  Optimize setrlimit
54728         check.
54729         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
54730         <sys/resource.h>.
54731
54732         Move c-stack test into testsuite.
54733         * modules/c-stack-tests: New file.
54734         * lib/c-stack.c [DEBUG]: Move test program...
54735         * tests/test-c-stack.c: ...into this new file.  Skip rather than
54736         fail test if sigaltstack is lacking.
54737         * tests/test-c-stack.sh: New driver file.
54738
54739 2008-06-16  Eric Blake  <ebb9@byu.net>
54740
54741         Use raise module consistently.
54742         * modules/fatal-signal (Depends-on): Add raise.
54743         * modules/sigprocmask (Depends-on): Likewise.
54744         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
54745         * lib/sigprocmask.c (sigprocmask): Likewise.
54746         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
54747         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
54748
54749         Fix compliance bug in sigpending.
54750         * lib/sigprocmask.c (sigpending): Return pending array via
54751         parameter, not return value.
54752
54753 2008-06-14  Eric Blake  <ebb9@byu.net>
54754
54755         Improve obstack-printf test code.
54756         * tests/test-obstack-printf.c (test_function): Fix comment, and
54757         simplify usage of obstack_* in macros.  Add a test for coverage.
54758         Reported by Bruno Haible.
54759
54760 2008-06-14  Bruno Haible  <bruno@clisp.org>
54761
54762         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
54763         array size as a constant, not as a const variable.
54764         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
54765         AC_USE_SYSTEM_EXTENSIONS.
54766         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
54767         Test whether the obstack_printf function actually exists.
54768         * modules/obstack-printf (Depends-on): Add extensions.
54769         (Include): Remove obstack.h.
54770         * modules/obstack-printf-posix (Depends-on): Add extensions.
54771         (Include): Remove obstack.h.
54772
54773 2008-06-13  Eric Blake  <ebb9@byu.net>
54774
54775         Add obstack-printf and obstack-printf-posix modules.
54776         * modules/obstack-printf: New file.
54777         * modules/obstack-printf-posix: Likewise.
54778         * MODULES.html.sh (Misc): Mention them.
54779         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
54780         Likewise.
54781         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
54782         Likewise.
54783         * modules/stdio (Makefile.am): Accomodate new modules.
54784         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
54785         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
54786         Declare.
54787         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
54788         functions.
54789         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
54790         (gl_REPLACE_OBSTACK_PRINTF): New macros
54791         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
54792         * tests/test-obstack-printf.c: New file.
54793         * modules/obstack-printf-tests: Likewise.
54794         * modules/obstack-printf-posix-tests: Likewise.
54795
54796 2008-06-11  Bruno Haible  <bruno@clisp.org>
54797
54798         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
54799         * lib/open.c: Include errno.h.
54800         (open): Fail when attempting to write to a file that has a trailing
54801         slash.
54802         * tests/test-open.c (main): Test against trailing slash bug.
54803         * doc/posix-functions/open.texi: Mention the trailing slash bug.
54804
54805 2008-06-10  Bruno Haible  <bruno@clisp.org>
54806
54807         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
54808         for $? to work inside the trap command, with various /bin/sh-s.
54809         * tests/test-vc-list-files-cvs.sh: Likewise.
54810
54811 2008-06-10  Bruno Haible  <bruno@clisp.org>
54812
54813         * lib/acl-internal.h: Don't include gettext.h here.
54814         * lib/set-mode-acl.c: Include gettext.h here.
54815         * lib/copy-acl.c: Likewise.
54816
54817 2008-06-10  Bruno Haible  <bruno@clisp.org>
54818
54819         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
54820         * lib/wait-process.c (wait_subprocess): Likewise.
54821         * lib/execute.h (execute): Add termsigp argument.
54822         * lib/execute.c (execute): Likewise.
54823         * lib/csharpcomp.c (compile_csharp_using_pnet,
54824         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
54825         * lib/csharpexec.c (execute_csharp_using_pnet,
54826         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
54827         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
54828         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
54829         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
54830         is_jikes_present): Update.
54831         * lib/javaexec.c (execute_java_class): Update.
54832         * lib/javaversion.c (execute_and_read_line): Update.
54833         * NEWS: Document the changes.
54834         Reported by Eric Blake.
54835
54836 2008-06-10  Eric Blake  <ebb9@byu.net>
54837
54838         Add missing include.
54839         * tests/test-strstr.c (includes): Add <signal.h>.
54840         * tests/test-strcasestr.c (includes): Likewise.
54841         * tests/test-memmem.c (includes): Likewise.
54842
54843 2008-06-10  Bruno Haible  <bruno@clisp.org>
54844
54845         * lib/wait-process.c (wait_subprocess): Add an assertion.
54846
54847 2008-06-10  Bruno Haible  <bruno@clisp.org>
54848
54849         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
54850
54851 2008-06-10  Bruno Haible  <bruno@clisp.org>
54852
54853         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
54854         using alarm().
54855         * tests/test-strcasestr.c (main): Likewise.
54856         * tests/test-strstr.c (main): Likewise.
54857
54858 2008-06-09  Bruno Haible  <bruno@clisp.org>
54859
54860         Work around the Solaris 10 ACE ACLs ABI change.
54861         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
54862         declare if ACL_NO_TRIVIAL is present.
54863         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
54864         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
54865         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
54866         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
54867         define if ACL_NO_TRIVIAL is present.
54868         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
54869         and use the current ABI.
54870         (file_has_acl): Use same #if condition as elsewhere.
54871         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
54872         in use, and use the current ABI.
54873         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
54874         Reported by Jim Meyering.
54875
54876 2008-06-09  Eric Blake  <ebb9@byu.net>
54877
54878         Work around environments that (stupidly) ignore SIGALRM.
54879         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
54880         before using alarm().
54881         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
54882         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
54883         Reported by Ian Beckwith <ianb@erislabs.net>.
54884
54885         Produce autobuild blurb earlier in log.
54886         * modules/autobuild (configure.ac-early): Move AB_INIT here.
54887
54888 2008-06-09  Jim Meyering  <meyering@redhat.com>
54889         and Ondřej Vašík  <ovasik@redhat.com>
54890
54891         utimens.c: correct kernel bug work-around
54892         Ondřej Vašík found that the invalid return value of 280 indicates
54893         failure, not success, and the kernel bug we're trying to work
54894         around affects not just the utimensat call, but also the fallback
54895         futimens call.
54896         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
54897         not success.
54898         [HAVE_FUTIMENS]: Use the same work-around, here.
54899
54900 2008-06-09  Jim Meyering  <meyering@redhat.com>
54901
54902         add more guards around definition of ACE_-related code
54903         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
54904         ALLOW and ACE_OWNER are also defined.
54905
54906 2008-06-08  Bruno Haible  <bruno@clisp.org>
54907
54908         * lib/acl-internal.h: Add me as co-author.
54909         * lib/file-has-acl.c: Likewise.
54910         * lib/set-mode-acl.c: Likewise.
54911         * lib/copy-acl.c: Likewise.
54912
54913 2008-06-08  Bruno Haible  <bruno@clisp.org>
54914
54915         Add support for AIX ACLs.
54916         * lib/acl-internal.h (acl_nontrivial): New declaration.
54917         * lib/file-has-acl.c (acl_nontrivial): New function.
54918         (file_has_acl): Add implementation using AIX 4 ACL API.
54919         * lib/set-mode-acl.c (qset_acl): Likewise.
54920         * lib/copy-acl.c (qcopy_acl): Likewise.
54921
54922 2008-06-08  Bruno Haible  <bruno@clisp.org>
54923
54924         Add support for HP-UX ACLs.
54925         * lib/acl-internal.h (acl_nontrivial): New declaration.
54926         * lib/file-has-acl.c (acl_nontrivial): New function.
54927         (file_has_acl): Add implementation using HP-UX 11 ACL API.
54928         * lib/set-mode-acl.c (qset_acl): Likewise.
54929         * lib/copy-acl.c (qcopy_acl): Likewise.
54930
54931 2008-06-08  Bruno Haible  <bruno@clisp.org>
54932
54933         Add support for Cygwin ACLs.
54934         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
54935         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
54936         the chmod_or_fchmod call.
54937         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
54938
54939 2008-06-08  Bruno Haible  <bruno@clisp.org>
54940
54941         Fix bug with setuid modes in Solaris 10+ code.
54942         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
54943         succeeded, when the mode contains some special bits.
54944
54945 2008-06-08  Bruno Haible  <bruno@clisp.org>
54946
54947         Add support for Solaris 7..10 ACLs.
54948         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
54949         declarations.
54950         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
54951         functions.
54952         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
54953         * lib/set-mode-acl.c (qset_acl): Likewise.
54954         * lib/copy-acl.c (qcopy_acl): Likewise.
54955
54956 2008-06-08  Bruno Haible  <bruno@clisp.org>
54957
54958         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
54959         declaration.
54960         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
54961         (acl_access_nontrivial): Remove MacOS X case.
54962         (file_has_acl): Use acl_extended_nontrivial.
54963         * lib/copy-acl.c (qcopy_acl): Likewise.
54964
54965 2008-06-08  Bruno Haible  <bruno@clisp.org>
54966
54967         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
54968
54969 2008-06-08  Jim Meyering  <meyering@redhat.com>
54970
54971         * modules/acl (Maintainer): Add Bruno Haible.
54972
54973 2008-06-07  Bruno Haible  <bruno@clisp.org>
54974
54975         Improve support for Tru64 ACLs.
54976         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
54977         ACL on OSF/1.
54978
54979 2008-06-07  Bruno Haible  <bruno@clisp.org>
54980
54981         Add support for MacOS X ACLs.
54982         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
54983         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
54984         * lib/set-mode-acl.c (qset_acl): Likewise.
54985         * lib/copy-acl.c (qcopy_acl): Likewise.
54986
54987 2008-06-07  Bruno Haible  <bruno@clisp.org>
54988
54989         Fix memory leak introduced on 2008-05-22.
54990         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
54991         use.
54992
54993 2008-06-07  Bruno Haible  <bruno@clisp.org>
54994
54995         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
54996         to construct an empty ACL.
54997
54998 2008-06-07  Bruno Haible  <bruno@clisp.org>
54999
55000         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
55001         precisely.
55002         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
55003
55004 2008-06-07  Bruno Haible  <bruno@clisp.org>
55005
55006         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
55007         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
55008
55009 2008-06-07  Bruno Haible  <bruno@clisp.org>
55010
55011         * doc/posix-functions/_setjmp.texi: Explain the use of this function
55012         regardless of POSIX.
55013         * doc/posix-functions/_longjmp.texi: Likewise.
55014         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
55015         SystemV platform in this case.
55016
55017 2008-06-06  Eric Blake  <ebb9@byu.net>
55018
55019         Document abort() bugs.
55020         * doc/posix-functions/abort.texi (abort): Mention anomalies.
55021
55022         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
55023         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
55024         sigsetjmp.
55025         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
55026         siglongjmp, but only as a macro.
55027         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
55028         is obsolete.
55029         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
55030
55031         Tweak documentation to cover cygwin argz bugs.
55032         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
55033         argz bug fix; no code change needed since no cygwin releases
55034         occurred between the last fix and the bug being tested.
55035         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
55036         module and recently fixed cygwin bugs.
55037         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
55038         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
55039         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
55040         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
55041         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
55042         Likewise.
55043         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
55044         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
55045         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
55046         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
55047         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
55048         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
55049         Likewise.
55050
55051         Avoid gcc warning on cygwin.
55052         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
55053         !ACL_NO_TRIVIAL]: Avoid unused variable.
55054
55055 2008-06-05  Eric Blake  <ebb9@byu.net>
55056
55057         Be tolerant of UNKNOWN version in gnulib-tool test dir.
55058         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
55059         git-version-gen fails to come up with a version.
55060         Reported by Simon Josefsson.
55061
55062 2008-06-05  Jim Meyering  <meyering@redhat.com>
55063             Paul Eggert  <eggert@cs.ucla.edu>
55064
55065         utimens.c: work around a probable Linux kernel bug
55066         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
55067         appears to be a kernel bug that causes utimensat to return 280
55068         instead of 0, indicating success.
55069
55070 2008-06-04  Bruno Haible  <bruno@clisp.org>
55071
55072         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
55073         2008-06-01 commit.
55074
55075 2008-06-04  Bruno Haible  <bruno@clisp.org>
55076
55077         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
55078         * lib/file-has-acl.c (acl_access_nontrivial): New function.
55079         (file_has_acl): Use it. Save errno afterwards.
55080         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
55081
55082 2008-06-03  Bruno Haible  <bruno@clisp.org>
55083
55084         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
55085         draft code. Simplify #ifs.
55086         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
55087         Put Solaris code after POSIX-draft code. Fix comments regarding
55088         Solaris 10, HP-UX. Mention Cygwin.
55089         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
55090
55091 2008-06-03  Eric Blake  <ebb9@byu.net>
55092
55093         Provide fallback for older kernels.
55094         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
55095         Provide runtime fallback if kernel lacks support.
55096         Reported by Mike Frysinger.
55097
55098 2008-06-02  Bruno Haible  <bruno@clisp.org>
55099
55100         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
55101         it exists.
55102
55103 2008-06-02  Bruno Haible  <bruno@clisp.org>
55104
55105         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
55106         * lib/copy-acl.c (qcopy_acl): Update comment.
55107
55108 2008-06-02  Bruno Haible  <bruno@clisp.org>
55109
55110         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
55111         like ACL APIs.
55112
55113 2008-06-02  Bruno Haible  <bruno@clisp.org>
55114
55115         * tests/test-file-has-acl.sh: Use different code for Cygwin.
55116         * tests/test-set-mode-acl.sh: Likewise.
55117         * tests/test-copy-acl.sh: Likewise.
55118         * tests/test-copy-file.sh: Likewise.
55119
55120 2008-06-02  Bruno Haible  <bruno@clisp.org>
55121
55122         * tests/test-file-has-acl.sh: Remove unused code.
55123
55124 2008-06-01  Bruno Haible  <bruno@clisp.org>
55125
55126         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
55127         (copy_acl): Just a wrapper around qcopy_acl that emits the error
55128         messages.
55129         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
55130
55131 2008-06-01  Bruno Haible  <bruno@clisp.org>
55132
55133         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
55134         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
55135         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
55136         APIs.
55137         * modules/acl-tests (configure.ac): Remove tests now contained in
55138         m4/acl.m4.
55139
55140 2008-06-02  Jim Meyering  <meyering@redhat.com>
55141
55142         announce-gen: use a better key-server host name
55143         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
55144         it may be more consistently reliable.  Suggested by Werner Koch
55145         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
55146
55147 2008-06-01  Bruno Haible  <bruno@clisp.org>
55148
55149         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
55150         Reported by Voroskoi Andras <voroskoi@gmail.com>.
55151
55152 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
55153
55154         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
55155
55156 2008-06-01  Bruno Haible  <bruno@clisp.org>
55157
55158         New ACL tests.
55159         * tests/test-file-has-acl.sh: New file.
55160         * tests/test-file-has-acl.c: New file.
55161         * tests/test-set-mode-acl.sh: New file.
55162         * tests/test-set-mode-acl.c: New file.
55163         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
55164         * tests/test-copy-acl.c: New file.
55165         * modules/acl-tests: New file, based on modules/copy-file-tests.
55166         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
55167         (Depends-on): Add acl-tests.
55168         (configure.ac): Remove checks.
55169         (Makefile.am): Don't create test-sameacls program here any more.
55170
55171 2008-06-01  Bruno Haible  <bruno@clisp.org>
55172
55173         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
55174         * tests/test-sameacls.c: Include progname.h.
55175         (main): Invoke set_program_name. Portability fixes for MacOS X,
55176         Solaris, HP-UX.
55177
55178 2008-06-01  Bruno Haible  <bruno@clisp.org>
55179
55180         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
55181         function.
55182         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
55183
55184 2008-06-01  Bruno Haible  <bruno@clisp.org>
55185
55186         * modules/rpmatch (Depends-on): Add strdup.
55187
55188 2008-06-01  Bruno Haible  <bruno@clisp.org>
55189
55190         * lib/pipe.c: Include unistd-safer.h.
55191         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
55192         * modules/pipe (Depends-on): Add unistd-safer.
55193
55194 2008-05-30  Simon Josefsson  <simon@josefsson.org>
55195
55196         * modules/autobuild (configure.ac): Call AB_INIT.
55197
55198 2008-05-30  Simon Josefsson  <simon@josefsson.org>
55199
55200         * tests/test-getaddrinfo.c: Don't print debug messages by default.
55201         Suggested by Bruno Haible <bruno@clisp.org>.
55202
55203 2008-05-30  Simon Josefsson  <simon@josefsson.org>
55204
55205         * tests/test-base64.c: Cast size_t to unsigned long when invoking
55206         printf.  Use %lu instead of %d.  Reported by Bruno Haible
55207         <bruno@clisp.org>.
55208
55209 2008-05-29  Eric Blake  <ebb9@byu.net>
55210
55211         Prefer new POSIX 200x interfaces over futimesat.
55212         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
55213         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
55214         when available.
55215         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
55216
55217 2008-05-28  Bruno Haible  <bruno@clisp.org>
55218
55219         * modules/stpcpy (License): Change to LGPLv2+.
55220         Requested by David Lutterkort <dlutter@redhat.com>.
55221
55222 2008-05-27  Bruno Haible  <bruno@clisp.org>
55223
55224         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
55225         current mingw.
55226         Reported by Jose E. Marchesi <jemarch@gnu.org>.
55227
55228 2008-05-27  Bruno Haible  <bruno@clisp.org>
55229
55230         * modules/iconv_open (Link): New section, from module 'iconv'.
55231         * modules/striconv (Link): Likewise.
55232         * modules/striconveh (Link): Likewise.
55233         * modules/xstriconv (Link): Likewise.
55234         * modules/unicodeio (Link): Likewise.
55235         * modules/propername (Link): Likewise.
55236         Reported by Jim Meyering.
55237
55238 2008-05-26  Jim Meyering  <meyering@redhat.com>
55239
55240         sha256: do not artificially restrict buffer length to be < 2^32
55241         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
55242         uint32_t to size_t.
55243         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
55244         to match.
55245
55246         avoid unaligned access errors, e.g., on sparc
55247         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
55248         direct access through a possibly-unaligned uint64* pointer.
55249         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
55250         direct access through a possibly-unaligned uint32* pointer.
55251         Prompted by this patch from Tom "spot" Callaway:
55252         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
55253
55254         sha512.c: fix typo in comment
55255         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
55256
55257 2008-05-25  Bruno Haible  <bruno@clisp.org>
55258
55259         * lib/set-mode-acl.c: Renamed from lib/acl.c.
55260         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
55261         (Makefile.am): Update lib_SOURCES.
55262
55263 2008-05-25  Bruno Haible  <bruno@clisp.org>
55264
55265         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
55266
55267 2008-05-25  Jim Meyering  <meyering@redhat.com>
55268
55269         useless-if-before-free: freed expr may have white-space differences
55270         * build-aux/useless-if-before-free: Recognize cases in which the
55271         freed expression differs from the tested one in embedded white
55272         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
55273         $1 was used, so we can't make any regexp shy.  Improved tests now
55274         detect this.
55275
55276         useless-if-before-free: accept white space in the expression.
55277         * build-aux/useless-if-before-free: For now, any white space
55278         in the expression must be identical in the free argument.
55279
55280         useless-if-before-free: efficiency tweak
55281         * build-aux/useless-if-before-free: Make the expression-matching
55282         regexp "shy".
55283         Make the *outer* regexp shy, not the expr-matching one.
55284
55285         update code-in-comment to accept cast of free arg
55286         * build-aux/useless-if-before-free: Update regexp.
55287
55288 2008-05-25  Bruno Haible  <bruno@clisp.org>
55289
55290         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
55291         * modules/copy-file-tests (Files, Makefile.am): Update.
55292         * tests/test-copy-file.c (func_test_copy): Update.
55293
55294 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
55295
55296         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
55297
55298 2008-05-23  Bruno Haible  <bruno@clisp.org>
55299
55300         Improve support for ACLs on OSF/1.
55301         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
55302         Remove fallback for unknown flavors of ACLs.
55303
55304 2008-05-22  Bruno Haible  <bruno@clisp.org>
55305
55306         Add support for ACLs on OSF/1.
55307         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
55308         replacements.
55309         (acl_free_text): New macro fallback.
55310         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
55311         acl_free.
55312         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
55313         acl_free_text function. Require AC_C_INLINE.
55314
55315 2008-05-22  Bruno Haible  <bruno@clisp.org>
55316
55317         Make copy_acl work on MacOS X 10.5.
55318         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
55319         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
55320         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
55321         If MODE_INSIDE_ACL, don't assume that every system has the same text
55322         representation for ACLs as FreeBSD.
55323         * lib/copy-acl.c (copy_acl): Add support for platforms with
55324         !MODE_INSIDE_ACL.
55325         * lib/file-has-acl.c (file_has_acl): Likewise.
55326         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
55327         FreeBSD, MacOS X, or IRIX, respectively.
55328
55329 2008-05-22  Bruno Haible  <bruno@clisp.org>
55330
55331         * lib/acl.h: Don't include <sys/acl.h>.
55332         (GETACLCNT): Move fallback to lib/acl-internal.h.
55333         * lib/acl-internal.h: Include <sys/acl.h> here.
55334         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
55335
55336 2008-05-22  Bruno Haible  <bruno@clisp.org>
55337
55338         Split off copy_acl function to separate file.
55339         * lib/copy-acl.c: New file, extracted from lib/acl.c.
55340         * lib/acl.c (copy_acl): Moved function to separate file.
55341         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
55342         * modules/acl (Files): Add lib/copy-acl.c.
55343         (Makefiles.am): Augment lib_SOURCES.
55344
55345 2008-05-22  Bruno Haible  <bruno@clisp.org>
55346
55347         * modules/copy-file-tests: New file.
55348         * tests/test-copy-file.sh: New file.
55349         * tests/test-copy-file.c: New file.
55350         * tests/test-copy-file-sameacls.c: New file.
55351
55352 2008-05-22  Eric Blake  <ebb9@byu.net>
55353
55354         Avoid gcc warning.
55355         * tests/test-memcmp.c (main): Pass NULL indirectly.
55356
55357 2008-05-21  Bruno Haible  <bruno@clisp.org>
55358
55359         Add reference doc about ACLs.
55360         * doc/acl-resources.txt: New file.
55361         * doc/acl-cygwin.txt: New file.
55362
55363 2008-05-21  Bruno Haible  <bruno@clisp.org>
55364
55365         Avoid one more warning from gcc.
55366         * lib/vasnprintf.c (IF_LINT): Update comments.
55367         (VASNPRINTF): Use it also for the 'prefix' array initializer.
55368
55369 2008-05-21  Jim Meyering  <meyering@redhat.com>
55370
55371         avoid a warning from gcc
55372         * lib/vasnprintf.c (IF_LINT): Define.
55373         (scale10_round_decimal_long_double):
55374         Use it to avoid a "may be used uninitialized" warning.
55375         (scale10_round_decimal_double): Likewise.
55376
55377 2008-05-21  Simon Josefsson  <simon@josefsson.org>
55378
55379         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
55380         declared.
55381
55382 2008-05-20  Bruno Haible  <bruno@clisp.org>
55383
55384         * tests/test-memcmp.c (main): Test also the sign of the result. Test
55385         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
55386
55387 2008-05-20  Simon Josefsson  <simon@josefsson.org>
55388
55389         * modules/memcmp-tests: New file.
55390         * tests/test-memcmp.c: New file.
55391
55392 2008-05-19  Bruno Haible  <bruno@clisp.org>
55393
55394         * modules/propername (Notice, configure.ac): Put quoted "..." into
55395         --keyword option.
55396         * lib/propername.h: Update comments accordingly.
55397         Reported by Eric Blake.
55398
55399 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
55400
55401         * modules/getpass-gnu (Depends-on): Add fseeko.
55402
55403 2008-05-19  Simon Josefsson  <simon@josefsson.org>
55404
55405         * modules/base64-tests: New file.
55406
55407 2008-05-19  Bo Borgerson <gigabo@gmail.com>
55408
55409         * lib/base64.c (base64_decode_ctx): If a decode context structure
55410         was passed in use it to ignore newlines.  If a context structure
55411         was _not_ passed in, continue to treat newlines as garbage (this
55412         is the historical behavior).  Formerly base64_decode.
55413         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
55414         takes a decode context structure.
55415         * lib/base64.h (base64_decode): Macro for four-argument calls.
55416         (base64_decode_alloc): Likewise.
55417         * lib/base64.c (base64_decode_ctx): If a decode context structure
55418         was passed in use it to ignore newlines.  If a context structure
55419         was _not_ passed in, continue to treat newlines as garbage (this
55420         is the historical behavior).  Formerly base64_decode.
55421         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
55422         takes a decode context structure.
55423         * lib/base64.h (base64_decode): Macro for four-argument calls.
55424         (base64_decode_alloc): Likewise.
55425
55426 2008-05-19  Jim Meyering  <meyering@redhat.com>
55427
55428         avoid a warning from gcc
55429         * lib/trim.c (IF_LINT): Define.
55430         (trim2): Use it to avoid a "may be used uninitialized" warning.
55431
55432         Fix doc typo.
55433         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
55434
55435 2008-05-19  Bruno Haible  <bruno@clisp.org>
55436
55437         * doc/glibc-functions/getpass.texi: Document limits of other
55438         implementations.
55439
55440 2008-05-19  Simon Josefsson  <simon@josefsson.org>
55441             Bruno Haible <bruno@clisp.org>
55442
55443         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
55444
55445 2008-05-18  Bruno Haible  <bruno@clisp.org>
55446
55447         * modules/propername: New file, from GNU gettext.
55448         * lib/propername.h: New file, from GNU gettext.
55449         * lib/propername.c: New file, from GNU gettext.
55450         * MODULES.html.sh (Internationalization functions): Add propername.
55451
55452 2008-05-16  Jim Meyering  <meyering@redhat.com>
55453             Bruno Haible  <bruno@clisp.org>
55454
55455         Avoid some warnings from "gcc -Wshadow".
55456         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
55457
55458 2008-05-15  Eric Blake  <ebb9@byu.net>
55459
55460         Extend previous patch to cygwin 1.7.0.
55461         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
55462         fast implementation in cygwin >= 1.7.0.
55463         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
55464         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
55465
55466 2008-05-15  Bruno Haible  <bruno@clisp.org>
55467
55468         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
55469         implementation in glibc >= 2.9.
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         * MODULES.html.sh (Internationalization functions): Remove linebreak.
55476         (Unicode string functions): Add unilbrk/*.
55477         Reported by Karl Berry.
55478
55479 2008-05-15  Eric Blake  <ebb9@byu.net>
55480
55481         Fix violation of <stdbool.h> replacement in regex.
55482         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
55483         * lib/regexec.c (re_search_internal): Likewise.
55484         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
55485
55486 2008-05-15  Jim Meyering  <meyering@redhat.com>
55487
55488         avoid distracting test output when git or cvs is not found
55489         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
55490         * tests/test-vc-list-files-git.sh: Likewise.
55491
55492 2008-05-15  Eric Blake  <ebb9@byu.net>
55493
55494         Glibc finally accepted the memmem speedup code, bugzilla #5514.
55495         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
55496         glibc version.
55497         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
55498         * doc/posix-functions/strstr.texi (strstr): Likewise.
55499         * lib/str-two-way.h (MAX): Sychronize with glibc.
55500
55501 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
55502
55503         * lib/regcomp.c (optimize_utf8): Add a note on why we test
55504         opr.ctx_type.
55505         (calc_first): Initialize constraint field.
55506         (duplicate_node_closure): Use it instead of special casing ANCHORS.
55507         Fix grammar.
55508         (duplicate_node): Merge constraint field for all node types.
55509         (calc_eclosure_iter): Look at constraint field for all node types.
55510         * lib/regex_internal.c (create_cd_newstate): Don't look at
55511         opr.ctx_type.
55512
55513 2008-05-14  Bruno Haible  <bruno@clisp.org>
55514
55515         Help GCC to do better code generation.
55516         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
55517         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
55518         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
55519         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
55520         Declare with attribute 'malloc' if supported.
55521
55522 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
55523
55524         use "echo STR|wc -c" rather than unportable "expr length STR"
55525         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
55526         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
55527
55528 2008-05-14  Jim Meyering  <meyering@redhat.com>
55529
55530         use dd ibs=$n count=1 ... rather than less-portable head -c$n
55531         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
55532         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
55533         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
55534         via Collin Lasse.
55535
55536 2008-05-14  Eric Blake  <ebb9@byu.net>
55537
55538         Avoid quadratic growth in gl_LIBSOURCES.
55539         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
55540         Suggested by Bruno Haible.
55541
55542         Test xmemdup0.
55543         * modules/xmemdup0-tests: New file.
55544         * tests/test-xmemdup0.c: Likewise.
55545
55546 2008-05-13  Eric Blake  <ebb9@byu.net>
55547
55548         Split xmemdup0 into its own module.
55549         * modules/xmemdup0: New file.
55550         * lib/xmemdup0.h: Likewise.
55551         * lib/xmemdup0.c: Likewise.
55552         * MODULES.html.sh (Memory management functions): Add xmemdup0.
55553         * lib/xalloc.h (xmemdup0): Remove.
55554         * lib/xmalloc.c (xmemdup0): Likewise.
55555
55556 2008-05-13  Eric Blake  <ebb9@byu.net>
55557             Bruno Haible  <bruno@clisp.org>
55558
55559         Reduce number of forks required during autoconf.
55560         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
55561         and gl_LIBSOURCES_DIR.
55562         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
55563         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
55564         m4_syscmd per file.
55565         <m4_foreach_w>: Move...
55566         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
55567
55568 2008-05-13  Eric Blake  <ebb9@byu.net>
55569
55570         * gnulib-tool: Fix various comment typos.
55571
55572 2008-05-12  Bruno Haible  <bruno@clisp.org>
55573
55574         Tailor the linebreaking algorithm.
55575         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
55576
55577 2008-05-12  Bruno Haible  <bruno@clisp.org>
55578
55579         Update to Unicode 5.0.0.
55580         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
55581         LBP_JV, LBP_JT. Redistribute values.
55582         (unilbrk_table): Change size.
55583         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
55584         Unicode TR#14 rev. 22.
55585         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
55586         LBP_JV, LBP_JT. Redistribute values.
55587         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
55588         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
55589         Update.
55590         * lib/unilbrk/lbrkprop1.h: Regenerated.
55591         * lib/unilbrk/lbrkprop2.h: Regenerated.
55592         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
55593         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
55594         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
55595         Likewise.
55596         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
55597         Likewise.
55598         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
55599         result.
55600         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
55601         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
55602         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
55603         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
55604         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
55605         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
55606
55607 2008-05-11  Bruno Haible  <bruno@clisp.org>
55608
55609         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
55610
55611 2008-05-11  Bruno Haible  <bruno@clisp.org>
55612
55613         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
55614         * modules/unilbrk/gen-lbrk: New file.
55615
55616 2008-05-11  Bruno Haible  <bruno@clisp.org>
55617
55618         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
55619         * m4/sha512.m4 (gl_SHA512): Likewise.
55620
55621 2008-05-11  Jim Meyering  <meyering@redhat.com>
55622
55623         New modules: crypto/sha256, crypto/sha512 (from coreutils)
55624         * modules/crypto/sha256: New file.
55625         * modules/crypto/sha512: Likewise.
55626         * lib/sha256.c: Likewise.
55627         * lib/sha256.h: Likewise.
55628         * lib/sha512.c: Likewise.
55629         * lib/sha512.h: Likewise.
55630         * lib/u64.h: Likewise.
55631         * m4/sha256.m4: Likewise.
55632         * m4/sha512.m4: Likewise.
55633         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
55634
55635 2008-05-10  Bruno Haible  <bruno@clisp.org>
55636
55637         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
55638         (Input/Output <stdio.h>): Add xprintf.
55639         (Signal handling <signal.h>): Add strsignal.
55640         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
55641         (Core language properties): Add func.
55642         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
55643         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
55644         strings.
55645         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
55646         (Input/output): New section.
55647         (File system functions): Add openat-die, stat-macros.
55648         (Networking functions): Add sockets.
55649         (Unicode string functions): Add unictype/*.
55650         (Support for building libraries and executables): Add gperf.
55651         (Support for building documentation): Add agpl-3.0.
55652         (Misc): Add nocrash.
55653
55654 2008-05-10  Bruno Haible  <bruno@clisp.org>
55655
55656         * modules/unictype/gen-ctype: New file.
55657
55658 2008-05-10  Jim Meyering  <meyering@redhat.com>
55659
55660         Make chdir-safer.c more efficient on a system with no symlinks.
55661         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
55662         also if ELOOP is zero.  Suggested by Bruno Haible.
55663
55664         Make chdir-safer.c slightly safer.
55665         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
55666         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
55667
55668         Avoid compile failure on systems without ELOOP (like mingw).
55669         * lib/chdir-safer.c (ELOOP): Define if not already defined.
55670         Reported by Bruno Haible.
55671
55672 2008-05-10  Bruno Haible  <bruno@clisp.org>
55673
55674         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
55675         (is_utf8_encoding): Use a case-insensitive comparison.
55676         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
55677         streq.
55678
55679 2008-05-10  Bruno Haible  <bruno@clisp.org>
55680
55681         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
55682         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
55683         * lib/unilbrk/ulc-common.h (iconv_string_length,
55684         iconv_string_keeping_offsets): Remove declarations.
55685         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
55686         Don't include <iconv.h>, streq.h, xsize.h.
55687         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
55688         conversion.
55689         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
55690         <iconv.h>, streq.h, xsize.h.
55691         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
55692         conversion.
55693         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
55694         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
55695         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
55696         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
55697
55698 2008-05-10  Bruno Haible  <bruno@clisp.org>
55699
55700         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
55701         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
55702
55703         * modules/unilbrk/u32-width-linebreaks-tests: New file.
55704         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
55705
55706         * modules/unilbrk/u16-width-linebreaks-tests: New file.
55707         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
55708
55709         * modules/unilbrk/u8-width-linebreaks-tests: New file.
55710         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
55711
55712         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
55713         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
55714
55715         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
55716         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
55717
55718         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
55719         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
55720
55721         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
55722         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
55723
55724 2008-05-10  Bruno Haible  <bruno@clisp.org>
55725
55726         Split up 'linebreak' module.
55727         * lib/unilbrk.h: New file, based on lib/linebreak.h.
55728         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
55729         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
55730         modifications.
55731         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
55732         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
55733         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
55734         lib/linebreak.c.
55735         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
55736         lib/linebreak.c.
55737         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
55738         lib/linebreak.c.
55739         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
55740         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
55741         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
55742         lib/linebreak.c.
55743         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
55744         lib/linebreak.c.
55745         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
55746         lib/linebreak.c.
55747         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
55748         lib/linebreak.c.
55749         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
55750         lib/linebreak.c.
55751         * modules/unilbrk/base: New file.
55752         * modules/unilbrk/tables: New file.
55753         * modules/unilbrk/u8-possible-linebreaks: New file.
55754         * modules/unilbrk/u16-possible-linebreaks: New file.
55755         * modules/unilbrk/u32-possible-linebreaks: New file.
55756         * modules/unilbrk/ulc-common: New file.
55757         * modules/unilbrk/ulc-possible-linebreaks: New file.
55758         * modules/unilbrk/u8-width-linebreaks: New file.
55759         * modules/unilbrk/u16-width-linebreaks: New file.
55760         * modules/unilbrk/u32-width-linebreaks: New file.
55761         * modules/unilbrk/ulc-width-linebreaks: New file.
55762         * lib/linebreak.h: Remove file.
55763         * lib/linebreak.c: Remove file.
55764         * m4/linebreak.m4: Remove file.
55765         * modules/linebreak: Remove file.
55766         * NEWS: Mention the changes.
55767
55768 2008-05-09  Eric Blake  <ebb9@byu.net>
55769
55770         Add xmemdup0.
55771         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
55772         implementation.
55773         * lib/xmalloc.c (xmemdup0): New C implementation.
55774
55775 2008-05-08  Bruno Haible  <bruno@clisp.org>
55776
55777         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
55778
55779 2008-05-07  Eric Blake  <ebb9@byu.net>
55780
55781         Support cross-compilation of <wctype.h>.
55782         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
55783         AC_CACHE_CHECK.
55784
55785 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
55786
55787         * build-aux/vc-list-files: Add support for bzr.
55788
55789 2008-05-03  Jim Meyering  <meyering@redhat.com>
55790
55791         avoid failed assertion with tight malloc
55792         * tests/test-getndelim2.c: Correct an off-by-one assertion.
55793
55794 2008-05-03  Simon Josefsson  <simon@josefsson.org>
55795
55796         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
55797         are needed from arpa/inet.h.
55798         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
55799         Reported by Bruno Haible.
55800
55801 2008-05-02  Jim Meyering  <meyering@redhat.com>
55802
55803         avoid compilation error on FreeBSD 6
55804         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
55805
55806 2008-05-01  Jim Meyering  <meyering@redhat.com>
55807
55808         useless-if-before-free: correct --help's exit status description
55809         * build-aux/useless-if-before-free (usage): Like grep, exit 0
55810         for one or more matches, etc.  Reported by Bruno Haible.
55811
55812         vc-list-files: make the stand-alone gnulib test work
55813         * modules/vc-list-files-tests (configure.ac):
55814         Define and AC_SUBST abs_aux_dir.
55815         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
55816         $(abs_top_srcdir) to each script and having each of them
55817         duplicate the work of setting PATH, set PATH here, using
55818         the new variable, abs_aux_dir instead.
55819         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
55820         * tests/test-vc-list-files-git.sh: Likewise.
55821         Reported by Bruno Haible.
55822
55823 2008-05-01  Bruno Haible  <bruno@clisp.org>
55824
55825         * lib/getndelim2.c (getndelim2): Fix newsize computation during
55826         reallocation. Rename 'done' to 'found_delimiter'.
55827
55828 2008-05-01  Jim Meyering  <meyering@redhat.com>
55829
55830         vc-list-files: accommodate /bin/sh like the one from Solaris 10
55831         * build-aux/vc-list-files: Use `...`, not $(...).
55832
55833 2008-04-30  Jim Meyering  <meyering@redhat.com>
55834
55835         add tests for vc-list-files
55836         * modules/vc-list-files-tests: New module.
55837         * tests/test-vc-list-files-cvs.sh: New file.
55838         * tests/test-vc-list-files-git.sh: New file.
55839
55840         avoid a warning from gcc
55841         * lib/getndelim2.c (IF_LINT): Define.
55842         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
55843
55844         vc-list-files: work properly with build-aux/cvsu, too
55845         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
55846         to all cvs-based clauses.
55847
55848         vc-list-files: work properly in the CVS+awk case, too
55849         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
55850
55851         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
55852         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
55853         take more than one file argument, so .  Add quotes, just in case $dir
55854         ever contains a shell meta-character.  Prompted by Soren Hansen in
55855         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
55856
55857 2008-04-29  Eric Blake  <ebb9@byu.net>
55858
55859         Optimize getndelim2 to use block operations when possible.
55860         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
55861         freadseek, and memchr2.
55862         * lib/getndelim2.c (getndelim2): Use them for block reads.
55863
55864 2008-04-29  Bruno Haible  <bruno@clisp.org>
55865
55866         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
55867         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
55868         * modules/inet_ntop (Depends-on): Add extensions.
55869         * modules/inet_pton (Depends-on): Likewise.
55870         Reported by Simon Josefsson.
55871
55872 2008-04-29  Jim Meyering  <meyering@redhat.com>
55873
55874         When the is more than one match in a block, match all of them.
55875         * build-aux/useless-if-before-free: Iterate through each block
55876         until there are no more matches.
55877
55878         Fix broken useless-if-before-free script.
55879         * build-aux/useless-if-before-free: Fix typo: missing "?" after
55880         the expression to match cast of argument to free-like function.
55881
55882 2008-04-29  Eric Blake  <ebb9@byu.net>
55883
55884         Use new header.
55885         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
55886
55887 2008-04-29  Jim Meyering  <meyering@redhat.com>
55888
55889         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
55890         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
55891         by gnulib to exist and to declare e.g., inet_ntop.
55892         Don't include "inet_ntop.h", now removed.
55893
55894         * m4/arpa_inet_h.m4: Remove trailing blanks.
55895
55896 2008-04-29  Eric Blake  <ebb9@byu.net>
55897
55898         Silence valgrind on safe reads beyond potential array bounds.
55899         * lib/rawmemchr.valgrind: New file.
55900         * lib/strchrnul.valgrind: Likewise.
55901         * modules/rawmemchr (Files): Distribute new file.
55902         * modules/strchrnul (Files): Likewise.
55903         Suggested by Bruno Haible.
55904
55905 2008-04-29  Bruno Haible  <bruno@clisp.org>
55906
55907         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
55908         (inet_ntop, inet_pton): Change portability warning's wording.
55909         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
55910         Invoke gl_CHECK_NEXT_HEADERS.
55911         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
55912         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
55913         set ARPA_INET_H.
55914         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
55915         * modules/arpa_inet (Description): No longer only for systems that
55916         lack it.
55917         (Depends-on): Add include_next.
55918         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
55919         HAVE_ARPA_INET_H.
55920
55921 2008-04-29  Jim Meyering  <meyering@redhat.com>
55922
55923         * modules/mkdir (License): Re-license as LGPLv2+.
55924
55925 2008-04-29  Bruno Haible  <bruno@clisp.org>
55926
55927         * modules/rawmemchr (Maintainer): Set to Eric.
55928         * modules/strchrnul (Maintainer): Likewise.
55929
55930 2008-04-29  Simon Josefsson  <simon@josefsson.org>
55931
55932         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
55933         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
55934
55935         * modules/arpa_inet (arpa/inet.h): Use them.
55936
55937 2008-04-28  Eric Blake  <ebb9@byu.net>
55938
55939         Test getndelim2.
55940         * modules/getndelim2-tests: New file.
55941         * tests/test-getndelim2.c: Likewise.
55942         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
55943         stream.
55944         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
55945
55946         * MODULES.html.sh: Document new module.
55947
55948 2008-04-20  Bruno Haible  <bruno@clisp.org>
55949
55950         * lib/c-stack.c (die): Use raise.
55951         * modules/c-stack (Depends-on): Add raise.
55952
55953 2008-04-28  Bruno Haible  <bruno@clisp.org>
55954
55955         Expect rpmatch to be declared.
55956         * lib/yesno.c (rpmatch): Remove declaration.
55957
55958         Declare rpmatch.
55959         * lib/stdlib.in.h (rpmatch): New declaration.
55960         * lib/rpmatch.c: Include <stdlib.h> first.
55961         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
55962         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
55963         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
55964         HAVE_RPMATCH.
55965         * modules/rpmatch (Depends-on): Add stdlib, extensions.
55966         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
55967         (Include): Set to <stdlib.h>.
55968         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
55969         HAVE_RPMATCH.
55970         * NEWS: Document the change.
55971
55972 2008-04-28  Bruno Haible  <bruno@clisp.org>
55973
55974         Change rpmatch to use nl_langinfo when appropriate.
55975         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
55976         (N_): New macro.
55977         (localized_pattern): New function/macro.
55978         (try): Remove match, nomatch arguments. Copy the pattern into safe
55979         memory before caching it.
55980         (rpmatch): Use localized_pattern. Add translator comments.
55981         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
55982         Suggested by Eric Blake.
55983         * modules/rpmatch (Depends-on): Add stdbool.
55984
55985 2008-04-28  Eric Blake  <ebb9@byu.net>
55986
55987         Add rawmemchr module, matching glibc.
55988         * modules/string (Makefile.am): New indicator.
55989         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
55990         * lib/string.in.h (rawmemchr): Declare when appropriate.
55991         * modules/rawmemchr: New file.
55992         * m4/rawmemchr.m4: Likewise.
55993         * lib/rawmemchr.c: Likewise.
55994         * modules/rawmemchr-tests: Likewise.
55995         * tests/test-rawmemchr.c: Likewise.
55996         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
55997         module.
55998         * modules/strchrnul (Depends-on): Add rawmemchr.
55999         * lib/strchrnul.c (strchrnul): Optimize a corner case.
56000
56001         Whitespace cleanup.
56002         * tests/test-strchrnul.c: Reindent.
56003         * lib/strchrnul.c: Likewise.
56004
56005         Optimize and test strchrnul.
56006         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
56007         * modules/strchrnul-tests: New file.
56008         * tests/test-strchrnul.c: Likewise.
56009
56010         Remove intprops dependency.
56011         * modules/memchr (Depends-on): Remove intprops.
56012         * modules/memrchr (Depends-on): Likewise.
56013         * modules/memchr2 (Depends-on): Likewise.
56014         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
56015         * lib/memrchr.c (__memrchr): Likewise.
56016         * lib/memrchr2.c (memchr2): Likewise.
56017         Reported by Simon Josefsson.
56018
56019 2008-04-28  Simon Josefsson  <simon@josefsson.org>
56020
56021         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
56022         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56023
56024 2008-04-28  Simon Josefsson  <simon@josefsson.org>
56025
56026         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
56027
56028         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
56029
56030         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
56031
56032         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
56033         declarations.
56034         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
56035
56036         * m4/inet_pton.m4: Don't check for header files.
56037
56038         * m4/inet_ntop.m4: Don't check for header files.
56039
56040 2008-04-28  Simon Josefsson  <simon@josefsson.org>
56041
56042         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
56043         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
56044         trigger for cygwin).
56045         Reported by Bruno Haible  <bruno@clisp.org>.
56046
56047 2008-04-28  Bruno Haible  <bruno@clisp.org>
56048
56049         * doc/posix-functions/strdup.texi: Mention mingw problem.
56050
56051 2008-04-27  Bruno Haible  <bruno@clisp.org>
56052
56053         * modules/stat-time-tests (Depends-on): Add sleep.
56054         * tests/test-stat-time.c (force_unlink): New function.
56055         (cleanup): Use it.
56056         (test_mtime): Remove the ctime related tests.
56057         (test_ctime): New function, containing the ctime related tests.
56058         (main): Call test_ctime, except on native Windows platforms.
56059
56060 2008-04-27  Bruno Haible  <bruno@clisp.org>
56061
56062         * lib/rpmatch.c (rpmatch): Add some comments.
56063         Reported by James Youngman <jay@gnu.org>.
56064
56065 2008-04-27  Bruno Haible  <bruno@clisp.org>
56066
56067         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
56068         quiet NaNs.
56069
56070 2008-04-27  Bruno Haible  <bruno@clisp.org>
56071
56072         Make test-yesno.sh work on mingw.
56073         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
56074         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
56075         (main): Set stdin to binary mode.
56076         * modules/yesno-tests (Depends-on): Add binary-io.
56077
56078 2008-04-27  Bruno Haible  <bruno@clisp.org>
56079
56080         Fix 'isfinite' on x86, x86_64, ia64 platforms.
56081         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
56082         argument that lie outside the IEEE 854 domain.
56083         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
56084         (gl_ISFINITE): Use it.
56085         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
56086
56087 2008-04-27  Bruno Haible  <bruno@clisp.org>
56088
56089         Allow local renaming in config.h.
56090         * lib/memrchr.c (memrchr): Don't undefine outside libc.
56091
56092 2008-04-27  Bruno Haible  <bruno@clisp.org>
56093
56094         * lib/memchr.c (__memchr): Change type of 'i'.
56095         * lib/memchr2.c (memchr2): Likewise.
56096
56097 2008-04-26  Eric Blake  <ebb9@byu.net>
56098         and Bruno Haible  <bruno@clisp.org>
56099
56100         Optimize and test memrchr.
56101         * modules/memrchr (Depends-on): Add intprops.
56102         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
56103         * modules/memrchr-tests: New file.
56104         * tests/test-memrchr.c: New file.
56105
56106 2008-04-26  Bruno Haible  <bruno@clisp.org>
56107
56108         Add tentative support for DragonFly BSD.
56109         * lib/stdio-impl.h: Add macros for DragonFly BSD.
56110         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
56111         fp.
56112         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
56113         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
56114         * lib/fpurge.c (fpurge): Likewise.
56115         * lib/freadable.c (freaadable): Likewise.
56116         * lib/freadahead.c (freadahead): Likewise.
56117         * lib/freading.c (freading): Likewise.
56118         * lib/freadptr.c (freadptr): Likewise.
56119         * lib/freadseek.c (freadptrinc): Likewise.
56120         * lib/fseeko.c (fseeko): Likewise.
56121         * lib/fseterr.c (fseterr): Likewise.
56122         * lib/fwritable.c (fwritable): Likewise.
56123         * lib/fwriting.c (fwriting): Likewise.
56124
56125 2008-04-26  Bruno Haible  <bruno@clisp.org>
56126
56127         * lib/stdio-impl.h: New file.
56128         * lib/fbufmode.c: Include stdio-impl.h.
56129         (fbufmode): Use fp_, remove redundant #defines.
56130         * lib/fflush.c: Include stdio-impl.h.
56131         (clear_ungetc_buffer): Remove redundant #defines.
56132         * lib/fpurge.c: Include stdio-impl.h.
56133         (fpurge): Remove redundant #defines.
56134         * lib/freadable.c: Include stdio-impl.h.
56135         (freadable): Remove redundant #defines.
56136         * lib/freadahead.c: Include stdio-impl.h.
56137         (freadahead): Remove redundant #defines.
56138         * lib/freading.c: Include stdio-impl.h.
56139         (freading): Remove redundant #defines.
56140         * lib/freadptr.c: Include stdio-impl.h.
56141         (freadptr): Remove redundant #defines.
56142         * lib/freadseek.c: Include stdio-impl.h.
56143         (freadptrinc): Remove redundant #defines.
56144         * lib/fseeko.c: Include stdio-impl.h.
56145         (rpl_fseeko): Remove redundant #defines.
56146         * lib/fseterr.c: Include stdio-impl.h.
56147         (fseterr): Remove redundant #defines.
56148         * lib/fwritable.c: Include stdio-impl.h.
56149         (fwritable: Remove redundant #defines.
56150         * lib/fwriting.c: Include stdio-impl.h.
56151         (fwriting): Remove redundant #defines.
56152         * modules/fbufmode (Files): Add lib/stdio-impl.h.
56153         * modules/fflush (Files): Likewise.
56154         * modules/fpurge (Files): Likewise.
56155         * modules/freadable (Files): Likewise.
56156         * modules/freadahead (Files): Likewise.
56157         * modules/freading (Files): Likewise.
56158         * modules/freadptr (Files): Likewise.
56159         * modules/freadseek (Files): Likewise.
56160         * modules/fseeko (Files): Likewise.
56161         * modules/fseterr (Files): Likewise.
56162         * modules/fwritable (Files): Likewise.
56163         * modules/fwriting (Files): Likewise.
56164
56165 2008-04-26  Bruno Haible  <bruno@clisp.org>
56166
56167         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
56168         restore_seek_optimization, update_fpos_cache): New functions, extracted
56169         from rpl_fflush.
56170         (rpl_fflush): Use them.
56171         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
56172         (gl_REPLACE_FFLUSH): Use it.
56173
56174 2008-04-26  Bruno Haible  <bruno@clisp.org>
56175
56176         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
56177         on Solaris.
56178         * tests/test-xstrtoimax.sh: Likewise.
56179         * tests/test-xstrtoumax.sh: Likewise.
56180         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56181
56182 2008-04-26  Bruno Haible  <bruno@clisp.org>
56183
56184         * modules/memchr-tests: New file.
56185         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
56186
56187 2008-04-26  Eric Blake  <ebb9@byu.net>
56188             Bruno Haible  <bruno@clisp.org>
56189
56190         * lib/memchr.c: Include intprops.h.
56191         (__memchr): Optimize parallel detection of matching bytes. Rename local
56192         variables. Add explanatory comments.
56193
56194 2008-04-26  Bruno Haible  <bruno@clisp.org>
56195
56196         Fix module 'memchr', broken since 2000-10-28.
56197         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
56198
56199 2008-04-26  Bruno Haible  <bruno@clisp.org>
56200
56201         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
56202         comments.
56203
56204 2008-04-25  Eric Blake  <ebb9@byu.net>
56205
56206         Use native fstatat on cygwin 1.7.0.
56207         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
56208         first.
56209
56210 2008-04-23  Eric Blake  <ebb9@byu.net>
56211
56212         Improve memchr2 performance.
56213         * lib/memchr2.c (memchr2): Further optimize parallel detection of
56214         NUL bytes.
56215         * modules/memchr2 (Depends-on): Use intprops.h.
56216
56217 2008-04-23  Simon Josefsson  <simon@josefsson.org>
56218
56219         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
56220         an inline function instead of a CPP macro.  Patch by Ben Pfaff
56221         <blp@cs.stanford.edu>.
56222
56223 2008-04-23  Simon Josefsson  <simon@josefsson.org>
56224
56225         * lib/arpa_inet.in.h: New file.
56226
56227         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
56228         (Makefile.am): Sed in substitute header file.
56229
56230         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
56231         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
56232
56233         * modules/inet_ntop (configure.ac): Use
56234         gl_ARPA_INET_MODULE_INDICATOR.
56235
56236         * modules/inet_pton (configure.ac): Use
56237         gl_ARPA_INET_MODULE_INDICATOR.
56238
56239 2008-04-22  Jim Meyering  <meyering@redhat.com>
56240
56241         * modules/verify (License): Re-license as LGPLv2+.
56242
56243 2008-04-22  Simon Josefsson  <simon@josefsson.org>
56244
56245         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
56246         parameter to void* as per POSIX standard (MinGW uses char*).
56247
56248 2008-04-21  Bruno Haible  <bruno@clisp.org>
56249
56250         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
56251         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
56252         Define to replacements if REPLACE_ISWCNTRL is 1.
56253         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
56254         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
56255         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
56256         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
56257         what it fixes.
56258         * doc/posix-functions/iswalpha.texi: Likewise.
56259         * doc/posix-functions/iswblank.texi: Likewise.
56260         * doc/posix-functions/iswcntrl.texi: Likewise.
56261         * doc/posix-functions/iswdigit.texi: Likewise.
56262         * doc/posix-functions/iswgraph.texi: Likewise.
56263         * doc/posix-functions/iswlower.texi: Likewise.
56264         * doc/posix-functions/iswprint.texi: Likewise.
56265         * doc/posix-functions/iswpunct.texi: Likewise.
56266         * doc/posix-functions/iswspace.texi: Likewise.
56267         * doc/posix-functions/iswupper.texi: Likewise.
56268         * doc/posix-functions/iswxdigit.texi: Likewise.
56269         Reported by Alain Guibert.
56270
56271 2008-04-21  Bruno Haible  <bruno@clisp.org>
56272
56273         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
56274         Patch by Alain Guibert.
56275
56276 2008-04-21  Bruno Haible  <bruno@clisp.org>
56277
56278         Fix test failures on mingw.
56279         * tests/test-xstrtol.c (print_no_progname): New function.
56280         (main): Install it in error_print_progname hook.
56281         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
56282         * tests/test-xstrtoimax.sh: Likewise.
56283         * tests/test-xstrtoumax.sh: Likewise.
56284
56285 2008-04-21  Bruno Haible  <bruno@clisp.org>
56286
56287         Fix test failure on mingw.
56288         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
56289
56290 2008-04-21  Bruno Haible  <bruno@clisp.org>
56291
56292         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
56293         Actually assign a value.
56294
56295 2008-04-20  Bruno Haible  <bruno@clisp.org>
56296
56297         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
56298         take 2.
56299         * lib/canonicalize.c (canonicalize_file_name): Elide if the
56300         'canonicalize-lgpl' module is also used.
56301         * lib/canonicalize-lgpl.c: Undo last change.
56302         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
56303
56304 2008-04-20  Bruno Haible  <bruno@clisp.org>
56305
56306         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
56307         config.h. Provide _mkdir based fallback for mingw.
56308         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
56309         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
56310         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
56311         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
56312         rather than defining mkdir in config.h.
56313         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
56314         (gl_SYS_STAT_H_DEFAULTS): New macro.
56315         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
56316         HAVE_IO_H any more.
56317         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
56318         HAVE_DECL_MKDIR and HAVE_IO_H.
56319
56320 2008-04-20  Bruno Haible  <bruno@clisp.org>
56321
56322         * lib/isapipe.c: Port to native Windows platforms.
56323
56324 2008-04-20  Bruno Haible  <bruno@clisp.org>
56325
56326         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
56327
56328 2008-04-21  Eric Blake  <ebb9@byu.net>
56329
56330         Work around preprocessors that don't handle UINTMAX_MAX.
56331         * lib/memchr2.c (memchr2): Avoid embedded #if.
56332         Reported by Alain Guibert, fix suggested by Bruno Haible.
56333
56334 2008-04-21  Simon Josefsson  <simon@josefsson.org>
56335
56336         * doc/posix-functions/strftime.texi (strftime): Explain better
56337         Windows incompatibility.  Suggested by Micah Cowan
56338         <micah@cowan.name>.
56339
56340 2008-04-20  Bruno Haible  <bruno@clisp.org>
56341
56342         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
56343         unistr/u8-mblen.
56344
56345 2008-04-20  Bruno Haible  <bruno@clisp.org>
56346
56347         Fix test failure on platforms with non-GNU iconv.
56348         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
56349         (U_TO_U8): Use it, rather than u16_to_u8.
56350         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
56351         units at the end of the input string.
56352         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
56353
56354 2008-04-20  Bruno Haible  <bruno@clisp.org>
56355
56356         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
56357         when the resulting length is 0.
56358         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
56359
56360 2008-04-20  Bruno Haible  <bruno@clisp.org>
56361
56362         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
56363         works.
56364         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
56365
56366 2008-04-20  Bruno Haible  <bruno@clisp.org>
56367
56368         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
56369         * modules/tsearch-tests (configure.ac): Test for initstate function.
56370
56371 2008-04-20  Bruno Haible  <bruno@clisp.org>
56372
56373         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
56374         for nlink_t if missing.
56375         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
56376
56377 2008-04-19  Bruno Haible  <bruno@clisp.org>
56378
56379         Work around snprintf bug on Linux libc5.
56380         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
56381         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
56382         gl_SNPRINTF_SIZE1.
56383         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56384         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
56385         that test failed.
56386         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
56387         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
56388         * modules/snprintf (Files): Add m4/printf.m4.
56389         * modules/vsnprintf (Files): Likewise.
56390         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
56391         * doc/posix-functions/vsnprintf.texi: Likewise.
56392
56393 2008-04-19  Bruno Haible  <bruno@clisp.org>
56394
56395         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
56396         from 0.0058 to less than 10^-7.
56397
56398 2008-04-19  Bruno Haible  <bruno@clisp.org>
56399
56400         Fix rounding when a precision is given.
56401         * lib/vasnprintf.c (is_borderline): New function.
56402         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
56403         9...9x.
56404         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
56405         %e, %g.
56406         * tests/test-vasprintf-posix.c (test_function): Likewise.
56407         * tests/test-snprintf-posix.h (test_function): Likewise.
56408         * tests/test-sprintf-posix.h (test_function): Likewise.
56409         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
56410         * tests/test-printf-posix.h (test_function): Likewise.
56411         * tests/test-printf-posix.output: Update.
56412         Reported by John Darrington <john@darrington.wattle.id.au> via
56413         Ben Pfaff <blp@cs.stanford.edu>.
56414
56415 2008-04-18  Simon Josefsson  <simon@josefsson.org>
56416
56417         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
56418         Suggested by Bruno Haible <bruno@clisp.org>.
56419
56420 2008-04-17  Bruno Haible  <bruno@clisp.org>
56421
56422         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
56423         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
56424         implementation.
56425         Patch by Bruce Merry <bmerry@gmail.com>.
56426
56427 2008-04-17  Simon Josefsson  <simon@josefsson.org>
56428
56429         * doc/posix-functions/strftime.texi (strftime): Mention that %e
56430         doesn't work under Windows.
56431
56432 2008-04-16  Bruno Haible  <bruno@clisp.org>
56433
56434         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
56435         New macros.
56436         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
56437         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
56438         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
56439         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
56440         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
56441         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
56442         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
56443         macros.
56444         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
56445         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
56446         Northern Sotho, Uighur.
56447
56448 2008-04-16  Bruno Haible  <bruno@clisp.org>
56449
56450         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
56451         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
56452         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
56453         Reported by Daniel Bergström <daniel@octocode.com>.
56454
56455 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
56456             Bruno Haible  <bruno@clisp.org>
56457
56458         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
56459         function.
56460         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
56461         New functions, mostly extracted from gl_locale_name_default.
56462         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
56463
56464 2008-04-16  Eric Blake  <ebb9@byu.net>
56465
56466         Adjust strtod detection to catch glibc 2.7 bug.
56467         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
56468         Reported by John Gatewood Ham.
56469
56470 2008-04-16  Bruno Haible  <bruno@clisp.org>
56471
56472         Add tentative support for Linux libc5.
56473         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
56474         * lib/fpurge.c (fpurge): Likewise.
56475         * lib/freadable.c (freadable): Likewise.
56476         * lib/freadahead.c (freadahead): Likewise.
56477         * lib/freading.c (freading): Likewise.
56478         * lib/freadptr.c (freadptr): Likewise.
56479         * lib/freadseek.c (freadptrinc): Likewise.
56480         * lib/fseeko.c (rpl_fseeko): Likewise.
56481         * lib/fseterr.c (fseterr): Likewise.
56482         * lib/fwritable.c (fwritable): Likewise.
56483         * lib/fwriting.c (fwriting): Likewise.
56484         Reported by Alain Guibert <alguibert+bts@free.fr>.
56485
56486 2008-04-15  Bruno Haible  <bruno@clisp.org>
56487
56488         * modules/mathl (configure.ac): Define module indicator.
56489
56490 2008-04-15  Bruno Haible  <bruno@clisp.org>
56491
56492         * lib/logl.c (logl): Remove unused variables.
56493
56494 2008-04-15  Bruno Haible  <bruno@clisp.org>
56495
56496         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
56497         fails.
56498
56499 2008-04-15  Bruno Haible  <bruno@clisp.org>
56500
56501         * lib/trim.c (trim2): Fix argument of isspace() macro.
56502
56503 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
56504
56505         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
56506         to 0.
56507         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
56508
56509 2008-04-14  Bruno Haible  <bruno@clisp.org>
56510
56511         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
56512         AC_LANG_PROGRAM argument.
56513         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
56514         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
56515         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
56516         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
56517         * m4/math_h.m4 (gl_MATH_H): Likewise.
56518         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
56519         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
56520         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
56521         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
56522         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
56523         * m4/regex.m4 (gl_REGEX): Likewise.
56524         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
56525         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
56526         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
56527         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
56528         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
56529         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
56530         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
56531         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
56532
56533 2008-04-14  Jim Meyering  <meyering@redhat.com>
56534
56535         test-strtod: fix typos: s/abs/fabs/
56536         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
56537
56538 2008-04-13  Bruno Haible  <bruno@clisp.org>
56539
56540         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
56541         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
56542         module is also used and while not building the reloc-wrapper.
56543
56544 2008-04-13  Bruno Haible  <bruno@clisp.org>
56545
56546         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
56547
56548 2008-04-13  Bruno Haible  <bruno@clisp.org>
56549
56550         Fix AIX compilation failure introduced on 2008-04-02.
56551         * tests/test-frexp.c (exp): Undefine before redefining.
56552         * tests/test-frexpl.c (exp): Likewise.
56553
56554 2008-04-13  Bruno Haible  <bruno@clisp.org>
56555
56556         Work around a HP-UX stdio bug.
56557         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
56558         * tests/test-ftello.c (main): Likewise.
56559         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
56560         * doc/posix-functions/ftello.texi: Likewise.
56561
56562 2008-04-13  Bruno Haible  <bruno@clisp.org>
56563
56564         Make test-signbit pass on HP-UX/hppa.
56565         * tests/test-signbit.c (minus_zerol): New variable.
56566         (test_signbitl): Use it.
56567
56568 2008-04-13  Bruno Haible  <bruno@clisp.org>
56569
56570         Make truncl work on OSF/1 4.0.
56571         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
56572         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
56573         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
56574         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
56575         HAVE_DECL_TRUNCL.
56576         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
56577         HAVE_DECL_TRUNCL.
56578         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
56579
56580 2008-04-13  Bruno Haible  <bruno@clisp.org>
56581
56582         * lib/unictype.h: Remove trailing comma from enumeration definitions.
56583
56584 2008-04-13  Bruno Haible  <bruno@clisp.org>
56585
56586         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
56587         expression, so as to avoid HP-UX 11 cc compiler bug.
56588
56589 2008-04-13  Bruno Haible  <bruno@clisp.org>
56590
56591         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
56592
56593 2008-04-13  Bruno Haible  <bruno@clisp.org>
56594
56595         * lib/git-merge-changelog.c: Remove empty declaration outside of
56596         functions.
56597
56598 2008-04-13  Bruno Haible  <bruno@clisp.org>
56599
56600         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
56601
56602 2008-04-13  Bruno Haible  <bruno@clisp.org>
56603
56604         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
56605         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
56606         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
56607         also if it exists but lacks definitions of the SHUT_* macros.
56608         * modules/sys_socket (Description): Update.
56609         Reported by Elbert Pol <e.pol@chello.nl>.
56610
56611 2008-04-13  Bruno Haible  <bruno@clisp.org>
56612
56613         * lib/localcharset.c (OS2): Don't redefine if already defined.
56614         Reported by Elbert Pol <e.pol@chello.nl>.
56615
56616 2008-04-13  Bruno Haible  <bruno@clisp.org>
56617
56618         * lib/binary-io.h [__EMX__]: Include <io.h>.
56619         Reported by Elbert Pol <e.pol@chello.nl>.
56620
56621 2008-04-12  Bruno Haible  <bruno@clisp.org>
56622
56623         * lib/fpucw.h: Enable the definitions also for x86_64.
56624         Needed for NetBSD/x86_64.
56625         Reported by Thomas Klausner <tk@giga.or.at>.
56626
56627 2008-04-12  Bruno Haible  <bruno@clisp.org>
56628
56629         * tests/test-strtod.c: Include isnand.h.
56630         (main): Use isnand instead of isnan.
56631         Reported by Jim Meyering.
56632
56633 2008-04-12  Bruno Haible  <bruno@clisp.org>
56634
56635         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
56636         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
56637
56638 2008-04-12  Jim Meyering  <meyering@redhat.com>
56639
56640         * m4/math_h.m4 (gl_MATH_H): Fix typos.
56641
56642 2008-04-12  Bruno Haible  <bruno@clisp.org>
56643
56644         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
56645         Reported by Elbert Pol <e.pol@chello.nl>.
56646
56647 2008-04-12  Eric Blake  <ebb9@byu.net>
56648
56649         Work around Solaris 10 math.h bug.
56650         * m4/math_h.m4 (gl_MATH_H): Check for bug.
56651         (gl_MATH_H_DEFAULTS): Set up default.
56652         * modules/math (Makefile.am): Replace new indicators.
56653         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
56654         * tests/test-math.c (main): Test this.
56655         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
56656         * doc/posix-headers/math.texi (math.h): Mention bug.
56657         Reported by Nelson H. F. Beebe and Jim Meyering.
56658
56659 2008-04-11  Bruno Haible  <bruno@clisp.org>
56660
56661         Adapt to future versions of Apple GCC.
56662         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
56663         Reported by Peter O'Gorman <peter@pogma.com>.
56664
56665 2008-04-11  Bruno Haible  <bruno@clisp.org>
56666
56667         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
56668
56669 2008-04-11  Bruno Haible  <bruno@clisp.org>
56670
56671         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
56672
56673         * modules/getaddrinfo-tests (Makefile.am): Define
56674         test_getaddrinfo_LDADD.
56675
56676 2008-04-11  Bruno Haible  <bruno@clisp.org>
56677
56678         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
56679         (init): Fix syntax error.
56680         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
56681         is declared.
56682
56683 2008-04-11  Bruno Haible  <bruno@clisp.org>
56684
56685         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
56686         * modules/glob (Depends-on): Add stdbool.
56687
56688 2008-04-11  Bruno Haible  <bruno@clisp.org>
56689
56690         * lib/trim.c: Include <string.h>.
56691
56692 2008-04-11  Eric Blake  <ebb9@byu.net>
56693
56694         Avoid compile failure on OS/2.
56695         * lib/regex_internal.h (internal_function): Disable optimization
56696         on OS/2 (__EMX__), where it caused compiler error.
56697         Reported by Elbert Pol.
56698
56699 2008-04-11  Bruno Haible  <bruno@clisp.org>
56700
56701         Flush the standard error stream before aborting. Needed on mingw.
56702         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
56703         * tests/test-array_list.c (ASSERT): Likewise.
56704         * tests/test-array_oset.c (ASSERT): Likewise.
56705         * tests/test-avltree_list.c (ASSERT): Likewise.
56706         * tests/test-avltree_oset.c (ASSERT): Likewise.
56707         * tests/test-avltreehash_list.c (ASSERT): Likewise.
56708         * tests/test-binary-io.c (ASSERT): Likewise.
56709         * tests/test-byteswap.c (ASSERT): Likewise.
56710         * tests/test-c-ctype.c (ASSERT): Likewise.
56711         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
56712         * tests/test-c-strcasestr.c (ASSERT): Likewise.
56713         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
56714         * tests/test-c-strstr.c (ASSERT): Likewise.
56715         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
56716         * tests/test-canonicalize.c (ASSERT): Likewise.
56717         * tests/test-carray_list.c (ASSERT): Likewise.
56718         * tests/test-ceilf1.c (ASSERT): Likewise.
56719         * tests/test-ceilf2.c (ASSERT): Likewise.
56720         * tests/test-ceill.c (ASSERT): Likewise.
56721         * tests/test-count-one-bits.c (ASSERT): Likewise.
56722         * tests/test-fbufmode.c (ASSERT): Likewise.
56723         * tests/test-fflush2.c (ASSERT): Likewise.
56724         * tests/test-floorf1.c (ASSERT): Likewise.
56725         * tests/test-floorf2.c (ASSERT): Likewise.
56726         * tests/test-floorl.c (ASSERT): Likewise.
56727         * tests/test-fopen.c (ASSERT): Likewise.
56728         * tests/test-fpending.c (ASSERT): Likewise.
56729         * tests/test-fprintf-posix.c (ASSERT): Likewise.
56730         * tests/test-fpurge.c (ASSERT): Likewise.
56731         * tests/test-freadable.c (ASSERT): Likewise.
56732         * tests/test-freadahead.c (ASSERT): Likewise.
56733         * tests/test-freading.c (ASSERT): Likewise.
56734         * tests/test-freadptr.c (ASSERT): Likewise.
56735         * tests/test-freadptr2.c (ASSERT): Likewise.
56736         * tests/test-freadseek.c (ASSERT): Likewise.
56737         * tests/test-freopen.c (ASSERT): Likewise.
56738         * tests/test-frexp.c (ASSERT): Likewise.
56739         * tests/test-frexpl.c (ASSERT): Likewise.
56740         * tests/test-fseek.c (ASSERT): Likewise.
56741         * tests/test-fseeko.c (ASSERT): Likewise.
56742         * tests/test-fstrcmp.c (ASSERT): Likewise.
56743         * tests/test-ftell.c (ASSERT): Likewise.
56744         * tests/test-ftello.c (ASSERT): Likewise.
56745         * tests/test-func.c (ASSERT): Likewise.
56746         * tests/test-fwritable.c (ASSERT): Likewise.
56747         * tests/test-fwriting.c (ASSERT): Likewise.
56748         * tests/test-getdelim.c (ASSERT): Likewise.
56749         * tests/test-getline.c (ASSERT): Likewise.
56750         * tests/test-i-ring.c (ASSERT): Likewise.
56751         * tests/test-iconv-utf.c (ASSERT): Likewise.
56752         * tests/test-iconv.c (ASSERT): Likewise.
56753         * tests/test-isfinite.c (ASSERT): Likewise.
56754         * tests/test-isnand.c (ASSERT): Likewise.
56755         * tests/test-isnanf.c (ASSERT): Likewise.
56756         * tests/test-isnanl.h (ASSERT): Likewise.
56757         * tests/test-ldexpl.c (ASSERT): Likewise.
56758         * tests/test-linked_list.c (ASSERT): Likewise.
56759         * tests/test-linkedhash_list.c (ASSERT): Likewise.
56760         * tests/test-localename.c (ASSERT): Likewise.
56761         * tests/test-lseek.c (ASSERT): Likewise.
56762         * tests/test-mbscasecmp.c (ASSERT): Likewise.
56763         * tests/test-mbscasestr1.c (ASSERT): Likewise.
56764         * tests/test-mbscasestr2.c (ASSERT): Likewise.
56765         * tests/test-mbscasestr3.c (ASSERT): Likewise.
56766         * tests/test-mbscasestr4.c (ASSERT): Likewise.
56767         * tests/test-mbschr.c (ASSERT): Likewise.
56768         * tests/test-mbscspn.c (ASSERT): Likewise.
56769         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
56770         * tests/test-mbspbrk.c (ASSERT): Likewise.
56771         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
56772         * tests/test-mbsrchr.c (ASSERT): Likewise.
56773         * tests/test-mbsspn.c (ASSERT): Likewise.
56774         * tests/test-mbsstr1.c (ASSERT): Likewise.
56775         * tests/test-mbsstr2.c (ASSERT): Likewise.
56776         * tests/test-mbsstr3.c (ASSERT): Likewise.
56777         * tests/test-memchr2.c (ASSERT): Likewise.
56778         * tests/test-memmem.c (ASSERT): Likewise.
56779         * tests/test-open.c (ASSERT): Likewise.
56780         * tests/test-printf-frexp.c (ASSERT): Likewise.
56781         * tests/test-printf-frexpl.c (ASSERT): Likewise.
56782         * tests/test-printf-posix.c (ASSERT): Likewise.
56783         * tests/test-quotearg.c (ASSERT): Likewise.
56784         * tests/test-rbtree_list.c (ASSERT): Likewise.
56785         * tests/test-rbtree_oset.c (ASSERT): Likewise.
56786         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
56787         * tests/test-round1.c (ASSERT): Likewise.
56788         * tests/test-roundf1.c (ASSERT): Likewise.
56789         * tests/test-roundl.c (ASSERT): Likewise.
56790         * tests/test-signbit.c (ASSERT): Likewise.
56791         * tests/test-sleep.c (ASSERT): Likewise.
56792         * tests/test-snprintf-posix.c (ASSERT): Likewise.
56793         * tests/test-snprintf.c (ASSERT): Likewise.
56794         * tests/test-sprintf-posix.c (ASSERT): Likewise.
56795         * tests/test-stat-time.c (ASSERT): Likewise.
56796         * tests/test-strcasestr.c (ASSERT): Likewise.
56797         * tests/test-strerror.c (ASSERT): Likewise.
56798         * tests/test-striconv.c (ASSERT): Likewise.
56799         * tests/test-striconveh.c (ASSERT): Likewise.
56800         * tests/test-striconveha.c (ASSERT): Likewise.
56801         * tests/test-strsignal.c (ASSERT): Likewise.
56802         * tests/test-strstr.c (ASSERT): Likewise.
56803         * tests/test-strtod.c (ASSERT): Likewise.
56804         * tests/test-trunc1.c (ASSERT): Likewise.
56805         * tests/test-trunc2.c (ASSERT): Likewise.
56806         * tests/test-truncf1.c (ASSERT): Likewise.
56807         * tests/test-truncf2.c (ASSERT): Likewise.
56808         * tests/test-truncl.c (ASSERT): Likewise.
56809         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
56810         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
56811         * tests/test-vasnprintf.c (ASSERT): Likewise.
56812         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
56813         * tests/test-vasprintf.c (ASSERT): Likewise.
56814         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
56815         * tests/test-vprintf-posix.c (ASSERT): Likewise.
56816         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
56817         * tests/test-vsnprintf.c (ASSERT): Likewise.
56818         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
56819         * tests/test-wcwidth.c (ASSERT): Likewise.
56820         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
56821         * tests/test-xprintf-posix.c (ASSERT): Likewise.
56822         * tests/test-xvasprintf.c (ASSERT): Likewise.
56823         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
56824         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
56825         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
56826         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
56827         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
56828         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
56829         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
56830         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
56831         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
56832         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
56833         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
56834         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
56835         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
56836         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
56837         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
56838         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
56839         * tests/unictype/test-block_list.c (ASSERT): Likewise.
56840         * tests/unictype/test-block_of.c (ASSERT): Likewise.
56841         * tests/unictype/test-block_test.c (ASSERT): Likewise.
56842         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
56843         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
56844         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
56845         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
56846         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
56847         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
56848         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
56849         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
56850         * tests/unictype/test-combining.c (ASSERT): Likewise.
56851         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
56852         * tests/unictype/test-digit.c (ASSERT): Likewise.
56853         * tests/unictype/test-mirror.c (ASSERT): Likewise.
56854         * tests/unictype/test-numeric.c (ASSERT): Likewise.
56855         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
56856         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
56857         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
56858         * tests/unictype/test-scripts.c (ASSERT): Likewise.
56859         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
56860         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
56861         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
56862         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
56863         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
56864         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
56865         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
56866         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
56867         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
56868         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
56869         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
56870         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
56871         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
56872         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
56873         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
56874         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
56875         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
56876         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
56877         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
56878         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
56879         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
56880         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
56881         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
56882         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
56883         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
56884         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
56885         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
56886         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
56887         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
56888         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
56889         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
56890         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
56891         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
56892         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
56893         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
56894         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
56895         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
56896         Reported by Eric Blake.
56897
56898 2008-04-11  Bruno Haible  <bruno@clisp.org>
56899
56900         * lib/wchar.in.h: Tweak comment.
56901
56902 2008-04-11  Bruno Haible  <bruno@clisp.org>
56903
56904         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
56905         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
56906         gl_COMMON.
56907         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
56908
56909 2008-04-11  Bruno Haible  <bruno@clisp.org>
56910
56911         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
56912
56913 2008-04-11  Simon Josefsson  <simon@josefsson.org>
56914
56915         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
56916         of attempting to use non-existing /dev/*random.  Based on patch
56917         from Adam Strzelecki <ono@java.pl> in
56918         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
56919
56920 2008-04-08  Bruno Haible  <bruno@clisp.org>
56921
56922         Add tentative support for emx+gcc.
56923         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
56924         * lib/fpurge.c (fpurge): Likewise.
56925         * lib/freadable.c (freadable): Likewise.
56926         * lib/freadahead.c (freadahead): Likewise.
56927         * lib/freading.c (freading): Likewise.
56928         * lib/freadptr.c (freadptr): Likewise.
56929         * lib/freadseek.c (freadptrinc): Likewise.
56930         * lib/fseeko.c (rpl_fseeko): Likewise.
56931         * lib/fseterr.c (fseterr): Likewise.
56932         * lib/fwritable.c (fwritable): Likewise.
56933         * lib/fwriting.c (fwriting): Likewise.
56934         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
56935
56936 2008-04-09  Eric Blake  <ebb9@byu.net>
56937
56938         Avoid some autoconf warnings.
56939         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
56940         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
56941         * m4/afs.m4 (gl_AFS): Likewise.
56942         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
56943         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
56944         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
56945         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
56946         (gl_INTEGER_TYPE_SUFFIX): Likewise.
56947         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
56948         (AC_CHECK_DECLS_ONCE): Likewise.
56949         Rename file...
56950         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
56951         gnulib-tool requires autoconf 2.59 or better.
56952         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
56953
56954 2008-04-08  Eric Blake  <ebb9@byu.net>
56955
56956         Use 'git describe --match' if present (added in git 1.5.5).
56957         * build-aux/git-version-gen: Limit result to tags that match 'v*'
56958         if possible.
56959
56960 2008-04-08  Bruno Haible  <bruno@clisp.org>
56961
56962         Add tentative support for OpenServer.
56963         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
56964         _ptr, _cnt.
56965         * lib/fpurge.c (fpurge): Likewise.
56966         * lib/freadable.c (freadable): Likewise.
56967         * lib/freadahead.c (freadahead): Likewise.
56968         * lib/freading.c (freading): Likewise.
56969         * lib/freadptr.c (freadptr): Likewise.
56970         * lib/freadseek.c (freadptrinc): Likewise.
56971         * lib/fseeko.c (rpl_fseeko): Likewise.
56972         * lib/fseterr.c (fseterr): Likewise.
56973         * lib/fwritable.c (fwritable): Likewise.
56974         * lib/fwriting.c (fwriting): Likewise.
56975         Reported by Roger Cornelius <rac@tenzing.org> and
56976         Brian K. White <brian@aljex.com>.
56977
56978 2008-04-06  Jim Meyering  <meyering@redhat.com>
56979
56980         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
56981
56982 2008-04-06  Bruno Haible  <bruno@clisp.org>
56983
56984         Avoid possible error with non-ASCII bytes in UTF-8 locales.
56985         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
56986         * tests/test-printf-posix.sh: Likewise.
56987         * tests/test-vfprintf-posix.sh: Likewise.
56988         * tests/test-vprintf-posix.sh: Likewise.
56989         * tests/test-xprintf-posix.sh: Likewise.
56990
56991 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56992
56993         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
56994         hide error from 'ls', needed on OS/2.
56995         Report by Elbert Pol <elbert.pol@gmail.com>.
56996
56997 2008-04-04  Eric Blake  <ebb9@byu.net>
56998
56999         Make test-fseeko.c failures meaningful.
57000         * tests/test-fseeko.c: Print line number on failure.
57001         * tests/test-fseek.c: Likewise.
57002         Reported by Nelson H. F. Beebe.
57003
57004         Improve strtod bug detection check.
57005         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
57006         required for Solaris 10.
57007         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
57008
57009 2008-04-04  Bruno Haible  <bruno@clisp.org>
57010
57011         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
57012         by m4/setenv.m4.
57013
57014 2008-04-03  Eric Blake  <ebb9@byu.net>
57015
57016         Ensure sane .version contents.
57017         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
57018         version string.
57019         * build-aux/git-version-gen: Improve documentation.
57020
57021         Make GNU make output nicer.
57022         * top/GNUmakefile [!_have-Makefile]: Add dependency on
57023         MAKECMDGOALS to enforce message for all command line targets.  Set
57024         srcdir for use in maint.mk.
57025
57026         Another maintainer tweak.
57027         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
57028         a target that regenerates version.
57029
57030 2008-04-03  Jim Meyering  <meyering@redhat.com>
57031
57032         vc-list-files: don't cause coreutils "make po-check" failure
57033         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
57034
57035 2008-04-03  Eric Blake  <ebb9@byu.net>
57036
57037         Allow VPATH usage of vc-list-files.
57038         * build-aux/vc-list-files (scriptversion): Add timestamp.
57039         (options): Add --help, --version, -C.
57040         (CVS): Support installed cvsu.
57041
57042 2008-04-02  Bruno Haible  <bruno@clisp.org>
57043
57044         Avoid some "statement with no effect" warnings from gcc.
57045         * tests/test-wctype.c (main): Explicitly ignore unused values.
57046         Reported by Jim Meyering.
57047
57048 2008-04-02  Jim Meyering  <meyering@redhat.com>
57049
57050         Avoid some warnings from "gcc -Wshadow".
57051         * tests/test-frexp.c (exp): Define to a different identifier.
57052         * tests/test-frexpl.c (exp): Likewise.
57053
57054 2008-04-03  Jim Meyering  <meyering@redhat.com>
57055
57056         bootstrap: remove dangling *.[ch] symlinks from lib
57057         * build-aux/bootstrap [dangling symlink removal]: Move find's
57058         -depth option to precede all others, to avoid a warning.
57059         Remove *.[ch] files too, and from "$source_base" (usually lib/).
57060
57061 2008-04-02  Bruno Haible  <bruno@clisp.org>
57062
57063         Avoid some warnings from "gcc -Wshadow".
57064         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
57065         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
57066         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
57067         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
57068         Reported by Jim Meyering.
57069
57070 2008-04-01  Bruno Haible  <bruno@clisp.org>
57071
57072         Fix test to work on IRIX 6.5 with cc.
57073         * tests/test-math.c (numeric_equal): New function.
57074         (main): Use it.
57075
57076 2008-04-01  Bruno Haible  <bruno@clisp.org>
57077
57078         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
57079
57080 2008-04-01  Bruno Haible  <bruno@clisp.org>
57081
57082         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
57083         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
57084         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
57085         (Depends-on): Remove math.
57086
57087         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
57088         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
57089         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
57090         (Depends-on): Remove math.
57091
57092         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
57093         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
57094         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
57095         (Depends-on): Remove math.
57096         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
57097         (Depends-on): Remove math.
57098
57099         * tests/test-sprintf-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/sprintf-posix-tests (Files): Add tests/nan.h.
57102         (Depends-on): Remove math.
57103         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
57104         (Depends-on): Remove math.
57105
57106         * tests/test-round1.c: Include nan.h.
57107         (main): Use NaNd instead of NAN.
57108         * modules/round-tests (Files): Add tests/nan.h.
57109
57110         * tests/test-trunc1.c: Include nan.h.
57111         (main): Use NaNd instead of NAN.
57112         * modules/trunc-tests (Files): Add tests/nan.h.
57113
57114         * tests/test-roundf1.c: Include nan.h.
57115         (main): Use NaNf instead of NAN.
57116         * modules/roundf-tests (Files): Add tests/nan.h.
57117
57118         * tests/test-truncf1.c: Include nan.h.
57119         (main): Use NaNf instead of NAN.
57120         * modules/truncf-tests (Files): Add tests/nan.h.
57121
57122         * tests/test-ceilf1.c: Include nan.h.
57123         (main): Use NaNf instead of NAN.
57124         * modules/ceilf-tests (Files): Add tests/nan.h.
57125
57126         * tests/test-floorf1.c: Include nan.h.
57127         (main): Use NaNf instead of NAN.
57128         * modules/floorf-tests (Files): Add tests/nan.h.
57129
57130         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
57131         (main): Use NaNf instead of NAN.
57132         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
57133
57134         * tests/test-isnand.c: Include nan.h instead of <math.h>.
57135         (main): Use NaNd instead of NAN.
57136         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
57137
57138         * tests/test-frexp.c: Include nan.h.
57139         (main): Use NaNd instead of NAN.
57140         * modules/frexp-tests (Files): Add tests/nan.h.
57141
57142         * lib/isnan.c: Don't include <math.h>.
57143         (FUNC): Don't use NAN macro.
57144         * modules/isnand-nolibm (Depends-on): Remove math.
57145         * modules/isnanf-nolibm (Depends-on): Remove math.
57146         * modules/isnanl (Depends-on): Remove math.
57147         * modules/isnanl-nolibm (Depends-on): Remove math.
57148
57149         * tests/nan.h: New file.
57150
57151 2008-04-01  Eric Blake  <ebb9@byu.net>
57152
57153         Fix typos.
57154         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
57155         values to be the right type.
57156
57157         For now, cater to gnulib strtod inaccuracies.
57158         * tests/test-strtod.c (main): Allow 1-ulp error on expected
57159         fractional results.  While not as nice from a QoI perspective, it
57160         is a quicker patch than correctly implementing decimal to binary
57161         rounding.
57162
57163 2008-03-31  Eric Blake  <ebb9@byu.net>
57164
57165         Guarantee a definition of NAN.
57166         * lib/math.in.h (NAN): Define if missing.
57167         * tests/test-math.c (main): Test it.
57168         * doc/posix-headers/math.texi (math.h): Document this.
57169         * lib/isnan.c (rpl_isnand): Use it.
57170         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
57171         * tests/test-floorf1.c (NaN): Likewise.
57172         * tests/test-frexp.c (NaN): Likewise.
57173         * tests/test-isnand.c (NaN): Likewise.
57174         * tests/test-isnanf.c (NaN): Likewise.
57175         * tests/test-round1.c (NaN): Likewise.
57176         * tests/test-roundf1.c (NaN): Likewise.
57177         * tests/test-snprintf-posix.h (NaN): Likewise.
57178         * tests/test-sprintf-posix.h (NaN): Likewise.
57179         * tests/test-trunc1.c (NaN): Likewise.
57180         * tests/test-truncf1.c (NaN): Likewise.
57181         * tests/test-vasnprintf-posix.c (NaN): Likewise.
57182         * tests/test-vasprintf-posix.c (NaN): Likewise.
57183         * modules/isnand-nolibm (Depends-on): Add math.
57184         * modules/isnanf-nolibm (Depends-on): Likewise.
57185         * modules/isnanl (Depends-on): Likewise.
57186         * modules/isnanl-nolibm (Depends-on): Likewise.
57187         * modules/snprintf-posix-tests (Depends-on): Likewise.
57188         * modules/sprintf-posix-tests (Depends-on): Likewise.
57189         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
57190         * modules/vsprintf-posix-tests (Depends-on): Likewise.
57191         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
57192         * modules/vasprintf-posix-tests (Depends-on): Likewise.
57193
57194 2008-03-31  Bruno Haible  <bruno@clisp.org>
57195
57196         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
57197         * doc/posix-functions/strtod.texi: Likewise.
57198
57199 2008-03-31  Bruno Haible  <bruno@clisp.org>
57200
57201         * tests/test-strtod.c (main): Don't use C99 syntax.
57202
57203 2008-03-31  Bruno Haible  <bruno@clisp.org>
57204
57205         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
57206         Reported by Eric Blake.
57207
57208 2008-03-31  Jim Meyering  <meyering@redhat.com>
57209
57210         Don't compare actual signbit return values.
57211         * tests/test-strtod.c (main): Rather, compare only their
57212         zero/non-zero nature.
57213
57214 2008-03-31  Eric Blake  <ebb9@byu.net>
57215
57216         More strtod documentation.
57217         * doc/posix-functions/strtod.texi (strtod): Interpret more test
57218         failures as distinct bugs.
57219
57220 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
57221
57222         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
57223         Problem reported by Erik Benada in
57224         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
57225
57226 2008-03-30  Bruno Haible  <bruno@clisp.org>
57227
57228         * tests/test-strtod.c: Add comments about which assertion fails on which
57229         platform.
57230         * doc/posix-functions/strtod.texi: Add info about many more platforms.
57231
57232 2008-03-30  Eric Blake  <ebb9@byu.net>
57233
57234         Test signbit behavior on zeros.
57235         * tests/test-signbit.c (test_signbitf): Add tests for zero.
57236         (test_signbitd, test_signbitl): Likewise.
57237
57238         More strtod touchups.
57239         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
57240         sign of negative underflow, for now.  Use .5, not .1.
57241         * doc/posix-functions/strtod.texi (strtod): Mention these
57242         limitations.
57243         Reported by Jim Meyering.
57244
57245 2008-03-30  Bruno Haible  <bruno@clisp.org>
57246
57247         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
57248         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
57249
57250 2008-03-30  Bruno Haible  <bruno@clisp.org>
57251
57252         Avoid failure when attempting to return empty iconv results on some
57253         platforms.
57254         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
57255         allocation, don't report ENOMEM when the resulting string is empty.
57256
57257 2008-03-30  Bruno Haible  <bruno@clisp.org>
57258
57259         Fix buffer overrun.
57260         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
57261         Don't consider the width for tmp_length. Check count against tmp_length
57262         before doing the padding. Ensure enough allocation during padding.
57263
57264 2008-03-30  Eric Blake  <ebb9@byu.net>
57265
57266         strtod touchups.
57267         * lib/strtod.c (strtod): Avoid compiler warnings.
57268         Reported by Jim Meyering.
57269
57270 2008-03-30  Bruno Haible  <bruno@clisp.org>
57271
57272         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
57273         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
57274         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
57275         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
57276         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
57277         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
57278         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
57279         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
57280
57281         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
57282         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
57283         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
57284         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
57285         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
57286         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
57287         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
57288         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
57289
57290         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
57291         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
57292         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
57293         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
57294         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
57295         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
57296         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
57297         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
57298
57299         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
57300         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
57301
57302         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
57303         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
57304
57305         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
57306         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
57307
57308         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
57309         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
57310         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
57311
57312         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
57313         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
57314         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
57315
57316         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
57317         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
57318         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
57319
57320         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
57321         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
57322         * modules/vasprintf (Depends-on): Add EOVERFLOW.
57323
57324         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
57325         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
57326         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
57327         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
57328         (Depends-on): Add EOVERFLOW.
57329         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
57330         (Depends-on): Add EOVERFLOW.
57331         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
57332         (Depends-on): Add EOVERFLOW.
57333         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
57334         (Depends-on): Add EOVERFLOW.
57335         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
57336         (Depends-on): Add EOVERFLOW.
57337         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
57338         (Depends-on): Add EOVERFLOW.
57339         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
57340         (Depends-on): Add EOVERFLOW.
57341         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
57342         (Depends-on): Add EOVERFLOW.
57343
57344         * lib/sprintf.c (EOVERFLOW): Remove fallback.
57345         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
57346         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
57347
57348         * lib/snprintf.c (EOVERFLOW): Remove fallback.
57349         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
57350         * modules/snprintf (Depends-on): Add EOVERFLOW.
57351
57352         * lib/poll.c (EOVERFLOW): Remove fallback.
57353         * modules/poll (Depends-on): Add EOVERFLOW.
57354
57355         * lib/getugroups.c (EOVERFLOW): Remove fallback.
57356         * modules/getugroups (Depends-on): Add EOVERFLOW.
57357
57358         * lib/getdelim.c (EOVERFLOW): Remove fallback.
57359         * modules/getdelim (Depends-on): Add EOVERFLOW.
57360
57361         * lib/ftell.c (EOVERFLOW): Remove fallback.
57362         * modules/ftell (Depends-on): Add EOVERFLOW.
57363
57364         * lib/fprintf.c (EOVERFLOW): Remove fallback.
57365         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
57366         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
57367
57368         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
57369
57370         * modules/EOVERFLOW-tests: New file.
57371         * tests/test-EOVERFLOW.c: New file.
57372
57373         * modules/EOVERFLOW: New file.
57374         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
57375
57376 2008-03-30  Bruno Haible  <bruno@clisp.org>
57377
57378         Fix bug introduced on 2007-06-10.
57379         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
57380         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
57381
57382 2008-03-30  Bruno Haible  <bruno@clisp.org>
57383
57384         Improve freadseek's efficiency after ungetc.
57385         * lib/freadseek.c: Include freadahead.h.
57386         (freadptrinc): New function, extracted from freadseek.
57387         (freadseek): Use it in a loop. Use freadahead to determine the number
57388         of loop iterations.
57389         * modules/freadseek (Depends-on): Add freadahead.
57390         (configure.ac): Require AC_C_INLINE.
57391
57392 2008-03-30  Bruno Haible  <bruno@clisp.org>
57393
57394         * lib/freadseek.c (freadseek): Don't ignore the return value of
57395         freadptr.
57396
57397 2008-03-29  Eric Blake  <ebb9@byu.net>
57398
57399         Add hex float support.
57400         * modules/strtod (Depends-on): Add c-ctype.
57401         (Link): Mention POW_LIB.
57402         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
57403         whitespace between 'e' and exponent.
57404         * tests/test-strtod.c (main): Enable hex float tests.
57405         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
57406         now provides.
57407
57408         Document various strtod bugs, with some fixes.
57409         * doc/posix-functions/strtod.texi (strtod): Document bugs with
57410         "-0x", "inf", "nan", and hex constants.
57411         * doc/posix-functions/atof.texi (atof): Likewise.
57412         * modules/stdlib (Makefile.am): Support strtod.
57413         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
57414         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
57415         detect additional strtod bugs.
57416         * lib/stdlib.in.h (rpl_strtod): Add declarations.
57417         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
57418         bool where appropriate.  Parse 'inf' and 'nan'.
57419         * tests/test-strtod.c: New file.
57420         * modules/strtod (Depends-on): Add stdbool, stdlib.
57421         (configure.ac): Turn on module indicator.
57422         * modules/strtod-tests: New module.
57423
57424 2008-03-29  Eric Blake  <ebb9@byu.net>
57425
57426         Fix ftell on mingw.
57427         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
57428         * modules/ftell-tests (Depends-on): Add binary-io.
57429         * modules/ftello-tests (Depends-on): Likewise.
57430         * tests/test-ftell.c (main): Enhance test to cover behavior after
57431         ungetc.  Enforce binary mode.
57432         * tests/test-ftello.c (main): Likewise.
57433
57434         Pass test-freadseek on cygwin.
57435         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
57436         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
57437         ungetc buffer.
57438
57439         * tests/test-fflush2.c (main): Fix typo.
57440
57441 2008-03-29  Bruno Haible  <bruno@clisp.org>
57442
57443         * tests/test-fflush2.c (main): Temporarily disable the contents of
57444         this test.
57445         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
57446         Reported by Eric Blake.
57447
57448 2008-03-28  Simon Josefsson  <simon@josefsson.org>
57449
57450         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
57451         (GC_SHA224_DIGEST_SIZE): Add.
57452
57453         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
57454         (gc_hash_digest_length): Likewise.
57455         (gc_hash_buffer): Likewise.
57456
57457 2008-03-25  Bruno Haible  <bruno@clisp.org>
57458
57459         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
57460         detail which gettext release to use.
57461         Reported by Simon Josefsson.
57462
57463 2008-03-26  Jim Meyering  <meyering@redhat.com>
57464
57465         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
57466         * modules/gnumakefile (clean-GNUmakefile): Also, use
57467         test ... && ... || : syntax rather than if-then ... fi.
57468
57469         gnumakefile: Don't double-quote-expand $(VPATH) value.
57470         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
57471
57472 2008-03-24  Eric Blake  <ebb9@byu.net>
57473
57474         Alter GNUmakefile to install into top directory.
57475         * modules/maintainer-makefile: Split, and add dependency...
57476         * modules/gnumakefile: to this new module.
57477         * build-aux/GNUmakefile: Move...
57478         * top/GNUmakefile: ...here.
57479         * build-aux/maint.mk: Move...
57480         * top/maint.mk: ...here.
57481         * MODULES.html.sh (Support for maintaining...): Document new
57482         module.
57483
57484 2008-03-23  Bruno Haible  <bruno@clisp.org>
57485
57486         * gnulib-tool: New options --vc-files, --no-vc-files.
57487         (func_usage): Document them.
57488         (vc_files): New variable.
57489         (func_import): Consider vc_files.
57490         (func_create_testdir): Set vc_files to empty.
57491         Suggested by Jim Meyering and Karl Berry.
57492
57493 2008-03-23  Bruno Haible  <bruno@clisp.org>
57494
57495         Fix regex compilation error on HP-UX 11.
57496         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
57497         * modules/regex (Files): Add m4/mbstate_t.m4.
57498         Reported by Ton Voon <ton.voon@altinity.com>.
57499
57500 2008-03-23  Bruno Haible  <bruno@clisp.org>
57501
57502         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
57503
57504 2008-03-23  Eric Blake  <ebb9@byu.net>
57505             Bruno Haible  <bruno@clisp.org>
57506
57507         Install files from top/ in the destination directory.
57508         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
57509         augmentation also for the files from top/.
57510         (func_import, func_create_testdir): Rewrite file names:
57511         top/filename -> filename.
57512
57513 2008-03-23  Bruno Haible  <bruno@clisp.org>
57514
57515         Tweak "gnulib --version" output.
57516         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
57517
57518 2008-03-23  Bruno Haible  <bruno@clisp.org>
57519
57520         Tweak "gnulib --version" output.
57521         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
57522         rather than contents of ChangeLog, when possible.
57523
57524 2008-03-21  Eric Blake  <ebb9@byu.net>
57525
57526         More --version tweaks.
57527         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
57528         date of last ChangeLog entry.
57529
57530 2008-03-21  Jim Meyering  <meyering@redhat.com>
57531
57532         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
57533
57534 2008-03-20  Eric Blake  <ebb9@byu.net>
57535
57536         VPATH fix.
57537         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
57538
57539 2008-03-20  Simon Josefsson  <simon@josefsson.org>
57540
57541         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
57542         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
57543
57544 2008-03-20  Eric Blake  <ebb9@byu.net>
57545
57546         Sync GNUmakefile with coreutils.
57547         * build-aux/GNUmakefile (have-Makefile): Rename...
57548         (_have-Makefile): ...to this, for namespace consideration.
57549         (GNUmakefile.cfg): Include, if present.
57550         (_autoreconf): Define a default.
57551         (_is-dist-target): New rule for rebuilds to pick up intra-release
57552         version.
57553         (maint-cfg.mk): Rename...
57554         (cfg.mk): ...to this.
57555
57556 2008-03-18  Jim Meyering  <meyering@redhat.com>
57557
57558         New script and module: mktempd
57559         * MODULES.html.sh (maint+release support): Add mktempd.
57560         * build-aux/mktempd: New file.
57561         * modules/mktempd: New file.
57562
57563 2008-03-15  Jim Meyering  <meyering@redhat.com>
57564
57565         Undo last change.
57566         * lib/sha1.c, lib/md5.c: 63 != ~63.
57567         Reported by Andreas Schwab.
57568
57569         sha1.c, md5.c: Hoist a redundant expression.
57570         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
57571         "ctx->buflen" only once, before calling *_process_block.
57572         * lib/md5.c (md5_process_bytes): Likewise.
57573
57574 2008-03-14  Eric Blake  <ebb9@byu.net>
57575
57576         Bump copyright year in files generated by gnulib-tool.
57577         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
57578         gnulib-tool, rather than hard-coding it.
57579
57580         Fix 'gnulib-tool --version' output to work with git.
57581         * gnulib-tool (func_gnulib_dir): New function, extracted from...
57582         (startup): ...here.
57583         (func_version): Use it to invoke git-version-gen, rather than
57584         relying on CVS keyword expansion.  Modernize wording.
57585         (cvsdatestamp, last_checkin_date, version): Kill unused
57586         variables.
57587
57588 2008-03-12  Jim Meyering  <meyering@redhat.com>
57589
57590         Recognize optional cast of the argument to free.
57591         * build-aux/useless-if-before-free: Update regexps.
57592
57593         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
57594
57595 2008-03-11  Bruno Haible  <bruno@clisp.org>
57596
57597         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
57598         by a single package.
57599         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
57600         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
57601         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
57602         Reported by Sam Steingold <sds@gnu.org>.
57603
57604 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
57605
57606         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
57607         repositories.
57608
57609 2008-03-11  Bruno Haible  <bruno@clisp.org>
57610
57611         Avoid conflicts between local macro definitions.
57612         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
57613         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
57614
57615 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
57616             Bruno Haible  <bruno@clisp.org>
57617
57618         Make va_copy work with some version of xlc on AIX 5.1.
57619         * lib/stdarg.in.h: New file.
57620         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
57621         On AIX, use a <stdarg.h> file substitute.
57622         * modules/stdarg (Files): Add lib/stdarg.in.h.
57623         (Depends-on): Add include_next.
57624         (Makefile.am): Build a stdarg.h substitute if requested.
57625         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
57626
57627 2008-03-10  Bruno Haible  <bruno@clisp.org>
57628
57629         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
57630         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
57631         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
57632
57633 2008-03-10  Bruno Haible  <bruno@clisp.org>
57634
57635         * modules/stdlib (Depends-on): Add include_next, remove
57636         absolute-header.
57637
57638 2008-03-09  Bruno Haible  <bruno@clisp.org>
57639
57640         * lib/freadahead.h (freadahead): Document more precisely.
57641         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
57642         the sum of both buffer sizes.
57643         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
57644         * NEWS: Document the change.
57645
57646 2008-03-09  Bruno Haible  <bruno@clisp.org>
57647
57648         Extend freadptr to return also the buffer size.
57649         * lib/freadptr.h (freadptr): Add sizep argument.
57650         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
57651         (freadptr): Add sizep argument. Determine buffer size like freadahead
57652         does.
57653         * tests/test-freadptr.c: Don't include freadahead.h.
57654         (main): Adapt for new calling convention of freadptr.
57655         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
57656         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
57657         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
57658         tests/test-freadptr2.sh.
57659         (Depends): Remove freadahead.
57660         (TESTS): Add test-freadptr2.sh.
57661         (check_PROGRAMS): Add test-freadptr2.
57662
57663 2008-03-09  Bruno Haible  <bruno@clisp.org>
57664
57665         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
57666         Report and solution by Simon Josefsson.
57667
57668 2008-03-06  Bruno Haible  <bruno@clisp.org>
57669
57670         Make fflush after ungetc work on BSD platforms.
57671         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
57672         * tests/test-fflush2.c: New file.
57673         * tests/test-fflush2.sh: New file.
57674         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
57675         tests/test-fflush2.c.
57676         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
57677         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
57678
57679 2008-03-06  Eric Blake  <ebb9@byu.net>
57680
57681         Likewise for ftello.
57682         * modules/ftello (Dependencies): Add extensions.
57683         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
57684
57685 2008-03-06  Bruno Haible  <bruno@clisp.org>
57686
57687         * modules/fseeko (Dependencies): Add extensions.
57688         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
57689         Needed on glibc systems.
57690
57691 2008-03-06  Bruno Haible  <bruno@clisp.org>
57692
57693         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
57694         email address.
57695         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
57696
57697 2008-03-06  Bruno Haible  <bruno@clisp.org>
57698
57699         * users.txt: Add libgnupdf.
57700
57701 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
57702
57703         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
57704         (Header File Substitutes, Function Substitutes,
57705         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
57706         (Build robot for gnulib): Fix typo.
57707
57708 2008-03-06  Bruno Haible  <bruno@clisp.org>
57709
57710         * doc/gnulib-tool.texi (VCS Issues): Small updates.
57711         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
57712
57713 2008-03-06  Bruno Haible  <bruno@clisp.org>
57714
57715         * doc/func.texi: New file, extracted from doc/gnulib.texi.
57716         * doc/gnulib.texi: Include it.
57717
57718 2008-03-06  Simon Josefsson  <simon@josefsson.org>
57719
57720         * modules/func (License): Change license to unlimited; there was
57721         no LGPL parts in the module anyway.
57722
57723 2008-03-06  Simon Josefsson  <simon@josefsson.org>
57724
57725         * modules/__func__: Renamed to modules/func.
57726         * modules/__func__-tests: Renamed to modules/func-tests.
57727         * tests/test-__func__.c: Renamed to tests/test-func.c.
57728         * m4/__func__.m4: Renamed to m4/func.m4.
57729         * doc/gnulib.texi (__func__): Section renamed to func.
57730         Suggested by Eric Blake <ebb9@byu.net>.
57731
57732 2008-03-06  Simon Josefsson  <simon@josefsson.org>
57733
57734         * doc/gnulib.texi (__func__): Use C99 terminology when talking
57735         about __func__.  Make example self-contained.  Suggested by Eric
57736         Blake <ebb9@byu.net>.
57737
57738         * tests/test-__func__.c (main): Avoid extraneous () around __func.
57739         Suggested by Eric Blake <ebb9@byu.net>.
57740
57741 2008-03-06  Simon Josefsson  <simon@josefsson.org>
57742
57743         * modules/__func__: New file.
57744         * modules/__func__-tests: New file.
57745         * tests/test-__func__.c: New file.
57746         * m4/__func__.m4: New file.
57747         * doc/gnulib.texi (__func__): Document __func__ module.
57748
57749 2008-03-05  Simon Josefsson  <simon@josefsson.org>
57750
57751         * modules/byteswap (License): Re-license as LGPLv2+.
57752
57753 2008-03-05  Simon Josefsson  <simon@josefsson.org>
57754
57755         * doc/Makefile: Add pdf target.
57756
57757 2008-03-05  Simon Josefsson  <simon@josefsson.org>
57758
57759         * modules/inline (License): Use 'unlimited', since there are only
57760         *.m4 files in this module.
57761
57762 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
57763             Bruno Haible  <bruno@clisp.org>
57764
57765         Add support for HP C 7.1 on OpenVMS 8.3.
57766         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
57767
57768 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
57769
57770         Update VMS specifics.
57771         * lib/getopt.c [VMS]: Remove include of unixlib.h.
57772
57773 2008-03-02  Jim Meyering  <meyering@redhat.com>
57774
57775         Remove the last dependency on the "free" module.
57776         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
57777         Reported by Bob Proulx.
57778
57779         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
57780
57781         Remove useless "if" tests before free.  Deprecate "free" module.
57782         * doc/posix-functions/free.texi: Mention that this
57783         module is no longer useful.
57784         * modules/free (Notice): Say this module is obsolete.
57785         * modules/readutmp (Depends-on): Remove free.
57786         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
57787         * lib/putenv.c (putenv): Likewise.
57788         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
57789         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
57790         * tests/test-c-strcasestr.c (main): Likewise.
57791         * tests/test-c-strstr.c (main): Likewise.
57792         * tests/test-mbscasestr1.c (main): Likewise.
57793         * tests/test-mbscasestr2.c (main): Likewise.
57794         * tests/test-mbsstr1.c (main): Likewise.
57795         * tests/test-mbsstr2.c (main): Likewise.
57796         * tests/test-memmem.c (main): Likewise.
57797         * tests/test-strcasestr.c (main): Likewise.
57798         * tests/test-striconv.c (main): Likewise.
57799         * tests/test-striconveh.c (main): Likewise.
57800         * tests/test-striconveha.c (main): Likewise.
57801         * tests/test-strstr.c (main): Likewise.
57802
57803         * build-aux/git-version-gen: Adjust a comment and the Usage string.
57804
57805         bootstrap: sync from coreutils again
57806         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
57807
57808 2008-03-01  Jim Meyering  <meyering@redhat.com>
57809
57810         bootstrap: sync from coreutils
57811         * build-aux/bootstrap (update_po_files): Copy a .po file into place
57812         also when the target doesn't exist.
57813
57814 2008-03-01  Eric Blake  <ebb9@byu.net>
57815
57816         Fix bugs in last patch.
57817         * lib/memchr2.c (memchr2): Fix typo.
57818         * tests/test-memchr2.c: Test previous bug, and don't use GNU
57819         extension.
57820         Reported by Bruce Korb.
57821
57822         New module 'memchr2'.
57823         * modules/memchr2: New file.
57824         * modules/memchr2-tests: Likewise.
57825         * lib/memchr2.h: Likewise.
57826         * lib/memchr2.c: Likewise, based on memchr.c.
57827         * tests/test-memchr2.c: New test.
57828         * MODULES.html.sh (String handling): Add memchr2.
57829
57830 2008-02-29  Bruno Haible  <bruno@clisp.org>
57831
57832         * modules/freadseek-tests: New file.
57833         * tests/test-freadseek.sh: New file.
57834         * tests/test-freadseek.c: New file.
57835
57836         New module 'freadseek'.
57837         * modules/freadseek: New file.
57838         * lib/freadseek.h: New file.
57839         * lib/freadseek.c: New file.
57840         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
57841
57842 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
57843
57844         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
57845         wydawca.
57846
57847         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
57848         program_invocation_name and program_invocation_short_name are
57849         present.
57850
57851 2008-02-28  Bruno Haible  <bruno@clisp.org>
57852
57853         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
57854         * tests/test-freadptr.sh: Also test non-seekable stdin.
57855
57856 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
57857
57858         * build-aux/bootstrap (source_base, m4_base)
57859         (doc_base, tests_base): New variables.
57860         (gnulib_tool_options): Do not hardcode base directories, use
57861         the above variables instead.
57862
57863 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
57864
57865         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
57866
57867 2008-02-28  Bruno Haible  <bruno@clisp.org>
57868
57869         * modules/freadptr-tests: New file.
57870         * tests/test-freadptr.sh: New file.
57871         * tests/test-freadptr.c: New file.
57872
57873         New module 'freadptr'.
57874         * modules/freadptr: New file.
57875         * lib/freadptr.h: New file.
57876         * lib/freadptr.c: New file.
57877         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
57878
57879 2008-02-26  Karl Berry  <karl@freefriends.org>
57880
57881         Sync from Libtool:
57882         * libltdl/argz.c (argz_add, argz_count): New functions.
57883         * libltdl/argz.in.h: Declare them.
57884         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
57885
57886 2008-02-22  Bruno Haible  <bruno@clisp.org>
57887
57888         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
57889         is a pointer type.  Needed for HP-UX 10.
57890         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
57891         * doc/posix-functions/gmtime_r.texi: Likewise.
57892         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
57893
57894 2008-02-24  Bruno Haible  <bruno@clisp.org>
57895
57896         * modules/environ-tests: New file.
57897         * tests/test-environ.c: New file.
57898
57899         New module 'environ'.
57900         * modules/environ: New file.
57901         * lib/unistd.in.h (environ): New declaration.
57902         * m4/environ.m4: New file.
57903         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
57904         after use.
57905         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
57906         HAVE_DECL_ENVIRON.
57907         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
57908         HAVE_DECL_ENVIRON.
57909         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
57910         wrong claim that 'environ' is missing on some systems.
57911         * modules/execute (Depends-on): Add environ.
57912         * lib/execute.c (environ): Remove fallback declaration.
57913         * modules/pipe (Depends-on): Add environ.
57914         * lib/pipe.c (environ): Remove fallback declaration.
57915         * modules/setenv (Depends-on): Add environ.
57916         * lib/setenv.c (environ): Remove fallback declaration.
57917         * modules/unsetenv (Depends-on): Add environ.
57918         * lib/unsetenv.c (environ): Remove fallback declaration.
57919         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
57920         m4/environ.m4.
57921         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
57922         (gl_PREREQ_UNSETENV): Likewise.
57923
57924 2008-02-24  Bruno Haible  <bruno@clisp.org>
57925
57926         * doc/posix-functions/environ.texi: Document the MacOS X problem.
57927
57928 2008-02-20  Bob Proulx  <bob@proulx.com>
57929
57930         Enable use of older two part flavor 'git describe'.
57931         * build-aux/git-version-gen: If using the older two part flavor of
57932         git version then recreate the third part now present in the
57933         newer three part flavor of git describe.
57934
57935 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
57936
57937         * lib/fts.c (fts_build): Typo correction to comment.
57938
57939 2008-02-17  Bruno Haible  <bruno@clisp.org>
57940
57941         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
57942         generating no-op conflicts.
57943
57944 2008-02-17  Bruno Haible  <bruno@clisp.org>
57945
57946         Speed up by 10%.
57947         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
57948         result_entries, rather than an index-based loop.
57949
57950 2008-02-17  Bruno Haible  <bruno@clisp.org>
57951
57952         Speed up by 25%.
57953         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
57954         'hashcode_cached'.
57955         (entry_create): New function.
57956         (entry_hashcode): Use the cached hashcode if possible.
57957         (read_changelog_file, try_split_merged_entry): Use entry_create.
57958
57959 2008-02-17  Bruno Haible  <bruno@clisp.org>
57960
57961         Speed up from O(n^2) to O(n) for long ChangeLog files.
57962         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
57963         (read_changelog_file): Change implementation of entries_reversed list
57964         to rbtreehash.
57965         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
57966
57967 2008-02-17  Bruno Haible  <bruno@clisp.org>
57968
57969         New option --split-merged-entry.
57970         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
57971         (find_paragraph_end, try_split_merged_entry): New functions.
57972         (long_options): Add option --split-merged-entry.
57973         (usage): Document option --split-merged-entry.
57974         (main): Implement option --split-merged-entry.
57975         Reported by Eric Blake.
57976
57977 2008-02-17  Bruno Haible  <bruno@clisp.org>
57978
57979         * lib/git-merge-changelog.c: Include c-strstr.h.
57980         (main): Support the "git pull --rebase" situation.
57981         * modules/git-merge-changelog (Depends-on): Add c-strstr.
57982         Reported by Eric Blake.
57983
57984 2008-02-16  Eric Blake  <ebb9@byu.net>
57985
57986         Avoid doubling \ in common case of "c-maybe" quoting style.
57987         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
57988         eliding outer quotes.
57989         * lib/quotearg.h: Document this.
57990         * tests/test-quotearg.c (result_strings, inputs, results_g)
57991         (flag_results, locale_results): Test it by adding a new string to
57992         each test group.
57993         (compare_strings): Test new string.
57994
57995 2008-02-13  Eric Blake  <ebb9@byu.net>
57996
57997         Avoid trigraph quoting in default output.
57998         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
57999         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
58000         unless explicitly requested.
58001         * tests/test-quotearg.c (flag_results, main): Add additional tests.
58002
58003 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
58004
58005         Don't rely on signed integer overflowing to negative value.
58006         * lib/getugroups.c (getugroups): Include <limits.h>.
58007         Instead, compare against INT_MAX, and increment only if the test passes.
58008
58009 2008-02-13  Jim Meyering  <meyering@redhat.com>
58010         and Eric Blake  <ebb9@byu.net>
58011
58012         Avoid shadowing warning and compile errors on Linux.
58013         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
58014         forwarding macros on Linux.
58015         (dcgettext): Define a stub, for Linux.
58016         (results_g, main): Avoid warnings.
58017
58018 2008-02-12  Eric Blake  <ebb9@byu.net>
58019
58020         Silence warning in last patch.
58021         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
58022
58023         Quotearg part 4: add tests, fix c-maybe colon quoting.
58024         * lib/quotearg.h: Improve documentation.
58025         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
58026         escapes when adding outer quotes.  When quoting trigraphs, use
58027         valid C notation.  When quoting NUL, omit extra characters if next
58028         character is not digit.  Alter prototype.
58029         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
58030         callers.
58031         * modules/quotearg-tests: New module.
58032         * tests/test-quotearg.c: New test.
58033
58034 2008-02-07  Eric Blake  <ebb9@byu.net>
58035
58036         Quotearg part 3: add flag to control outer quote elision.
58037         * lib/quotearg.h (c_maybe_quoting_style): New style.
58038         (enum quoting_flags): Better documentation of flags.
58039         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
58040         c-maybe style.
58041         (quotearg_buffer_restyled): Handle new flag to elide outer
58042         quotes.
58043
58044         Quotearg part 2: add flag that can control NUL elision.
58045         * lib/quotearg.h (set_quoting_flags): New prototype.
58046         * lib/quotearg.c (struct quoting_options): Add flag field.
58047         (set_quoting_flags): New function.
58048         (quotearg_buffer_restyled): Add flags parameter.
58049         (quotearg_alloc_mem): Set the flag if length cannot be returned.
58050         (quotearg_n_options): Set the flag, since length cannot be
58051         returned.
58052         (quoting_options_from_style): Default flags correctly.
58053
58054         Quotearg part 1: more wrappers, restore quotearg_char state.
58055         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
58056         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
58057         (quotearg_colon_mem): New wrappers.
58058         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
58059         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
58060         functions.
58061         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
58062         (quotearg_colon_mem): New functions.
58063
58064 2008-02-11  Bruno Haible  <bruno@clisp.org>
58065
58066         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
58067         library in the current directory: it does not work with parallel make.
58068         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
58069
58070 2008-02-11  Bruno Haible  <bruno@clisp.org>
58071
58072         * .gitattributes: New file.
58073
58074 2008-02-11  Jim Meyering  <meyering@redhat.com>
58075
58076         useless-if-before-free: Fix reversed exit values.
58077         * build-aux/useless-if-before-free: Use correct values
58078         for EXIT_MATCH and EXIT_NO_MATCH.
58079
58080         * build-aux/useless-if-before-free: Close stdout carefully.
58081
58082 2008-02-10  Bruno Haible  <bruno@clisp.org>
58083
58084         New module 'git-merge-changelog'.
58085         * modules/git-merge-changelog: New file.
58086         * lib/git-merge-changelog.c: New file.
58087
58088 2008-02-10  Jim Meyering  <meyering@redhat.com>
58089
58090         useless-if-before-free: New option: --list (-l).
58091
58092         useless-if-before-free: Don't exit immediately upon open failure.
58093         * build-aux/useless-if-before-free: Exit 2 for errors.
58094         Upon failure to open a file, don't exit immediately.
58095         Rather, just warn and continue with any remaining files.
58096
58097 2008-02-10  Bruno Haible  <bruno@clisp.org>
58098
58099         New abstract list operation 'node_set_value'.
58100         * lib/gl_list.h (gl_list_node_set_value): New function.
58101         (struct gl_list_implementation): New field node_set_value.
58102         * lib/gl_list.c (gl_list_node_set_value): New function.
58103         * lib/gl_array_list.c (gl_array_node_set_value): New function.
58104         (gl_array_list_implementation): Update.
58105         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
58106         (gl_carray_list_implementation): Update.
58107         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
58108         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
58109         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
58110         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
58111         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
58112         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
58113         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
58114         Update.
58115         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
58116         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
58117         (gl_sublist_list_implementation): Update.
58118
58119 2008-02-10  Bruno Haible  <bruno@clisp.org>
58120
58121         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
58122         Needed when ELEMENT is #defined to 'some_type *'.
58123
58124 2008-02-10  Jim Meyering  <meyering@redhat.com>
58125
58126         New script and module: useless-if-before-free
58127         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
58128         * build-aux/useless-if-before-free: New file.
58129         * modules/useless-if-before-free: New file.
58130
58131         * build-aux/gitlog-to-changelog: Use committer date, not author date.
58132
58133         xstrtol_error: Fix typo.
58134         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
58135         s/exit_failure/exit_status/.
58136
58137 2008-02-09  Jim Meyering  <meyering@redhat.com>
58138
58139         New script and module: gitlog-to-changelog
58140         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
58141         * modules/gitlog-to-changelog: New file.
58142         * build-aux/gitlog-to-changelog: New file.
58143
58144 2008-02-08  Jim Meyering  <meyering@redhat.com>
58145
58146         Avoid two "parameter unused" warnings.
58147         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
58148         Mark "st" as used.
58149
58150         Use "git COMMAND", not "git-COMMAND".
58151         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
58152         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
58153         * build-aux/git-version-gen: Use "git status", not "git-status".
58154
58155 2008-02-07  Bruno Haible  <bruno@clisp.org>
58156
58157         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
58158         Avoids a crash on Windows Vista.
58159         Reported by Adam Strzelecki <ono@java.pl> via
58160         Simon Josefsson <simon@josefsson.org>.
58161
58162 2008-02-06  Bruno Haible  <bruno@clisp.org>
58163
58164         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
58165         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
58166         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
58167         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
58168         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
58169         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
58170         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
58171         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
58172         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
58173         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
58174         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
58175         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
58176         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
58177         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58178         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
58179         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
58180         left-adjust flag.
58181         * tests/test-snprintf-posix.h (test_function): Likewise.
58182         * tests/test-sprintf-posix.h (test_function): Likewise.
58183         * tests/test-vasprintf-posix.c (test_function): Likewise.
58184         * doc/posix-functions/fprintf.texi: Update.
58185         * doc/posix-functions/printf.texi: Update.
58186         * doc/posix-functions/snprintf.texi: Update.
58187         * doc/posix-functions/sprintf.texi: Update.
58188         * doc/posix-functions/vfprintf.texi: Update.
58189         * doc/posix-functions/vprintf.texi: Update.
58190         * doc/posix-functions/vsnprintf.texi: Update.
58191         * doc/posix-functions/vsprintf.texi: Update.
58192         Reported by Peter Fales <psfales@alcatel-lucent.com>.
58193
58194 2008-02-06  Bruno Haible  <bruno@clisp.org>
58195
58196         Fix bug introduced on 2008-01-26.
58197         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
58198
58199 2008-02-06  Bruno Haible  <bruno@clisp.org>
58200
58201         Fix bug introduced on 2007-06-10.
58202         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
58203         !NEED_PRINTF_FLAG_ZERO.
58204
58205 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
58206
58207         getloadavg: use libperfstat on AIX5
58208         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
58209
58210 2008-02-03  Bruno Haible  <bruno@clisp.org>
58211
58212         * lib/diffseq.h: Add comments about required #includes.
58213         Reported by Michael Biggs <gnulib@doubleplum.net>.
58214
58215 2008-02-01  Bruno Haible  <bruno@clisp.org>
58216
58217         * users.txt: Add gnuit.
58218
58219 2008-01-31  Bruno Haible  <bruno@clisp.org>
58220
58221         * lib/md4.c (set_uint32): Mark as inline.
58222         * lib/md5.c (set_uint32): Likewise.
58223         * lib/sha1.c (set_uint32): Likewise.
58224         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
58225         * m4/md5.m4 (gl_MD5): Likewise.
58226         * m4/sha1.m4 (gl_SHA1): Likewise.
58227
58228 2008-01-31  Jim Meyering  <meyering@redhat.com>
58229
58230         Use "sizeof VAR", rather than a literal "4".
58231         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
58232         * lib/md4.c (md4_read_ctx): Likewise.
58233         * lib/sha1.c (sha1_read_ctx): Likewise.
58234
58235 2008-01-31  Simon Josefsson  <simon@josefsson.org>
58236
58237         * tests/test-sha1.c: New file, based on test-md5.c.
58238
58239         * modules/crypto/sha1-tests: New file.
58240
58241 2008-01-31  Simon Josefsson  <simon@josefsson.org>
58242
58243         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
58244
58245 2008-01-31  Jim Meyering  <meyering@redhat.com>
58246
58247         Prefer "sizeof v" over the equivalent "4".
58248         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
58249         * lib/md5.c (set_uint32): Likewise.
58250         * lib/sha1.c (set_uint32): Likewise.
58251
58252 2008-01-31  Simon Josefsson  <simon@josefsson.org>
58253
58254         * lib/sha1.c (set_uint32): Mark function as static.
58255
58256 2008-01-31  Simon Josefsson  <simon@josefsson.org>
58257
58258         md2: clarify comments to say that alignment is not required.
58259         * lib/md2.h: Remove warning about alignment in comment.
58260         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
58261         never been required.
58262
58263 2008-01-31  Simon Josefsson  <simon@josefsson.org>
58264
58265         md4: adapt alignment constraint fix from sha1.
58266         * lib/md4.c (set_uint32): New function, from sha1.c
58267         (md4_read_ctx): Use it.
58268         (md4_finish_ctx): Doc fix.
58269         * lib/md4.h: Doc fix.
58270
58271 2008-01-31  Simon Josefsson  <simon@josefsson.org>
58272
58273         md5: adapt alignment constraint fix from sha1.
58274         * lib/md5.c (set_uint32): New function, from sha1.c
58275         (md5_read_ctx): Use it.
58276         (md5_finish_ctx): Doc fix.
58277         * lib/md5.h: Doc fix.
58278
58279 2008-01-30  Peter Palfrader  <weasel@debian.org>
58280
58281         sha1: remove the result buffer alignment constraint
58282         * lib/sha1.c (set_uint32): New function.
58283         (sha1_read_ctx): Rewrite to remove the result buffer alignment
58284         constraint.
58285         (sha1_finish_ctx): Remove comment warning about alignment constraint.
58286         * lib/sha1.h: Likewise.
58287
58288 2008-01-30  Andreas Schwab  <schwab@suse.de>
58289             Bruno Haible  <bruno@clisp.org>
58290
58291         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
58292         correct definition of LDBL_MIN_EXP.
58293
58294 2008-01-30  Karl Berry  <karl@gnu.org>
58295
58296         * config/srclist-update: try to preserve x bit on updates.
58297         * config/srclistvars.sh: update for karl.
58298
58299 2008-01-29  Jim Meyering  <meyering@redhat.com>
58300
58301         vasnprintf.c: Avoid warning about unused label
58302         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
58303         "overflow" label definition and associated code with the
58304         same cpp condition that guards the sole use of that label.
58305
58306 2008-01-26  Bruno Haible  <bruno@clisp.org>
58307
58308         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
58309         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
58310         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
58311         * lib/isnanl-nolibm.h (isnanl): Likewise.
58312         Reported by Paul Eggert <eggert@cs.ucla.edu>.
58313
58314 2008-01-26  Bruno Haible  <bruno@clisp.org>
58315
58316         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
58317         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
58318
58319 2008-01-26  Bruno Haible  <bruno@clisp.org>
58320
58321         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
58322         GCC >= 4.0 built-in.
58323         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
58324
58325 2008-01-26  Bruno Haible  <bruno@clisp.org>
58326
58327         Rename isnan, applicable to 'double' only, to isnand.
58328         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
58329         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
58330         (configure.ac): Update.
58331         (Include): Replace "isnan.h" with "isnand.h".
58332         * m4/isnand.m4: Renamed from m4/isnan.m4.
58333         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
58334         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
58335         instead of isnan.c.
58336         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
58337         instead of HAVE_ISNAN_IN_LIBC.
58338         (isnand): Renamed from isnan.
58339         * lib/isnand.c: New file.
58340         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
58341         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
58342         (Makefile.am): Update.
58343         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
58344         Include isnand.h instead of isnan.h.
58345         (main): Test isnand instead of isnan.
58346         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
58347         isnan-nolibm.
58348         * modules/frexp (Depends-on): Likewise.
58349         * modules/frexp-tests (Depends-on): Likewise.
58350         * modules/frexp-nolibm (Depends-on): Likewise.
58351         * modules/frexp-nolibm-tests (Depends-on): Likewise.
58352         * modules/isfinite (Depends-on): Likewise.
58353         * modules/round-tests (Depends-on): Likewise.
58354         * modules/signbit (Depends-on): Likewise.
58355         * modules/signbit-tests (Depends-on): Likewise.
58356         * modules/snprintf-posix (Depends-on): Likewise.
58357         * modules/sprintf-posix (Depends-on): Likewise.
58358         * modules/trunc-tests (Depends-on): Likewise.
58359         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
58360         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
58361         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
58362         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
58363         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
58364         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
58365         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
58366         * modules/vasnprintf-posix (Depends-on): Likewise.
58367         * modules/vasprintf-posix (Depends-on): Likewise.
58368         * modules/vfprintf-posix (Depends-on): Likewise.
58369         * modules/vsnprintf-posix (Depends-on): Likewise.
58370         * modules/vsprintf-posix (Depends-on): Likewise.
58371         * lib/frexp.c: Include isnand.h instead of isnan.h.
58372         (ISNAN): Set to isnand instead of isnan.
58373         * lib/isfinite.c: Include isnand.h instead of isnan.h.
58374         (gl_isfinited): Use isnand instead of isnan.
58375         * lib/signbitd.c: Include isnand.h instead of isnan.h.
58376         (gl_signbitd): Use isnand instead of isnan.
58377         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
58378         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
58379         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
58380         (main): Use isnand instead of isnan.
58381         * tests/test-round1.c: Include isnand.h.
58382         (main): Use isnand instead of isnan.
58383         * tests/test-round2.c: Include isnand.h instead of isnan.h.
58384         (ISNAN): Set to isnand instead of isnan.
58385         * tests/test-trunc1.c: Include isnand.h.
58386         (main): Use isnand instead of isnan.
58387         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
58388         (equal): Use isnand instead of isnan.
58389         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
58390         isnand-nolibm.
58391         * NEWS: Mention the change.
58392
58393 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
58394             Bruno Haible  <bruno@clisp.org>
58395
58396         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
58397         the GCC builtins for signbits are present and set
58398         REPLACE_SIGNBIT_USING_GCC if so.
58399         * lib/math.in.h (signbit): Define using GCC builtins if
58400         REPLACE_SIGNBIT_USING_GCC is set.
58401         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
58402         REPLACE_SIGNBIT_USING_GCC.
58403         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
58404
58405 2008-01-25  Jim Meyering  <meyering@redhat.com>
58406
58407         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
58408         * lib/poll.c: Include <config.h>, not "config.h".
58409         * tests/test-getaddrinfo.c: Likewise.
58410
58411 2008-01-25  Simon Josefsson  <simon@josefsson.org>
58412
58413         * modules/sockets-tests: New file.
58414
58415 2008-01-24  Simon Josefsson  <simon@josefsson.org>
58416
58417         * modules/sockets: New module, can be used to call WSA_Startup and
58418         WSA_Cleanup when needed.
58419
58420         * lib/sockets.h, lib/sockets.c: New files.
58421
58422         * m4/sockets.m4: New file.
58423
58424         * tests/test-sockets.c: New file.
58425
58426 2008-01-19  Bruno Haible  <bruno@clisp.org>
58427
58428         * doc/posix-headers: Renamed from doc/headers.
58429         * doc/posix-functions: Renamed from doc/functions.
58430         * doc/gnulib.texi: Update.
58431
58432 2008-01-19  Bruno Haible  <bruno@clisp.org>
58433
58434         * doc/glibc-functions/strcasestr.texi: Include contents of
58435         doc/functions/strcasestr.texi, fixing the list of platforms.
58436         * doc/functions/strcasestr.texi: Remove file.
58437
58438 2008-01-19  Bruno Haible  <bruno@clisp.org>
58439
58440         * doc/glibc-functions/memmem.texi: Include contents of
58441         doc/functions/memmem.texi.
58442         * doc/functions/memmem.texi: Remove file.
58443
58444 2008-01-18  Bruno Haible  <bruno@clisp.org>
58445
58446         * doc/glibc-functions/*.texi: New files.
58447         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
58448         to use the new files.
58449
58450 2008-01-17  Bruno Haible  <bruno@clisp.org>
58451
58452         * tests/test-gethostname.c (main): Fix printf statement.
58453
58454 2008-01-17  Simon Josefsson  <simon@josefsson.org>
58455
58456         * modules/gethostname-tests: New file.
58457
58458         * tests/test-gethostname.c: New file.
58459
58460 2008-01-17  Simon Josefsson  <simon@josefsson.org>
58461
58462         * lib/gethostname.c: Include string.h unconditionally, strncpy is
58463         used by the UNAME case.  Reported by Bruno Haible
58464         <bruno@clisp.org>.
58465
58466 2008-01-17  Eric Blake  <ebb9@byu.net>
58467
58468         Convert c-strcasestr to be more efficient.
58469         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
58470         (Depends-on): Add c-strcase, remove malloca, strnlen.
58471         * tests/test-c-strcasestr.c (main): Enhance test.
58472         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
58473
58474 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
58475
58476         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
58477         Use it in creating po/Makevars.
58478
58479 2008-01-15  Simon Josefsson  <simon@josefsson.org>
58480
58481         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
58482         Applications that requires it should initialize libgcrypt
58483         manually.
58484
58485 2008-01-16  Simon Josefsson  <simon@josefsson.org>
58486
58487         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
58488
58489 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
58490
58491         Fix problem with getdate on mingw32 reported by Simon Josefsson
58492         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
58493         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
58494         tzname", when deciding whether to declare tzname.
58495         * lib/strftime.c (tzname): Likewise.
58496
58497 2008-01-15  Bruno Haible  <bruno@clisp.org>
58498
58499         Work around a MacOS X 10.5 bug in frexpl().
58500         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
58501         * doc/functions/frexpl.texi: Document the bug.
58502         Reported by Elias Pipping <pipping@gentoo.org>.
58503
58504 2008-01-14  Eric Blake  <ebb9@byu.net>
58505
58506         Touch up previous patch.
58507         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
58508         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
58509
58510         Convert strcasestr module to use Two-Way algorithm.
58511         * modules/strcasestr-simple: New module, based on the old
58512         strcasestr, but with Two-Way rather than KMP.
58513         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
58514         * lib/string.in.h (rpl_strcasestr): Declare.
58515         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
58516         performance.
58517         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
58518         * modules/string (Makefile.am): Support strcasestr.
58519         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
58520         * modules/strcasestr-tests (Depends-on): Check for alarm.
58521         * tests/test-strcasestr.c: Augment test.
58522         * lib/str-two-way.h: Clean up stray macro.
58523         * NEWS: Document new module.
58524         * MODULES.html.sh (string handling): Likewise.
58525         * doc/functions/strcasestr.texi: New file.
58526         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
58527         here, since it is not a POSIX function.
58528
58529 2008-01-14  Colin Watson  <cjwatson@debian.org>
58530             Bruno Haible  <bruno@clisp.org>
58531
58532         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
58533         works fine; if not, set REPLACE_STRSIGNAL.
58534         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
58535         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
58536         REPLACE_STRSIGNAL.
58537         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
58538         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
58539         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
58540
58541 2008-01-14  Bruno Haible  <bruno@clisp.org>
58542
58543         * modules/strsignal (Include): Change to <string.h>.
58544
58545 2008-01-14  Colin Watson  <cjwatson@debian.org>
58546
58547         * modules/argp (Notice): Add a notice recommending to change
58548         XGETTEXT_OPTIONS.
58549         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
58550
58551 2008-01-13  Colin Watson  <cjwatson@debian.org>
58552
58553         * modules/strsignal-tests: New file.
58554         * tests/test-strsignal.c: New file.
58555
58556         * lib/strsignal.c: New file, from glibc with modifications.
58557         * lib/siglist.h: New file, from glibc with modifications.
58558         * lib/string.in.h (strsignal): New declaration.
58559         * m4/strsignal.m4: New file.
58560         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
58561         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
58562         * modules/strsignal: New file.
58563         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
58564         HAVE_DECL_STRSIGNAL.
58565
58566 2008-01-13  Bruno Haible  <bruno@clisp.org>
58567
58568         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
58569         locale encoding is not ASCII. Needed for OpenBSD 4.0.
58570         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
58571         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
58572
58573 2008-01-13  Bruno Haible  <bruno@clisp.org>
58574
58575         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
58576         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
58577         * lib/argp.h (__attribute__): Likewise.
58578         * lib/c-stack.c (__attribute__): Likewise.
58579         * lib/error.h (__attribute__): Likewise.
58580         * lib/fts.c (__attribute__): Likewise.
58581         * lib/openat.h (__attribute__): Likewise.
58582         * lib/stdio.in.h (__attribute__): Likewise.
58583         * lib/string.in.h (__attribute__): Likewise.
58584         * lib/utimens.c (__attribute__): Likewise.
58585         * lib/vasnprintf.h (__attribute__): Likewise.
58586         * lib/xalloc.h (__attribute__): Likewise.
58587         * lib/xprintf.h (__attribute__): Likewise.
58588         * lib/xstrtol.h (__attribute__): Likewise.
58589         * lib/xvasprintf.h (__attribute__): Likewise.
58590
58591 2008-01-12  Bruno Haible  <bruno@clisp.org>
58592
58593         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
58594         * doc/glibc-headers/a.out.texi: New file.
58595         * doc/glibc-headers/aliases.texi: New file.
58596         * doc/glibc-headers/alloca.texi: New file.
58597         * doc/glibc-headers/ar.texi: New file.
58598         * doc/glibc-headers/argp.texi: New file.
58599         * doc/glibc-headers/argz.texi: New file.
58600         * doc/glibc-headers/byteswap.texi: New file.
58601         * doc/glibc-headers/crypt.texi: New file.
58602         * doc/glibc-headers/endian.texi: New file.
58603         * doc/glibc-headers/envz.texi: New file.
58604         * doc/glibc-headers/err.texi: New file.
58605         * doc/glibc-headers/error.texi: New file.
58606         * doc/glibc-headers/execinfo.texi: New file.
58607         * doc/glibc-headers/fpu_control.texi: New file.
58608         * doc/glibc-headers/fstab.texi: New file.
58609         * doc/glibc-headers/fts.texi: New file.
58610         * doc/glibc-headers/getopt.texi: New file.
58611         * doc/glibc-headers/ieee754.texi: New file.
58612         * doc/glibc-headers/ifaddrs.texi: New file.
58613         * doc/glibc-headers/libintl.texi: New file.
58614         * doc/glibc-headers/mcheck.texi: New file.
58615         * doc/glibc-headers/mntent.texi: New file.
58616         * doc/glibc-headers/obstack.texi: New file.
58617         * doc/glibc-headers/paths.texi: New file.
58618         * doc/glibc-headers/printf.texi: New file.
58619         * doc/glibc-headers/pty.texi: New file.
58620         * doc/glibc-headers/resolv.texi: New file.
58621         * doc/glibc-headers/shadow.texi: New file.
58622         * doc/glibc-headers/sysexits.texi: New file.
58623         * doc/glibc-headers/ttyent.texi: New file.
58624
58625 2008-01-12  Jim Meyering  <meyering@redhat.com>
58626
58627         announce-gen: emit Gnulib's git-based version string.
58628         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
58629         New option --gnulib-version=V, where V is expected to be
58630         the output of running git describe in the gnulib directory.
58631         (get_tool_versions): Request feedback on xdelta.  I suspect it's
58632         not useful, and plan to stop publishing an xdelta file with each
58633         coreutils release.
58634
58635         * build-aux/announce-gen: Also check for lzma-compressed files.
58636
58637 2008-01-11  Bruno Haible  <bruno@clisp.org>
58638
58639         * tests/test-memmem.c (main): Increase maximum allowed time.
58640         * tests/test-strstr.c (main): Likewise.
58641
58642 2008-01-11  Bruno Haible  <bruno@clisp.org>
58643
58644         * doc/functions/memmem.texi: Add more precisions about platforms.
58645         * doc/functions/strstr.texi: Likewise.
58646
58647 2008-01-10  Eric Blake  <ebb9@byu.net>
58648
58649         * m4/strstr.m4: Delete cruft from copy-n-paste.
58650         Reported by Bruno Haible.
58651
58652 2008-01-10  Bruno Haible  <bruno@clisp.org>
58653
58654         Make c-strstr rely on strstr.
58655         * lib/c-strstr.c: Don't include str-kmp.h.
58656         (c_strstr): Define in terms of strstr.
58657         * modules/c-strstr (Files): Remove lib/str-kmp.h.
58658         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
58659
58660 2008-01-10  Bruno Haible  <bruno@clisp.org>
58661
58662         * doc/gnulib.texi (String Functions in C Locale): New section.
58663         * doc/c-ctype.texi: New file.
58664         * doc/c-strcase.texi: New file.
58665         * doc/c-strcaseeq.texi: New file.
58666         * doc/c-strcasestr.texi: New file.
58667         * doc/c-strstr.texi: New file.
58668         * doc/c-strtod.texi: New file.
58669         * doc/c-strtold.texi: New file.
58670
58671 2008-01-10  Eric Blake  <ebb9@byu.net>
58672
58673         * lib/relocatable.h: Fix a comment.
58674
58675 2008-01-10  Eric Blake  <ebb9@byu.net>
58676
58677         Share two-way algorithm.
58678         * lib/str-two-way.h: New file, merged from...
58679         * lib/memmem.c: ...here...
58680         * lib/strstr.c: ...and here.
58681         * modules/memmem (Files): Use it.
58682         * modules/strstr (Files): Likewise.
58683
58684         Avoid quadratic strstr implementations.
58685         * lib/strstr.c: New file.
58686         * m4/strstr.m4: Likewise.
58687         * modules/strstr: Likewise.
58688         * modules/strstr-tests: Likewise.
58689         * tests/test-strstr.c: Likewise.
58690         * lib/string.in.h (rpl_strstr): Declare.
58691         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
58692         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
58693         * modules/string (Makefile.am): Likewise.
58694         * MODULES.html.sh (string handling): Mention new module.
58695         * doc/functions/strstr.texi (strstr): Document the bug.
58696
58697 2008-01-10  Bruno Haible  <bruno@clisp.org>
58698
58699         * lib/relocatable.h (relocate): State whether result is freshly
58700         allocated or not.
58701         * lib/relocatable.c (relocate): Return a freshly allocated string
58702         instead of a pointer to a privately held string.
58703         Reported by Sylvain Beucler <beuc@gnu.org>.
58704
58705 2008-01-10  Colin Watson  <cjwatson@debian.org>
58706
58707         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
58708         s/S_ISNLK/S_ISLNK/.
58709
58710 2008-01-09  Bruno Haible  <bruno@clisp.org>
58711
58712         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
58713         and other files.
58714         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
58715         if it's only a guess.
58716         * modules/memmem: Simplify by depending on memmem-simple.
58717
58718 2008-01-09  Bruno Haible  <bruno@clisp.org>
58719
58720         Work around OpenBSD 4.0 tdelete() bug.
58721         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
58722         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
58723         macros and don't redefine the enum values.
58724         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
58725         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
58726         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
58727
58728 2008-01-09  Bruno Haible  <bruno@clisp.org>
58729
58730         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
58731         (main): Don't perform the tests if setlocale did not install a UTF-8
58732         locale. Needed on OpenBSD 4.0.
58733         * modules/wcwidth-tests (Depends-on): Add localcharset.
58734
58735 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
58736
58737         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
58738         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
58739         * NEWS: announce this.
58740         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
58741
58742 2008-01-09  Simon Josefsson  <simon@josefsson.org>
58743         and Eric Blake  <ebb9@byu.net>
58744
58745         Add memmem-simple module.
58746         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
58747         (gl_FUNC_MEMMEM): Separate performance from presence checks.
58748         * modules/memmem-simple: New file.
58749         * modules/memmem (Description): Tweak.
58750         * MODULES.html.sh (string handling): Mention new module.
58751         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
58752         addressed by memmem-simple.
58753         * NEWS: Document the difference.
58754
58755 2008-01-09  Eric Blake  <ebb9@byu.net>
58756
58757         Give gcc some memmem optimization hints.
58758         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
58759         (strcasestr): Declare as pure.
58760         * modules/memmem (Maintainer): Claim my implementation.
58761
58762 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58763
58764         Support AIX 6.1 and higher.
58765         * build-aux/config.libpath: Likewise.
58766         * build-aux/config.rpath: Likewise.
58767
58768 2008-01-08  Jim Meyering  <meyering@redhat.com>
58769             Bruno Haible  <bruno@clisp.org>
58770
58771         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
58772         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
58773         Reported by Peter Fales in
58774         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
58775
58776 2008-01-08  Bruno Haible  <bruno@clisp.org>
58777
58778         * modules/unictype/category-of (Depends-on): Add
58779         unictype/category-none.
58780         * modules/unictype/category-and-tests (Depends-on): Add
58781         unictype/category-{L,N,Lu,Nd}.
58782         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
58783         * modules/unictype/category-or-tests (Depends-on): Add
58784         unictype/category-{L,N}.
58785         * modules/unictype/category-name-tests (Depends-on): Add
58786         unictype/category-{Z,Nl}.
58787         Reported by Simon Josefsson.
58788
58789 2008-01-08  Bruno Haible  <bruno@clisp.org>
58790
58791         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
58792         convention better.
58793         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
58794         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
58795         Reported by Peter Miller <millerp@canb.auug.org.au>.
58796
58797 2008-01-08  Eric Blake  <ebb9@byu.net>
58798
58799         Rewrite memmem to guarantee linear complexity without malloc.
58800         * lib/memmem.c (memmem): Use Two-Way rather than
58801         Knuth-Morris-Pratt, to allow O(1) space usage.
58802         (critical_factorization, two_way_short_needle)
58803         (two_way_long_needle): New functions.
58804         (knuth_morris_pratt): Delete.
58805         * modules/memmem (Depends-on): No longer need malloca or stdbool.
58806         Add stdint.
58807         * tests/test-memmem.c (main): Add tests for periodic needle and
58808         sublinear performance.
58809         * doc/functions/memmem.texi (memmem): Document other deficiencies
58810         in cygwin and older glibc.
58811
58812 2008-01-08  Bruno Haible  <bruno@clisp.org>
58813
58814         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
58815         augmentation.
58816
58817 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
58818
58819         Add a configure time option: --disable-acl.
58820         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
58821         AC_ARG_ENABLE(acl).
58822
58823 2008-01-06  Simon Josefsson  <simon@josefsson.org>
58824
58825         * tests/test-localename.c: Don't include obsolete "setenv.h".
58826
58827         * modules/localename-tests (Depends-on): Need unsetenv.
58828
58829 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58830
58831         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
58832
58833 2008-01-06  Colin Watson  <cjwatson@debian.org>
58834
58835         * users.txt: Add man-db.
58836
58837 2008-01-07  Bruno Haible  <bruno@clisp.org>
58838
58839         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
58840         previous section name.
58841
58842 2008-01-07  Bruno Haible  <bruno@clisp.org>
58843
58844         * lib/progname.c (set_program_name): Don't strip off a leading
58845         "lt-" prefix outside a .libs directory.
58846         Suggested by Paul Eggert.
58847
58848 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
58849             Bruno Haible  <bruno@clisp.org>
58850
58851         Improve memory cleanup in 'relocatable' module.
58852         * lib/relocatable.h (compute_curr_prefix): Change return type to
58853         'char *'.
58854         * lib/relocatable.c (compute_curr_prefix): Change return type to
58855         'char *'. Free curr_installdir after use.
58856         (relocate): Free curr_prefix_better after use.
58857         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
58858
58859 2008-01-01  Bruno Haible  <bruno@clisp.org>
58860
58861         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
58862         failure on older glibc systems.
58863         Reported by Peter Fales <psfales@alcatel-lucent.com>.
58864
58865 2008-01-05  Eric Blake  <ebb9@byu.net>
58866
58867         Avoid quadratic system memmem.
58868         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
58869         Reported by Ralf Wildenhues.
58870
58871         Fix memmem test for mingw.
58872         * modules/memmem-tests (configure.ac): Check for alarm.
58873         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
58874         it.
58875         * doc/functions/memmem.texi: New file.
58876         * doc/gnulib.texi (Function Substitutes): Add memmem.
58877         Reported by Bruno Haible.
58878
58879 2008-01-04  Bruno Haible  <bruno@clisp.org>
58880
58881         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
58882         Require gl_HEADER_STRINGS_H_DEFAULTS, not
58883         gl_HEADER_STRING_H_DEFAULTS.
58884
58885 2008-01-04  Eric Blake  <ebb9@byu.net>
58886
58887         Shorten duration of memmem test.
58888         * tests/test-memmem.c (main): Use alarm to declare failure if test
58889         is taking too long.
58890         Reported by Ralf Wildenhues.
58891
58892 2007-12-21  Simon Josefsson  <simon@josefsson.org>
58893
58894         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
58895         string, needed by strerror.
58896
58897 2008-01-03  Colin Watson  <cjwatson@debian.org>
58898             Bruno Haible  <bruno@clisp.org>
58899
58900         * doc/gnulib-tool.texi (Localization): New section.
58901
58902 2008-01-02  Bruno Haible  <bruno@clisp.org>
58903
58904         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
58905         variables to 'unsigned char *' type.
58906         Reported by Paul Eggert.
58907
58908 2008-01-02  Jim Meyering  <jim@meyering.net>
58909
58910         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
58911
58912 2007-12-31  Jim Meyering  <jim@meyering.net>
58913
58914         Avoid use of private FTS type name.
58915         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
58916
58917 2007-12-30  Karl Berry  <karl@gnu.org>
58918
58919         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
58920         work around defect in Texinfo and/or the standalone Info browser.
58921
58922 2007-12-30  Bruno Haible  <bruno@clisp.org>
58923
58924         Unify 5 copies of the KMP code.
58925         * lib/str-kmp.h: New file.
58926         * lib/c-strcasestr.c: Include str-kmp.h.
58927         (knuth_morris_pratt): Remove function.
58928         (c_strcasestr): Update.
58929         * lib/c-strstr.c: Include str-kmp.h.
58930         (knuth_morris_pratt): Remove function.
58931         (c_strcasestr): Update.
58932         * lib/mbscasestr.c: Include str-kmp.h.
58933         (knuth_morris_pratt_unibyte): Remove function.
58934         * lib/mbsstr.c: Include str-kmp.h.
58935         (knuth_morris_pratt_unibyte): Remove function.
58936         * lib/strcasestr.c: Include str-kmp.h.
58937         (knuth_morris_pratt): Remove function.
58938         (strcasestr): Update.
58939         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
58940         * modules/c-strstr (Files): Likewise.
58941         * modules/mbscasestr (Files): Likewise.
58942         * modules/mbsstr (Files): Likewise.
58943         * modules/strcasestr (Files): Likewise.
58944         Suggested by Paul Eggert.
58945
58946 2007-12-30  Bruno Haible  <bruno@clisp.org>
58947
58948         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
58949         defined.
58950
58951 2007-12-30  Bruno Haible  <bruno@clisp.org>
58952
58953         * lib/xmalloca.h: Include xalloc.h.
58954         (xnmalloca): New macro.
58955
58956 2007-12-30  Bruno Haible  <bruno@clisp.org>
58957
58958         * lib/malloca.h (nmalloca): New macro.
58959         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
58960         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
58961         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
58962         knuth_morris_pratt_multibyte): Likewise.
58963         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
58964         knuth_morris_pratt_multibyte): Likewise.
58965         * lib/memmem.c (knuth_morris_pratt): Likewise.
58966         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
58967
58968 2007-12-25  Bruno Haible  <bruno@clisp.org>
58969
58970         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
58971         * lib/glob.c: Don't include openat.h.
58972         (link_exists2_p): Add back the code that deals with the
58973         !GLOB_ALTDIRFUNC case.
58974         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
58975         let it do the filename concatenation.
58976         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
58977         * modules/glob (Depends-on): Remove openat.
58978
58979 2007-12-31  Bruno Haible  <bruno@clisp.org>
58980
58981         * modules/dirfd (License): Change to LGPLv2+.
58982         Approved by Jim Meyering.
58983
58984 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
58985
58986         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
58987         when multiplying M by sizeof (size_t).
58988
58989 2007-12-10  Martin Lambers  <marlam@marlam.de>
58990
58991         Override getpagesize on mingw.
58992         * lib/getpagesize.c: New file.
58993         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
58994         * modules/getpagesize (Files): Add lib/getpagesize.c.
58995         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
58996         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
58997         REPLACE_GETPAGESIZE.
58998         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
58999
59000 2007-12-25  Bruno Haible  <bruno@clisp.org>
59001
59002         * modules/localcharset (Notice): New field.
59003         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
59004         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
59005
59006 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
59007             Bruno Haible  <bruno@clisp.org>
59008
59009         Avoid using the syntax symbol() in formatted documentation.
59010         * MODULES.html.sh (func_module): When replacing symbol() with a
59011         hyperlink, remove the parentheses. Show an error if some remain.
59012         Recognize and render the '...' syntax.
59013         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
59014         Rework. Add paragraph about GCC's inlining.
59015         * doc/alloca.texi: Likewise.
59016         * doc/error.texi: Remove parentheses from symbol reference.
59017         * doc/gnulib-intro.texi: Likewise.
59018         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
59019         * modules/fnmatch (Description): Reword to say "the ... function".
59020         * modules/full-read (Description): Likewise.
59021         * modules/full-write (Description): Likewise.
59022         * modules/safe-read (Description): Likewise.
59023         * modules/safe-write (Description): Likewise.
59024         * modules/strchrnul (Description): Likewise.
59025         * modules/trim (Description): Likewise.
59026         * modules/error (Description): Remove parentheses from symbol
59027         references.
59028         * modules/verror (Description): Likewise.
59029         Reported by Karl Berry.
59030
59031 2007-12-25  Bruno Haible  <bruno@clisp.org>
59032
59033         Fixup after 2007-10-16 commit.
59034         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
59035
59036 2007-12-24  Bruno Haible  <bruno@clisp.org>
59037
59038         Make --enable-relocatable work with DESTDIR.
59039         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
59040         to compute installdir from destprog.
59041         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
59042         also set the RELOC_DESTDIR variable.
59043         Reported by Левашев Иван <octagram@bluebottle.com>.
59044
59045 2007-12-24  Bruno Haible  <bruno@clisp.org>
59046
59047         Fix link error due to xalloc_die().
59048         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
59049         of xreadlink.
59050         * lib/relocwrapper.c: Update comments.
59051         * build-aux/install-reloc: Remove xreadlink.c from file list.
59052         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
59053         xreadlink.c.
59054         Reported by Левашев Иван <octagram@bluebottle.com>.
59055
59056 2007-12-24  Bruno Haible  <bruno@clisp.org>
59057
59058         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
59059         * lib/setenv.h: Remove file.
59060         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
59061         lib/setenv.h.
59062         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
59063         (Depends-on): Add stdlib.
59064         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
59065         gl_FUNC_UNSETENV.
59066         (Include): Replace setenv.h with <stdlib.h>.
59067         * modules/unsetenv: New file.
59068         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
59069         * lib/unsetenv.c: Include <stdlib.h> first.
59070         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
59071         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
59072         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
59073         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
59074         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
59075         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
59076         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
59077         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
59078         * doc/functions/unsetenv.texi: Update.
59079         * modules/xsetenv (Depends-on): Add unsetenv.
59080         * modules/getdate (Depends-on): Likewise.
59081         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
59082         * lib/xsetenv.c: Don't include setenv.h.
59083         * lib/getdate.y: Likewise.
59084         * lib/relocwrapper.c: Likewise.
59085         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
59086         (Depends-on): Add stdlib.
59087         * NEWS: Mention the changes.
59088         Reported by Левашев Иван <octagram@bluebottle.com>.
59089
59090 2007-12-23  Bruno Haible  <bruno@clisp.org>
59091
59092         * lib/memmem.c (memmem): Use lowercase variable names. Tab
59093         indentation.
59094
59095 2007-12-23  Bruno Haible  <bruno@clisp.org>
59096
59097         * lib/c-strcasestr.c: Add more comments.
59098         * lib/c-strstr.c: Likewise.
59099         * lib/mbscasestr.c: Likewise.
59100         * lib/mbsstr.c: Likewise.
59101         * lib/strcasestr.c: Likewise.
59102         * lib/memmem.c: Likewise.
59103
59104 2007-12-23  Bruno Haible  <bruno@clisp.org>
59105
59106         * tests/test-memmem.c: Include <string.h> first.
59107
59108 2007-12-22  Bruno Haible  <bruno@clisp.org>
59109
59110         * gnulib-tool (func_create_testdir): Change $auxdir while generating
59111         the contents of $testsbase.
59112         Reported by Ralf Wildenhues.
59113
59114 2007-12-22  Bruno Haible  <bruno@clisp.org>
59115
59116         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
59117         two variables local_ldadd_before, local_ldadd_last.
59118
59119 2007-12-20  Eric Blake  <ebb9@byu.net>
59120
59121         Work around circular library issue when cross-compiling.
59122         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
59123         that progname.o does not need to pull in rpl_memcmp.
59124
59125 2007-12-19  Eric Blake  <ebb9@byu.net>
59126
59127         Fix memmem to avoid O(n^2) worst-case complexity.
59128         * lib/memmem.c (knuth_morris_pratt): New function.
59129         (memmem): Use it if first few naive iterations fail.
59130         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
59131         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
59132         * modules/memchr (License): Likewise.
59133         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
59134         malloca.
59135         * tests/test-memmem.c: Rewrite, borrowing ideas from
59136         test-mbsstr1.c; the old version wouldn't even compile!
59137         * modules/memmem-tests: New file.
59138         * lib/string.in.h (rpl_memmem): Add declaration.
59139         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
59140         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
59141         REPLACE_MEMMEM.
59142
59143 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
59144
59145         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
59146         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
59147         before any system include files, and undef after them all.  This
59148         should fix a problem on VMS reported by John E. Malmberg in
59149         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
59150
59151 2007-12-17  Eric Blake  <ebb9@byu.net>
59152
59153         Revert addition of verify, for BSD/OS.
59154         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
59155         can't handle large files, for the sake of obsolete platforms.
59156         * modules/fseeko (Depends-on): Remove verify.
59157         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
59158         * doc/functions/ftello.texi (ftello): Likewise.
59159         * doc/functions/fgetpos.texi (fgetpos): Likewise.
59160         Reported by Larry Jones.
59161
59162 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
59163
59164         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
59165         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
59166
59167 2007-12-17  Jim Meyering  <meyering@redhat.com>
59168
59169         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
59170         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
59171         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
59172         * modules/getcwd (Depends-on): Add openat.
59173         Reported by Petr Salinger.
59174
59175 2007-12-17  Bruno Haible  <bruno@clisp.org>
59176
59177         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
59178         avoid a segmentation fault of the configure test on x86_64 systems.
59179
59180 2007-12-15  Jim Meyering  <meyering@redhat.com>
59181
59182         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
59183
59184 2007-12-13  Eric Blake  <ebb9@byu.net>
59185
59186         Another fseek test.
59187         * tests/test-fseek.c (main): Also test ungetc handling.
59188         * tests/test-fseeko.c (main): Likewise.
59189         * modules/fseeko (Depends-on): Add verify.
59190         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
59191         large.
59192         Reported by Larry Jones.
59193
59194         Fix fseeko on mingw.
59195         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
59196         seek.
59197
59198         Beef up fseek tests.
59199         * tests/test-fseek.c (main): Also test eof handling.
59200         * tests/test-fseeko.c (main): Likewise.
59201         Reported by Larry Jones.
59202
59203 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
59204
59205         Fix fseeko on BSD-based platforms.
59206         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
59207         successful seek.
59208
59209 2007-12-12  Eric Blake  <ebb9@byu.net>
59210
59211         Allow circular dependency of separate libtests.a
59212         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
59213         when use_libtests.
59214
59215 2007-12-11  Eric Blake  <ebb9@byu.net>
59216
59217         Fix bug with -0.0L in previous patch.
59218         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
59219         * tests/test-isnan.c (main): Also test on zeroes.
59220         * tests/test-isnanf.c (main): Likewise.
59221         * tests/test-isnanl.h (main): Likewise.
59222
59223         Detect pseudo-denormals on x86 even when cross-compiling.
59224         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
59225         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
59226         invalid bit patterns that happen to satisfy ==.
59227
59228         Avoid link failures with separate libtests.a.
59229         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
59230         last, to satisfy circular dependencies.
59231
59232 2007-12-11  Eric Blake  <ebb9@byu.net>
59233         and Bruno Haible  <bruno@clisp.org>
59234
59235         Fix OpenBSD 4.0 <float.h> handling of long double.
59236         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
59237         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
59238         * doc/headers/float.texi (float.h): Document OpenBSD bug.
59239
59240 2007-12-11  Jim Meyering  <meyering@redhat.com>
59241
59242         * users.txt: Add libvirt.
59243
59244         Support versions of autoconf prior to 2.59c.
59245         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
59246         if it is not already defined.
59247
59248 2007-12-09  Bruno Haible  <bruno@clisp.org>
59249
59250         Let 'gnulib-tool --import' collect sources needed for the tests in
59251         tests/ rather than in lib/.
59252         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
59253         argument. If true, add rules to generate libtests.a, and put libtests.a
59254         into $(LDADD). Consider source files in subdirectories and set
59255         uses_subdirs.
59256         (func_emit_initmacro_start, func_emit_initmacro_end,
59257         func_emit_initmacro_done): Pass all arguments explicitly.
59258         (func_import): Determine two module lists main_modules,
59259         testsrelated_modules. Determine use_libtests. Determine two variables
59260         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
59261         instead of just sed_transform_lib_file. Determine two variables
59262         main_files and testsrelated_files. Compute 'files' as the union of
59263         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
59264         func_add_or_update. In the generated gnulib-comp.m4, collect the
59265         object files for tests/ in different variables than those for lib/.
59266         Substitute LIBTESTS_LIBDEPS.
59267         (func_create_testdir): Combine the uses_subdirs results from
59268         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
59269
59270 2007-12-09  Bruno Haible  <bruno@clisp.org>
59271
59272         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
59273         the build-aux directory.
59274
59275 2007-12-09  Bruno Haible  <bruno@clisp.org>
59276
59277         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
59278         introduced on 2006-09-09.
59279
59280 2007-12-07  Jim Meyering  <meyering@redhat.com>
59281
59282         Let these macros work also with autoconf-2.59.
59283         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
59284         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
59285         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
59286
59287 2007-12-06  Jim Meyering  <meyering@redhat.com>
59288
59289         Avoid a configure-time syntax error in gl_FUNC_ACL.
59290         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
59291         function in each branch, before testing the cache variable.
59292
59293 2007-12-04  Eric Blake  <ebb9@byu.net>
59294
59295         Make scripts executable.
59296         * build-aux/config.guess: Add execute permissions.
59297         * build-aux/config.sub: Likewise.
59298         * build-aux/gendocs.sh: Likewise.
59299
59300         Fix frexp on mingw.
59301         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
59302         cross-compiling.
59303         * doc/functions/frexp.texi (frexp): Document the bug.
59304
59305         Make cygwin fseeko check more reliable.
59306         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
59307         version numbers, rather than unrelated feature check.
59308         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
59309         * doc/functions/ftello.texi (ftello): Likewise.
59310         Reported by Bruno Haible.
59311
59312         * m4/strerror.m4: Bump version number.
59313
59314 2007-12-03  Bruno Haible  <bruno@clisp.org>
59315
59316         * doc/functions/mprotect.texi: Mention the mingw problem.
59317
59318 2007-12-03  Eric Blake  <ebb9@byu.net>
59319
59320         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
59321         REPLACE_STRERROR is initialized before this macro.
59322
59323 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
59324
59325         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
59326         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
59327         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
59328         put -lsec in even for programs other than 'ls'.  This fixes a problem
59329         for gettext reported by Bruno Haible in
59330         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
59331         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
59332         Add support for Solaris 10.  This isn't efficient, but should get the
59333         job done for now.
59334
59335 2007-12-03  James Youngman  <jay@gnu.org>
59336
59337         * doc/regexprops-generic.texi: change "an close-group" to "a
59338         close-group" and "illegal" to "not allowed".
59339
59340 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59341
59342         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
59343         pr_byname.h. Needed for the rare case when the maintainer has done
59344         "make maintainer-clean" in the source directory and then attempts a
59345         build outside the source directory.
59346         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
59347         scripts_byname.h.
59348
59349 2007-12-02  Martin Lambers <marlam@marlam.de>
59350             Bruno Haible  <bruno@clisp.org>
59351
59352         * lib/getpagesize.h: Remove file.
59353         * lib/unistd.in.h: Include declaration of getpagesize here.
59354         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
59355         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
59356         HAVE_SYS_PARAM_H.
59357         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
59358         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
59359         * modules/getpagesize (Files): Remove lib/getpagesize.h.
59360         (Depends-on): Add unistd.
59361         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59362         (Include): Use <unistd.h> instead of getpagesize.h.
59363         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
59364         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
59365         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
59366         gl_GETPAGESIZE invocation, already handled by module dependency.
59367         * lib/pagealign_alloc.c: Don't include getpagesize.h.
59368
59369 2007-12-02  Bruno Haible  <bruno@clisp.org>
59370
59371         * modules/strings-tests: New file.
59372         * tests/test-strings.c: New file.
59373
59374         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
59375         * lib/strings.in.h: New file.
59376         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
59377         * m4/strings_h.m4: New file.
59378         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
59379         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
59380         * modules/strings: New file.
59381         * modules/string (Makefile.am): Update.
59382         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
59383         Reported by Karl Berry.
59384
59385 2007-12-01  Eric Blake  <ebb9@byu.net>
59386
59387         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
59388         accommodate fix in cygwin 1.5.25.
59389
59390 2007-12-01  Jim Meyering  <meyering@redhat.com>
59391
59392         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
59393         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
59394         that would inhibit utf8-optimization of a regexp containing line-
59395         or buffer-anchors, e.g., `^', `$'.
59396
59397 2007-11-30  Bruno Haible  <bruno@clisp.org>
59398
59399         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
59400         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
59401         glthread_recursive_lock_init.
59402         * lib/lock.c (glthread_recursive_lock_init)
59403         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
59404         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
59405
59406 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
59407
59408         New function qset_acl, like set_acl but with syscall semantics.
59409         * lib/acl.h (qset_acl): New decl.
59410         * lib/acl.c (qset_acl): New function.
59411         (set_acl): Use new function.  Use more-consistent diagnostics.
59412
59413 2007-11-28  Jim Meyering  <meyering@redhat.com>
59414
59415         * modules/physmem (License): Change from GPL to LGPLv2+.
59416
59417 2007-11-26  Bruno Haible  <bruno@clisp.org>
59418
59419         * lib/vasnprintf.c (decode_long_double): Don't abort if the
59420         'long double' type has excess precision.
59421         Reported by Jim Meyering in
59422         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
59423
59424 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59425
59426         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
59427         Sync from <http://gnu.org/licenses>.
59428         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
59429         with license text from same location.
59430         * doc/maintain.texi, doc/standards.texi:  Sync from
59431         <http://savannah.gnu.org/projects/gnustandards>.
59432
59433 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
59434         and Jim Meyering  <meyering@redhat.com>
59435
59436         Adjust getdate' grammar to accept a slightly more regular language.
59437         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
59438         Before, the former was rejected.
59439         * lib/getdate.y (digits_to_date_time): New function, factored
59440         out of ...
59441         (number): ...here.  Just call digits_to_date_time.
59442         (hybrid): New non-terminal to handle an <unsigned number,
59443         signed relative offset> sequence consistently.
59444
59445 2007-11-18  Jim Meyering  <meyering@redhat.com>
59446
59447         Pull my changes from coreutils:
59448         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
59449         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
59450         use of $gnulib_tool_option_extras, so that it's separated from the
59451         preceding argument.
59452
59453         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
59454         * build-aux/bootstrap (cp_mark_as_generated): Create any required
59455         parent destination directories before copying a file into place.
59456
59457 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
59458
59459         bootstrap: work also with 4-argument variant of AC_INIT
59460         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
59461
59462 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
59463
59464         Port test-getaddrinfo to Solaris.
59465         Problem reported by Bruno Haible in
59466         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
59467         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
59468         explanation of setting 'hints'.
59469         Don't reject an implementation merely because it returns EAI_SERVICE.
59470         (EAI_SERVICE): Define to 0 if not defined.
59471
59472 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
59473
59474         The license of gnu-make and posix-shell is now "GPLed build tool".
59475         * modules/gnu-make (License): Likewise.
59476         * modules/posix-shell (License): Likewise.
59477
59478         New module posix-shell, for determining a POSIX shell
59479         or perhaps something that is close enough to a POSIX shell.
59480         * m4/posix-shell.m4: New file.
59481         * modules/posix-shell: New file.
59482
59483         * MODULES.html.sh: Mention new module.
59484
59485         New module gnu-make, for determining whether we're using GNU Make.
59486         * m4/gnu-make.m4: New file.
59487         * modules/gnu-make: New file.
59488         * MODULES.html.sh: Mention new module.
59489
59490 2007-11-14  Jim Meyering  <meyering@redhat.com>
59491
59492         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
59493         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
59494         use this macro to create a function _definition_.
59495         Remove useless "#undef ARGMATCH_DIE".
59496
59497 2007-11-14  Bruno Haible  <bruno@clisp.org>
59498
59499         * lib/config.charset: Update for OpenBSD 4.1.
59500         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
59501
59502 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
59503
59504         Document 64-bit #if problems in stdint.texi.
59505         * doc/headers/stdint.texi (stdint.h): Mention problems with
59506         64-bit-#if, and how to work around them.
59507
59508         Don't insist on 'long long int' support in the preprocessor.  It
59509         breaks too many things.  For example, PRIdMAX still uses a 'long
59510         long int' format with the latest Sun compiler, even though
59511         HAVE_LONG_LONG_INT isn't defined due to that compiler's
59512         preprocessor problem.  This causes the latest coreutils to dump
59513         core on Solaris 10 sparc with the Sun C compiler.
59514         Instead, fix the 2007-10-16 problem in a different way, by evaluating
59515         the troublesome expressions at configure-time, not at #if-time.
59516         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
59517         preprocessor.
59518         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
59519         compile-time C checks, done at 'configure'-time.
59520         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
59521         * modules/inttypes (Makefile): Substitute the new symbols that
59522         gl_INTTYPES_H now generates.
59523         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
59524
59525 2007-11-12  Bruno Haible  <bruno@clisp.org>
59526
59527         Tests for Unicode character classification functions.
59528
59529         * modules/unictype/bidicategory-byname-tests: New file.
59530         * modules/unictype/bidicategory-name-tests: New file.
59531         * modules/unictype/bidicategory-of-tests: New file.
59532         * modules/unictype/bidicategory-test-tests: New file.
59533         * modules/unictype/block-list-tests: New file.
59534         * modules/unictype/block-of-tests: New file.
59535         * modules/unictype/block-test-tests: New file.
59536         * modules/unictype/category-C-tests: New file.
59537         * modules/unictype/category-Cc-tests: New file.
59538         * modules/unictype/category-Cf-tests: New file.
59539         * modules/unictype/category-Cn-tests: New file.
59540         * modules/unictype/category-Co-tests: New file.
59541         * modules/unictype/category-Cs-tests: New file.
59542         * modules/unictype/category-L-tests: New file.
59543         * modules/unictype/category-Ll-tests: New file.
59544         * modules/unictype/category-Lm-tests: New file.
59545         * modules/unictype/category-Lo-tests: New file.
59546         * modules/unictype/category-Lt-tests: New file.
59547         * modules/unictype/category-Lu-tests: New file.
59548         * modules/unictype/category-M-tests: New file.
59549         * modules/unictype/category-Mc-tests: New file.
59550         * modules/unictype/category-Me-tests: New file.
59551         * modules/unictype/category-Mn-tests: New file.
59552         * modules/unictype/category-N-tests: New file.
59553         * modules/unictype/category-Nd-tests: New file.
59554         * modules/unictype/category-Nl-tests: New file.
59555         * modules/unictype/category-No-tests: New file.
59556         * modules/unictype/category-P-tests: New file.
59557         * modules/unictype/category-Pc-tests: New file.
59558         * modules/unictype/category-Pd-tests: New file.
59559         * modules/unictype/category-Pe-tests: New file.
59560         * modules/unictype/category-Pf-tests: New file.
59561         * modules/unictype/category-Pi-tests: New file.
59562         * modules/unictype/category-Po-tests: New file.
59563         * modules/unictype/category-Ps-tests: New file.
59564         * modules/unictype/category-S-tests: New file.
59565         * modules/unictype/category-Sc-tests: New file.
59566         * modules/unictype/category-Sk-tests: New file.
59567         * modules/unictype/category-Sm-tests: New file.
59568         * modules/unictype/category-So-tests: New file.
59569         * modules/unictype/category-Z-tests: New file.
59570         * modules/unictype/category-Zl-tests: New file.
59571         * modules/unictype/category-Zp-tests: New file.
59572         * modules/unictype/category-Zs-tests: New file.
59573         * modules/unictype/category-and-not-tests: New file.
59574         * modules/unictype/category-and-tests: New file.
59575         * modules/unictype/category-byname-tests: New file.
59576         * modules/unictype/category-name-tests: New file.
59577         * modules/unictype/category-none-tests: New file.
59578         * modules/unictype/category-of-tests: New file.
59579         * modules/unictype/category-or-tests: New file.
59580         * modules/unictype/category-test-withtable-tests: New file.
59581         * modules/unictype/combining-class-tests: New file.
59582         * modules/unictype/ctype-alnum-tests: New file.
59583         * modules/unictype/ctype-alpha-tests: New file.
59584         * modules/unictype/ctype-blank-tests: New file.
59585         * modules/unictype/ctype-cntrl-tests: New file.
59586         * modules/unictype/ctype-digit-tests: New file.
59587         * modules/unictype/ctype-graph-tests: New file.
59588         * modules/unictype/ctype-lower-tests: New file.
59589         * modules/unictype/ctype-print-tests: New file.
59590         * modules/unictype/ctype-punct-tests: New file.
59591         * modules/unictype/ctype-space-tests: New file.
59592         * modules/unictype/ctype-upper-tests: New file.
59593         * modules/unictype/ctype-xdigit-tests: New file.
59594         * modules/unictype/decimal-digit-tests: New file.
59595         * modules/unictype/digit-tests: New file.
59596         * modules/unictype/mirror-tests: New file.
59597         * modules/unictype/numeric-tests: New file.
59598         * modules/unictype/property-alphabetic-tests: New file.
59599         * modules/unictype/property-ascii-hex-digit-tests: New file.
59600         * modules/unictype/property-bidi-arabic-digit-tests: New file.
59601         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
59602         * modules/unictype/property-bidi-block-separator-tests: New file.
59603         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
59604         * modules/unictype/property-bidi-common-separator-tests: New file.
59605         * modules/unictype/property-bidi-control-tests: New file.
59606         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
59607         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
59608         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
59609         * modules/unictype/property-bidi-european-digit-tests: New file.
59610         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
59611         * modules/unictype/property-bidi-left-to-right-tests: New file.
59612         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
59613         * modules/unictype/property-bidi-other-neutral-tests: New file.
59614         * modules/unictype/property-bidi-pdf-tests: New file.
59615         * modules/unictype/property-bidi-segment-separator-tests: New file.
59616         * modules/unictype/property-bidi-whitespace-tests: New file.
59617         * modules/unictype/property-byname-tests: New file.
59618         * modules/unictype/property-combining-tests: New file.
59619         * modules/unictype/property-composite-tests: New file.
59620         * modules/unictype/property-currency-symbol-tests: New file.
59621         * modules/unictype/property-dash-tests: New file.
59622         * modules/unictype/property-decimal-digit-tests: New file.
59623         * modules/unictype/property-default-ignorable-code-point-tests: New file.
59624         * modules/unictype/property-deprecated-tests: New file.
59625         * modules/unictype/property-diacritic-tests: New file.
59626         * modules/unictype/property-extender-tests: New file.
59627         * modules/unictype/property-format-control-tests: New file.
59628         * modules/unictype/property-grapheme-base-tests: New file.
59629         * modules/unictype/property-grapheme-extend-tests: New file.
59630         * modules/unictype/property-grapheme-link-tests: New file.
59631         * modules/unictype/property-hex-digit-tests: New file.
59632         * modules/unictype/property-hyphen-tests: New file.
59633         * modules/unictype/property-id-continue-tests: New file.
59634         * modules/unictype/property-id-start-tests: New file.
59635         * modules/unictype/property-ideographic-tests: New file.
59636         * modules/unictype/property-ids-binary-operator-tests: New file.
59637         * modules/unictype/property-ids-trinary-operator-tests: New file.
59638         * modules/unictype/property-ignorable-control-tests: New file.
59639         * modules/unictype/property-iso-control-tests: New file.
59640         * modules/unictype/property-join-control-tests: New file.
59641         * modules/unictype/property-left-of-pair-tests: New file.
59642         * modules/unictype/property-line-separator-tests: New file.
59643         * modules/unictype/property-logical-order-exception-tests: New file.
59644         * modules/unictype/property-lowercase-tests: New file.
59645         * modules/unictype/property-math-tests: New file.
59646         * modules/unictype/property-non-break-tests: New file.
59647         * modules/unictype/property-not-a-character-tests: New file.
59648         * modules/unictype/property-numeric-tests: New file.
59649         * modules/unictype/property-other-alphabetic-tests: New file.
59650         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
59651         * modules/unictype/property-other-grapheme-extend-tests: New file.
59652         * modules/unictype/property-other-id-continue-tests: New file.
59653         * modules/unictype/property-other-id-start-tests: New file.
59654         * modules/unictype/property-other-lowercase-tests: New file.
59655         * modules/unictype/property-other-math-tests: New file.
59656         * modules/unictype/property-other-uppercase-tests: New file.
59657         * modules/unictype/property-paired-punctuation-tests: New file.
59658         * modules/unictype/property-paragraph-separator-tests: New file.
59659         * modules/unictype/property-pattern-syntax-tests: New file.
59660         * modules/unictype/property-pattern-white-space-tests: New file.
59661         * modules/unictype/property-private-use-tests: New file.
59662         * modules/unictype/property-punctuation-tests: New file.
59663         * modules/unictype/property-quotation-mark-tests: New file.
59664         * modules/unictype/property-radical-tests: New file.
59665         * modules/unictype/property-sentence-terminal-tests: New file.
59666         * modules/unictype/property-soft-dotted-tests: New file.
59667         * modules/unictype/property-space-tests: New file.
59668         * modules/unictype/property-terminal-punctuation-tests: New file.
59669         * modules/unictype/property-test-tests: New file.
59670         * modules/unictype/property-titlecase-tests: New file.
59671         * modules/unictype/property-unassigned-code-value-tests: New file.
59672         * modules/unictype/property-unified-ideograph-tests: New file.
59673         * modules/unictype/property-uppercase-tests: New file.
59674         * modules/unictype/property-variation-selector-tests: New file.
59675         * modules/unictype/property-white-space-tests: New file.
59676         * modules/unictype/property-xid-continue-tests: New file.
59677         * modules/unictype/property-xid-start-tests: New file.
59678         * modules/unictype/property-zero-width-tests: New file.
59679         * modules/unictype/scripts-tests: New file.
59680         * modules/unictype/syntax-c-ident-tests: New file.
59681         * modules/unictype/syntax-c-whitespace-tests: New file.
59682         * modules/unictype/syntax-java-ident-tests: New file.
59683         * modules/unictype/syntax-java-whitespace-tests: New file.
59684         * tests/unictype/test-bidi_byname.c: New file.
59685         * tests/unictype/test-bidi_name.c: New file.
59686         * tests/unictype/test-bidi_of.c: New file.
59687         * tests/unictype/test-bidi_test.c: New file.
59688         * tests/unictype/test-block_list.c: New file.
59689         * tests/unictype/test-block_of.c: New file.
59690         * tests/unictype/test-block_test.c: New file.
59691         * tests/unictype/test-categ_and.c: New file.
59692         * tests/unictype/test-categ_and_not.c: New file.
59693         * tests/unictype/test-categ_byname.c: New file.
59694         * tests/unictype/test-categ_name.c: New file.
59695         * tests/unictype/test-categ_none.c: New file.
59696         * tests/unictype/test-categ_of.c: New file.
59697         * tests/unictype/test-categ_or.c: New file.
59698         * tests/unictype/test-categ_test_withtable.c: New file.
59699         * tests/unictype/test-combining.c: New file.
59700         * tests/unictype/test-decdigit.c: New file.
59701         * tests/unictype/test-digit.c: New file.
59702         * tests/unictype/test-mirror.c: New file.
59703         * tests/unictype/test-numeric.c: New file.
59704         * tests/unictype/test-pr_byname.c: New file.
59705         * tests/unictype/test-pr_test.c: New file.
59706         * tests/unictype/test-predicate-part1.h: New file.
59707         * tests/unictype/test-predicate-part2.h: New file.
59708         * tests/unictype/test-scripts.c: New file.
59709         * tests/unictype/test-sy_c_ident.c: New file.
59710         * tests/unictype/test-sy_java_ident.c: New file.
59711
59712         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
59713         for Unicode 5.0.0.
59714         * tests/unictype/test-categ_Cc.c: Likewise.
59715         * tests/unictype/test-categ_Cf.c: Likewise.
59716         * tests/unictype/test-categ_Cn.c: Likewise.
59717         * tests/unictype/test-categ_Co.c: Likewise.
59718         * tests/unictype/test-categ_Cs.c: Likewise.
59719         * tests/unictype/test-categ_L.c: Likewise.
59720         * tests/unictype/test-categ_Ll.c: Likewise.
59721         * tests/unictype/test-categ_Lm.c: Likewise.
59722         * tests/unictype/test-categ_Lo.c: Likewise.
59723         * tests/unictype/test-categ_Lt.c: Likewise.
59724         * tests/unictype/test-categ_Lu.c: Likewise.
59725         * tests/unictype/test-categ_M.c: Likewise.
59726         * tests/unictype/test-categ_Mc.c: Likewise.
59727         * tests/unictype/test-categ_Me.c: Likewise.
59728         * tests/unictype/test-categ_Mn.c: Likewise.
59729         * tests/unictype/test-categ_N.c: Likewise.
59730         * tests/unictype/test-categ_Nd.c: Likewise.
59731         * tests/unictype/test-categ_Nl.c: Likewise.
59732         * tests/unictype/test-categ_No.c: Likewise.
59733         * tests/unictype/test-categ_P.c: Likewise.
59734         * tests/unictype/test-categ_Pc.c: Likewise.
59735         * tests/unictype/test-categ_Pd.c: Likewise.
59736         * tests/unictype/test-categ_Pe.c: Likewise.
59737         * tests/unictype/test-categ_Pf.c: Likewise.
59738         * tests/unictype/test-categ_Pi.c: Likewise.
59739         * tests/unictype/test-categ_Po.c: Likewise.
59740         * tests/unictype/test-categ_Ps.c: Likewise.
59741         * tests/unictype/test-categ_S.c: Likewise.
59742         * tests/unictype/test-categ_Sc.c: Likewise.
59743         * tests/unictype/test-categ_Sk.c: Likewise.
59744         * tests/unictype/test-categ_Sm.c: Likewise.
59745         * tests/unictype/test-categ_So.c: Likewise.
59746         * tests/unictype/test-categ_Z.c: Likewise.
59747         * tests/unictype/test-categ_Zl.c: Likewise.
59748         * tests/unictype/test-categ_Zp.c: Likewise.
59749         * tests/unictype/test-categ_Zs.c: Likewise.
59750         * tests/unictype/test-ctype_alnum.c: Likewise.
59751         * tests/unictype/test-ctype_alpha.c: Likewise.
59752         * tests/unictype/test-ctype_blank.c: Likewise.
59753         * tests/unictype/test-ctype_cntrl.c: Likewise.
59754         * tests/unictype/test-ctype_digit.c: Likewise.
59755         * tests/unictype/test-ctype_graph.c: Likewise.
59756         * tests/unictype/test-ctype_lower.c: Likewise.
59757         * tests/unictype/test-ctype_print.c: Likewise.
59758         * tests/unictype/test-ctype_punct.c: Likewise.
59759         * tests/unictype/test-ctype_space.c: Likewise.
59760         * tests/unictype/test-ctype_upper.c: Likewise.
59761         * tests/unictype/test-ctype_xdigit.c: Likewise.
59762         * tests/unictype/test-decdigit.h: Likewise.
59763         * tests/unictype/test-digit.h: Likewise.
59764         * tests/unictype/test-numeric.h: Likewise.
59765         * tests/unictype/test-pr_alphabetic.c: Likewise.
59766         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
59767         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
59768         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
59769         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
59770         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
59771         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
59772         * tests/unictype/test-pr_bidi_control.c: Likewise.
59773         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
59774         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
59775         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
59776         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
59777         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
59778         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
59779         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
59780         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
59781         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
59782         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
59783         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
59784         * tests/unictype/test-pr_combining.c: Likewise.
59785         * tests/unictype/test-pr_composite.c: Likewise.
59786         * tests/unictype/test-pr_currency_symbol.c: Likewise.
59787         * tests/unictype/test-pr_dash.c: Likewise.
59788         * tests/unictype/test-pr_decimal_digit.c: Likewise.
59789         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
59790         * tests/unictype/test-pr_deprecated.c: Likewise.
59791         * tests/unictype/test-pr_diacritic.c: Likewise.
59792         * tests/unictype/test-pr_extender.c: Likewise.
59793         * tests/unictype/test-pr_format_control.c: Likewise.
59794         * tests/unictype/test-pr_grapheme_base.c: Likewise.
59795         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
59796         * tests/unictype/test-pr_grapheme_link.c: Likewise.
59797         * tests/unictype/test-pr_hex_digit.c: Likewise.
59798         * tests/unictype/test-pr_hyphen.c: Likewise.
59799         * tests/unictype/test-pr_id_continue.c: Likewise.
59800         * tests/unictype/test-pr_id_start.c: Likewise.
59801         * tests/unictype/test-pr_ideographic.c: Likewise.
59802         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
59803         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
59804         * tests/unictype/test-pr_ignorable_control.c: Likewise.
59805         * tests/unictype/test-pr_iso_control.c: Likewise.
59806         * tests/unictype/test-pr_join_control.c: Likewise.
59807         * tests/unictype/test-pr_left_of_pair.c: Likewise.
59808         * tests/unictype/test-pr_line_separator.c: Likewise.
59809         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
59810         * tests/unictype/test-pr_lowercase.c: Likewise.
59811         * tests/unictype/test-pr_math.c: Likewise.
59812         * tests/unictype/test-pr_non_break.c: Likewise.
59813         * tests/unictype/test-pr_not_a_character.c: Likewise.
59814         * tests/unictype/test-pr_numeric.c: Likewise.
59815         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
59816         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
59817         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
59818         * tests/unictype/test-pr_other_id_continue.c: Likewise.
59819         * tests/unictype/test-pr_other_id_start.c: Likewise.
59820         * tests/unictype/test-pr_other_lowercase.c: Likewise.
59821         * tests/unictype/test-pr_other_math.c: Likewise.
59822         * tests/unictype/test-pr_other_uppercase.c: Likewise.
59823         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
59824         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
59825         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
59826         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
59827         * tests/unictype/test-pr_private_use.c: Likewise.
59828         * tests/unictype/test-pr_punctuation.c: Likewise.
59829         * tests/unictype/test-pr_quotation_mark.c: Likewise.
59830         * tests/unictype/test-pr_radical.c: Likewise.
59831         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
59832         * tests/unictype/test-pr_soft_dotted.c: Likewise.
59833         * tests/unictype/test-pr_space.c: Likewise.
59834         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
59835         * tests/unictype/test-pr_titlecase.c: Likewise.
59836         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
59837         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
59838         * tests/unictype/test-pr_uppercase.c: Likewise.
59839         * tests/unictype/test-pr_variation_selector.c: Likewise.
59840         * tests/unictype/test-pr_white_space.c: Likewise.
59841         * tests/unictype/test-pr_xid_continue.c: Likewise.
59842         * tests/unictype/test-pr_xid_start.c: Likewise.
59843         * tests/unictype/test-pr_zero_width.c: Likewise.
59844         * tests/unictype/test-sy_c_whitespace.c: Likewise.
59845         * tests/unictype/test-sy_java_whitespace.c: Likewise.
59846
59847 2007-11-12  Bruno Haible  <bruno@clisp.org>
59848
59849         Unicode character classification functions.
59850         * lib/unictype.h: New file.
59851         * modules/unictype/base: New file.
59852         * modules/unictype/category-L: New file.
59853         * modules/unictype/category-Lu: New file.
59854         * modules/unictype/category-Ll: New file.
59855         * modules/unictype/category-Lt: New file.
59856         * modules/unictype/category-Lm: New file.
59857         * modules/unictype/category-Lo: New file.
59858         * modules/unictype/category-M: New file.
59859         * modules/unictype/category-Mn: New file.
59860         * modules/unictype/category-Mc: New file.
59861         * modules/unictype/category-Me: New file.
59862         * modules/unictype/category-N: New file.
59863         * modules/unictype/category-Nd: New file.
59864         * modules/unictype/category-Nl: New file.
59865         * modules/unictype/category-No: New file.
59866         * modules/unictype/category-P: New file.
59867         * modules/unictype/category-Pc: New file.
59868         * modules/unictype/category-Pd: New file.
59869         * modules/unictype/category-Ps: New file.
59870         * modules/unictype/category-Pe: New file.
59871         * modules/unictype/category-Pi: New file.
59872         * modules/unictype/category-Pf: New file.
59873         * modules/unictype/category-Po: New file.
59874         * modules/unictype/category-S: New file.
59875         * modules/unictype/category-Sm: New file.
59876         * modules/unictype/category-Sc: New file.
59877         * modules/unictype/category-Sk: New file.
59878         * modules/unictype/category-So: New file.
59879         * modules/unictype/category-Z: New file.
59880         * modules/unictype/category-Zs: New file.
59881         * modules/unictype/category-Zl: New file.
59882         * modules/unictype/category-Zp: New file.
59883         * modules/unictype/category-C: New file.
59884         * modules/unictype/category-Cc: New file.
59885         * modules/unictype/category-Cf: New file.
59886         * modules/unictype/category-Cs: New file.
59887         * modules/unictype/category-Co: New file.
59888         * modules/unictype/category-Cn: New file.
59889         * modules/unictype/category-or: New file.
59890         * modules/unictype/category-of: New file.
59891         * modules/unictype/category-test: New file.
59892         * modules/unictype/category-test-withtable: New file.
59893         * modules/unictype/category-byname: New file.
59894         * modules/unictype/category-none: New file.
59895         * modules/unictype/category-and: New file.
59896         * modules/unictype/category-and-not: New file.
59897         * modules/unictype/category-name: New file.
59898         * modules/unictype/combining-class: New file.
59899         * modules/unictype/category-all: New file.
59900         * modules/unictype/bidicategory-all: New file.
59901         * modules/unictype/bidicategory-byname: New file.
59902         * modules/unictype/bidicategory-name: New file.
59903         * modules/unictype/bidicategory-of: New file.
59904         * modules/unictype/bidicategory-test: New file.
59905         * modules/unictype/decimal-digit: New file.
59906         * modules/unictype/digit: New file.
59907         * modules/unictype/numeric: New file.
59908         * modules/unictype/mirror: New file.
59909         * modules/unictype/property-white-space: New file.
59910         * modules/unictype/property-alphabetic: New file.
59911         * modules/unictype/property-other-alphabetic: New file.
59912         * modules/unictype/property-not-a-character: New file.
59913         * modules/unictype/property-default-ignorable-code-point: New file.
59914         * modules/unictype/property-other-default-ignorable-code-point: New
59915         file.
59916         * modules/unictype/property-deprecated: New file.
59917         * modules/unictype/property-logical-order-exception: New file.
59918         * modules/unictype/property-variation-selector: New file.
59919         * modules/unictype/property-private-use: New file.
59920         * modules/unictype/property-unassigned-code-value: New file.
59921         * modules/unictype/property-uppercase: New file.
59922         * modules/unictype/property-other-uppercase: New file.
59923         * modules/unictype/property-lowercase: New file.
59924         * modules/unictype/property-other-lowercase: New file.
59925         * modules/unictype/property-titlecase: New file.
59926         * modules/unictype/property-soft-dotted: New file.
59927         * modules/unictype/property-id-start: New file.
59928         * modules/unictype/property-other-id-start: New file.
59929         * modules/unictype/property-id-continue: New file.
59930         * modules/unictype/property-other-id-continue: New file.
59931         * modules/unictype/property-xid-start: New file.
59932         * modules/unictype/property-xid-continue: New file.
59933         * modules/unictype/property-pattern-white-space: New file.
59934         * modules/unictype/property-pattern-syntax: New file.
59935         * modules/unictype/property-join-control: New file.
59936         * modules/unictype/property-grapheme-base: New file.
59937         * modules/unictype/property-grapheme-extend: New file.
59938         * modules/unictype/property-other-grapheme-extend: New file.
59939         * modules/unictype/property-grapheme-link: New file.
59940         * modules/unictype/property-bidi-control: New file.
59941         * modules/unictype/property-bidi-left-to-right: New file.
59942         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
59943         * modules/unictype/property-bidi-arabic-right-to-left: New file.
59944         * modules/unictype/property-bidi-european-digit: New file.
59945         * modules/unictype/property-bidi-eur-num-separator: New file.
59946         * modules/unictype/property-bidi-eur-num-terminator: New file.
59947         * modules/unictype/property-bidi-arabic-digit: New file.
59948         * modules/unictype/property-bidi-common-separator: New file.
59949         * modules/unictype/property-bidi-block-separator: New file.
59950         * modules/unictype/property-bidi-segment-separator: New file.
59951         * modules/unictype/property-bidi-whitespace: New file.
59952         * modules/unictype/property-bidi-non-spacing-mark: New file.
59953         * modules/unictype/property-bidi-boundary-neutral: New file.
59954         * modules/unictype/property-bidi-pdf: New file.
59955         * modules/unictype/property-bidi-embedding-or-override: New file.
59956         * modules/unictype/property-bidi-other-neutral: New file.
59957         * modules/unictype/property-hex-digit: New file.
59958         * modules/unictype/property-ascii-hex-digit: New file.
59959         * modules/unictype/property-ideographic: New file.
59960         * modules/unictype/property-unified-ideograph: New file.
59961         * modules/unictype/property-radical: New file.
59962         * modules/unictype/property-ids-binary-operator: New file.
59963         * modules/unictype/property-ids-trinary-operator: New file.
59964         * modules/unictype/property-zero-width: New file.
59965         * modules/unictype/property-space: New file.
59966         * modules/unictype/property-non-break: New file.
59967         * modules/unictype/property-iso-control: New file.
59968         * modules/unictype/property-format-control: New file.
59969         * modules/unictype/property-dash: New file.
59970         * modules/unictype/property-hyphen: New file.
59971         * modules/unictype/property-punctuation: New file.
59972         * modules/unictype/property-line-separator: New file.
59973         * modules/unictype/property-paragraph-separator: New file.
59974         * modules/unictype/property-quotation-mark: New file.
59975         * modules/unictype/property-sentence-terminal: New file.
59976         * modules/unictype/property-terminal-punctuation: New file.
59977         * modules/unictype/property-currency-symbol: New file.
59978         * modules/unictype/property-math: New file.
59979         * modules/unictype/property-other-math: New file.
59980         * modules/unictype/property-paired-punctuation: New file.
59981         * modules/unictype/property-left-of-pair: New file.
59982         * modules/unictype/property-combining: New file.
59983         * modules/unictype/property-composite: New file.
59984         * modules/unictype/property-decimal-digit: New file.
59985         * modules/unictype/property-numeric: New file.
59986         * modules/unictype/property-diacritic: New file.
59987         * modules/unictype/property-extender: New file.
59988         * modules/unictype/property-ignorable-control: New file.
59989         * modules/unictype/property-test: New file.
59990         * modules/unictype/property-byname: New file.
59991         * modules/unictype/property-all: New file.
59992         * modules/unictype/scripts: New file.
59993         * modules/unictype/scripts-all: New file.
59994         * modules/unictype/block-of: New file.
59995         * modules/unictype/block-test: New file.
59996         * modules/unictype/block-list: New file.
59997         * modules/unictype/block-all: New file.
59998         * modules/unictype/syntax-c-whitespace: New file.
59999         * modules/unictype/syntax-java-whitespace: New file.
60000         * modules/unictype/syntax-c-ident: New file.
60001         * modules/unictype/syntax-java-ident: New file.
60002         * modules/unictype/ctype-alnum: New file.
60003         * modules/unictype/ctype-alpha: New file.
60004         * modules/unictype/ctype-cntrl: New file.
60005         * modules/unictype/ctype-digit: New file.
60006         * modules/unictype/ctype-graph: New file.
60007         * modules/unictype/ctype-lower: New file.
60008         * modules/unictype/ctype-print: New file.
60009         * modules/unictype/ctype-punct: New file.
60010         * modules/unictype/ctype-space: New file.
60011         * modules/unictype/ctype-upper: New file.
60012         * modules/unictype/ctype-xdigit: New file.
60013         * modules/unictype/ctype-blank: New file.
60014         * lib/unictype/bidi_byname.c: New file.
60015         * lib/unictype/bidi_name.c: New file.
60016         * lib/unictype/bidi_of.c: New file.
60017         * lib/unictype/bidi_test.c: New file.
60018         * lib/unictype/bitmap.h: New file.
60019         * lib/unictype/block_test.c: New file.
60020         * lib/unictype/blocks.c: New file.
60021         * lib/unictype/categ_C.c: New file.
60022         * lib/unictype/categ_Cc.c: New file.
60023         * lib/unictype/categ_Cf.c: New file.
60024         * lib/unictype/categ_Cn.c: New file.
60025         * lib/unictype/categ_Co.c: New file.
60026         * lib/unictype/categ_Cs.c: New file.
60027         * lib/unictype/categ_L.c: New file.
60028         * lib/unictype/categ_Ll.c: New file.
60029         * lib/unictype/categ_Lm.c: New file.
60030         * lib/unictype/categ_Lo.c: New file.
60031         * lib/unictype/categ_Lt.c: New file.
60032         * lib/unictype/categ_Lu.c: New file.
60033         * lib/unictype/categ_M.c: New file.
60034         * lib/unictype/categ_Mc.c: New file.
60035         * lib/unictype/categ_Me.c: New file.
60036         * lib/unictype/categ_Mn.c: New file.
60037         * lib/unictype/categ_N.c: New file.
60038         * lib/unictype/categ_Nd.c: New file.
60039         * lib/unictype/categ_Nl.c: New file.
60040         * lib/unictype/categ_No.c: New file.
60041         * lib/unictype/categ_P.c: New file.
60042         * lib/unictype/categ_Pc.c: New file.
60043         * lib/unictype/categ_Pd.c: New file.
60044         * lib/unictype/categ_Pe.c: New file.
60045         * lib/unictype/categ_Pf.c: New file.
60046         * lib/unictype/categ_Pi.c: New file.
60047         * lib/unictype/categ_Po.c: New file.
60048         * lib/unictype/categ_Ps.c: New file.
60049         * lib/unictype/categ_S.c: New file.
60050         * lib/unictype/categ_Sc.c: New file.
60051         * lib/unictype/categ_Sk.c: New file.
60052         * lib/unictype/categ_Sm.c: New file.
60053         * lib/unictype/categ_So.c: New file.
60054         * lib/unictype/categ_Z.c: New file.
60055         * lib/unictype/categ_Zl.c: New file.
60056         * lib/unictype/categ_Zp.c: New file.
60057         * lib/unictype/categ_Zs.c: New file.
60058         * lib/unictype/categ_and.c: New file.
60059         * lib/unictype/categ_and_not.c: New file.
60060         * lib/unictype/categ_byname.c: New file.
60061         * lib/unictype/categ_name.c: New file.
60062         * lib/unictype/categ_none.c: New file.
60063         * lib/unictype/categ_of.c: New file.
60064         * lib/unictype/categ_or.c: New file.
60065         * lib/unictype/categ_test.c: New file.
60066         * lib/unictype/combining.c: New file.
60067         * lib/unictype/ctype_alnum.c: New file.
60068         * lib/unictype/ctype_alpha.c: New file.
60069         * lib/unictype/ctype_blank.c: New file.
60070         * lib/unictype/ctype_cntrl.c: New file.
60071         * lib/unictype/ctype_digit.c: New file.
60072         * lib/unictype/ctype_graph.c: New file.
60073         * lib/unictype/ctype_lower.c: New file.
60074         * lib/unictype/ctype_print.c: New file.
60075         * lib/unictype/ctype_punct.c: New file.
60076         * lib/unictype/ctype_space.c: New file.
60077         * lib/unictype/ctype_upper.c: New file.
60078         * lib/unictype/ctype_xdigit.c: New file.
60079         * lib/unictype/decdigit.c: New file.
60080         * lib/unictype/digit.c: New file.
60081         * lib/unictype/identsyntaxmap.h: New file.
60082         * lib/unictype/mirror.c: New file.
60083         * lib/unictype/numeric.c: New file.
60084         * lib/unictype/pr_alphabetic.c: New file.
60085         * lib/unictype/pr_ascii_hex_digit.c: New file.
60086         * lib/unictype/pr_bidi_arabic_digit.c: New file.
60087         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
60088         * lib/unictype/pr_bidi_block_separator.c: New file.
60089         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
60090         * lib/unictype/pr_bidi_common_separator.c: New file.
60091         * lib/unictype/pr_bidi_control.c: New file.
60092         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
60093         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
60094         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
60095         * lib/unictype/pr_bidi_european_digit.c: New file.
60096         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
60097         * lib/unictype/pr_bidi_left_to_right.c: New file.
60098         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
60099         * lib/unictype/pr_bidi_other_neutral.c: New file.
60100         * lib/unictype/pr_bidi_pdf.c: New file.
60101         * lib/unictype/pr_bidi_segment_separator.c: New file.
60102         * lib/unictype/pr_bidi_whitespace.c: New file.
60103         * lib/unictype/pr_byname.c: New file.
60104         * lib/unictype/pr_byname.gperf: New file.
60105         * lib/unictype/pr_combining.c: New file.
60106         * lib/unictype/pr_composite.c: New file.
60107         * lib/unictype/pr_currency_symbol.c: New file.
60108         * lib/unictype/pr_dash.c: New file.
60109         * lib/unictype/pr_decimal_digit.c: New file.
60110         * lib/unictype/pr_default_ignorable_code_point.c: New file.
60111         * lib/unictype/pr_deprecated.c: New file.
60112         * lib/unictype/pr_diacritic.c: New file.
60113         * lib/unictype/pr_extender.c: New file.
60114         * lib/unictype/pr_format_control.c: New file.
60115         * lib/unictype/pr_grapheme_base.c: New file.
60116         * lib/unictype/pr_grapheme_extend.c: New file.
60117         * lib/unictype/pr_grapheme_link.c: New file.
60118         * lib/unictype/pr_hex_digit.c: New file.
60119         * lib/unictype/pr_hyphen.c: New file.
60120         * lib/unictype/pr_id_continue.c: New file.
60121         * lib/unictype/pr_id_start.c: New file.
60122         * lib/unictype/pr_ideographic.c: New file.
60123         * lib/unictype/pr_ids_binary_operator.c: New file.
60124         * lib/unictype/pr_ids_trinary_operator.c: New file.
60125         * lib/unictype/pr_ignorable_control.c: New file.
60126         * lib/unictype/pr_iso_control.c: New file.
60127         * lib/unictype/pr_join_control.c: New file.
60128         * lib/unictype/pr_left_of_pair.c: New file.
60129         * lib/unictype/pr_line_separator.c: New file.
60130         * lib/unictype/pr_logical_order_exception.c: New file.
60131         * lib/unictype/pr_lowercase.c: New file.
60132         * lib/unictype/pr_math.c: New file.
60133         * lib/unictype/pr_non_break.c: New file.
60134         * lib/unictype/pr_not_a_character.c: New file.
60135         * lib/unictype/pr_numeric.c: New file.
60136         * lib/unictype/pr_other_alphabetic.c: New file.
60137         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
60138         * lib/unictype/pr_other_grapheme_extend.c: New file.
60139         * lib/unictype/pr_other_id_continue.c: New file.
60140         * lib/unictype/pr_other_id_start.c: New file.
60141         * lib/unictype/pr_other_lowercase.c: New file.
60142         * lib/unictype/pr_other_math.c: New file.
60143         * lib/unictype/pr_other_uppercase.c: New file.
60144         * lib/unictype/pr_paired_punctuation.c: New file.
60145         * lib/unictype/pr_paragraph_separator.c: New file.
60146         * lib/unictype/pr_pattern_syntax.c: New file.
60147         * lib/unictype/pr_pattern_white_space.c: New file.
60148         * lib/unictype/pr_private_use.c: New file.
60149         * lib/unictype/pr_punctuation.c: New file.
60150         * lib/unictype/pr_quotation_mark.c: New file.
60151         * lib/unictype/pr_radical.c: New file.
60152         * lib/unictype/pr_sentence_terminal.c: New file.
60153         * lib/unictype/pr_soft_dotted.c: New file.
60154         * lib/unictype/pr_space.c: New file.
60155         * lib/unictype/pr_terminal_punctuation.c: New file.
60156         * lib/unictype/pr_test.c: New file.
60157         * lib/unictype/pr_titlecase.c: New file.
60158         * lib/unictype/pr_unassigned_code_value.c: New file.
60159         * lib/unictype/pr_unified_ideograph.c: New file.
60160         * lib/unictype/pr_uppercase.c: New file.
60161         * lib/unictype/pr_variation_selector.c: New file.
60162         * lib/unictype/pr_white_space.c: New file.
60163         * lib/unictype/pr_xid_continue.c: New file.
60164         * lib/unictype/pr_xid_start.c: New file.
60165         * lib/unictype/pr_zero_width.c: New file.
60166         * lib/unictype/scripts.c: New file.
60167         * lib/unictype/sy_c_ident.c: New file.
60168         * lib/unictype/sy_c_whitespace.c: New file.
60169         * lib/unictype/sy_java_ident.c: New file.
60170         * lib/unictype/sy_java_whitespace.c: New file.
60171
60172         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
60173         Unicode 5.0.0.
60174         * lib/unictype/blocks.h: Likewise.
60175         * lib/unictype/categ_C.h: Likewise.
60176         * lib/unictype/categ_Cc.h: Likewise.
60177         * lib/unictype/categ_Cf.h: Likewise.
60178         * lib/unictype/categ_Cn.h: Likewise.
60179         * lib/unictype/categ_Co.h: Likewise.
60180         * lib/unictype/categ_Cs.h: Likewise.
60181         * lib/unictype/categ_L.h: Likewise.
60182         * lib/unictype/categ_Ll.h: Likewise.
60183         * lib/unictype/categ_Lm.h: Likewise.
60184         * lib/unictype/categ_Lo.h: Likewise.
60185         * lib/unictype/categ_Lt.h: Likewise.
60186         * lib/unictype/categ_Lu.h: Likewise.
60187         * lib/unictype/categ_M.h: Likewise.
60188         * lib/unictype/categ_Mc.h: Likewise.
60189         * lib/unictype/categ_Me.h: Likewise.
60190         * lib/unictype/categ_Mn.h: Likewise.
60191         * lib/unictype/categ_N.h: Likewise.
60192         * lib/unictype/categ_Nd.h: Likewise.
60193         * lib/unictype/categ_Nl.h: Likewise.
60194         * lib/unictype/categ_No.h: Likewise.
60195         * lib/unictype/categ_P.h: Likewise.
60196         * lib/unictype/categ_Pc.h: Likewise.
60197         * lib/unictype/categ_Pd.h: Likewise.
60198         * lib/unictype/categ_Pe.h: Likewise.
60199         * lib/unictype/categ_Pf.h: Likewise.
60200         * lib/unictype/categ_Pi.h: Likewise.
60201         * lib/unictype/categ_Po.h: Likewise.
60202         * lib/unictype/categ_Ps.h: Likewise.
60203         * lib/unictype/categ_S.h: Likewise.
60204         * lib/unictype/categ_Sc.h: Likewise.
60205         * lib/unictype/categ_Sk.h: Likewise.
60206         * lib/unictype/categ_Sm.h: Likewise.
60207         * lib/unictype/categ_So.h: Likewise.
60208         * lib/unictype/categ_Z.h: Likewise.
60209         * lib/unictype/categ_Zl.h: Likewise.
60210         * lib/unictype/categ_Zp.h: Likewise.
60211         * lib/unictype/categ_Zs.h: Likewise.
60212         * lib/unictype/categ_of.h: Likewise.
60213         * lib/unictype/combining.h: Likewise.
60214         * lib/unictype/ctype_alnum.h: Likewise.
60215         * lib/unictype/ctype_alpha.h: Likewise.
60216         * lib/unictype/ctype_blank.h: Likewise.
60217         * lib/unictype/ctype_cntrl.h: Likewise.
60218         * lib/unictype/ctype_digit.h: Likewise.
60219         * lib/unictype/ctype_graph.h: Likewise.
60220         * lib/unictype/ctype_lower.h: Likewise.
60221         * lib/unictype/ctype_print.h: Likewise.
60222         * lib/unictype/ctype_punct.h: Likewise.
60223         * lib/unictype/ctype_space.h: Likewise.
60224         * lib/unictype/ctype_upper.h: Likewise.
60225         * lib/unictype/ctype_xdigit.h: Likewise.
60226         * lib/unictype/decdigit.h: Likewise.
60227         * lib/unictype/digit.h: Likewise.
60228         * lib/unictype/mirror.h: Likewise.
60229         * lib/unictype/numeric.h: Likewise.
60230         * lib/unictype/pr_alphabetic.h: Likewise.
60231         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
60232         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
60233         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
60234         * lib/unictype/pr_bidi_block_separator.h: Likewise.
60235         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
60236         * lib/unictype/pr_bidi_common_separator.h: Likewise.
60237         * lib/unictype/pr_bidi_control.h: Likewise.
60238         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
60239         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
60240         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
60241         * lib/unictype/pr_bidi_european_digit.h: Likewise.
60242         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
60243         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
60244         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
60245         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
60246         * lib/unictype/pr_bidi_pdf.h: Likewise.
60247         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
60248         * lib/unictype/pr_bidi_whitespace.h: Likewise.
60249         * lib/unictype/pr_combining.h: Likewise.
60250         * lib/unictype/pr_composite.h: Likewise.
60251         * lib/unictype/pr_currency_symbol.h: Likewise.
60252         * lib/unictype/pr_dash.h: Likewise.
60253         * lib/unictype/pr_decimal_digit.h: Likewise.
60254         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
60255         * lib/unictype/pr_deprecated.h: Likewise.
60256         * lib/unictype/pr_diacritic.h: Likewise.
60257         * lib/unictype/pr_extender.h: Likewise.
60258         * lib/unictype/pr_format_control.h: Likewise.
60259         * lib/unictype/pr_grapheme_base.h: Likewise.
60260         * lib/unictype/pr_grapheme_extend.h: Likewise.
60261         * lib/unictype/pr_grapheme_link.h: Likewise.
60262         * lib/unictype/pr_hex_digit.h: Likewise.
60263         * lib/unictype/pr_hyphen.h: Likewise.
60264         * lib/unictype/pr_id_continue.h: Likewise.
60265         * lib/unictype/pr_id_start.h: Likewise.
60266         * lib/unictype/pr_ideographic.h: Likewise.
60267         * lib/unictype/pr_ids_binary_operator.h: Likewise.
60268         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
60269         * lib/unictype/pr_ignorable_control.h: Likewise.
60270         * lib/unictype/pr_iso_control.h: Likewise.
60271         * lib/unictype/pr_join_control.h: Likewise.
60272         * lib/unictype/pr_left_of_pair.h: Likewise.
60273         * lib/unictype/pr_line_separator.h: Likewise.
60274         * lib/unictype/pr_logical_order_exception.h: Likewise.
60275         * lib/unictype/pr_lowercase.h: Likewise.
60276         * lib/unictype/pr_math.h: Likewise.
60277         * lib/unictype/pr_non_break.h: Likewise.
60278         * lib/unictype/pr_not_a_character.h: Likewise.
60279         * lib/unictype/pr_numeric.h: Likewise.
60280         * lib/unictype/pr_other_alphabetic.h: Likewise.
60281         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
60282         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
60283         * lib/unictype/pr_other_id_continue.h: Likewise.
60284         * lib/unictype/pr_other_id_start.h: Likewise.
60285         * lib/unictype/pr_other_lowercase.h: Likewise.
60286         * lib/unictype/pr_other_math.h: Likewise.
60287         * lib/unictype/pr_other_uppercase.h: Likewise.
60288         * lib/unictype/pr_paired_punctuation.h: Likewise.
60289         * lib/unictype/pr_paragraph_separator.h: Likewise.
60290         * lib/unictype/pr_pattern_syntax.h: Likewise.
60291         * lib/unictype/pr_pattern_white_space.h: Likewise.
60292         * lib/unictype/pr_private_use.h: Likewise.
60293         * lib/unictype/pr_punctuation.h: Likewise.
60294         * lib/unictype/pr_quotation_mark.h: Likewise.
60295         * lib/unictype/pr_radical.h: Likewise.
60296         * lib/unictype/pr_sentence_terminal.h: Likewise.
60297         * lib/unictype/pr_soft_dotted.h: Likewise.
60298         * lib/unictype/pr_space.h: Likewise.
60299         * lib/unictype/pr_terminal_punctuation.h: Likewise.
60300         * lib/unictype/pr_titlecase.h: Likewise.
60301         * lib/unictype/pr_unassigned_code_value.h: Likewise.
60302         * lib/unictype/pr_unified_ideograph.h: Likewise.
60303         * lib/unictype/pr_uppercase.h: Likewise.
60304         * lib/unictype/pr_variation_selector.h: Likewise.
60305         * lib/unictype/pr_white_space.h: Likewise.
60306         * lib/unictype/pr_xid_continue.h: Likewise.
60307         * lib/unictype/pr_xid_start.h: Likewise.
60308         * lib/unictype/pr_zero_width.h: Likewise.
60309         * lib/unictype/scripts.h: Likewise.
60310         * lib/unictype/scripts_byname.gperf: Likewise.
60311         * lib/unictype/sy_c_ident.h: Likewise.
60312         * lib/unictype/sy_c_whitespace.h: Likewise.
60313         * lib/unictype/sy_java_ident.h: Likewise.
60314         * lib/unictype/sy_java_whitespace.h: Likewise.
60315
60316         * lib/unictype/Makefile: New file.
60317         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
60318         glibc.
60319         * lib/unictype/3level.h: New file, copied from glibc.
60320         * lib/unictype/3levelbit.h: New file.
60321
60322 2007-11-11  Bruno Haible  <bruno@clisp.org>
60323
60324         * modules/gperf: New file.
60325         * modules/iconv_open (Depends-on): Add it.
60326         (Makefile.am): Remove the GPERF definition.
60327
60328 2007-11-11  Bruno Haible  <bruno@clisp.org>
60329
60330         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
60331         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
60332
60333 2007-11-11  Bruno Haible  <bruno@clisp.org>
60334
60335         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
60336         (usage): Remove function.
60337
60338 2007-11-11  Bruno Haible  <bruno@clisp.org>
60339
60340         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
60341         gl_FUNC_CEILF_LIBS.
60342         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
60343         gl_FUNC_CEIL_LIBS.
60344         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
60345         gl_FUNC_CEILL_LIBS.
60346         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
60347         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
60348         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
60349
60350 2007-11-11  Bruno Haible  <bruno@clisp.org>
60351
60352         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
60353         roundf were declared but do not exist on functions.
60354         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
60355         roundl were declared but do not exist on functions.
60356         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
60357         HAVE_FLOORL_AND_CEILL, respectively.
60358         Needed for Sun C on Solaris 10.
60359
60360 2007-11-11  Bruno Haible  <bruno@clisp.org>
60361
60362         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
60363         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
60364         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
60365         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
60366         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
60367         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
60368         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
60369         HAVE_DECL_ROUNDF.
60370         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
60371         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
60372         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
60373         of HAVE_DECL_ROUND*.
60374         * modules/math (Makefile.am): Update.
60375
60376 2007-11-10  Bruno Haible  <bruno@clisp.org>
60377
60378         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
60379         ptrdiff_t as m4/intl.m4.
60380
60381 2007-11-10  Jim Meyering  <meyering@redhat.com>
60382
60383         Avoid link failure for the argmatch test.
60384         * tests/test-argmatch.c (usage): Define function to avoid a link
60385         failure: argmatch_die requires a usage function.
60386
60387 2007-11-09  Bruno Haible  <bruno@clisp.org>
60388
60389         * doc/functions/snprintf.texi: Mention BeOS deficiency.
60390         * doc/functions/vsnprintf.texi: Likewise.
60391         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
60392         with a size argument < 2.
60393
60394 2007-11-09  Bruno Haible  <bruno@clisp.org>
60395
60396         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
60397         buffer. Fixes an inefficiency introduced on 2007-11-03.
60398
60399 2007-11-09  Bruno Haible  <bruno@clisp.org>
60400
60401         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
60402         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
60403
60404 2007-11-08  Jim Meyering  <meyering@redhat.com>
60405
60406         Change cache variable name prefix "jm_" to "gl_" everywhere.
60407         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
60408         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
60409         * m4/uptime.m4: s/gl_/jm_/
60410
60411 2007-11-07  Bruno Haible  <bruno@clisp.org>
60412
60413         Update to GNU gettext 0.17.
60414         * m4/intl.m4: Update to GNU gettext 0.17.
60415         * m4/po.m4: Likewise.
60416         * modules/gettext (Files): Remove m4/ulonglong.m4.
60417         (configure.ac): Require gettext infrastructure from version 0.17.
60418
60419 2007-11-06  Bruno Haible  <bruno@clisp.org>
60420
60421         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
60422         symbolic values are not defined in a public header.
60423         * lib/freadable.c (freadable) [QNX]: Likewise.
60424         * lib/freadahead.c (freadahead) [QNX]: Likewise.
60425         * lib/freading.c (freading) [QNX]: Likewise.
60426         * lib/fseterr.c (fseterr) [QNX]: Likewise.
60427         * lib/fwritable.c (fwritable) [QNX]: Likewise.
60428         * lib/fwriting.c (fwriting) [QNX]: Likewise.
60429         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
60430         Reported by Alain Magloire.
60431
60432         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
60433
60434 2007-11-05  Bruno Haible  <bruno@clisp.org>
60435
60436         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
60437         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
60438         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
60439         Reported by Eric Blake.
60440
60441 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60442             Bruno Haible  <bruno@clisp.org>
60443
60444         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
60445         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
60446         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
60447         (malloc): Undefine also before including <stdlib.h>.
60448         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
60449         Needed on OSF/1 4.0.
60450
60451 2007-11-05  Jim Meyering  <meyering@redhat.com>
60452
60453         git-version-gen: sync from coreutils.
60454         * build-aux/git-version-gen: Add comments.
60455         Change the first '-' to '.' in the snapshot version string,
60456         e.g., 6.9-377-08144 -> 6.9.377-08144
60457         Remove first parameter.
60458         Don't declare a version "-dirty" merely because a time
60459         stamp has changed.
60460
60461 2007-11-04  Bruno Haible  <bruno@clisp.org>
60462
60463         * lib/lock.h: Protect all macro definitions containing an 'if'
60464         statement through a "do { ... } while (0)".
60465         * lib/tls.h: Likewise.
60466
60467 2007-11-04  Bruno Haible  <bruno@clisp.org>
60468
60469         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
60470
60471 2007-11-04  Bruno Haible  <bruno@clisp.org>
60472
60473         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
60474         * modules/fprintf-posix (Depends-on): Add nocrash.
60475         * modules/snprintf-posix (Depends-on): Likewise.
60476         * modules/sprintf-posix (Depends-on): Likewise.
60477         * modules/vasnprintf-posix (Depends-on): Likewise.
60478         * modules/vasprintf-posix (Depends-on): Likewise.
60479         * modules/vfprintf-posix (Depends-on): Likewise.
60480         * modules/vsnprintf-posix (Depends-on): Likewise.
60481         * modules/vsprintf-posix (Depends-on): Likewise.
60482         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
60483         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
60484         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
60485         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
60486         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
60487         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
60488         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
60489
60490 2007-11-04  Bruno Haible  <bruno@clisp.org>
60491
60492         * modules/nocrash: New file.
60493         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
60494         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
60495
60496 2007-11-04  Bruno Haible  <bruno@clisp.org>
60497
60498         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
60499         precision handling.
60500         * tests/test-vasprintf-posix.c (test_function): Likewise.
60501         * tests/test-snprintf-posix.h (test_function): Likewise.
60502         * tests/test-sprintf-posix.h (test_function): Likewise.
60503
60504         Fix *printf behaviour for large precisions on mingw and BeOS.
60505         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
60506         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
60507         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
60508         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
60509         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60510         gl_PRINTF_PRECISION and test its result. Invoke
60511         gl_PREREQ_VASNPRINTF_PRECISION.
60512         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60513         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60514         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60515         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60516         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60517         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60518         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60519         * doc/functions/fprintf.texi: Update.
60520         * doc/functions/printf.texi: Update.
60521         * doc/functions/snprintf.texi: Update.
60522         * doc/functions/sprintf.texi: Update.
60523         * doc/functions/vfprintf.texi: Update.
60524         * doc/functions/vprintf.texi: Update.
60525         * doc/functions/vsnprintf.texi: Update.
60526         * doc/functions/vsprintf.texi: Update.
60527
60528 2007-11-04  Bruno Haible  <bruno@clisp.org>
60529
60530         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
60531
60532 2007-11-04  Bruno Haible  <bruno@clisp.org>
60533
60534         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
60535         Reported by Sylvain Beucler <beuc@gnu.org>.
60536
60537 2007-11-03  Bruno Haible  <bruno@clisp.org>
60538
60539         * tests/test-fprintf-posix2.sh: New file.
60540         * tests/test-fprintf-posix2.c: New file.
60541         * modules/fprintf-posix-tests (Files): Add them.
60542         (TESTS): Add test-fprintf-posix2.sh.
60543         (configure.ac): Check for getrlimit and setrlimit.
60544         (check_PROGRAMS): Add test-fprintf-posix2.
60545
60546         * tests/test-printf-posix2.sh: New file.
60547         * tests/test-printf-posix2.c: New file.
60548         * modules/printf-posix-tests (Files): Add them.
60549         (TESTS): Add test-printf-posix2.sh.
60550         (configure.ac): Check for getrlimit and setrlimit.
60551         (check_PROGRAMS): Add test-printf-posix2.
60552
60553         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
60554         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
60555         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
60556         (decode_double): New function, copied from decode_long_double.
60557         (scale10_round_decimal_decoded): New function, extracted from
60558         scale10_round_decimal_long_double.
60559         (scale10_round_decimal_long_double): Use it.
60560         (scale10_round_decimal_double): New function.
60561         (floorlog10): New function.
60562         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
60563         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
60564         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
60565         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60566         gl_PRINTF_ENOMEM and test its result. Invoke
60567         gl_PREREQ_VASNPRINTF_ENOMEM.
60568         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60569         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60570         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60571         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60572         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60573         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60574         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60575         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
60576         * modules/snprintf-posix (Depends-on): Likewise.
60577         * modules/sprintf-posix (Depends-on): Likewise.
60578         * modules/vasnprintf-posix (Depends-on): Likewise.
60579         * modules/vasprintf-posix (Depends-on): Likewise.
60580         * modules/vfprintf-posix (Depends-on): Likewise.
60581         * modules/vsnprintf-posix (Depends-on): Likewise.
60582         * modules/vsprintf-posix (Depends-on): Likewise.
60583         * doc/functions/fprintf.texi: Update.
60584         * doc/functions/printf.texi: Update.
60585         * doc/functions/snprintf.texi: Update.
60586         * doc/functions/sprintf.texi: Update.
60587         * doc/functions/vfprintf.texi: Update.
60588         * doc/functions/vprintf.texi: Update.
60589         * doc/functions/vsnprintf.texi: Update.
60590         * doc/functions/vsprintf.texi: Update.
60591
60592 2007-11-03  Bruno Haible  <bruno@clisp.org>
60593
60594         * modules/frexp-nolibm-tests: New file.
60595
60596         * modules/frexp-nolibm: New file.
60597         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
60598
60599 2007-11-03  Bruno Haible  <bruno@clisp.org>
60600
60601         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
60602         value is C99 compliant.
60603         Needed for OSF/1 5.1.
60604
60605 2007-11-03  Bruno Haible  <bruno@clisp.org>
60606
60607         Fix out-of-memory handling of vasnprintf.
60608         * lib/printf-parse.c: Include <errno.h>.
60609         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
60610         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
60611         is already set.
60612
60613 2007-11-02  Eric Blake  <ebb9@byu.net>
60614
60615         Fix tests on cygwin.
60616         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
60617
60618 2007-11-01  Bruno Haible  <bruno@clisp.org>
60619
60620         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
60621         warning.
60622         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
60623         needed for POSIX compatibility.
60624
60625 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
60626
60627         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
60628         for compatibility with GNU.
60629
60630 2007-11-01  Bruno Haible  <bruno@clisp.org>
60631
60632         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
60633         (putenv): Renamed from rpl_putenv. Change argument type from
60634         'const char *' to 'char *'.
60635         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
60636         of defining putenv in config.h, just set REPLACE_PUTENV.
60637         * modules/putenv (Depends-on): Add stdlib.
60638         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
60639         (Include): Use <stdlib.h>.
60640         * lib/stdlib.in.h (putenv): New declaration.
60641         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
60642         REPLACE_PUTENV.
60643         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
60644         REPLACE_PUTENV.
60645         Needed for MacOS X 10.5.0.
60646         Reported by Peter O'Gorman <peter@pogma.com>.
60647
60648 2007-11-01  Jim Meyering  <meyering@redhat.com>
60649
60650         Treat an empty date string exactly like "0".
60651         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
60652         if the remaining date string (to be parsed) is empty, use "0".
60653         Reported by Mischa Molhoek and discussed in this thread:
60654         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
60655
60656 2007-10-31  Bruno Haible  <bruno@clisp.org>
60657
60658         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
60659         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
60660         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
60661         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
60662         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
60663         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
60664
60665 2007-10-31  Bruno Haible  <bruno@clisp.org>
60666
60667         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
60668         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
60669         (AC_TYPE_LONG_LONG_INT): Use it.
60670         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
60671         it as well.
60672         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
60673         to m4/longlong.m4.
60674         * modules/stdint (Files): Remove m4/ulonglong.m4.
60675         * modules/strtoull (Files): Use m4/longlong.m4 instead of
60676         m4/ulonglong.m4.
60677         * modules/strtoumax (Files): Likewise.
60678
60679 2007-10-30  Bruno Haible  <bruno@clisp.org>
60680
60681         * modules/xvasprintf-posix: New file.
60682         Suggested by Eric Blake.
60683
60684 2007-10-30  Bruno Haible  <bruno@clisp.org>
60685
60686         * modules/xprintf-posix-tests: New file.
60687         * tests/test-xprintf-posix.sh: New file.
60688         * tests/test-xprintf-posix.c: New file.
60689         * tests/test-xfprintf-posix.c: New file.
60690
60691         * modules/xprintf-posix: New file.
60692
60693 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60694
60695         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
60696         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
60697         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
60698
60699 2007-10-29  Bruno Haible  <bruno@clisp.org>
60700
60701         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
60702         contain the special marker '_cv_'.
60703         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
60704         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
60705         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
60706         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
60707         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
60708         Reported by Ralf Wildenhues.
60709
60710 2007-10-29  Bruno Haible  <bruno@clisp.org>
60711
60712         * gnulib-tool (func_import): When --lgpl is not specified, set
60713         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
60714         GPLv3.
60715         Reported by Simon Josefsson.
60716
60717 2007-10-28  Bruno Haible  <bruno@clisp.org>
60718
60719         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
60720         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
60721         HAVE_DECL_ISFINITE.
60722         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
60723         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
60724         HAVE_DECL_ISFINITE.
60725
60726 2007-10-28  Bruno Haible  <bruno@clisp.org>
60727
60728         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
60729         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
60730
60731 2007-10-28  Bruno Haible  <bruno@clisp.org>
60732
60733         Fix link errors with Sun C 5.0 on Solaris 10.
60734         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
60735         function is declared but not present in the compiler's libm.
60736         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
60737         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
60738         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
60739         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
60740         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
60741         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
60742         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
60743         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
60744         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
60745         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
60746         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
60747         HAVE_DECL_FLOORL.
60748
60749 2007-10-28  Bruno Haible  <bruno@clisp.org>
60750
60751         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
60752         gl_FUNC_FLOORL. Cache the result.
60753         (gl_FUNC_FLOORL): Use it.
60754         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
60755         gl_FUNC_CEILL. Cache the result.
60756         (gl_FUNC_CEILL): Use it.
60757
60758         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
60759         gl_FUNC_FLOOR. Cache the result.
60760         (gl_FUNC_FLOOR): Use it.
60761         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
60762         gl_FUNC_CEIL. Cache the result.
60763         (gl_FUNC_CEIL): Use it.
60764
60765         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
60766         gl_FUNC_FLOORF. Cache the result.
60767         (gl_FUNC_FLOORF): Use it.
60768         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
60769         gl_FUNC_CEILF. Cache the result.
60770         (gl_FUNC_CEILF): Use it.
60771
60772 2007-10-28  Bruno Haible  <bruno@clisp.org>
60773
60774         * gnulib-tool: Allow specifying the LGPL version number through
60775         --lgpl=2 or --lgpl=3.
60776         (func_usage): Document --lgpl with argument.
60777         Handle --lgpl=... arguments.
60778         (func_import): Recognize also gl_LGPL calls with an argument. When
60779         --lgpl=2 is used and the module's license is just LGPL, report an
60780         error. Set sed_transform_lib_file according to the lgpl variable. In
60781         the generated files, use --lgpl or gl_LGPL invocations with argument,
60782         if necessary.
60783         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
60784         an LGPv2+ license.
60785         * doc/gnulib-tool.texi (Modified imports): Update explanation of
60786         gl_LGPL macro.
60787
60788 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60789             Bruno Haible  <bruno@clisp.org>
60790
60791         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
60792         (u16_uctomb_aux): Likewise.
60793         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
60794         !HAVE_INLINE.
60795         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
60796
60797 2007-10-28  Bruno Haible  <bruno@clisp.org>
60798
60799         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
60800         Invoke AM_GETTEXT_OPTION if it exists.
60801         * modules/vasprintf: Likewise.
60802         * modules/verror: Likewise.
60803         * modules/xprintf: Likewise.
60804         * modules/xvasprintf: Likewise.
60805
60806 2007-10-27  Ben Pfaff  <blp@gnu.org>
60807
60808         * lib/math.in.h: Define isfinite macro and prototypes for
60809         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
60810         implementations.
60811         * m4/math_h.m4: New substitutions for isfinite module.
60812         * lib/isfinite.c: New file.
60813         * m4/isfinite.m4: New file.
60814         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
60815         * modules/isfinite: New file.
60816         * modules/isfinite-tests: New file.
60817         * tests/tests-isfinite.c: New file.
60818         * doc/functions/isfinite.texi: Mention isfinite module.
60819         * MODULES.html.sh: Mention new module.
60820
60821 2007-10-27  Ben Pfaff  <blp@gnu.org>
60822
60823         Ralf Wildenhues reported that Tru64 4.0D declares the round
60824         functions but does not have definitions.
60825         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
60826         cannot be found in any library, set the output variable to
60827         "missing" instead of "".
60828         * m4/round.m4: Also use our substitute if we cannot find round in
60829         any library, even if it is declared.
60830         * m4/roundf.m4: Likewise for roundf.
60831         * m4/roundl.m4: Likewise for roundl.
60832         * lib/math.in.h: Undefine roundf, round, roundl before defining
60833         their replacements, to allow for hypothetical systems where these
60834         may be defined as macros but not available in libraries.
60835
60836 2007-10-27  Bruno Haible  <bruno@clisp.org>
60837
60838         * doc/gnulib.texi: Invoke @firstparagraphindent.
60839         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
60840         changes in gnulib.
60841         (Source changes): New section.
60842
60843 2007-10-26  Bruno Haible  <bruno@clisp.org>
60844
60845         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
60846         borrowed from autoconf.
60847
60848 2007-10-26  Bruno Haible  <bruno@clisp.org>
60849
60850         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
60851         strerror returned the empty string. Needed on HP-UX 11.00.
60852
60853 2007-10-24  Micah Cowan  <micah@cowan.name>
60854
60855         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
60856         * build-aux/bootstrap: Remove support for now-unnecessary option,
60857         --cvs-user, and envvars CVS_USER, CVS_RSH.
60858
60859 2007-10-24  Jim Meyering  <meyering@redhat.com>
60860
60861         Avoid diagnostics from sha1sum when there is no cached checksum.
60862         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
60863         if the po.s1 file hasn't been created yet.
60864
60865         * build-aux/bootstrap: Sync from coreutils:
60866         2007-10-24  Jim Meyering  <meyering@redhat.com>
60867         Get gnulib from the git repository, not from an obsolete cvs one.
60868         * build-aux/bootstrap: Suggestion from Micah Cowan.
60869         2007-10-04  Jim Meyering  <jim@meyering.net>
60870         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
60871         (update_po_files): Work also when there are no .po files in po/.
60872
60873 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
60874
60875         * README: Append ".git" to git and cg examples.
60876         Problem reported by Benoit Sigoure.
60877
60878 2007-10-23  Micah Cowan  <micah@cowan.name>
60879
60880         * users.txt: Add wget.
60881
60882 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60883
60884         Fix linking of some unistdio tests on FreeBSD.
60885         * modules/unistdio/u16-vsnprintf-tests
60886         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
60887         * modules/unistdio/u16-vsprintf-tests
60888         (test_u16_vsnprintf1_LDADD): Likewise.
60889         * modules/unistdio/u32-vsnprintf-tests
60890         (test_u32_vsnprintf1_LDADD): Likewise.
60891         * modules/unistdio/u32-vsprintf-tests
60892         (test_u32_vsprintf1_LDADD): Likewise.
60893         * modules/unistdio/u8-vsnprintf-tests
60894         (test_u8_vsnprintf1_LDADD): Likewise.
60895         * modules/unistdio/u8-vsprintf-tests
60896         (test_u8_vsprintf1_LDADD): Likewise.
60897         * modules/unistdio/ulc-vsnprintf-tests
60898         (test_ulc_vsnprintf1_LDADD): Likewise.
60899         * modules/unistdio/ulc-vsprintf-tests
60900         (test_ulc_vsprintf1_LDADD): Likewise.
60901
60902         Fix linking of some uniconv tests on FreeBSD.
60903         * modules/uniconv/u16-conv-from-enc-tests
60904         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
60905         * modules/uniconv/u16-conv-to-enc-tests
60906         (test_u16_conv_to_enc_LDADD): Likewise.
60907         * modules/uniconv/u16-strconv-from-enc-tests
60908         (test_u16_strconv_from_enc_LDADD): Likewise.
60909         * modules/uniconv/u16-strconv-to-enc-tests
60910         (test_u16_strconv_to_enc_LDADD): Likewise.
60911         * modules/uniconv/u32-conv-from-enc-tests
60912         (test_u32_conv_from_enc_LDADD): Likewise.
60913         * modules/uniconv/u32-conv-to-enc-tests
60914         (test_u32_conv_to_enc_LDADD): Likewise.
60915         * modules/uniconv/u32-strconv-from-enc-tests
60916         (test_u32_strconv_from_enc_LDADD): Likewise.
60917         * modules/uniconv/u32-strconv-to-enc-tests
60918         (test_u32_strconv_to_enc_LDADD): Likewise.
60919         * modules/uniconv/u8-conv-from-enc-tests
60920         (test_u8_conv_from_enc_LDADD): Likewise.
60921         * modules/uniconv/u8-conv-to-enc-tests
60922         (test_u8_conv_to_enc_LDADD): Likewise.
60923         * modules/uniconv/u8-strconv-from-enc-tests
60924         (test_u8_strconv_from_enc_LDADD): Likewise.
60925         * modules/uniconv/u8-strconv-to-enc-tests
60926         (test_u8_strconv_to_enc_LDADD): Likewise.
60927
60928 2007-10-22  Bruno Haible  <bruno@clisp.org>
60929
60930         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
60931         size.
60932
60933 2007-10-22  Eric Blake  <ebb9@byu.net>
60934
60935         Tweak x*printf documentation.
60936         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
60937         variable name and comments.
60938         Suggested by Bruno Haible.
60939
60940 2007-10-22  Bruno Haible  <bruno@clisp.org>
60941
60942         * lib/acl.c (copy_acl): Fix file name in comment.
60943
60944 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
60945
60946         Fix Tru64 problem with stdbool.h.
60947         * lib/stdbool.in.h (false, true):
60948         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
60949         Don't declare as an enum in this situation; it runs afoul of Tru64.
60950         Problem reported by Steven M. Schweda in
60951         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
60952
60953 2007-10-22  Eric Blake  <ebb9@byu.net>
60954
60955         Also wrap vf?printf.
60956         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
60957         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
60958         (xvprintf, xvfprintf): New functions.
60959
60960 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60961
60962         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
60963         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
60964
60965         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
60966         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
60967
60968 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
60969
60970         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
60971         by Bruno Haible.
60972
60973 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60974
60975         * lib/getloadavg.c
60976         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
60977         Undef `sys' after including sys/table.h, for Tru64 4.0D.
60978
60979         * tests/test-i-ring.c: Work for C89.
60980
60981 2007-10-22  Bruno Haible  <bruno@clisp.org>
60982
60983         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
60984         -1u, in preprocessor expression, so that we don't test for the bug
60985         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
60986         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
60987
60988 2007-10-22  Eric Blake  <ebb9@byu.net>
60989
60990         * tests/test-yesno.sh: Silence stderr during test.
60991
60992 2007-10-22  Simon Josefsson  <simon@josefsson.org>
60993
60994         * modules/crypto/gc-camellia: New file.
60995
60996         * m4/gc-camellia.m4: New file.
60997
60998         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
60999
61000         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
61001
61002 2007-10-22  Simon Josefsson  <simon@josefsson.org>
61003
61004         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
61005         --help to stdout.  Reported by sms@antinode.org (Steven
61006         M. Schweda).
61007
61008 2007-10-22  Simon Josefsson  <simon@josefsson.org>
61009
61010         * users.txt: Fix link to libksba.
61011
61012 2007-10-21  Ben Pfaff  <blp@gnu.org>
61013
61014         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
61015         round.c roundf implementation that depends on floorf and ceilf to
61016         be tested unconditionally.
61017
61018 2007-10-21  Ben Pfaff  <blp@gnu.org>
61019
61020         * m4/check-libm-func.m4: Removed.
61021         * m4/check-math-lib.m4: New file.
61022         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
61023         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
61024         definition and lack of AC_LIBOBJ([roundf]).
61025         * m4/roundl.m4: Ditto, and similarly for roundl.
61026         * modules/round: Reference new m4 file.
61027         * modules/roundf: Ditto.
61028         * modules/roundl: Ditto.
61029         * tests/test-round2.c (main): Use ROUND instead of round.
61030         Bug report from Bruno Haible.
61031
61032 2007-10-21  Bruno Haible  <bruno@clisp.org>
61033
61034         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
61035         context.
61036
61037 2007-10-21  Bruno Haible  <bruno@clisp.org>
61038
61039         * tests/test-wcwidth.c (main): Allow negative result for some control
61040         characters.
61041
61042         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
61043         Needed on OSF/1 5.1.
61044
61045 2007-10-21  Bruno Haible  <bruno@clisp.org>
61046
61047         * tests/test-floorf1.c: Include isnanf.h.
61048         (main): Use isnanf() instead of isnan().
61049         * tests/test-ceilf1.c: Include isnanf.h.
61050         (main): Use isnanf() instead of isnan().
61051         * tests/test-truncf1.c: Include isnanf.h.
61052         (main): Use isnanf() instead of isnan().
61053         * tests/test-roundf1.c: Include isnanf.h.
61054         (main): Use isnanf() instead of isnan().
61055
61056 2007-10-21  Eric Blake  <ebb9@byu.net>
61057
61058         * users.txt: Update URL for m4.
61059
61060 2007-10-21  Bruno Haible  <bruno@clisp.org>
61061
61062         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
61063
61064 2007-10-21  Bruno Haible  <bruno@clisp.org>
61065
61066         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
61067         Git's management files if the CVS files are not present.
61068
61069 2007-10-20  Bruno Haible  <bruno@clisp.org>
61070
61071         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
61072         gcc-3.4.x.
61073
61074 2007-10-20  Ben Pfaff  <blp@gnu.org>
61075
61076         * lib/math.in.h: Declare round, roundf, roundl if we are providing
61077         implementations.
61078         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
61079         * lib/round.c: New file.
61080         * lib/roundf.c: New file.
61081         * lib/roundl.c: New file.
61082         * m4/round.m4: New file.
61083         * m4/roundf.m4: New file.
61084         * m4/roundl.m4: New file.
61085         * m4/check-libm-func-m4: New file.
61086         * modules/math: Replace round, roundf, roundl related @VARS@ in
61087         math.in.h.
61088         * modules/round: New file.
61089         * modules/round-tests: New file.
61090         * modules/roundf: New file.
61091         * modules/roundf-tests: New file.
61092         * modules/roundl: New file.
61093         * modules/roundl-tests: New file.
61094         * tests/test-round1.c: New file.
61095         * tests/test-round2.c: New file.
61096         * tests/test-roundf1.c: New file.
61097         * tests/test-roundf2.c: New file.
61098         * tests/test-roundl.c: New file.
61099         * doc/functions/round.texi: Mention round module.
61100         * doc/functions/roundf.texi: Mention roundf module.
61101         * doc/functions/roundl.texi: Mention roundl module.
61102         * MODULES.html.sh: Mention new modules.
61103         Thanks to Bruno Haible for suggestions.
61104
61105 2007-10-20  Jim Meyering  <meyering@redhat.com>
61106
61107         * lib/xprintf.c: Include <config.h> unconditionally.
61108
61109         Change xprintf's license to GPL.
61110         * modules/xprintf (License): s/LGPL/GPL/, since this module
61111         depends on modules (exit and exitfail) which are GPL.
61112         Suggestion from Bruno Haible.
61113
61114         xprintf fixes.
61115         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
61116         Use a clearer diagnostic.
61117         Patch from Bruno Haible.
61118
61119 2007-10-20  Bruno Haible  <bruno@clisp.org>
61120
61121         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
61122         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
61123         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61124
61125 2007-10-20  Bruno Haible  <bruno@clisp.org>
61126
61127         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
61128         precision in the comparison result > x - 1 or similar.
61129         * tests/test-ceilf2.c (correct_result_p): Likewise.
61130         * tests/test-truncf2.c (correct_result_p): Likewise.
61131         * tests/test-trunc2.c (correct_result_p): Likewise.
61132         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61133
61134 2007-10-20  Bruno Haible  <bruno@clisp.org>
61135
61136         * modules/ceil: New file.
61137         * m4/ceil.m4: New file.
61138         * doc/functions/ceil.texi: Mention the 'ceil' module.
61139
61140 2007-10-20  Bruno Haible  <bruno@clisp.org>
61141
61142         * modules/floor: New file.
61143         * m4/floor.m4: New file.
61144         * doc/functions/floor.texi: Mention the 'floor' module.
61145
61146 2007-10-20  Bruno Haible  <bruno@clisp.org>
61147
61148         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
61149         of %a.
61150         * modules/floorf-tests (Depends-on): Likewise.
61151         * modules/truncf-tests (Depends-on): Likewise.
61152         * modules/trunc-tests (Depends-on): Likewise.
61153         Reported by Ben Pfaff.
61154
61155 2007-10-19  Jim Meyering  <meyering@redhat.com>
61156
61157         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
61158         Don't bother testing specific errno values.  Just test ferror.
61159
61160         New module: xprintf
61161         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
61162
61163 2007-10-19  Bruno Haible  <bruno@clisp.org>
61164
61165         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
61166         syntax.
61167         * modules/javaexec (Makefile.am): Likewise.
61168         * modules/relocatable-prog (Makefile.am): Likewise.
61169         Suggested by Jim Meyering.
61170
61171 2007-10-18  Bruno Haible  <bruno@clisp.org>
61172
61173         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
61174         Reported by Jim Meyering.
61175
61176 2007-10-18  Eric Blake  <ebb9@byu.net>
61177
61178         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
61179
61180 2007-10-18  Bruno Haible  <bruno@clisp.org>
61181
61182         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
61183         the format string into writable memory. Needed in Fortify conditions.
61184
61185 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
61186             Bruno Haible  <bruno@clisp.org>
61187
61188         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
61189         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
61190         * modules/trim (Depends-on): Add mbchar.
61191         (configure.ac): Add gl_FUNC_MBRTOWC.
61192         (Makefile.am): Augment lib_SOURCES.
61193
61194 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
61195
61196         Modify glob.c to use fstatat and dirfd, to simplify it.
61197         Suggested by Eric Blake.
61198         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
61199         Don't include <stdbool.h>; not used.
61200         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
61201         (link_exists_p): Simplify implementation, since we can now assume
61202         dirfd and fstatat.
61203         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
61204
61205 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61206
61207         * gnulib-tool (func_get_dependencies): Fix sed script to
61208         match only tests.
61209
61210 2007-10-17  Bruno Haible  <bruno@clisp.org>
61211
61212         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
61213         allow locale names without encoding suffix.
61214         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
61215         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
61216
61217 2007-10-16  Bruno Haible  <bruno@clisp.org>
61218
61219         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
61220         * lib/getgroups.c (getgroups): Likewise.
61221         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
61222
61223 2007-10-16  Bruno Haible  <bruno@clisp.org>
61224
61225         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
61226         * modules/malloc-posix (License): Likewise.
61227         * modules/realloc-posix (License): Likewise.
61228         * modules/calloc-posix (License): Likewise.
61229         * modules/intprops (License): Change from GPL to LGPL, with
61230         Paul Eggert's approval.
61231
61232 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
61233
61234         Merge glibc changes into lib/glob.c.
61235
61236         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
61237         2007-10-15 04:59:03 UTC.  Here are the changes:
61238
61239         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
61240
61241         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
61242
61243         * lib/glob.c: Add some branch prediction throughout.
61244
61245         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
61246
61247         [BZ #5103]
61248         * lib/glob.c (glob): Recognize patterns starting \/.
61249
61250         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
61251
61252         [BZ #3996]
61253         * lib/glob.c (attribute_hidden): Define if not defined.
61254         (glob): Unescape dirname, filename or username when needed and not
61255         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
61256         is NULL.  Handle unescaped [ in pattern without closing ].
61257         Don't pass GLOB_CHECK down to recursive glob for directories.
61258         (__glob_pattern_type): New function.
61259         (__glob_pattern_p): Implement using __glob_pattern_type.
61260         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
61261         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
61262         Remove unreachable code.
61263
61264         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
61265
61266         * lib/glob.c (glob_in_dir): Add some comments and asserts to
61267         explain why there are no leaks.
61268
61269         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
61270
61271         [BZ #3253]
61272         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
61273         time, rather allocate increasingly bigger arrays of pointers, if
61274         possible with alloca, if too large with malloc.
61275
61276 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
61277
61278         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
61279         Problem reported by H.Merijn Brand in
61280         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
61281         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
61282         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
61283
61284 2007-10-15  Bruno Haible  <bruno@clisp.org>
61285
61286         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
61287         with explicit rpl_ prefix.
61288         * lib/fopen.c (fopen): Likewise.
61289         * lib/freopen.c (freopen): Likewise.
61290         * lib/iconv.c (iconv): Likewise.
61291         * lib/iconv_close.c (iconv_close): Likewise.
61292
61293 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61294
61295         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
61296
61297 2007-10-15  Bruno Haible  <bruno@clisp.org>
61298
61299         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
61300         <stddef.h> instead of <stdlib.h> since we only need NULL.
61301         Reported by Ben Pfaff <blp@cs.stanford.edu>.
61302
61303 2007-10-15  Bruno Haible  <bruno@clisp.org>
61304
61305         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
61306         Replace paragraph talking about LIBOBJS.
61307         Reported by Colin Watson <cjwatson@debian.org>.
61308
61309 2007-10-15  Bruno Haible  <bruno@clisp.org>
61310
61311         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
61312         <stdlib.h> before using NULL.
61313
61314 2007-10-15  Simon Josefsson  <simon@josefsson.org>
61315
61316         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
61317         Reported by Albert Chin <china@thewrittenword.com>.
61318
61319 2007-10-14  Bruno Haible  <bruno@clisp.org>
61320
61321         * modules/iconv_open-utf-tests: New file.
61322         * tests/test-iconv-utf.c: New file.
61323
61324         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
61325         * modules/iconv_open-utf: New file.
61326         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
61327         (iconv, iconv_close): New declarations.
61328         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
61329         be defined.
61330         (iconv_open): Add special handling of conversion between UTF-8 and
61331         UTF-{16,32}{BE,LE}.
61332         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
61333         * lib/iconv_close.c: New file.
61334         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
61335         gl_FUNC_ICONV_OPEN.
61336         (gl_FUNC_ICONV_OPEN): Use it.
61337         (gl_FUNC_ICONV_OPEN_UTF): New macro.
61338         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
61339         and REPLACE_ICONV_UTF.
61340         * modules/iconv_open (Depends-on): Add c-strcase.
61341         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
61342         ICONV_CONST.
61343         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
61344
61345 2007-10-13  Albert Chin  <china@thewrittenword.com>
61346             Bruno Haible  <bruno@clisp.org>
61347
61348         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
61349         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
61350
61351 2007-10-13  Bruno Haible  <bruno@clisp.org>
61352
61353         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
61354         defined, use the ISO C99 inline semantics.
61355         * lib/argp.h (ARGP_EI): Likewise.
61356
61357 2007-10-13  Bruno Haible  <bruno@clisp.org>
61358
61359         Handle 'inline' change in gcc 4.3.0.
61360         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
61361         argp_fmtstream_write, argp_fmtstream_set_lmargin,
61362         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
61363         argp_fmtstream_point): Disable 'extern' declaration if the function
61364         definition is going to be provided inline.
61365         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
61366         semantics, not the ISO C99 inline semantics.
61367         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
61368         'extern' declaration if the function definition is going to be provided
61369         inline.
61370         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
61371         the GNU C inline semantics, not the ISO C99 inline semantics. With
61372         GCC 4.2, avoid a warning.
61373
61374 2007-10-13  Bruno Haible  <bruno@clisp.org>
61375
61376         * lib/freading.h (freading): Enable the use of __freading for
61377         glibc >= 2.7.
61378         * lib/freading.c (freading): Likewise.
61379
61380 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
61381
61382         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
61383         "warning: C99 inline functions are not supported; using GNU89".
61384
61385 2007-10-12  Bruno Haible  <bruno@clisp.org>
61386
61387         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
61388         of 2.
61389         * tests/test-ceilf2.c: New file.
61390         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
61391
61392         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
61393         * modules/ceilf-tests: Update.
61394
61395 2007-10-12  Bruno Haible  <bruno@clisp.org>
61396
61397         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
61398         of 2.
61399         * tests/test-floorf2.c: New file.
61400         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
61401
61402         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
61403         * modules/floorf-tests: Update.
61404
61405 2007-10-12  Bruno Haible  <bruno@clisp.org>
61406
61407         * tests/test-trunc2.c: New file.
61408         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
61409
61410         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
61411         * modules/trunc-tests: Update.
61412
61413 2007-10-12  Bruno Haible  <bruno@clisp.org>
61414
61415         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
61416         of 2.
61417         * tests/test-truncf2.c: New file.
61418         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
61419
61420         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
61421         * modules/truncf-tests: Update.
61422
61423 2007-10-11  Eric Blake  <ebb9@byu.net>
61424
61425         Don't claim strerror is broken on Interix.
61426         * doc/functions/strerror.texi (strerror): Known broken systems are
61427         now Solaris 8, and not Interix.
61428         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
61429         Interix on cross-compile.
61430         Reported by Martin Koeppe in
61431         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
61432
61433 2007-10-11  Bruno Haible  <bruno@clisp.org>
61434
61435         * modules/i-ring-tests: New file.
61436         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
61437         instead of assert.
61438
61439 2007-10-11  Bruno Haible  <bruno@clisp.org>
61440
61441         * modules/filenamecat-tests: New file.
61442         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
61443         * lib/filenamecat.c: Remove test code.
61444
61445 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
61446
61447         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
61448
61449         * lib/strerror.c: Include <string.h> always, to test interface,
61450         and to remove the need for the dummy.
61451         Include intprops.h to compute width instead of doing it ourselves
61452         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
61453         (strerror): Define it to return NULL if there's no system strerror.
61454         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
61455         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
61456         ancient pre-strerror Unix systems well any more.  Saying "unknown
61457         system error" is enough.
61458         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
61459         simpler strerror.c implementation.
61460         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
61461         Simplify the tests to reflect the simpler strerror implementation.
61462         * modules/strerror (Depends-on): Add intprops.
61463
61464 2007-10-09  Eric Blake  <ebb9@byu.net>
61465
61466         Silence test-fpending.
61467         * modules/fpending-tests (Files): Add wrapper script.
61468         * tests/test-fpending.sh: New file.
61469
61470 2007-10-09  Bruno Haible  <bruno@clisp.org>
61471
61472         * MODULES.html.sh (func_module): Don't create a hyperlink for
61473         function names like 'printf_frexp'.
61474         (Misc): Add crc, memxor.
61475         (Characteristics of floating types): New section.
61476         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
61477         isnanf-nolibm, signbit, trunc, truncf, truncl.
61478         (Enhancements for ISO C 99 functions): New subsection Input/output.
61479         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
61480         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
61481         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
61482         (Compatibility checks for POSIX:2001 functions): Add clock-time.
61483         (Enhancements for POSIX:2001 functions): Add chdir-long.
61484         (File system functions): Add areadlink, chdir-safer, read-file.
61485         Remove cycle-check.
61486         (File system as inode set): New section.
61487         (Date and time): Add gethrxtime.
61488         (Multithreading): Add openmp.
61489         (Internationalization functions): Add localename.
61490         (Unicode string functions): Add unistr/u*-mbsnlen.
61491         (Support for maintaining and releasing projects): Add git-version-gen.
61492         (Lone files): Remove directories.
61493
61494 2007-10-08  Ben Pfaff  <blp@gnu.org>
61495
61496         * lib/xmalloca.h: Fix typo in comment.
61497
61498 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
61499
61500         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
61501         when avoiding problems with integer overflow.  Use a portable test
61502         instead.
61503
61504 2007-10-08  Simon Josefsson  <simon@josefsson.org>
61505
61506         * modules/dummy (License): Change to LGPLv2+.
61507         * modules/float (License): Likewise
61508         * modules/realloc (License): Likewise
61509         * modules/stdlib (License): Likewise
61510
61511 2007-10-07  Bruno Haible  <bruno@clisp.org>
61512
61513         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
61514         * floor.c (TWO_MANT_DIG): Likewise.
61515         * ceil.c (TWO_MANT_DIG): Likewise.
61516         Reported by Ben Pfaff.
61517
61518 2007-10-07  Bruno Haible  <bruno@clisp.org>
61519
61520         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
61521         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
61522         * lib/frexp.c (FUNC): Likewise.
61523         * lib/printf-frexp.h (printf_frexp): Likewise.
61524         * lib/printf-frexpl.h (printf_frexpl): Likewise.
61525         * lib/printf-frexp.c (FUNC): Likewise.
61526         Suggested by Jim Meyering.
61527
61528 2007-10-07  Jim Meyering  <meyering@redhat.com>
61529
61530         Make xnanosleep's integer overflow test more robust.
61531         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
61532         so that gcc-4.3.0 doesn't optimize away this test for overflow.
61533
61534 2007-10-07  Bruno Haible  <bruno@clisp.org>
61535
61536         * NEWS: Mention the license change.
61537
61538         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
61539         abbreviations in the modules files.
61540
61541         Change copyright notice from GPLv2+ to GPLv3+.
61542         * README: Change copyright notice.
61543         * MODULES.html.sh: Likewise.
61544         * build-aux/bootstrap.conf: Likewise.
61545         * build-aux/config.libpath: Likewise.
61546         * build-aux/csharpcomp.sh.in: Likewise.
61547         * build-aux/csharpexec.sh.in: Likewise.
61548         * build-aux/install-reloc: Likewise.
61549         * build-aux/javacomp.sh.in: Likewise.
61550         * build-aux/javaexec.sh.in: Likewise.
61551         * build-aux/ldd.sh.in: Likewise.
61552         * build-aux/reloc-ldflags: Likewise.
61553         * build-aux/relocatable.sh.in: Likewise.
61554         * build-aux/x-to-1.in: Likewise.
61555         * check-module: Likewise.
61556         * config/srclistvars.sh: Likewise.
61557         * gnulib-tool: Likewise.
61558         * lib/acl-internal.h: Likewise.
61559         * lib/acl.c: Likewise.
61560         * lib/acl.h: Likewise.
61561         * lib/acl_entries.c: Likewise.
61562         * lib/areadlink-with-size.c: Likewise.
61563         * lib/areadlink.c: Likewise.
61564         * lib/areadlink.h: Likewise.
61565         * lib/argmatch.c: Likewise.
61566         * lib/argmatch.h: Likewise.
61567         * lib/argp-ba.c: Likewise.
61568         * lib/argp-eexst.c: Likewise.
61569         * lib/argp-fmtstream.c: Likewise.
61570         * lib/argp-fmtstream.h: Likewise.
61571         * lib/argp-fs-xinl.c: Likewise.
61572         * lib/argp-help.c: Likewise.
61573         * lib/argp-namefrob.h: Likewise.
61574         * lib/argp-parse.c: Likewise.
61575         * lib/argp-pin.c: Likewise.
61576         * lib/argp-pv.c: Likewise.
61577         * lib/argp-pvh.c: Likewise.
61578         * lib/argp-xinl.c: Likewise.
61579         * lib/argp.h: Likewise.
61580         * lib/at-func.c: Likewise.
61581         * lib/atanl.c: Likewise.
61582         * lib/backupfile.c: Likewise.
61583         * lib/backupfile.h: Likewise.
61584         * lib/basename.c: Likewise.
61585         * lib/binary-io.h: Likewise.
61586         * lib/byteswap.in.h: Likewise.
61587         * lib/c-stack.c: Likewise.
61588         * lib/c-stack.h: Likewise.
61589         * lib/c-strcasestr.c: Likewise.
61590         * lib/c-strcasestr.h: Likewise.
61591         * lib/c-strstr.c: Likewise.
61592         * lib/c-strstr.h: Likewise.
61593         * lib/c-strtod.c: Likewise.
61594         * lib/calloc.c: Likewise.
61595         * lib/canon-host.c: Likewise.
61596         * lib/canon-host.h: Likewise.
61597         * lib/canonicalize-lgpl.c: Likewise.
61598         * lib/canonicalize.c: Likewise.
61599         * lib/canonicalize.h: Likewise.
61600         * lib/ceil.c: Likewise.
61601         * lib/ceilf.c: Likewise.
61602         * lib/ceill.c: Likewise.
61603         * lib/chdir-long.c: Likewise.
61604         * lib/chdir-long.h: Likewise.
61605         * lib/chdir-safer.c: Likewise.
61606         * lib/chdir-safer.h: Likewise.
61607         * lib/chown.c: Likewise.
61608         * lib/classpath.c: Likewise.
61609         * lib/classpath.h: Likewise.
61610         * lib/clean-temp.c: Likewise.
61611         * lib/clean-temp.h: Likewise.
61612         * lib/cloexec.c: Likewise.
61613         * lib/close-stream.c: Likewise.
61614         * lib/closein.c: Likewise.
61615         * lib/closein.h: Likewise.
61616         * lib/closeout.c: Likewise.
61617         * lib/closeout.h: Likewise.
61618         * lib/concat-filename.c: Likewise.
61619         * lib/copy-file.c: Likewise.
61620         * lib/copy-file.h: Likewise.
61621         * lib/count-one-bits.h: Likewise.
61622         * lib/crc.c: Likewise.
61623         * lib/crc.h: Likewise.
61624         * lib/creat-safer.c: Likewise.
61625         * lib/csharpcomp.c: Likewise.
61626         * lib/csharpcomp.h: Likewise.
61627         * lib/csharpexec.c: Likewise.
61628         * lib/csharpexec.h: Likewise.
61629         * lib/cycle-check.c: Likewise.
61630         * lib/cycle-check.h: Likewise.
61631         * lib/diacrit.c: Likewise.
61632         * lib/diacrit.h: Likewise.
61633         * lib/diffseq.h: Likewise.
61634         * lib/dirchownmod.c: Likewise.
61635         * lib/dirent.in.h: Likewise.
61636         * lib/dirfd.c: Likewise.
61637         * lib/dirfd.h: Likewise.
61638         * lib/dirname.c: Likewise.
61639         * lib/dirname.h: Likewise.
61640         * lib/dummy.c: Likewise.
61641         * lib/dup-safer.c: Likewise.
61642         * lib/dup2.c: Likewise.
61643         * lib/eealloc.h: Likewise.
61644         * lib/error.c: Likewise.
61645         * lib/error.h: Likewise.
61646         * lib/euidaccess.c: Likewise.
61647         * lib/exclude.c: Likewise.
61648         * lib/exclude.h: Likewise.
61649         * lib/execute.c: Likewise.
61650         * lib/execute.h: Likewise.
61651         * lib/exitfail.c: Likewise.
61652         * lib/exitfail.h: Likewise.
61653         * lib/expl.c: Likewise.
61654         * lib/fatal-signal.c: Likewise.
61655         * lib/fatal-signal.h: Likewise.
61656         * lib/fbufmode.c: Likewise.
61657         * lib/fbufmode.h: Likewise.
61658         * lib/fchdir.c: Likewise.
61659         * lib/fchmodat.c: Likewise.
61660         * lib/fchownat.c: Likewise.
61661         * lib/fcntl--.h: Likewise.
61662         * lib/fcntl-safer.h: Likewise.
61663         * lib/fcntl.in.h: Likewise.
61664         * lib/fd-safer.c: Likewise.
61665         * lib/fflush.c: Likewise.
61666         * lib/file-has-acl.c: Likewise.
61667         * lib/file-set.c: Likewise.
61668         * lib/file-type.c: Likewise.
61669         * lib/file-type.h: Likewise.
61670         * lib/fileblocks.c: Likewise.
61671         * lib/filemode.c: Likewise.
61672         * lib/filemode.h: Likewise.
61673         * lib/filename.h: Likewise.
61674         * lib/filenamecat.c: Likewise.
61675         * lib/filenamecat.h: Likewise.
61676         * lib/findprog.c: Likewise.
61677         * lib/findprog.h: Likewise.
61678         * lib/float.in.h: Likewise.
61679         * lib/floor.c: Likewise.
61680         * lib/floorf.c: Likewise.
61681         * lib/floorl.c: Likewise.
61682         * lib/fopen-safer.c: Likewise.
61683         * lib/fopen.c: Likewise.
61684         * lib/fpending.c: Likewise.
61685         * lib/fpending.h: Likewise.
61686         * lib/fprintf.c: Likewise.
61687         * lib/fprintftime.h: Likewise.
61688         * lib/fpucw.h: Likewise.
61689         * lib/fpurge.c: Likewise.
61690         * lib/fpurge.h: Likewise.
61691         * lib/freadable.c: Likewise.
61692         * lib/freadable.h: Likewise.
61693         * lib/freadahead.c: Likewise.
61694         * lib/freadahead.h: Likewise.
61695         * lib/freading.c: Likewise.
61696         * lib/freading.h: Likewise.
61697         * lib/free.c: Likewise.
61698         * lib/freopen.c: Likewise.
61699         * lib/frexp.c: Likewise.
61700         * lib/frexpl.c: Likewise.
61701         * lib/fseek.c: Likewise.
61702         * lib/fseterr.c: Likewise.
61703         * lib/fseterr.h: Likewise.
61704         * lib/fstatat.c: Likewise.
61705         * lib/fstrcmp.c: Likewise.
61706         * lib/fstrcmp.h: Likewise.
61707         * lib/fsusage.c: Likewise.
61708         * lib/fsusage.h: Likewise.
61709         * lib/ftell.c: Likewise.
61710         * lib/ftello.c: Likewise.
61711         * lib/fts-cycle.c: Likewise.
61712         * lib/fts.c: Likewise.
61713         * lib/fts_.h: Likewise.
61714         * lib/full-read.c: Likewise.
61715         * lib/full-read.h: Likewise.
61716         * lib/full-write.c: Likewise.
61717         * lib/full-write.h: Likewise.
61718         * lib/fwritable.c: Likewise.
61719         * lib/fwritable.h: Likewise.
61720         * lib/fwriteerror.c: Likewise.
61721         * lib/fwriteerror.h: Likewise.
61722         * lib/fwriting.c: Likewise.
61723         * lib/fwriting.h: Likewise.
61724         * lib/gcd.c: Likewise.
61725         * lib/gcd.h: Likewise.
61726         * lib/getcwd.c: Likewise.
61727         * lib/getdate.h: Likewise.
61728         * lib/getdate.y: Likewise.
61729         * lib/getdomainname.c: Likewise.
61730         * lib/getdomainname.h: Likewise.
61731         * lib/getgroups.c: Likewise.
61732         * lib/gethostname.c: Likewise.
61733         * lib/gethrxtime.c: Likewise.
61734         * lib/gethrxtime.h: Likewise.
61735         * lib/getloadavg.c: Likewise.
61736         * lib/getndelim2.c: Likewise.
61737         * lib/getndelim2.h: Likewise.
61738         * lib/getnline.c: Likewise.
61739         * lib/getnline.h: Likewise.
61740         * lib/getopt.c: Likewise.
61741         * lib/getopt.in.h: Likewise.
61742         * lib/getopt1.c: Likewise.
61743         * lib/getopt_int.h: Likewise.
61744         * lib/getpagesize.h: Likewise.
61745         * lib/getsubopt.c: Likewise.
61746         * lib/gettime.c: Likewise.
61747         * lib/getugroups.c: Likewise.
61748         * lib/getugroups.h: Likewise.
61749         * lib/getusershell.c: Likewise.
61750         * lib/gl_anyavltree_list1.h: Likewise.
61751         * lib/gl_anyavltree_list2.h: Likewise.
61752         * lib/gl_anyhash_list1.h: Likewise.
61753         * lib/gl_anyhash_list2.h: Likewise.
61754         * lib/gl_anylinked_list1.h: Likewise.
61755         * lib/gl_anylinked_list2.h: Likewise.
61756         * lib/gl_anyrbtree_list1.h: Likewise.
61757         * lib/gl_anyrbtree_list2.h: Likewise.
61758         * lib/gl_anytree_list1.h: Likewise.
61759         * lib/gl_anytree_list2.h: Likewise.
61760         * lib/gl_anytree_oset.h: Likewise.
61761         * lib/gl_anytreehash_list1.h: Likewise.
61762         * lib/gl_anytreehash_list2.h: Likewise.
61763         * lib/gl_array_list.c: Likewise.
61764         * lib/gl_array_list.h: Likewise.
61765         * lib/gl_array_oset.c: Likewise.
61766         * lib/gl_array_oset.h: Likewise.
61767         * lib/gl_avltree_list.c: Likewise.
61768         * lib/gl_avltree_list.h: Likewise.
61769         * lib/gl_avltree_oset.c: Likewise.
61770         * lib/gl_avltree_oset.h: Likewise.
61771         * lib/gl_avltreehash_list.c: Likewise.
61772         * lib/gl_avltreehash_list.h: Likewise.
61773         * lib/gl_carray_list.c: Likewise.
61774         * lib/gl_carray_list.h: Likewise.
61775         * lib/gl_linked_list.c: Likewise.
61776         * lib/gl_linked_list.h: Likewise.
61777         * lib/gl_linkedhash_list.c: Likewise.
61778         * lib/gl_linkedhash_list.h: Likewise.
61779         * lib/gl_list.c: Likewise.
61780         * lib/gl_list.h: Likewise.
61781         * lib/gl_oset.c: Likewise.
61782         * lib/gl_oset.h: Likewise.
61783         * lib/gl_rbtree_list.c: Likewise.
61784         * lib/gl_rbtree_list.h: Likewise.
61785         * lib/gl_rbtree_oset.c: Likewise.
61786         * lib/gl_rbtree_oset.h: Likewise.
61787         * lib/gl_rbtreehash_list.c: Likewise.
61788         * lib/gl_rbtreehash_list.h: Likewise.
61789         * lib/gl_sublist.c: Likewise.
61790         * lib/gl_sublist.h: Likewise.
61791         * lib/group-member.c: Likewise.
61792         * lib/group-member.h: Likewise.
61793         * lib/hard-locale.c: Likewise.
61794         * lib/hard-locale.h: Likewise.
61795         * lib/hash-pjw.c: Likewise.
61796         * lib/hash-pjw.h: Likewise.
61797         * lib/hash-triple.c: Likewise.
61798         * lib/hash.c: Likewise.
61799         * lib/hash.h: Likewise.
61800         * lib/human.c: Likewise.
61801         * lib/human.h: Likewise.
61802         * lib/i-ring.c: Likewise.
61803         * lib/i-ring.h: Likewise.
61804         * lib/idcache.c: Likewise.
61805         * lib/imaxabs.c: Likewise.
61806         * lib/imaxdiv.c: Likewise.
61807         * lib/inet_pton.c: Likewise.
61808         * lib/inet_pton.h: Likewise.
61809         * lib/intprops.h: Likewise.
61810         * lib/inttostr.c: Likewise.
61811         * lib/inttostr.h: Likewise.
61812         * lib/inttypes.in.h: Likewise.
61813         * lib/isapipe.c: Likewise.
61814         * lib/isdir.c: Likewise.
61815         * lib/isnan.c: Likewise.
61816         * lib/isnan.h: Likewise.
61817         * lib/isnanf.c: Likewise.
61818         * lib/isnanf.h: Likewise.
61819         * lib/isnanl-nolibm.h: Likewise.
61820         * lib/isnanl.c: Likewise.
61821         * lib/isnanl.h: Likewise.
61822         * lib/javacomp.c: Likewise.
61823         * lib/javacomp.h: Likewise.
61824         * lib/javaexec.c: Likewise.
61825         * lib/javaexec.h: Likewise.
61826         * lib/javaversion.c: Likewise.
61827         * lib/javaversion.h: Likewise.
61828         * lib/javaversion.java: Likewise.
61829         * lib/lbrkprop.h: Likewise.
61830         * lib/lchmod.h: Likewise.
61831         * lib/lchown.c: Likewise.
61832         * lib/ldexpl.c: Likewise.
61833         * lib/linebreak.c: Likewise.
61834         * lib/linebreak.h: Likewise.
61835         * lib/linebuffer.c: Likewise.
61836         * lib/linebuffer.h: Likewise.
61837         * lib/locale.in.h: Likewise.
61838         * lib/logl.c: Likewise.
61839         * lib/long-options.c: Likewise.
61840         * lib/long-options.h: Likewise.
61841         * lib/lstat.c: Likewise.
61842         * lib/lstat.h: Likewise.
61843         * lib/math.in.h: Likewise.
61844         * lib/mbchar.c: Likewise.
61845         * lib/mbchar.h: Likewise.
61846         * lib/mbfile.h: Likewise.
61847         * lib/mbiter.h: Likewise.
61848         * lib/mbscasecmp.c: Likewise.
61849         * lib/mbscasestr.c: Likewise.
61850         * lib/mbschr.c: Likewise.
61851         * lib/mbscspn.c: Likewise.
61852         * lib/mbslen.c: Likewise.
61853         * lib/mbsncasecmp.c: Likewise.
61854         * lib/mbsnlen.c: Likewise.
61855         * lib/mbspbrk.c: Likewise.
61856         * lib/mbspcasecmp.c: Likewise.
61857         * lib/mbsrchr.c: Likewise.
61858         * lib/mbssep.c: Likewise.
61859         * lib/mbsspn.c: Likewise.
61860         * lib/mbsstr.c: Likewise.
61861         * lib/mbstok_r.c: Likewise.
61862         * lib/mbswidth.c: Likewise.
61863         * lib/mbswidth.h: Likewise.
61864         * lib/mbuiter.h: Likewise.
61865         * lib/memcasecmp.c: Likewise.
61866         * lib/memcasecmp.h: Likewise.
61867         * lib/memchr.c: Likewise.
61868         * lib/memcmp.c: Likewise.
61869         * lib/memcoll.c: Likewise.
61870         * lib/memcoll.h: Likewise.
61871         * lib/memcpy.c: Likewise.
61872         * lib/memrchr.c: Likewise.
61873         * lib/mkancesdirs.c: Likewise.
61874         * lib/mkdir-p.c: Likewise.
61875         * lib/mkdir-p.h: Likewise.
61876         * lib/mkdir.c: Likewise.
61877         * lib/mkdirat.c: Likewise.
61878         * lib/mkdtemp.c: Likewise.
61879         * lib/mkstemp-safer.c: Likewise.
61880         * lib/mkstemp.c: Likewise.
61881         * lib/modechange.c: Likewise.
61882         * lib/modechange.h: Likewise.
61883         * lib/mountlist.c: Likewise.
61884         * lib/mountlist.h: Likewise.
61885         * lib/mpsort.c: Likewise.
61886         * lib/nanosleep.c: Likewise.
61887         * lib/obstack.c: Likewise.
61888         * lib/obstack.h: Likewise.
61889         * lib/open-safer.c: Likewise.
61890         * lib/open.c: Likewise.
61891         * lib/openat-die.c: Likewise.
61892         * lib/openat-priv.h: Likewise.
61893         * lib/openat-proc.c: Likewise.
61894         * lib/openat.c: Likewise.
61895         * lib/openat.h: Likewise.
61896         * lib/pagealign_alloc.c: Likewise.
61897         * lib/pagealign_alloc.h: Likewise.
61898         * lib/physmem.c: Likewise.
61899         * lib/physmem.h: Likewise.
61900         * lib/pipe-safer.c: Likewise.
61901         * lib/pipe.c: Likewise.
61902         * lib/pipe.h: Likewise.
61903         * lib/posixtm.c: Likewise.
61904         * lib/posixtm.h: Likewise.
61905         * lib/posixver.c: Likewise.
61906         * lib/printf-frexp.c: Likewise.
61907         * lib/printf-frexp.h: Likewise.
61908         * lib/printf-frexpl.c: Likewise.
61909         * lib/printf-frexpl.h: Likewise.
61910         * lib/printf.c: Likewise.
61911         * lib/progname.c: Likewise.
61912         * lib/progname.h: Likewise.
61913         * lib/progreloc.c: Likewise.
61914         * lib/putenv.c: Likewise.
61915         * lib/quote.c: Likewise.
61916         * lib/quote.h: Likewise.
61917         * lib/quotearg.c: Likewise.
61918         * lib/quotearg.h: Likewise.
61919         * lib/raise.c: Likewise.
61920         * lib/readline.c: Likewise.
61921         * lib/readline.h: Likewise.
61922         * lib/readlink.c: Likewise.
61923         * lib/readtokens.c: Likewise.
61924         * lib/readtokens.h: Likewise.
61925         * lib/readtokens0.c: Likewise.
61926         * lib/readtokens0.h: Likewise.
61927         * lib/readutmp.c: Likewise.
61928         * lib/readutmp.h: Likewise.
61929         * lib/realloc.c: Likewise.
61930         * lib/relocwrapper.c: Likewise.
61931         * lib/rename-dest-slash.c: Likewise.
61932         * lib/rename.c: Likewise.
61933         * lib/rmdir.c: Likewise.
61934         * lib/rpmatch.c: Likewise.
61935         * lib/safe-read.c: Likewise.
61936         * lib/safe-read.h: Likewise.
61937         * lib/safe-write.c: Likewise.
61938         * lib/safe-write.h: Likewise.
61939         * lib/same-inode.h: Likewise.
61940         * lib/same.c: Likewise.
61941         * lib/same.h: Likewise.
61942         * lib/save-cwd.c: Likewise.
61943         * lib/save-cwd.h: Likewise.
61944         * lib/savedir.c: Likewise.
61945         * lib/savedir.h: Likewise.
61946         * lib/savewd.c: Likewise.
61947         * lib/savewd.h: Likewise.
61948         * lib/search.in.h: Likewise.
61949         * lib/setenv.c: Likewise.
61950         * lib/setenv.h: Likewise.
61951         * lib/settime.c: Likewise.
61952         * lib/sh-quote.c: Likewise.
61953         * lib/sh-quote.h: Likewise.
61954         * lib/sig2str.c: Likewise.
61955         * lib/sig2str.h: Likewise.
61956         * lib/signal.in.h: Likewise.
61957         * lib/signbitd.c: Likewise.
61958         * lib/signbitf.c: Likewise.
61959         * lib/signbitl.c: Likewise.
61960         * lib/sigprocmask.c: Likewise.
61961         * lib/sincosl.c: Likewise.
61962         * lib/sleep.c: Likewise.
61963         * lib/sprintf.c: Likewise.
61964         * lib/sqrtl.c: Likewise.
61965         * lib/stat-time.h: Likewise.
61966         * lib/stdio--.h: Likewise.
61967         * lib/stdio-safer.h: Likewise.
61968         * lib/stdlib--.h: Likewise.
61969         * lib/stdlib-safer.h: Likewise.
61970         * lib/stdlib.in.h: Likewise.
61971         * lib/stpcpy.c: Likewise.
61972         * lib/stpncpy.c: Likewise.
61973         * lib/strchrnul.c: Likewise.
61974         * lib/strcspn.c: Likewise.
61975         * lib/strerror.c: Likewise.
61976         * lib/strftime.c: Likewise.
61977         * lib/strftime.h: Likewise.
61978         * lib/striconveh.c: Likewise.
61979         * lib/striconveh.h: Likewise.
61980         * lib/striconveha.c: Likewise.
61981         * lib/striconveha.h: Likewise.
61982         * lib/stripslash.c: Likewise.
61983         * lib/strnlen1.c: Likewise.
61984         * lib/strnlen1.h: Likewise.
61985         * lib/strtod.c: Likewise.
61986         * lib/strtoimax.c: Likewise.
61987         * lib/strtok_r.c: Likewise.
61988         * lib/strtol.c: Likewise.
61989         * lib/strtoll.c: Likewise.
61990         * lib/strtoul.c: Likewise.
61991         * lib/strtoull.c: Likewise.
61992         * lib/sysexits.in.h: Likewise.
61993         * lib/tempname.c: Likewise.
61994         * lib/tempname.h: Likewise.
61995         * lib/timespec.h: Likewise.
61996         * lib/tls.c: Likewise.
61997         * lib/tls.h: Likewise.
61998         * lib/tmpdir.c: Likewise.
61999         * lib/tmpdir.h: Likewise.
62000         * lib/tmpfile-safer.c: Likewise.
62001         * lib/tmpfile.c: Likewise.
62002         * lib/trigl.c: Likewise.
62003         * lib/trigl.h: Likewise.
62004         * lib/trim.c: Likewise.
62005         * lib/trim.h: Likewise.
62006         * lib/trunc.c: Likewise.
62007         * lib/truncf.c: Likewise.
62008         * lib/truncl.c: Likewise.
62009         * lib/tsearch.c: Likewise.
62010         * lib/unicodeio.c: Likewise.
62011         * lib/unicodeio.h: Likewise.
62012         * lib/unistd--.h: Likewise.
62013         * lib/unistd-safer.h: Likewise.
62014         * lib/unistdio/ulc-fprintf.c: Likewise.
62015         * lib/unistdio/ulc-vfprintf.c: Likewise.
62016         * lib/unlinkdir.c: Likewise.
62017         * lib/unlinkdir.h: Likewise.
62018         * lib/unlocked-io.h: Likewise.
62019         * lib/unsetenv.c: Likewise.
62020         * lib/userspec.c: Likewise.
62021         * lib/utime.c: Likewise.
62022         * lib/utimecmp.c: Likewise.
62023         * lib/utimecmp.h: Likewise.
62024         * lib/utimens.c: Likewise.
62025         * lib/verify.h: Likewise.
62026         * lib/verror.c: Likewise.
62027         * lib/verror.h: Likewise.
62028         * lib/version-etc-fsf.c: Likewise.
62029         * lib/version-etc.c: Likewise.
62030         * lib/version-etc.h: Likewise.
62031         * lib/vfprintf.c: Likewise.
62032         * lib/vprintf.c: Likewise.
62033         * lib/vsprintf.c: Likewise.
62034         * lib/w32spawn.h: Likewise.
62035         * lib/wait-process.c: Likewise.
62036         * lib/wait-process.h: Likewise.
62037         * lib/wcwidth.c: Likewise.
62038         * lib/write-any-file.c: Likewise.
62039         * lib/xalloc-die.c: Likewise.
62040         * lib/xalloc.h: Likewise.
62041         * lib/xasprintf.c: Likewise.
62042         * lib/xgetcwd.c: Likewise.
62043         * lib/xgetcwd.h: Likewise.
62044         * lib/xgetdomainname.c: Likewise.
62045         * lib/xgetdomainname.h: Likewise.
62046         * lib/xgethostname.c: Likewise.
62047         * lib/xmalloc.c: Likewise.
62048         * lib/xmalloca.c: Likewise.
62049         * lib/xmalloca.h: Likewise.
62050         * lib/xmemcoll.c: Likewise.
62051         * lib/xnanosleep.c: Likewise.
62052         * lib/xreadlink.c: Likewise.
62053         * lib/xreadlink.h: Likewise.
62054         * lib/xsetenv.c: Likewise.
62055         * lib/xsetenv.h: Likewise.
62056         * lib/xstriconv.c: Likewise.
62057         * lib/xstriconv.h: Likewise.
62058         * lib/xstrndup.c: Likewise.
62059         * lib/xstrndup.h: Likewise.
62060         * lib/xstrtod.c: Likewise.
62061         * lib/xstrtod.h: Likewise.
62062         * lib/xstrtol-error.c: Likewise.
62063         * lib/xstrtol.c: Likewise.
62064         * lib/xstrtol.h: Likewise.
62065         * lib/xtime.h: Likewise.
62066         * lib/xvasprintf.c: Likewise.
62067         * lib/xvasprintf.h: Likewise.
62068         * lib/yesno.c: Likewise.
62069         * lib/yesno.h: Likewise.
62070         * posix-modules: Likewise.
62071         * tests/test-alloca-opt.c: Likewise.
62072         * tests/test-arcfour.c: Likewise.
62073         * tests/test-arctwo.c: Likewise.
62074         * tests/test-argmatch.c: Likewise.
62075         * tests/test-argp-2.sh: Likewise.
62076         * tests/test-argp.c: Likewise.
62077         * tests/test-arpa_inet.c: Likewise.
62078         * tests/test-array_list.c: Likewise.
62079         * tests/test-array_oset.c: Likewise.
62080         * tests/test-atexit.c: Likewise.
62081         * tests/test-avltree_list.c: Likewise.
62082         * tests/test-avltree_oset.c: Likewise.
62083         * tests/test-avltreehash_list.c: Likewise.
62084         * tests/test-base64.c: Likewise.
62085         * tests/test-binary-io.c: Likewise.
62086         * tests/test-byteswap.c: Likewise.
62087         * tests/test-c-ctype.c: Likewise.
62088         * tests/test-c-strcasecmp.c: Likewise.
62089         * tests/test-c-strcasestr.c: Likewise.
62090         * tests/test-c-strncasecmp.c: Likewise.
62091         * tests/test-c-strstr.c: Likewise.
62092         * tests/test-canonicalize-lgpl.c: Likewise.
62093         * tests/test-canonicalize.c: Likewise.
62094         * tests/test-carray_list.c: Likewise.
62095         * tests/test-ceilf.c: Likewise.
62096         * tests/test-ceill.c: Likewise.
62097         * tests/test-count-one-bits.c: Likewise.
62098         * tests/test-crc.c: Likewise.
62099         * tests/test-dirname.c: Likewise.
62100         * tests/test-fbufmode.c: Likewise.
62101         * tests/test-fcntl.c: Likewise.
62102         * tests/test-fflush.c: Likewise.
62103         * tests/test-floorf.c: Likewise.
62104         * tests/test-floorl.c: Likewise.
62105         * tests/test-fopen.c: Likewise.
62106         * tests/test-fprintf-posix.c: Likewise.
62107         * tests/test-fprintf-posix.h: Likewise.
62108         * tests/test-fpurge.c: Likewise.
62109         * tests/test-freadable.c: Likewise.
62110         * tests/test-freadahead.c: Likewise.
62111         * tests/test-freading.c: Likewise.
62112         * tests/test-freopen.c: Likewise.
62113         * tests/test-frexp.c: Likewise.
62114         * tests/test-frexpl.c: Likewise.
62115         * tests/test-fseek.c: Likewise.
62116         * tests/test-fseeko.c: Likewise.
62117         * tests/test-fseterr.c: Likewise.
62118         * tests/test-fstrcmp.c: Likewise.
62119         * tests/test-ftell.c: Likewise.
62120         * tests/test-ftello.c: Likewise.
62121         * tests/test-fwritable.c: Likewise.
62122         * tests/test-fwriting.c: Likewise.
62123         * tests/test-getaddrinfo.c: Likewise.
62124         * tests/test-getpass.c: Likewise.
62125         * tests/test-gettimeofday.c: Likewise.
62126         * tests/test-hmac-md5.c: Likewise.
62127         * tests/test-hmac-sha1.c: Likewise.
62128         * tests/test-iconv.c: Likewise.
62129         * tests/test-iconvme.c: Likewise.
62130         * tests/test-inttypes.c: Likewise.
62131         * tests/test-isnan.c: Likewise.
62132         * tests/test-isnanf.c: Likewise.
62133         * tests/test-isnanl-nolibm.c: Likewise.
62134         * tests/test-isnanl.c: Likewise.
62135         * tests/test-isnanl.h: Likewise.
62136         * tests/test-ldexpl.c: Likewise.
62137         * tests/test-linked_list.c: Likewise.
62138         * tests/test-linkedhash_list.c: Likewise.
62139         * tests/test-locale.c: Likewise.
62140         * tests/test-localename.c: Likewise.
62141         * tests/test-lock.c: Likewise.
62142         * tests/test-lseek.c: Likewise.
62143         * tests/test-malloca.c: Likewise.
62144         * tests/test-math.c: Likewise.
62145         * tests/test-mbscasecmp.c: Likewise.
62146         * tests/test-mbscasestr1.c: Likewise.
62147         * tests/test-mbscasestr2.c: Likewise.
62148         * tests/test-mbscasestr3.c: Likewise.
62149         * tests/test-mbscasestr4.c: Likewise.
62150         * tests/test-mbschr.c: Likewise.
62151         * tests/test-mbscspn.c: Likewise.
62152         * tests/test-mbsncasecmp.c: Likewise.
62153         * tests/test-mbspbrk.c: Likewise.
62154         * tests/test-mbspcasecmp.c: Likewise.
62155         * tests/test-mbsrchr.c: Likewise.
62156         * tests/test-mbsspn.c: Likewise.
62157         * tests/test-mbsstr1.c: Likewise.
62158         * tests/test-mbsstr2.c: Likewise.
62159         * tests/test-mbsstr3.c: Likewise.
62160         * tests/test-md5.c: Likewise.
62161         * tests/test-memmem.c: Likewise.
62162         * tests/test-netinet_in.c: Likewise.
62163         * tests/test-open.c: Likewise.
62164         * tests/test-printf-frexp.c: Likewise.
62165         * tests/test-printf-frexpl.c: Likewise.
62166         * tests/test-printf-posix.c: Likewise.
62167         * tests/test-printf-posix.h: Likewise.
62168         * tests/test-rbtree_list.c: Likewise.
62169         * tests/test-rbtree_oset.c: Likewise.
62170         * tests/test-rbtreehash_list.c: Likewise.
62171         * tests/test-read-file.c: Likewise.
62172         * tests/test-rijndael.c: Likewise.
62173         * tests/test-search.c: Likewise.
62174         * tests/test-signbit.c: Likewise.
62175         * tests/test-sleep.c: Likewise.
62176         * tests/test-snprintf-posix.c: Likewise.
62177         * tests/test-snprintf-posix.h: Likewise.
62178         * tests/test-snprintf.c: Likewise.
62179         * tests/test-sprintf-posix.c: Likewise.
62180         * tests/test-sprintf-posix.h: Likewise.
62181         * tests/test-stat-time.c: Likewise.
62182         * tests/test-stdbool.c: Likewise.
62183         * tests/test-stdint.c: Likewise.
62184         * tests/test-stdio.c: Likewise.
62185         * tests/test-stdlib.c: Likewise.
62186         * tests/test-stpncpy.c: Likewise.
62187         * tests/test-strcasestr.c: Likewise.
62188         * tests/test-striconv.c: Likewise.
62189         * tests/test-striconveh.c: Likewise.
62190         * tests/test-striconveha.c: Likewise.
62191         * tests/test-string.c: Likewise.
62192         * tests/test-sys_select.c: Likewise.
62193         * tests/test-sys_socket.c: Likewise.
62194         * tests/test-sys_stat.c: Likewise.
62195         * tests/test-sys_time.c: Likewise.
62196         * tests/test-sysexits.c: Likewise.
62197         * tests/test-time.c: Likewise.
62198         * tests/test-tls.c: Likewise.
62199         * tests/test-trunc.c: Likewise.
62200         * tests/test-truncf.c: Likewise.
62201         * tests/test-truncl.c: Likewise.
62202         * tests/test-unistd.c: Likewise.
62203         * tests/test-vasnprintf-posix.c: Likewise.
62204         * tests/test-vasnprintf-posix2.c: Likewise.
62205         * tests/test-vasnprintf.c: Likewise.
62206         * tests/test-vasprintf-posix.c: Likewise.
62207         * tests/test-vasprintf.c: Likewise.
62208         * tests/test-verify.c: Likewise.
62209         * tests/test-vfprintf-posix.c: Likewise.
62210         * tests/test-vprintf-posix.c: Likewise.
62211         * tests/test-vsnprintf-posix.c: Likewise.
62212         * tests/test-vsnprintf.c: Likewise.
62213         * tests/test-vsprintf-posix.c: Likewise.
62214         * tests/test-wchar.c: Likewise.
62215         * tests/test-wctype.c: Likewise.
62216         * tests/test-wcwidth.c: Likewise.
62217         * tests/test-xstrtol.c: Likewise.
62218         * tests/test-xvasprintf.c: Likewise.
62219         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
62220         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
62221         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
62222         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
62223         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
62224         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
62225         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
62226         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
62227         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
62228         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
62229         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
62230         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
62231         * tests/uniname/test-uninames.c: Likewise.
62232         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
62233         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
62234         * tests/unistdio/test-u16-printf1.h: Likewise.
62235         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
62236         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
62237         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
62238         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
62239         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
62240         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
62241         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
62242         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
62243         * tests/unistdio/test-u32-printf1.h: Likewise.
62244         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
62245         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
62246         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
62247         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
62248         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
62249         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
62250         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
62251         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
62252         * tests/unistdio/test-u8-printf1.h: Likewise.
62253         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
62254         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
62255         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
62256         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
62257         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
62258         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
62259         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
62260         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
62261         * tests/unistdio/test-ulc-printf1.h: Likewise.
62262         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
62263         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
62264         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
62265         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
62266         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
62267         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
62268         * tests/uniwidth/test-u16-strwidth.c: Likewise.
62269         * tests/uniwidth/test-u16-width.c: Likewise.
62270         * tests/uniwidth/test-u32-strwidth.c: Likewise.
62271         * tests/uniwidth/test-u32-width.c: Likewise.
62272         * tests/uniwidth/test-u8-strwidth.c: Likewise.
62273         * tests/uniwidth/test-u8-width.c: Likewise.
62274         * tests/uniwidth/test-uc_width.c: Likewise.
62275         * config/srclist-update: Likewise.
62276         (fixlicense): Update to GPLv3+.
62277
62278         Change copyright notice from LGPLv2.1+ to LGPLv3+.
62279         * tests/test-tsearch.c: Change copyright notice.
62280
62281         Change copyright notice from LGPLv2.0+ to LGPLv3+.
62282         * lib/c-strcaseeq.h: Change copyright notice.
62283         * lib/streq.h: Likewise.
62284         * lib/uniconv.h: Likewise.
62285         * lib/uniconv/u-conv-from-enc.h: Likewise.
62286         * lib/uniconv/u-conv-to-enc.h: Likewise.
62287         * lib/uniconv/u-strconv-from-enc.h: Likewise.
62288         * lib/uniconv/u-strconv-to-enc.h: Likewise.
62289         * lib/uniconv/u16-conv-from-enc.c: Likewise.
62290         * lib/uniconv/u16-conv-to-enc.c: Likewise.
62291         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
62292         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
62293         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
62294         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
62295         * lib/uniconv/u32-conv-from-enc.c: Likewise.
62296         * lib/uniconv/u32-conv-to-enc.c: Likewise.
62297         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
62298         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
62299         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
62300         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
62301         * lib/uniconv/u8-conv-from-enc.c: Likewise.
62302         * lib/uniconv/u8-conv-to-enc.c: Likewise.
62303         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
62304         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
62305         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
62306         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
62307         * lib/uniname.h: Likewise.
62308         * lib/uniname/uniname.c: Likewise.
62309         * lib/unistdio.h: Likewise.
62310         * lib/unistdio/u-asnprintf.h: Likewise.
62311         * lib/unistdio/u-asprintf.h: Likewise.
62312         * lib/unistdio/u-printf-args.c: Likewise.
62313         * lib/unistdio/u-printf-args.h: Likewise.
62314         * lib/unistdio/u-printf-parse.h: Likewise.
62315         * lib/unistdio/u-snprintf.h: Likewise.
62316         * lib/unistdio/u-sprintf.h: Likewise.
62317         * lib/unistdio/u-vasprintf.h: Likewise.
62318         * lib/unistdio/u-vsnprintf.h: Likewise.
62319         * lib/unistdio/u-vsprintf.h: Likewise.
62320         * lib/unistdio/u16-asnprintf.c: Likewise.
62321         * lib/unistdio/u16-asprintf.c: Likewise.
62322         * lib/unistdio/u16-printf-parse.c: Likewise.
62323         * lib/unistdio/u16-snprintf.c: Likewise.
62324         * lib/unistdio/u16-sprintf.c: Likewise.
62325         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
62326         * lib/unistdio/u16-u16-asprintf.c: Likewise.
62327         * lib/unistdio/u16-u16-snprintf.c: Likewise.
62328         * lib/unistdio/u16-u16-sprintf.c: Likewise.
62329         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
62330         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
62331         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
62332         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
62333         * lib/unistdio/u16-vasnprintf.c: Likewise.
62334         * lib/unistdio/u16-vasprintf.c: Likewise.
62335         * lib/unistdio/u16-vsnprintf.c: Likewise.
62336         * lib/unistdio/u16-vsprintf.c: Likewise.
62337         * lib/unistdio/u32-asnprintf.c: Likewise.
62338         * lib/unistdio/u32-asprintf.c: Likewise.
62339         * lib/unistdio/u32-printf-parse.c: Likewise.
62340         * lib/unistdio/u32-snprintf.c: Likewise.
62341         * lib/unistdio/u32-sprintf.c: Likewise.
62342         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
62343         * lib/unistdio/u32-u32-asprintf.c: Likewise.
62344         * lib/unistdio/u32-u32-snprintf.c: Likewise.
62345         * lib/unistdio/u32-u32-sprintf.c: Likewise.
62346         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
62347         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
62348         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
62349         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
62350         * lib/unistdio/u32-vasnprintf.c: Likewise.
62351         * lib/unistdio/u32-vasprintf.c: Likewise.
62352         * lib/unistdio/u32-vsnprintf.c: Likewise.
62353         * lib/unistdio/u32-vsprintf.c: Likewise.
62354         * lib/unistdio/u8-asnprintf.c: Likewise.
62355         * lib/unistdio/u8-asprintf.c: Likewise.
62356         * lib/unistdio/u8-printf-parse.c: Likewise.
62357         * lib/unistdio/u8-snprintf.c: Likewise.
62358         * lib/unistdio/u8-sprintf.c: Likewise.
62359         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
62360         * lib/unistdio/u8-u8-asprintf.c: Likewise.
62361         * lib/unistdio/u8-u8-snprintf.c: Likewise.
62362         * lib/unistdio/u8-u8-sprintf.c: Likewise.
62363         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
62364         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
62365         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
62366         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
62367         * lib/unistdio/u8-vasnprintf.c: Likewise.
62368         * lib/unistdio/u8-vasprintf.c: Likewise.
62369         * lib/unistdio/u8-vsnprintf.c: Likewise.
62370         * lib/unistdio/u8-vsprintf.c: Likewise.
62371         * lib/unistdio/ulc-asnprintf.c: Likewise.
62372         * lib/unistdio/ulc-asprintf.c: Likewise.
62373         * lib/unistdio/ulc-printf-parse.c: Likewise.
62374         * lib/unistdio/ulc-snprintf.c: Likewise.
62375         * lib/unistdio/ulc-sprintf.c: Likewise.
62376         * lib/unistdio/ulc-vasnprintf.c: Likewise.
62377         * lib/unistdio/ulc-vasprintf.c: Likewise.
62378         * lib/unistdio/ulc-vsnprintf.c: Likewise.
62379         * lib/unistdio/ulc-vsprintf.c: Likewise.
62380         * lib/unistr.h: Likewise.
62381         * lib/unistr/u-cpy-alloc.h: Likewise.
62382         * lib/unistr/u-cpy.h: Likewise.
62383         * lib/unistr/u-endswith.h: Likewise.
62384         * lib/unistr/u-move.h: Likewise.
62385         * lib/unistr/u-set.h: Likewise.
62386         * lib/unistr/u-startswith.h: Likewise.
62387         * lib/unistr/u-stpcpy.h: Likewise.
62388         * lib/unistr/u-stpncpy.h: Likewise.
62389         * lib/unistr/u-strcat.h: Likewise.
62390         * lib/unistr/u-strcpy.h: Likewise.
62391         * lib/unistr/u-strcspn.h: Likewise.
62392         * lib/unistr/u-strdup.h: Likewise.
62393         * lib/unistr/u-strlen.h: Likewise.
62394         * lib/unistr/u-strncat.h: Likewise.
62395         * lib/unistr/u-strncpy.h: Likewise.
62396         * lib/unistr/u-strnlen.h: Likewise.
62397         * lib/unistr/u-strpbrk.h: Likewise.
62398         * lib/unistr/u-strspn.h: Likewise.
62399         * lib/unistr/u-strstr.h: Likewise.
62400         * lib/unistr/u-strtok.h: Likewise.
62401         * lib/unistr/u16-check.c: Likewise.
62402         * lib/unistr/u16-chr.c: Likewise.
62403         * lib/unistr/u16-cmp.c: Likewise.
62404         * lib/unistr/u16-cpy-alloc.c: Likewise.
62405         * lib/unistr/u16-cpy.c: Likewise.
62406         * lib/unistr/u16-endswith.c: Likewise.
62407         * lib/unistr/u16-mblen.c: Likewise.
62408         * lib/unistr/u16-mbsnlen.c: Likewise.
62409         * lib/unistr/u16-mbtouc-aux.c: Likewise.
62410         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
62411         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
62412         * lib/unistr/u16-mbtouc.c: Likewise.
62413         * lib/unistr/u16-mbtoucr.c: Likewise.
62414         * lib/unistr/u16-move.c: Likewise.
62415         * lib/unistr/u16-next.c: Likewise.
62416         * lib/unistr/u16-prev.c: Likewise.
62417         * lib/unistr/u16-set.c: Likewise.
62418         * lib/unistr/u16-startswith.c: Likewise.
62419         * lib/unistr/u16-stpcpy.c: Likewise.
62420         * lib/unistr/u16-stpncpy.c: Likewise.
62421         * lib/unistr/u16-strcat.c: Likewise.
62422         * lib/unistr/u16-strchr.c: Likewise.
62423         * lib/unistr/u16-strcmp.c: Likewise.
62424         * lib/unistr/u16-strcpy.c: Likewise.
62425         * lib/unistr/u16-strcspn.c: Likewise.
62426         * lib/unistr/u16-strdup.c: Likewise.
62427         * lib/unistr/u16-strlen.c: Likewise.
62428         * lib/unistr/u16-strmblen.c: Likewise.
62429         * lib/unistr/u16-strmbtouc.c: Likewise.
62430         * lib/unistr/u16-strncat.c: Likewise.
62431         * lib/unistr/u16-strncmp.c: Likewise.
62432         * lib/unistr/u16-strncpy.c: Likewise.
62433         * lib/unistr/u16-strnlen.c: Likewise.
62434         * lib/unistr/u16-strpbrk.c: Likewise.
62435         * lib/unistr/u16-strrchr.c: Likewise.
62436         * lib/unistr/u16-strspn.c: Likewise.
62437         * lib/unistr/u16-strstr.c: Likewise.
62438         * lib/unistr/u16-strtok.c: Likewise.
62439         * lib/unistr/u16-to-u32.c: Likewise.
62440         * lib/unistr/u16-to-u8.c: Likewise.
62441         * lib/unistr/u16-uctomb-aux.c: Likewise.
62442         * lib/unistr/u16-uctomb.c: Likewise.
62443         * lib/unistr/u32-check.c: Likewise.
62444         * lib/unistr/u32-chr.c: Likewise.
62445         * lib/unistr/u32-cmp.c: Likewise.
62446         * lib/unistr/u32-cpy-alloc.c: Likewise.
62447         * lib/unistr/u32-cpy.c: Likewise.
62448         * lib/unistr/u32-endswith.c: Likewise.
62449         * lib/unistr/u32-mblen.c: Likewise.
62450         * lib/unistr/u32-mbsnlen.c: Likewise.
62451         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
62452         * lib/unistr/u32-mbtouc.c: Likewise.
62453         * lib/unistr/u32-mbtoucr.c: Likewise.
62454         * lib/unistr/u32-move.c: Likewise.
62455         * lib/unistr/u32-next.c: Likewise.
62456         * lib/unistr/u32-prev.c: Likewise.
62457         * lib/unistr/u32-set.c: Likewise.
62458         * lib/unistr/u32-startswith.c: Likewise.
62459         * lib/unistr/u32-stpcpy.c: Likewise.
62460         * lib/unistr/u32-stpncpy.c: Likewise.
62461         * lib/unistr/u32-strcat.c: Likewise.
62462         * lib/unistr/u32-strchr.c: Likewise.
62463         * lib/unistr/u32-strcmp.c: Likewise.
62464         * lib/unistr/u32-strcpy.c: Likewise.
62465         * lib/unistr/u32-strcspn.c: Likewise.
62466         * lib/unistr/u32-strdup.c: Likewise.
62467         * lib/unistr/u32-strlen.c: Likewise.
62468         * lib/unistr/u32-strmblen.c: Likewise.
62469         * lib/unistr/u32-strmbtouc.c: Likewise.
62470         * lib/unistr/u32-strncat.c: Likewise.
62471         * lib/unistr/u32-strncmp.c: Likewise.
62472         * lib/unistr/u32-strncpy.c: Likewise.
62473         * lib/unistr/u32-strnlen.c: Likewise.
62474         * lib/unistr/u32-strpbrk.c: Likewise.
62475         * lib/unistr/u32-strrchr.c: Likewise.
62476         * lib/unistr/u32-strspn.c: Likewise.
62477         * lib/unistr/u32-strstr.c: Likewise.
62478         * lib/unistr/u32-strtok.c: Likewise.
62479         * lib/unistr/u32-to-u16.c: Likewise.
62480         * lib/unistr/u32-to-u8.c: Likewise.
62481         * lib/unistr/u32-uctomb.c: Likewise.
62482         * lib/unistr/u8-check.c: Likewise.
62483         * lib/unistr/u8-chr.c: Likewise.
62484         * lib/unistr/u8-cmp.c: Likewise.
62485         * lib/unistr/u8-cpy-alloc.c: Likewise.
62486         * lib/unistr/u8-cpy.c: Likewise.
62487         * lib/unistr/u8-endswith.c: Likewise.
62488         * lib/unistr/u8-mblen.c: Likewise.
62489         * lib/unistr/u8-mbsnlen.c: Likewise.
62490         * lib/unistr/u8-mbtouc-aux.c: Likewise.
62491         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
62492         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
62493         * lib/unistr/u8-mbtouc.c: Likewise.
62494         * lib/unistr/u8-mbtoucr.c: Likewise.
62495         * lib/unistr/u8-move.c: Likewise.
62496         * lib/unistr/u8-next.c: Likewise.
62497         * lib/unistr/u8-prev.c: Likewise.
62498         * lib/unistr/u8-set.c: Likewise.
62499         * lib/unistr/u8-startswith.c: Likewise.
62500         * lib/unistr/u8-stpcpy.c: Likewise.
62501         * lib/unistr/u8-stpncpy.c: Likewise.
62502         * lib/unistr/u8-strcat.c: Likewise.
62503         * lib/unistr/u8-strchr.c: Likewise.
62504         * lib/unistr/u8-strcmp.c: Likewise.
62505         * lib/unistr/u8-strcpy.c: Likewise.
62506         * lib/unistr/u8-strcspn.c: Likewise.
62507         * lib/unistr/u8-strdup.c: Likewise.
62508         * lib/unistr/u8-strlen.c: Likewise.
62509         * lib/unistr/u8-strmblen.c: Likewise.
62510         * lib/unistr/u8-strmbtouc.c: Likewise.
62511         * lib/unistr/u8-strncat.c: Likewise.
62512         * lib/unistr/u8-strncmp.c: Likewise.
62513         * lib/unistr/u8-strncpy.c: Likewise.
62514         * lib/unistr/u8-strnlen.c: Likewise.
62515         * lib/unistr/u8-strpbrk.c: Likewise.
62516         * lib/unistr/u8-strrchr.c: Likewise.
62517         * lib/unistr/u8-strspn.c: Likewise.
62518         * lib/unistr/u8-strstr.c: Likewise.
62519         * lib/unistr/u8-strtok.c: Likewise.
62520         * lib/unistr/u8-to-u16.c: Likewise.
62521         * lib/unistr/u8-to-u32.c: Likewise.
62522         * lib/unistr/u8-uctomb-aux.c: Likewise.
62523         * lib/unistr/u8-uctomb.c: Likewise.
62524         * lib/unitypes.h: Likewise.
62525         * lib/uniwidth.h: Likewise.
62526         * lib/uniwidth/cjk.h: Likewise.
62527         * lib/uniwidth/u16-strwidth.c: Likewise.
62528         * lib/uniwidth/u16-width.c: Likewise.
62529         * lib/uniwidth/u32-strwidth.c: Likewise.
62530         * lib/uniwidth/u32-width.c: Likewise.
62531         * lib/uniwidth/u8-strwidth.c: Likewise.
62532         * lib/uniwidth/u8-width.c: Likewise.
62533         * lib/uniwidth/width.c: Likewise.
62534
62535 2007-10-07  Bruno Haible  <bruno@clisp.org>
62536
62537         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
62538         The file is still under LGPL (see modules/inttypes).
62539
62540 2007-10-06  Bruno Haible  <bruno@clisp.org>
62541
62542         * modules/trunc (Dependencies): Add 'extensions'.
62543         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
62544         Reported by Ben Pfaff <blp@gnu.org>.
62545
62546 2007-10-06  Bruno Haible  <bruno@clisp.org>
62547
62548         * modules/freopen-tests: New file.
62549         * tests/test-freopen.c: New file.
62550
62551         * modules/fopen-tests: New file.
62552         * tests/test-fopen.c: New file.
62553
62554         * modules/fopen: New file.
62555         * lib/fopen.c: New file.
62556         * m4/fopen.m4: New file.
62557         * modules/freopen: New file.
62558         * lib/freopen.c: New file.
62559         * m4/freopen.m4: New file.
62560         * lib/stdio.in.h (fopen, freopen): New declarations.
62561         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
62562         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
62563         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
62564         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
62565         * doc/functions/fopen.texi: Mention the 'fopen' module.
62566         * doc/functions/freopen.texi: Mention the 'freopen' module.
62567
62568 2007-10-06  Bruno Haible  <bruno@clisp.org>
62569
62570         * modules/open-tests: New file.
62571         * tests/test-open.c: New file.
62572
62573         * modules/open: New file.
62574         * lib/open.c: New file.
62575         * m4/open.m4: New file.
62576         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
62577         lib/open.c does.
62578         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
62579         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
62580         macros.
62581         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
62582         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
62583         REPLACE_OPEN.
62584         * doc/functions/open.texi: Mention the 'open' module.
62585
62586 2007-10-04  Bruno Haible  <bruno@clisp.org>
62587
62588         * modules/ceill-tests: New file.
62589         * tests/test-ceill.c: New file.
62590
62591         * modules/ceill: New file.
62592         * lib/ceill.c: Replace entire file.
62593         * m4/ceill.m4: New file.
62594         * lib/math.in.h (ceill): Replace declaration.
62595         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
62596         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
62597         * doc/functions/ceill.texi: Mention the 'ceill' module.
62598         * modules/mathl (Files): Remove lib/ceill.c.
62599         (Depends-on): Add ceill.
62600
62601 2007-10-04  Bruno Haible  <bruno@clisp.org>
62602
62603         * modules/ceilf-tests: New file.
62604         * tests/test-ceilf.c: New file.
62605
62606         * modules/ceilf: New file.
62607         * lib/ceil.c: New file.
62608         * lib/ceilf.c: New file.
62609         * m4/ceilf.m4: New file.
62610         * lib/math.in.h (ceilf): New declaration.
62611         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
62612         HAVE_DECL_CEILF.
62613         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
62614         HAVE_DECL_CEILF.
62615         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
62616
62617 2007-10-04  Bruno Haible  <bruno@clisp.org>
62618
62619         * modules/floorl-tests: New file.
62620         * tests/test-floorl.c: New file.
62621
62622         * modules/floorl: New file.
62623         * lib/floorl.c: Replace entire file.
62624         * m4/floorl.m4: New file.
62625         * lib/math.in.h (floorl): Replace declaration.
62626         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
62627         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
62628         * doc/functions/floorl.texi: Mention the 'floorl' module.
62629         * modules/mathl (Files): Remove lib/floorl.c.
62630         (Depends-on): Add floorl.
62631
62632 2007-10-04  Bruno Haible  <bruno@clisp.org>
62633
62634         * modules/floorf-tests: New file.
62635         * tests/test-floorf.c: New file.
62636
62637         * modules/floorf: New file.
62638         * lib/floor.c: New file.
62639         * lib/floorf.c: New file.
62640         * m4/floorf.m4: New file.
62641         * lib/math.in.h (floorf): New declaration.
62642         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
62643         HAVE_DECL_FLOORF.
62644         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
62645         HAVE_DECL_FLOORF.
62646         * doc/functions/floorf.texi: Mention the 'floorf' module.
62647
62648 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
62649             Bruno Haible  <bruno@clisp.org>
62650
62651         Advertise for the Git server instead of the CVS server.
62652         * doc/gnulib-intro.texi (Steady Development): Mention the Git
62653         repository instead of the CVS one.
62654         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
62655         about all VCS systems generically.
62656         * doc/gnulib.texi (Introduction): Capitalize `Git'.
62657
62658 2007-10-04  Bruno Haible  <bruno@clisp.org>
62659
62660         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
62661         means.
62662         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
62663
62664 2007-10-04  Bruno Haible  <bruno@clisp.org>
62665
62666         * modules/truncl-tests: New file.
62667         * tests/test-truncl.c: New file.
62668
62669         * modules/truncl: New file.
62670         * lib/truncl.c: New file.
62671         * m4/truncl.m4: New file.
62672         * lib/math.in.h (truncl): New declaration.
62673         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
62674         HAVE_DECL_TRUNCL.
62675         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
62676         HAVE_DECL_TRUNCL.
62677         * doc/functions/truncl.texi: Mention the 'truncl' module.
62678
62679 2007-10-04  Bruno Haible  <bruno@clisp.org>
62680
62681         * modules/truncf-tests: New file.
62682         * tests/test-truncf.c: New file.
62683
62684         * modules/truncf: New file.
62685         * lib/trunc.c: Make paramerizable through USE_* macros.
62686         * lib/truncf.c: New file.
62687         * m4/truncf.m4: New file.
62688         * lib/math.in.h (truncf): New declaration.
62689         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
62690         HAVE_DECL_TRUNCF.
62691         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
62692         HAVE_DECL_TRUNCF.
62693         * doc/functions/truncf.texi: Mention the 'truncf' module.
62694
62695 2007-10-03  Bruno Haible  <bruno@clisp.org>
62696
62697         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
62698         augmentation also for tests modules.
62699         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
62700         * modules/atexit-tests (Makefile.am): Likewise.
62701         * modules/binary-io-tests (Makefile.am): Likewise.
62702         * modules/c-strcase-tests (Makefile.am): Likewise.
62703         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
62704         * modules/canonicalize-tests (Makefile.am): Likewise.
62705         * modules/closein-tests (Makefile.am): Likewise.
62706         * modules/fprintf-posix-tests (Makefile.am): Likewise.
62707         * modules/freadahead-tests (Makefile.am): Likewise.
62708         * modules/fseek-tests (Makefile.am): Likewise.
62709         * modules/fseeko-tests (Makefile.am): Likewise.
62710         * modules/ftell-tests (Makefile.am): Likewise.
62711         * modules/ftello-tests (Makefile.am): Likewise.
62712         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
62713         * modules/isnanl-tests (Makefile.am): Likewise.
62714         * modules/lseek-tests (Makefile.am): Likewise.
62715         * modules/mbscasecmp-tests (Makefile.am): Likewise.
62716         * modules/mbscasestr-tests (Makefile.am): Likewise.
62717         * modules/mbschr-tests (Makefile.am): Likewise.
62718         * modules/mbscspn-tests (Makefile.am): Likewise.
62719         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
62720         * modules/mbspbrk-tests (Makefile.am): Likewise.
62721         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
62722         * modules/mbsrchr-tests (Makefile.am): Likewise.
62723         * modules/mbsspn-tests (Makefile.am): Likewise.
62724         * modules/mbsstr-tests (Makefile.am): Likewise.
62725         * modules/printf-posix-tests (Makefile.am): Likewise.
62726         * modules/snprintf-posix-tests (Makefile.am): Likewise.
62727         * modules/sprintf-posix-tests (Makefile.am): Likewise.
62728         * modules/tsearch-tests (Makefile.am): Likewise.
62729         * modules/uniname/uniname-tests (Makefile.am): Likewise.
62730         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
62731         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
62732         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
62733         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
62734         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
62735         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
62736         * modules/vprintf-posix-tests (Makefile.am): Likewise.
62737         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
62738         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
62739         * modules/xstrtoimax-tests (Makefile.am): Likewise.
62740         * modules/xstrtol-tests (Makefile.am): Likewise.
62741         * modules/xstrtoumax-tests (Makefile.am): Likewise.
62742         * modules/yesno-tests (Makefile.am): Likewise.
62743
62744 2007-10-03  Bruno Haible  <bruno@clisp.org>
62745
62746         * modules/trunc-tests: New file.
62747         * tests/test-trunc.c: New file.
62748
62749         * modules/trunc: New file.
62750         * lib/trunc.c: New file.
62751         * m4/trunc.m4: New file.
62752         * lib/math.in.h (trunc): New declaration.
62753         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
62754         HAVE_DECL_TRUNC.
62755         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
62756         HAVE_DECL_TRUNC.
62757         * doc/functions/trunc.texi: Mention the 'trunc' module.
62758
62759 2007-10-03  Bruno Haible  <bruno@clisp.org>
62760
62761         * tests/test-fpending.c: New file, mostly copied
62762         from coreutils/lib/t-fpending.c.
62763         * modules/fpending-tests: New file.
62764
62765 2007-10-03  Bruno Haible  <bruno@clisp.org>
62766
62767         Port the stdio extensions to QNX (untested).
62768         * lib/fseterr.c (fseterr): Add support for QNX.
62769         * lib/fbufmode.c (fbufmode): Likewise.
62770         * lib/freadable.c (freadable): Likewise.
62771         * lib/fwritable.c (fwritable): Likewise.
62772         * lib/freading.c (freading): Likewise.
62773         * lib/fwriting.c (fwriting): Likewise.
62774         * lib/freadahead.c (freadahed): Likewise.
62775         * lib/fpurge.c (fpurge): Likewise.
62776         * lib/fseeko.c (rpl_fseeko): Likewise.
62777
62778 2007-10-03  Bruno Haible  <bruno@clisp.org>
62779             Jim Meyering  <jim@meyering.net>
62780             Eric Blake  <ebb9@byu.net>
62781
62782         * doc/relocatable.texi: Use @command instead of @program.
62783
62784 2007-10-02  Jim Meyering  <jim@meyering.net>
62785
62786         Perform one more "_.h" -> ".in.h" substitution.
62787         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
62788         instead of unistd_.h here, too.
62789
62790 2007-10-01  Bruno Haible  <bruno@clisp.org>
62791
62792         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
62793         Needed for the alloca-opt module.
62794
62795 2007-09-30  Bruno Haible  <bruno@clisp.org>
62796
62797         * lib/alloca.in.h: Renamed from lib/alloca_.h.
62798         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
62799         alloca_.h.
62800         * lib/argz.in.h: Renamed from lib/argz_.h.
62801         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
62802         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
62803         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
62804         byteswap_.h.
62805         * lib/dirent.in.h: Renamed from lib/dirent_.h.
62806         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
62807         dirent_.h.
62808         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
62809         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
62810         fcntl_.h.
62811         * lib/float.in.h: Renamed from lib/float_.h.
62812         * modules/float (Files, Makefile.am): Use float.in.h instead of
62813         float_.h.
62814         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
62815         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
62816         fnmatch_.h.
62817         * lib/getopt.in.h: Renamed from lib/getopt_.h.
62818         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
62819         getopt_.h.
62820         * lib/glob.in.h: Renamed from lib/glob_.h.
62821         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
62822         * lib/iconv.in.h: Renamed from lib/iconv_.h.
62823         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
62824         iconv_.h.
62825         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
62826         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
62827         inttypes_.h.
62828         * lib/locale.in.h: Renamed from lib/locale_.h.
62829         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
62830         locale_.h.
62831         * lib/math.in.h: Renamed from lib/math_.h.
62832         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
62833         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
62834         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
62835         of netinet_in_.h. Add dependency.
62836         * lib/poll.in.h: Renamed from lib/poll_.h.
62837         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
62838         * lib/search.in.h: Renamed from lib/search_.h.
62839         * modules/search (Files, Makefile.am): Use search.in.h instead of
62840         search_.h.
62841         * lib/signal.in.h: Renamed from lib/signal_.h.
62842         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
62843         _signal.h.
62844         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
62845         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
62846         stdbool_.h.
62847         * lib/stdint.in.h: Renamed from lib/stdint_.h.
62848         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
62849         stdint_.h.
62850         * lib/stdio.in.h: Renamed from lib/stdio_.h.
62851         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
62852         stdio_.h.
62853         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
62854         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
62855         stdlib_.h.
62856         * lib/string.in.h: Renamed from lib/string_.h.
62857         * modules/string (Files, Makefile.am): Use string.in.h instead of
62858         string_.h.
62859         * doc/gnulib-tool.texi (Initial import): Update.
62860         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
62861         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
62862         of sys_select_.h. Add dependency.
62863         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
62864         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
62865         of sys_socket_.h.
62866         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
62867         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
62868         sys_stat_.h.
62869         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
62870         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
62871         sys_time_.h.
62872         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
62873         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
62874         sysexits_.h.
62875         * lib/time.in.h: Renamed from lib/time_.h.
62876         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
62877         * lib/unistd.in.h: Renamed from lib/unistd_.h.
62878         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
62879         unistd_.h.
62880         * lib/wchar.in.h: Renamed from lib/wchar_.h.
62881         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
62882         wchar_.h.
62883         * lib/wctype.in.h: Renamed from lib/wctype_.h.
62884         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
62885         wctype_.h.
62886         * build-aux/bootstrap (slurp): Update.
62887         * lib/.cppi-disable: Update.
62888
62889 2007-09-30  Bruno Haible  <bruno@clisp.org>
62890
62891         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
62892         Needed on BeOS.
62893
62894 2007-09-30  Bruno Haible  <bruno@clisp.org>
62895
62896         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
62897
62898 2007-09-29  Bruno Haible  <bruno@clisp.org>
62899
62900         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
62901
62902 2007-09-29  Bruno Haible  <bruno@clisp.org>
62903
62904         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
62905         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
62906         * build-aux/install-reloc: Compile also areadlink.c.
62907         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
62908
62909 2007-09-29  Bruno Haible  <bruno@clisp.org>
62910
62911         * gnulib-tool (func_emit_initmacro_done): Indentation.
62912
62913 2007-09-29  Bruno Haible  <bruno@clisp.org>
62914
62915         * README: Add CVS checkout update instructions.
62916         Info from Bob Proulx <bob@proulx.com>.
62917
62918 2007-09-28  Eric Blake  <ebb9@byu.net>
62919
62920         Provide move-if-change.
62921         * build-aux/move-if-change: New file, based on best practice
62922         rather than any canonical upstream location.
62923
62924 2007-09-28  Jim Meyering  <jim@meyering.net>
62925
62926         Fix canonicalize loop-detection corner case.
62927         Do not attempt to stat the symlink values stored via seen_triple.
62928         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
62929         on linux-2.6.18, (but not 2.6.22).
62930         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
62931         triple_compare.  The former compares dev,ino,filename, while the latter
62932         would actually stat dirname(filename) when dev and ino were equal.
62933         * lib/hash-triple.c: Install <string.h>.
62934         (STREQ): Define.
62935         (triple_compare_ino_str): New function.
62936         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
62937
62938 2007-09-28  Eric Blake  <ebb9@byu.net>
62939
62940         Enforce that AC_REPLACE_FUNCS files exist.
62941         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
62942         override check for typos.
62943
62944         Fix test-closein on Solaris 10.
62945         * tests/test-closein.c (main): Don't assume stdin can be inherited
62946         closed on all systems.
62947         * tests/test-closein.sh: Likewise.
62948         Reported by Piotr Tarnowski.
62949
62950 2007-09-28  Jim Meyering  <jim@meyering.net>
62951
62952         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
62953
62954 2007-09-27  Jim Meyering  <jim@meyering.net>
62955
62956         canonicalize: Avoid a false-positive cycle failure.
62957         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
62958         Sort.  Remove cycle-check.
62959         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
62960         not cycle-check.h.
62961         (seen_triple): New function.
62962         (canonicalize_filename_mode): Use it instead of cycle-check.
62963         * tests/test-canonicalize.c: Add a test for this bug.
62964         * tests/test-canonicalize.sh: Set up and run the test.
62965
62966         New module, file-set, from coreutils.
62967         * modules/file-set: Define it.
62968         * lib/file-set.c, lib/file-set.h: Implement.
62969
62970         New module, hash-triple, from coreutils.
62971         * modules/hash-triple: Define it.
62972         * lib/hash-triple.c, lib/hash-triple.h: Implement.
62973
62974 2007-09-25  Eric Blake  <ebb9@byu.net>
62975
62976         Fix strerror on Interix.
62977         * lib/string_.h (strerror): Declare replacement.
62978         * doc/functions/strerror.texi (strerror): Document the Interix
62979         shortcoming.
62980         * modules/string (Makefile.am): Support new hooks.
62981         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
62982         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
62983         gl_FUNC_STRERROR_SEPARATE.
62984         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
62985         * lib/strerror.c (rpl_strerror): Provide replacement.
62986         * modules/strerror (Depends-on): Add string.
62987         (configure.ac): Detect use of module.
62988         * tests/test-strerror.c: New file.
62989         * modules/strerror-tests: New test module.
62990         * modules/argp (Depends-on): Add strerror.
62991         * modules/error (Depends-on): Likewise.
62992         Reported by Martin Koeppe.
62993
62994 2007-09-24  Bruno Haible  <bruno@clisp.org>
62995
62996         * README: Update git instructions.
62997
62998 2007-09-24  Eric Blake  <ebb9@byu.net>
62999
63000         Revert fpending breakage from 2007-09-08.
63001         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
63002         __fpending.c.
63003
63004 2007-09-24  Jim Meyering  <jim@meyering.net>
63005
63006         filenamecat.c: Add a test.
63007         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
63008         showing how the function works when DIR is the empty string.
63009
63010 2007-09-21  Simon Josefsson  <simon@josefsson.org>
63011
63012         * tests/test-canonicalize.sh: Turn on executable bit.
63013
63014 2007-09-19  Eric Blake  <ebb9@byu.net>
63015
63016         * README: Update CVS instructions.
63017
63018 2007-09-18  Bruno Haible  <bruno@clisp.org>
63019
63020         * modules/areadlink: New file.
63021         * lib/areadlink.h (areadlink): New declaration.
63022         * lib/areadlink.c: New file, based on lib/xreadlink.c.
63023
63024 2007-09-17  Jim Meyering  <jim@meyering.net>
63025
63026         * lib/savewd.c (ESTALE) [!defined]: Define.
63027         Reported to be required on Interix by Martin Koeppe.
63028
63029 2007-09-17  Bruno Haible  <bruno@clisp.org>
63030
63031         * gnulib-tool (func_version): Use $version.
63032
63033 2007-09-16  Bruno Haible  <bruno@clisp.org>
63034
63035         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
63036         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
63037         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
63038         Reported by Greg Schafer <gschafer@zip.com.au>.
63039
63040 2007-09-15  Bruno Haible  <bruno@clisp.org>
63041
63042         * gnulib-tool (sed): Try a little harder to make bash understand the
63043         alias.
63044         Reported by Bruce Korb <bruce.korb@gmail.com>.
63045
63046 2007-09-13  Eric Blake  <ebb9@byu.net>
63047
63048         * ChangeLog: Remove conflict markers.
63049
63050 2007-09-13  Simon Josefsson  <simon@josefsson.org>
63051
63052         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
63053         Reported by Bruno Haible <bruno@clisp.org>.
63054
63055 2007-09-12  Bruno Haible  <bruno@clisp.org>
63056
63057         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
63058         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
63059         is not defined.
63060
63061 2007-09-12  Eric Blake  <ebb9@byu.net>
63062
63063         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
63064         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
63065         Autoconf definition.
63066         * modules/euidaccess (Depends-on): Add extensions, for
63067         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
63068         * modules/fnmatch (Depends-on): Likewise.
63069         * modules/getaddrinfo (Depends-on): Likewise.
63070         * modules/getdelim (Depends-on): Likewise.
63071         * modules/getline (Depends-on): Likewise.
63072         * modules/getsubopt (Depends-on): Likewise.
63073         * modules/gettext (Depends-on): Likewise.
63074         * modules/group-member (Depends-on): Likewise.
63075         * modules/mbchar (Depends-on): Likewise.
63076         * modules/memmem (Depends-on): Likewise.
63077         * modules/mempcpy (Depends-on): Likewise.
63078         * modules/memrchr (Depends-on): Likewise.
63079         * modules/pagealign_alloc (Depends-on): Likewise.
63080         * modules/readutmp (Depends-on): Likewise.
63081         * modules/stpcpy (Depends-on): Likewise.
63082         * modules/stpncpy (Depends-on): Likewise.
63083         * modules/strchrnul (Depends-on): Likewise.
63084         * modules/strndup (Depends-on): Likewise.
63085         * modules/strsep (Depends-on): Likewise.
63086         * modules/strverscmp (Depends-on): Likewise.
63087         * modules/vasprintf (Depends-on): Likewise.
63088         * modules/wcwidth (Depends-on): Likewise.
63089         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
63090         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
63091         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
63092         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
63093         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
63094         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
63095         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
63096         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
63097         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
63098         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
63099         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
63100         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
63101         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
63102         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
63103         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
63104         * m4/readutmp.m4 (gl_READUTMP): Likewise.
63105         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
63106         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
63107         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
63108         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
63109         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
63110         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
63111         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
63112         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
63113         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
63114         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
63115         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
63116         so that lock.m4 can be used in gettext without extensions module.
63117
63118 2007-09-11  Bruno Haible  <bruno@clisp.org>
63119
63120         * m4/isc-posix.m4: Remove file.
63121         Suggested by Eric Blake.
63122
63123 2007-09-11  Eric Blake  <ebb9@byu.net>
63124
63125         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
63126
63127 2007-09-10  Bruno Haible  <bruno@clisp.org>
63128
63129         * posix-modules: Fix typo in error message.
63130         Reported by Matt <mkraai@beckman.com>.
63131
63132 2007-09-09  Bruno Haible  <bruno@clisp.org>
63133
63134         * doc/functions/getdelim.texi: Update list of platforms lacking the
63135         function.
63136         * doc/functions/getline.texi: Likewise.
63137
63138 2007-09-09  Jim Meyering  <jim@meyering.net>
63139
63140         * lib/hash.c (hash_initialize): Detect calloc failure.
63141         Reported by Bruno Haible.
63142
63143 2007-09-09  Bruno Haible  <bruno@clisp.org>
63144
63145         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
63146         malloc or realloc fails.
63147
63148 2007-09-09  Bruno Haible  <bruno@clisp.org>
63149
63150         * modules/getcwd (Depends-on): Add malloc-posix.
63151         * modules/glob (Depends-on): Likewise.
63152         * modules/putenv (Depends-on): Likewise.
63153         * modules/strdup (Depends-on): Likewise.
63154         * modules/getdelim (Depends-on): Add realloc-posix.
63155         * modules/read-file (Depends-on): Likewise.
63156
63157 2007-09-09  Bruno Haible  <bruno@clisp.org>
63158
63159         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
63160         (gl_FUNC_MALLOC_POSIX): Require it.
63161         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
63162         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
63163         * modules/realloc (Files): Add m4/malloc.m4.
63164         * modules/calloc (Files): Likewise.
63165
63166 2007-09-09  Bruno Haible  <bruno@clisp.org>
63167
63168         * modules/malloc-posix: New file.
63169         * modules/malloc (Depends-on): Add malloc-posix.
63170         * lib/malloc.c: Include errno.h.
63171         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
63172         and a POSIX-compatible malloc into a single function. Set ENOMEM
63173         when returning NULL.
63174         * m4/malloc.m4: New file.
63175         * doc/functions/malloc.texi: Mention the malloc-posix module.
63176         * lib/stdlib_.h (malloc): New declaration.
63177         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
63178         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
63179         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
63180         and HAVE_MALLOC_POSIX.
63181
63182 2007-09-09  Bruno Haible  <bruno@clisp.org>
63183
63184         * modules/realloc-posix: New file.
63185         * modules/realloc (Depends-on): Add realloc-posix.
63186         * lib/realloc.c: Include errno.h.
63187         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
63188         and a POSIX-compatible realloc into a single function. Set ENOMEM
63189         when returning NULL.
63190         * m4/realloc.m4: New file.
63191         * doc/functions/realloc.texi: Mention the realloc-posix module.
63192         * lib/stdlib_.h (realloc): New declaration.
63193         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
63194         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
63195         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
63196         and HAVE_REALLOC_POSIX.
63197
63198 2007-09-09  Bruno Haible  <bruno@clisp.org>
63199
63200         * modules/calloc-posix: New file.
63201         * modules/calloc (Depends-on): Add calloc-posix.
63202         * lib/calloc.c: Include errno.h.
63203         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
63204         and a POSIX-compatible calloc into a single function. Set ENOMEM
63205         when returning NULL.
63206         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
63207         * doc/functions/calloc.texi: Mention the calloc-posix module.
63208         * lib/stdlib_.h (calloc): New declaration.
63209         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
63210         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
63211         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
63212         and HAVE_CALLOC_POSIX.
63213
63214 2007-09-09  Bruno Haible  <bruno@clisp.org>
63215
63216         Allow for modules to show an arbitrary notice.
63217         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
63218         * gnulib-tool: New option --extract-notice.
63219         (func_usage): Document it.
63220         (sed_extract_prog): Update.
63221         (func_get_notice): New function.
63222         (func_modules_notice): New function.
63223         (func_import, func_create_testdir): Invoke it.
63224         Suggested by Jim Meyering.
63225
63226 2007-09-09  Bruno Haible  <bruno@clisp.org>
63227
63228         * gnulib-tool: New options --verbose, --quiet.
63229         (func_usage): Document them.
63230         (verbose): New variable.
63231         (func_execute_command): New function.
63232         (func_import): Don't show the module list and the file list if
63233         $verbose < 0.
63234         (func_create_testdir): Likewise. Use func_execute_command.
63235         (func_create_megatestdir): Use func_execute_command.
63236
63237 2007-09-08  Bruno Haible  <bruno@clisp.org>
63238
63239         * gnulib-tool (func_import): Prefer rsync over wget when available,
63240         for fetching the PO files.
63241
63242 2007-09-08  Bruno Haible  <bruno@clisp.org>
63243
63244         * posix-modules: New file. Portions copied from gnulib-tool.
63245         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
63246
63247 2007-09-08  Jim Meyering  <jim@meyering.net>
63248
63249         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
63250         * lib/fpending.h: Rename from __fpending.h.
63251         * lib/fpending.c: Rename from __fpending.c.
63252         Include "fpending.h", not "__fpending.h".
63253         * lib/__fpending.h, lib/__fpending.c: Remove files.
63254         * modules/fpending (Files): Reflect new file names.
63255         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
63256
63257 2007-09-08  Bruno Haible  <bruno@clisp.org>
63258
63259         * m4/inttypes-h.m4: Remove stub file.
63260
63261 2007-09-07  Simon Josefsson  <simon@josefsson.org>
63262
63263         * doc/headers/stdint.texi: Discuss #include_next issue.
63264
63265 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
63266
63267         * build-aux/bootstrap: Remove obsolete comment about wget --help.
63268
63269 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
63270
63271         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
63272         in variable name.
63273
63274 2007-09-03  Jim Meyering  <jim@meyering.net>
63275
63276         New module: git-version-gen.
63277         * modules/git-version-gen: New file.
63278
63279         Import changes from coreutils for bootstrap script.
63280
63281         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
63282
63283         bootstrap: uses rsync to download the .po files
63284         * build-aux/bootstrap (po_download_command_format): New global.
63285         (download_po_files): Use rsync.
63286         (update_po_files): Don't remove .po files after download,
63287         so future rsync runs can take advantage of the copies.
63288
63289         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
63290
63291         Solve the unnecessary-.po-file-regeneration problem once and for all.
63292         * build-aux/bootstrap (download_po_files): New function, renamed from
63293         get_translations.  Now, downloads, but doesn't update LINGUAS.
63294         (update_po_files): New function.
63295
63296         bootstrap: Ignore more.
63297         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
63298         uniwidth to e.g., lib/.gitignore.
63299         (slurp): Handle the sys_stat_.h -> sys mapping, too.
63300
63301         * build-aux/bootstrap: New setting: vc_ignore.
63302         (insert_sorted_if_absent): Create $file if absent.
63303         Adapt to new, possibly empty, list: $vc_ignore.
63304
63305         bootstrap: generate more ignorable names
63306         * build-aux/bootstrap (slurp): When generating ignorable names,
63307         also map .sin to .sed, .gperf to .c, and .y to .c.
63308
63309 2007-09-03  Jim Meyering  <jim@meyering.net>
63310
63311         * build-aux/git-version-gen: New file, from coreutils.  For details, see
63312         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
63313
63314 2007-09-02  Bruno Haible  <bruno@clisp.org>
63315
63316         Fix mis-recognition of 'mcs' on QNX 6.
63317         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
63318         output contains the string "Mono".
63319         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
63320         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
63321
63322 2007-09-01  Bruno Haible  <bruno@clisp.org>
63323
63324         Fix collision between uniwidth/* and linebreak modules.
63325         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
63326         u32_width): Remove declarations.
63327         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
63328         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
63329         streq3, streq2, streq1, streq0): Remove functions.
63330         (STREQ): Remove macro.
63331         (is_cjk_encoding): Remove function.
63332         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
63333         (uc_width, u8_width, u16_width, u32_width): Remove functions.
63334         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
63335         * NEWS: Document the change.
63336
63337 2007-09-01  Bruno Haible  <bruno@clisp.org>
63338
63339         * lib/streq.h: Add double-inclusion guard.
63340
63341 2007-09-01  Karl Berry  <karl@gnu.org>
63342
63343         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
63344
63345 2007-08-28  Jim Meyering  <jim@meyering.net>
63346
63347         Rename mreadlink_with_size to areadlink_with_size.
63348         * NEWS: Document the change.
63349         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
63350         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
63351         * lib/mreadlink.h: Rename this to...
63352         * lib/areadlink.h: ...this.
63353         * modules/mreadlink-with-size: Rename this to...
63354         * modules/areadlink-with-size: ...this.
63355         * lib/canonicalize.c: Reflect the renaming.
63356         * modules/canonicalize: Likewise.
63357
63358 2007-08-26  Bruno Haible  <bruno@clisp.org>
63359
63360         * gnulib-tool (func_import): When deciding which files to remove,
63361         consider also dangling symbolic links.
63362         Reported by Eric Blake.
63363
63364 2007-08-26  Bruno Haible  <bruno@clisp.org>
63365
63366         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
63367
63368 2007-08-23  Simon Josefsson  <simon@josefsson.org>
63369
63370         * lib/readline.c: Don't include getline.h, the prototype is now
63371         found in stdio.h.
63372
63373 2007-08-23  Jim Meyering  <jim@meyering.net>
63374
63375         Getdelim touchup.
63376         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
63377         around the funlockfile call, since funlockfile never sets errno.
63378         Don't set errno upon failed realloc.
63379
63380 2007-08-22  Eric Blake  <ebb9@byu.net>
63381
63382         Getline touchups.
63383         * lib/getdelim.c (getdelim): Revert regression that required *n to
63384         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
63385         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
63386         getdelim, rather than whether implementation is missing.
63387         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
63388         * lib/stdio_.h (getline): Also declare if replacement is
63389         required.
63390         * doc/functions/getdelim.texi: New file.
63391         * doc/functions/getline.texi: Likewise.
63392         * doc/gnulib.texi (Function Substitutes): Add new files.
63393         Reported by Bruno Haible.
63394
63395 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
63396
63397         * users.txt: Add Guile.
63398
63399 2007-08-22  Eric Blake  <ebb9@byu.net>
63400
63401         * tests/test-getdelim.c (main): Use remove, not unlink.
63402         * tests/test-getline.c (main): Likewise.
63403
63404         Move getline and getdelim into stdio.h, per POSIX 200x.
63405         * modules/getline (Files): Remove getline.h.
63406         (Depends-on): Add stdio.
63407         (configure.ac): Add module indicator.
63408         * modules/getdelim (Files): Remove getdelim.h.
63409         (Depends-on): Add stdio.
63410         (configure.ac): Add module indicator.
63411         * modules/stdio (Makefile.am): Work with new indicators.
63412         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
63413         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
63414         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
63415         * lib/getdelim.h: Delete.
63416         * lib/getline.h: Delete.
63417         * lib/stdio_.h (getdelim, getline): Declare.
63418         * modules/getdelim-tests: New module.
63419         * modules/getline-tests: Likewise.
63420         * tests/test-getdelim.c: New file.
63421         * tests/test-getline.c: Likewise.
63422         * NEWS: Document the change.
63423         * lib/getline.c: Update choice of header.
63424         * lib/csharpcomp.c: Likewise.
63425         * lib/getpass.c: Likewise.
63426         * lib/javacomp.c: Likewise.
63427         * lib/javaversion.c: Likewise.
63428         * lib/yesno.c: Likewise.
63429         * lib/getdelim.c: Likewise.
63430         (getdelim): Set errno on failure, and avoid memory leak.
63431
63432 2007-08-19  Bruno Haible  <bruno@clisp.org>
63433
63434         * modules/closein (Depends-on): Add freadahead.
63435         * lib/closein.c: Include freadahead.h.
63436         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
63437         is zero.
63438
63439 2007-08-19  Bruno Haible  <bruno@clisp.org>
63440
63441         * modules/freadahead-tests: New file.
63442         * tests/test-freadahead.sh: New file.
63443         * tests/test-freadahead.c: New file.
63444
63445         * modules/freadahead: New file.
63446         * lib/freadahead.h: New file.
63447         * lib/freadahead.c: New file.
63448         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
63449         fbufmode, fpurge, freadable, fwritable.
63450
63451 2007-08-19  Eric Blake  <ebb9@byu.net>
63452
63453         Test yesno in combination with closein.
63454         * lib/yesno.c (yesno): Document use of stdin.
63455         * modules/yesno-tests (Files): New module.
63456         * tests/test-yesno.c (main): New file.
63457         * tests/test-yesno.sh: Likewise.
63458
63459 2007-08-19  Bruno Haible  <bruno@clisp.org>
63460
63461         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
63462         * lib/fseeko.c (rpl_fseeko): Likewise.
63463         * lib/fseterr.c (fseterr): Likewise.
63464
63465 2007-08-19  Bruno Haible  <bruno@clisp.org>
63466
63467         * tests/test-lseek.c (main): Disable a test for BeOS.
63468         * doc/functions/lseek.texi: Document the BeOS bug.
63469
63470 2007-08-19  Bruno Haible  <bruno@clisp.org>
63471             Eric Blake  <ebb9@byu.net>
63472
63473         * lib/lseek.c: Include <sys/stat.h>.
63474         (rpl_lseek): Add workaround code also for Unix platforms.
63475         Needed for BeOS.
63476         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
63477         * doc/functions/lseek.texi: Document BeOS definiency.
63478
63479 2007-08-18  Bruno Haible  <bruno@clisp.org>
63480
63481         * modules/fstrcmp-tests: New file.
63482         * tests/test-fstrcmp.c: New file.
63483
63484 2007-08-18  Bruno Haible  <bruno@clisp.org>
63485
63486         * modules/fstrcmp: New file, from GNU gettext with modifications.
63487         * lib/fstrcmp.h: New file, from GNU gettext.
63488         * lib/fstrcmp.c: New file, from GNU gettext.
63489         * MODULES.html.sh (String handling): Add fstrcmp.
63490
63491 2007-08-18  Bruno Haible  <bruno@clisp.org>
63492
63493         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
63494         'bool'.
63495         (diag, compareseq): Remove const from the ctxt argument.
63496         (USE_HEURISTIC): Undefine at the end.
63497
63498 2007-08-18  Jim Meyering  <jim@meyering.net>
63499
63500         New file: lib/idcache.h
63501         * NEWS: Mention the addition.
63502         * modules/idcache (Files): Add lib/idcache.h
63503         * lib/idcache.c: Include "idcache.h".
63504         Don't include <sys/types.h>.
63505         Add a FIXME comment.
63506         Move file-scoped "static" declarations to the top.
63507         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
63508
63509 2007-08-17  Bruno Haible  <bruno@clisp.org>
63510         and Paul Eggert  <eggert@cs.ucla.edu>
63511
63512         * MODULES.html.sh: Add diffseq.
63513         * modules/diffseq: New file.
63514         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
63515         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
63516
63517 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
63518
63519         Import changes from coreutils for bootstrap script.
63520
63521         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
63522
63523         * build-aux/bootstrap (slurp): Work even in environments where
63524         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
63525         current code does not slurp files whose names start with ".", and
63526         this looks like it might be a troublesome area.
63527
63528         2007-07-11  Jim Meyering  <jim@meyering.net>
63529
63530         If there's a GPL vN copyright comment, require that N == 3.
63531
63532         2007-07-08  Jim Meyering  <jim@meyering.net>
63533
63534         Run the coreutils-specific code only if tests/Makefile.am.in exists.
63535         * build-aux/bootstrap (mam_template): Move definition out of loop.
63536
63537         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
63538
63539         * build-aux/bootstrap (symlink_to_dir): Rename function from
63540         symlink_to_gnulib.  Add a directory parameter.  Update all
63541         callers.
63542         (cp_mark_as_generated): Also check for -- and link to -- files in
63543         gl/.
63544
63545         2007-07-08  Jim Meyering  <jim@meyering.net>
63546
63547         Adapt to deeper hierarchy in gnulib.
63548         * build-aux/bootstrap (symlink_to_dir): If the destination
63549         directory doesn't exist, create it. This is required at least for
63550         "lib/uniwidth/cjk.h".
63551
63552         2007-05-15  Jim Meyering  <jim@meyering.net>
63553
63554         * build-aux/bootstrap: Now that generated Makefile.am files
63555         are no longer under version control, they must be created at
63556         bootstrap time.
63557
63558 2007-08-14  Ben Pfaff  <blp@gnu.org>
63559
63560         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
63561
63562 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
63563
63564         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
63565         given the changes below.
63566         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
63567         even on hosts that have padding bits beyond the supported 64.
63568
63569 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
63570
63571         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
63572         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
63573         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
63574         depends on it.
63575         (xstrtol_error): Remove.
63576         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
63577         but with a different signature.
63578         (ATTRIBUTE_NORETURN, __attribute__): New macros.
63579         * lib/xstrtol-error.c: Include exitfail.h.
63580         (xstrtol_fatal): New function, with a different signature from the
63581         old xstrtol_error, so that the caller need not worry about passing
63582         in an exit status, or about storage management of the option argument.
63583         (xstrtol_error): Now a static function.  Redo signature to
63584         implement xstrtol_fatal.  Output the correct number of hyphens in
63585         front of the option so that the caller need not worry about
63586         storage management.
63587         (N_): New macro.
63588         (_): Remove; not used now.
63589         * modules/xstrtol: Depend on getopt.
63590         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
63591         of old STRTOL_FATAL_ERROR macro.
63592         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
63593         of test program.
63594         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
63595         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
63596
63597 2007-08-08  Eric Blake  <ebb9@byu.net>
63598
63599         * lib/xstrtol-error.c: Add missing include.
63600
63601         Move xstrtol messages into gnulib domain, when --pobase is used.
63602         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
63603         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
63604         * modules/xstrtol (Files): Distribute new file.
63605         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
63606         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
63607         * tests/test-xstrtol.c: ...into new file.
63608         * tests/test-xstrtoul.c: Also test xstrtoul.
63609         * tests/test-xstrtoimax.c: Also test xstrtoimax.
63610         * tests/test-xstrtoumax.c: Also test xstrtoumax.
63611         * tests/test-xstrtol.sh: Drive the tests.
63612         * tests/test-xstrtoimax.sh: Likewise.
63613         * tests/test-xstrtoumax.sh: Likewise.
63614         * modules/xstrtol-tests: New module.
63615         * modules/xstrtoimax-tests: Likewise.
63616         * modules/xstrtoumax-tests: Likewise.
63617
63618 2007-08-08  Jim Meyering  <jim@meyering.net>
63619
63620         New function: mfile_name_concat.
63621         * lib/filenamecat.c (mfile_name_concat): New function, just like
63622         file_name_concat, but return NULL upon failure rather than exiting
63623         with a diagnostic.
63624         * lib/filenamecat.h: Declare it.
63625
63626 2007-08-07  Bruno Haible  <bruno@clisp.org>
63627
63628         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
63629         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
63630         warning from gcc.
63631         Reported by Eric Blake.
63632
63633 2007-08-07  Simon Josefsson  <simon@josefsson.org>
63634
63635         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
63636         * modules/crypto/arcfour (License): Likewise.
63637         * modules/crypto/des-tests (License): Likewise.
63638         * modules/crypto/gc-arctwo-tests (License): Likewise.
63639         * modules/crypto/gc-des-tests (License): Likewise.
63640         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
63641         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
63642         * modules/crypto/gc-md2-tests (License): Likewise.
63643         * modules/crypto/gc-md4-tests (License): Likewise.
63644         * modules/crypto/gc-md5-tests (License): Likewise.
63645         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
63646         * modules/crypto/gc-rijndael-tests (License): Likewise.
63647         * modules/crypto/gc-sha1-tests (License): Likewise.
63648         * modules/crypto/gc-tests (License): Likewise.
63649         * modules/crypto/hmac-md5 (License): Likewise.
63650         * modules/crypto/hmac-sha1 (License): Likewise.
63651         * modules/crypto/md2-tests (License): Likewise.
63652         * modules/crypto/md4-tests (License): Likewise.
63653         * modules/crypto/md5 (License): Likewise.
63654         * modules/crypto/rijndael (License): Likewise.
63655         * modules/crypto/sha1 (License): Likewise.
63656         * modules/memxor (License): Likewise.
63657
63658 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
63659         and Bruno Haible  <bruno@clisp.org>
63660
63661         * NEWS: Describe interface changes to human, xstrtol.
63662         * lib/human.h: Include <xstrtol.h>.
63663         (human_options): Return enum strtol_error, not int.  Remove
63664         bool arg; take int * instead.
63665         * lib/human.c: Don't include "gettext.h".
63666         (_): Remove; no longer used.
63667         Don't include <xstrtol.h>, since human.h does it.
63668         (human_options): Adjust to abovementioned interface changes.
63669         Do not report error to stderr; that's now the caller's
63670         responsibility.
63671         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
63672         interface change.
63673         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
63674         Str, Argument_type_string.  All uses changed.  Put " argument"
63675         in diagnostics to make them clearer.  Change wording of suffix
63676         message for clarity.
63677         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
63678         Argument_type_string.
63679         (STRTOL_FATAL_WARN): Remove; no longer used.
63680         * modules/human (Depends-on): Remove gettext-h.
63681
63682 2007-08-06  Simon Josefsson  <simon@josefsson.org>
63683
63684         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
63685
63686 2007-07-31  Bruno Haible  <bruno@clisp.org>
63687
63688         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
63689         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
63690         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
63691
63692 2007-07-31  Bruno Haible  <bruno@clisp.org>
63693
63694         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
63695         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
63696
63697 2007-07-30  Bruno Haible  <bruno@clisp.org>
63698
63699         * modules/base64 (License): Use the synonymous term "LGPLv2+".
63700         * modules/c-ctype (License): Likewise.
63701         * modules/c-strcase (License): Likewise.
63702         * modules/check-version (License): Likewise.
63703         * modules/iconv (License): Likewise.
63704         * modules/iconv_open (License): Likewise.
63705         * modules/read-file (License): Likewise.
63706         * modules/striconv (License): Likewise.
63707         * modules/strverscmp (License): Likewise.
63708         * modules/vasprintf (License): Likewise.
63709         * modules/crypto/des (License): Likewise.
63710         * modules/crypto/gc (License): Likewise.
63711         * modules/crypto/gc-arcfour (License): Likewise.
63712         * modules/crypto/gc-arctwo (License): Likewise.
63713         * modules/crypto/gc-des (License): Likewise.
63714         * modules/crypto/gc-hmac-md5 (License): Likewise.
63715         * modules/crypto/gc-hmac-sha1 (License): Likewise.
63716         * modules/crypto/gc-md2 (License): Likewise.
63717         * modules/crypto/gc-md4 (License): Likewise.
63718         * modules/crypto/gc-md5 (License): Likewise.
63719         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
63720         * modules/crypto/gc-random (License): Likewise.
63721         * modules/crypto/gc-rijndael (License): Likewise.
63722         * modules/crypto/gc-sha1 (License): Likewise.
63723         * modules/crypto/md2 (License): Likewise.
63724         * modules/crypto/md4 (License): Likewise.
63725
63726 2007-07-30  Jim Meyering  <jim@meyering.net>
63727
63728         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
63729         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
63730         it has valid stat data.  This bug would cause du not to count the
63731         sizes of inaccessible directories.
63732         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
63733         in <http://bugzilla.redhat.com/250077>.
63734
63735 2007-07-25  Peter O'Gorman  <peter@pogma.com>
63736             Bruno Haible  <bruno@clisp.org>
63737
63738         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
63739         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
63740         #include_next, gives a diagnostic about it, but reports no error in
63741         the exit code.
63742         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
63743
63744 2007-07-24  Ben Pfaff  <blp@gnu.org>
63745
63746         Improve name: "count-one-bits" is better than "popcount".
63747         * MODULES.html.sh: Update name.
63748         * lib/popcount.h: Renamed lib/count-one-bits.h.
63749         (popcount): Renamed count_one_bits.
63750         (popcountl): Renamed count_one_bits_l.
63751         (popcountll): Renamed count_one_bits_ll.
63752         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
63753         * modules/popcount: Renamed module/count-one-bits.
63754         * modules/popcount-tests: Renamed module/count-one-bits-tests.
63755         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
63756
63757 2007-07-23  Ben Pfaff  <blp@gnu.org>
63758
63759         * lib/popcount.h (popcount32): Reduce size of constants, to allow
63760         better code generation, and add U to large constants to avoid
63761         warnings, in non-GCC case.
63762         Suggested by Bruno Haible.
63763
63764 2007-07-23  Ben Pfaff  <blp@gnu.org>
63765
63766         * lib/popcount.h: Use verify_true instead of if...abort.
63767         * modules/popcount: Depend on verify module.
63768         Suggested by Jim Meyering.
63769
63770 2007-07-23  Bruno Haible  <bruno@clisp.org>
63771
63772         * gnulib-tool (func_import): Create a .cvsignore file also when the
63773         directory is not yet in CVS but the toplevel directory is. When
63774         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
63775         Reported by Karl Berry.
63776
63777 2007-07-22  Ben Pfaff  <blp@gnu.org>
63778
63779         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
63780         case.
63781         Suggested by Eric Blake.
63782
63783 2007-07-22  Ben Pfaff  <blp@gnu.org>
63784
63785         New module: popcount.
63786         * MODULES.html.sh: Add popcount.
63787         * modules/popcount: New file.
63788         * modules/popcount-tests: New file.
63789         * tests/test-popcount.c: New file.
63790         * lib/popcount.h: New file.
63791         * m4/popcount.m4: New file.
63792
63793 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
63794
63795         * build-aux/announce-gen: Update to GPLv3.
63796
63797         * build-aux/config.guess: Update from config.
63798
63799 2007-07-21  Bruno Haible  <bruno@clisp.org>
63800
63801         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
63802         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
63803
63804 2007-07-20  Jim Meyering  <jim@meyering.net>
63805
63806         * check-module: Diagnose a self-dependency.
63807
63808 2007-07-19  Bruno Haible  <bruno@clisp.org>
63809
63810         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
63811         empty.
63812         Reported by Eric Blake.
63813
63814 2007-07-18  Bruno Haible  <bruno@clisp.org>
63815
63816         * gnulib-tool: New options --po-base, --po-domain.
63817         (func_usage): Document them.
63818         (pobase, po_domain): New variables.
63819         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
63820         DEFAULT_TEXT_DOMAIN.
63821         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
63822         (func_import): Consider pobase and po_domain. Create a po/ directory.
63823         (func_create_testdir): Set pobase and po_domain to empty.
63824         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
63825         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
63826
63827 2007-07-18  Bruno Haible  <bruno@clisp.org>
63828
63829         * gnulib-tool (func_get_automake_snippet): Synthesize also an
63830         EXTRA_DIST augmentation for files in build-aux/.
63831
63832 2007-07-16  Bruno Haible  <bruno@clisp.org>
63833
63834         * modules/lseek (License): Use the synonymous term "LGPLv2+".
63835         * modules/getdelim (License): Likewise.
63836
63837 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
63838
63839         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
63840         * modules/d-type (License): Likewise.
63841         * modules/extensions (License): Likewise.
63842         * modules/fnmatch (License): Likewise.
63843         * modules/fseeko (License): Likewise.
63844         * modules/getaddrinfo (License): Likewise.
63845         * modules/getline (License): Likewise.
63846         * modules/getlogin_r (License): Likewise.
63847         * modules/getpass (License): Likewise.
63848         * modules/gettimeofday (License): Likewise.
63849         * modules/glob (License): Likewise.
63850         * modules/inet_ntop (License): Likewise.
63851         * modules/malloc (License): Likewise.
63852         * modules/malloca (License): Likewise.
63853         * modules/memmem (License): Likewise.
63854         * modules/mempcpy (License): Likewise.
63855         * modules/memset (License): Likewise.
63856         * modules/minmax (License): Likewise.
63857         * modules/mktime (License): Likewise.
63858         * modules/netinet_in (License): Likewise.
63859         * modules/pathmax (License): Likewise.
63860         * modules/poll (License): Likewise.
63861         * modules/regex (License): Likewise.
63862         * modules/snprintf (License): Likewise.
63863         * modules/stdbool (License): Likewise.
63864         * modules/stdint (License): Likewise.
63865         * modules/stdio (License): Likewise.
63866         * modules/strcase (License): Likewise.
63867         * modules/strcasestr (License): Likewise.
63868         * modules/strdup (License): Likewise.
63869         * modules/string (License): Likewise.
63870         * modules/strndup (License): Likewise.
63871         * modules/strnlen (License): Likewise.
63872         * modules/strpbrk (License): Likewise.
63873         * modules/strptime (License): Likewise.
63874         * modules/strsep (License): Likewise.
63875         * modules/sys_select (License): Likewise.
63876         * modules/sys_socket (License): Likewise.
63877         * modules/sys_stat (License): Likewise.
63878         * modules/sys_time (License): Likewise.
63879         * modules/time (License): Likewise.
63880         * modules/time_r (License): Likewise.
63881         * modules/timegm (License): Likewise.
63882         * modules/unistd (License): Likewise.
63883         * modules/vsnprintf (License): Likewise.
63884         * modules/wctype (License): Likewise.
63885
63886 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63887
63888         * modules/argz (License): LGPLv2+.
63889
63890 2007-07-15  Karl Berry  <karl@gnu.org>
63891
63892         * doc/gnulib.texi: revise node structure per new fdl.texi.
63893
63894 2007-07-14  Bruno Haible  <bruno@clisp.org>
63895
63896         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
63897         the output file.
63898         * lib/uniname/uninames.h: Regenerated.
63899
63900 2007-07-14  Karl Berry  <karl@gnu.org>
63901
63902         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
63903         omitting sectioning and index commands.
63904
63905 2007-07-13  Bruno Haible  <bruno@clisp.org>
63906
63907         New gnulib-tool option --more-symlinks.
63908         * gnulib-tool (func_usage): Document --more-symlinks.
63909         (do_copyrights): New variable.
63910         Recognize option --more-symlinks.
63911         (func_import): Don't add a copyright notice transform to
63912         sed_transform_lib_file if do_copyrights is empty.
63913
63914 2007-07-13  Bruno Haible  <bruno@clisp.org>
63915
63916         * lib/vasnprintf.c (decimal_point_char): Define also if
63917         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
63918         && !NEED_PRINTF_DIRECTIVE_A.
63919         Reported by Clemens Koller <clemens.koller@anagramm.de> via
63920         Gary V. Vaughan <gary@gnu.org>.
63921
63922 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
63923
63924         * lib/inttypes_.h: Undo previous change, since it was fixed
63925         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
63926
63927 2007-07-13  Bruno Haible  <bruno@clisp.org>
63928
63929         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
63930         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
63931
63932 2007-07-13  Jim Meyering  <jim@meyering.net>
63933
63934         df: Don't fail for Tru64's "file-on-file mount".
63935         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
63936         so we fall through and use statfs instead.  Details here:
63937         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
63938         Reported by Albert Chin.
63939
63940 2007-07-13  Bruno Haible  <bruno@clisp.org>
63941
63942         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
63943         * modules/configmake (License): Likewise.
63944         * modules/gettext (License): Likewise.
63945         * modules/gettext-h (License): Likewise.
63946         * modules/include_next (License): Likewise.
63947         * modules/link-warning (License): Likewise.
63948         * modules/localcharset (License): Likewise.
63949         * modules/localename (License): Likewise.
63950         * modules/lock (License): Likewise.
63951         * modules/relocatable-lib-lgpl (License): Likewise.
63952         * modules/size_max (License): Likewise.
63953         * modules/vasnprintf (License): Likewise.
63954         * modules/wchar (License): Likewise.
63955         * modules/xsize (License): Likewise.
63956
63957 2007-07-13  Bruno Haible  <bruno@clisp.org>
63958
63959         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
63960         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
63961
63962 2007-07-12  Bruno Haible  <bruno@clisp.org>
63963
63964         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
63965         in the modules files.
63966
63967 2007-07-11  Karl Berry  <karl@gnu.org>
63968
63969         * MODULES.html.sh (func_module): use
63970          sed -e '\|^'"${includefile}"'$|d'
63971          instead of /.../d, to avoid errors on $includefile's containing /.
63972
63973 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
63974
63975         * gnulib-tool (func_import): Avoid duplication of --avoid
63976         statements
63977         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
63978         names to `_' in variable names.
63979
63980 2007-07-10  Eric Blake  <ebb9@byu.net>
63981
63982         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
63983         * NEWS: Document this change.
63984
63985 2007-07-08  Bruno Haible  <bruno@clisp.org>
63986
63987         Update to Unicode 5.0.
63988         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
63989         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
63990         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
63991         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
63992         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
63993         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
63994         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
63995         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
63996         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
63997         U+10A3F, U+1D242..U+1D244.
63998         (nonspacing_table_ind): Update.
63999         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
64000         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
64001
64002 2007-07-08  Bruno Haible  <bruno@clisp.org>
64003
64004         Update to Unicode 5.0.
64005         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
64006         code transform. Extend the name index field of unicode_name_to_code and
64007         unicode_code_to_name from 16 to 24 bits.
64008         * lib/uniname/uniname.c (unicode_character_name,
64009         unicode_name_character): Add the range 0x12xxx to the code transform.
64010         * lib/uniname/uninames.h: Regenerated.
64011         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
64012
64013 2007-07-07  Bruno Haible  <bruno@clisp.org>
64014
64015         * modules/wcwidth-tests: New file.
64016         * tests/test-wcwidth.c: New file.
64017
64018         Work around MacOS X wcwidth() bug.
64019         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
64020         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
64021         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
64022         original wcwidth in non-UTF-8 locales.
64023         * modules/wcwidth (Depends-on): Add localcharset, streq,
64024         uniwidth/width.
64025         * doc/functions/wcwidth.texi: Update.
64026
64027 2007-07-07  Bruno Haible  <bruno@clisp.org>
64028
64029         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
64030         (wcwidth): New declaration.
64031         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
64032         macros.
64033         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
64034         here. Prepare for creating <wchar.h> unconditionally.
64035         * modules/wchar (Depends-on): Add link-warning.
64036         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
64037         REPLACE_WCWIDTH, and GL_LINK_WARNING.
64038         * lib/wcwidth.h: Remove file.
64039         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
64040         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
64041         * modules/wcwidth (Files): Remove lib/wcwidth.h.
64042         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
64043         (Include): Replace wcwidth.h with <wchar.h>.
64044         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
64045         * lib/mbchar.h: Don't include wcwidth.h.
64046         * lib/mbswidth.c: Likewise.
64047         * NEWS: Mention the change.
64048
64049 2007-07-07  Bruno Haible  <bruno@clisp.org>
64050
64051         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
64052         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
64053         definition with an external declaration.
64054         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
64055         defined as a function. Remove AC_C_INLINE requirement.
64056         * modules/wcwidth (Files): Add lib/wcwidth.c.
64057         (Makefile.am): Remove redundant statement.
64058
64059 2007-07-07  Bruno Haible  <bruno@clisp.org>
64060
64061         * MODULES.html.sh (Unicode string functions): Add the new modules.
64062
64063         * tests/uniwidth/test-u32-strwidth.c: New file.
64064         * modules/uniwidth/u32-strwidth-tests: New file.
64065
64066         * lib/uniwidth/u32-strwidth.c: New file.
64067         * modules/uniwidth/u32-strwidth: New file.
64068
64069         * tests/uniwidth/test-u16-strwidth.c: New file.
64070         * modules/uniwidth/u16-strwidth-tests: New file.
64071
64072         * lib/uniwidth/u16-strwidth.c: New file.
64073         * modules/uniwidth/u16-strwidth: New file.
64074
64075         * tests/uniwidth/test-u8-strwidth.c: New file.
64076         * modules/uniwidth/u8-strwidth-tests: New file.
64077
64078         * lib/uniwidth/u8-strwidth.c: New file.
64079         * modules/uniwidth/u8-strwidth: New file.
64080
64081         * tests/uniwidth/test-u32-width.c: New file.
64082         * modules/uniwidth/u32-width-tests: New file.
64083
64084         * lib/uniwidth/u32-width.c: New file.
64085         * modules/uniwidth/u32-width: New file.
64086
64087         * tests/uniwidth/test-u16-width.c: New file.
64088         * modules/uniwidth/u16-width-tests: New file.
64089
64090         * lib/uniwidth/u16-width.c: New file.
64091         * modules/uniwidth/u16-width: New file.
64092
64093         * tests/uniwidth/test-u8-width.c: New file.
64094         * modules/uniwidth/u8-width-tests: New file.
64095
64096         * lib/uniwidth/u8-width.c: New file.
64097         * modules/uniwidth/u8-width: New file.
64098
64099         * tests/uniwidth/test-uc_width.c: New file.
64100         * modules/uniwidth/width-tests: New file.
64101
64102         * lib/uniwidth/width.c: New file, from GNU libiconv.
64103         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
64104         * modules/uniwidth/width: New file.
64105
64106         * lib/uniwidth.h: New file, from GNU libiconv.
64107         * modules/uniwidth/base: New file.
64108
64109 2007-07-07  Bruno Haible  <bruno@clisp.org>
64110
64111         * lib/uniname.h: New file, from GNU gettext.
64112         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
64113         * lib/uniname/uninames.h: New file, from GNU gettext.
64114         * lib/uniname/uniname.c: New file, from GNU gettext.
64115         * tests/uniname/test-uninames.sh: New file.
64116         * tests/uniname/test-uninames.c: New file, from GNU gettext.
64117         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
64118         * modules/uniname/base: New file.
64119         * modules/uniname/uniname: New file.
64120         * modules/uniname/uniname-tests: New file.
64121         * MODULES.html.sh (Unicode string functions): Add the new modules.
64122
64123 2007-07-06  Bruno Haible  <bruno@clisp.org>
64124
64125         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
64126
64127 2007-07-06  Bruno Haible  <bruno@clisp.org>
64128
64129         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
64130         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
64131         includes <cygwin/sys_time.h> which includes <sys/select.h> which
64132         include <sys/time.h>.
64133         Reported by Eric Blake.
64134
64135 2007-07-06  Eric Blake  <ebb9@byu.net>
64136
64137         Fix testing canonicalize on cygwin.
64138         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
64139         Revert patch from 2007-06-19.
64140         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
64141         canonicalize module is also in use.
64142         * tests/test-canonicalize.c: New file.
64143         * tests/test-canonicalize.sh: Likewise.
64144         * modules/canonicalize-tests: Likewise.
64145
64146 2007-07-06  Jim Meyering  <jim@meyering.net>
64147
64148         * lib/getugroups.c (getugroups): Detect getgrent failure.
64149         Adjust comment to reflect reality: this function may return -1.
64150
64151 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
64152
64153         * build-aux/bootstrap (TP_URL,get_translations): Update to use
64154         the new TP address.
64155         (usage): Fix typo
64156         (gnulib_mk): New variable.
64157
64158 2007-07-05  Jim Meyering  <jim@meyering.net>
64159
64160         Don't let endgrent clobber errno, no matter how improbable.
64161         * lib/getugroups.c (getugroups): Save and restore errno around
64162         endgrent call.
64163
64164         Close the group DB even when failing with 2^31 or more members.
64165         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
64166
64167 2007-07-04  Jim Meyering  <jim@meyering.net>
64168
64169         * lib/getugroups.h: New file.
64170         * lib/getugroups.c: Include "getugroups.h".
64171         Remove uses of "register" keyword.
64172         Move local variable, "cp", down into scope where used.
64173         Give "username" parameter the "const" attribute.
64174         * modules/getugroups (Files): Add lib/getugroups.h
64175
64176 2007-07-04  Karl Berry  <karl@gnu.org>
64177
64178         * MODULES.html.sh (func_all_modules): Complete rename of
64179         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
64180
64181 2007-07-02  Bruno Haible  <bruno@clisp.org>
64182
64183         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
64184         mode, when inttypes.h comes from gnulib.
64185         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
64186
64187 2007-07-02  Simon Josefsson  <simon@josefsson.org>
64188
64189         * NEWS: Mention lgpl module name change.
64190
64191         * modules/lgpl-2.1: Renamed from lgpl.
64192
64193         * NEWS: Mention gpl module name change.
64194
64195         * modules/gpl-3.0: New file, based on gpl-2.0.
64196
64197         * modules/gpl-2.0: Renamed from gpl.
64198
64199         * modules/gpl: Fix filename, doc/gpl.texi is now found at
64200         doc/gpl-2.0.texi.
64201
64202 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
64203
64204         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
64205         #define __STDC_LIMIT_MACROS temporarily while including
64206         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
64207         Problem reported by Joel E. Denny in
64208         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
64209
64210 2007-07-01  Bruno Haible  <bruno@clisp.org>
64211
64212         * lib/unistdio.h: New file.
64213         * lib/unistdio/u-asnprintf.h: New file.
64214         * lib/unistdio/u-asprintf.h: New file.
64215         * lib/unistdio/u-printf-args.c: New file.
64216         * lib/unistdio/u-printf-args.h: New file.
64217         * lib/unistdio/u-printf-parse.h: New file.
64218         * lib/unistdio/u-snprintf.h: New file.
64219         * lib/unistdio/u-sprintf.h: New file.
64220         * lib/unistdio/u-vasprintf.h: New file.
64221         * lib/unistdio/u-vsnprintf.h: New file.
64222         * lib/unistdio/u-vsprintf.h: New file.
64223         * lib/unistdio/ulc-asnprintf.c: New file.
64224         * lib/unistdio/ulc-asprintf.c: New file.
64225         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
64226         * lib/unistdio/ulc-printf-parse.c: New file.
64227         * lib/unistdio/ulc-snprintf.c: New file.
64228         * lib/unistdio/ulc-sprintf.c: New file.
64229         * lib/unistdio/ulc-vasnprintf.c: New file.
64230         * lib/unistdio/ulc-vasprintf.c: New file.
64231         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
64232         * lib/unistdio/ulc-vsnprintf.c: New file.
64233         * lib/unistdio/ulc-vsprintf.c: New file.
64234         * lib/unistdio/u8-asnprintf.c: New file.
64235         * lib/unistdio/u8-asprintf.c: New file.
64236         * lib/unistdio/u8-printf-parse.c: New file.
64237         * lib/unistdio/u8-snprintf.c: New file.
64238         * lib/unistdio/u8-sprintf.c: New file.
64239         * lib/unistdio/u8-vasnprintf.c: New file.
64240         * lib/unistdio/u8-vasprintf.c: New file.
64241         * lib/unistdio/u8-vsnprintf.c: New file.
64242         * lib/unistdio/u8-vsprintf.c: New file.
64243         * lib/unistdio/u8-u8-asnprintf.c: New file.
64244         * lib/unistdio/u8-u8-asprintf.c: New file.
64245         * lib/unistdio/u8-u8-snprintf.c: New file.
64246         * lib/unistdio/u8-u8-sprintf.c: New file.
64247         * lib/unistdio/u8-u8-vasnprintf.c: New file.
64248         * lib/unistdio/u8-u8-vasprintf.c: New file.
64249         * lib/unistdio/u8-u8-vsnprintf.c: New file.
64250         * lib/unistdio/u8-u8-vsprintf.c: New file.
64251         * lib/unistdio/u16-asnprintf.c: New file.
64252         * lib/unistdio/u16-asprintf.c: New file.
64253         * lib/unistdio/u16-printf-parse.c: New file.
64254         * lib/unistdio/u16-snprintf.c: New file.
64255         * lib/unistdio/u16-sprintf.c: New file.
64256         * lib/unistdio/u16-vasnprintf.c: New file.
64257         * lib/unistdio/u16-vasprintf.c: New file.
64258         * lib/unistdio/u16-vsnprintf.c: New file.
64259         * lib/unistdio/u16-vsprintf.c: New file.
64260         * lib/unistdio/u16-u16-asnprintf.c: New file.
64261         * lib/unistdio/u16-u16-asprintf.c: New file.
64262         * lib/unistdio/u16-u16-snprintf.c: New file.
64263         * lib/unistdio/u16-u16-sprintf.c: New file.
64264         * lib/unistdio/u16-u16-vasnprintf.c: New file.
64265         * lib/unistdio/u16-u16-vasprintf.c: New file.
64266         * lib/unistdio/u16-u16-vsnprintf.c: New file.
64267         * lib/unistdio/u16-u16-vsprintf.c: New file.
64268         * lib/unistdio/u32-asnprintf.c: New file.
64269         * lib/unistdio/u32-asprintf.c: New file.
64270         * lib/unistdio/u32-printf-parse.c: New file.
64271         * lib/unistdio/u32-snprintf.c: New file.
64272         * lib/unistdio/u32-sprintf.c: New file.
64273         * lib/unistdio/u32-vasnprintf.c: New file.
64274         * lib/unistdio/u32-vasprintf.c: New file.
64275         * lib/unistdio/u32-vsnprintf.c: New file.
64276         * lib/unistdio/u32-vsprintf.c: New file.
64277         * lib/unistdio/u32-u32-asnprintf.c: New file.
64278         * lib/unistdio/u32-u32-asprintf.c: New file.
64279         * lib/unistdio/u32-u32-snprintf.c: New file.
64280         * lib/unistdio/u32-u32-sprintf.c: New file.
64281         * lib/unistdio/u32-u32-vasnprintf.c: New file.
64282         * lib/unistdio/u32-u32-vasprintf.c: New file.
64283         * lib/unistdio/u32-u32-vsnprintf.c: New file.
64284         * lib/unistdio/u32-u32-vsprintf.c: New file.
64285         * tests/unistdio/test-ulc-asnprintf1.c: New file.
64286         * tests/unistdio/test-ulc-asnprintf1.h: New file.
64287         * tests/unistdio/test-ulc-printf1.h: New file.
64288         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
64289         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
64290         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
64291         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
64292         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
64293         * tests/unistdio/test-ulc-vasprintf1.c: New file.
64294         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
64295         * tests/unistdio/test-ulc-vsprintf1.c: New file.
64296         * tests/unistdio/test-u8-asnprintf1.c: New file.
64297         * tests/unistdio/test-u8-asnprintf1.h: New file.
64298         * tests/unistdio/test-u8-printf1.h: New file.
64299         * tests/unistdio/test-u8-vasnprintf1.c: New file.
64300         * tests/unistdio/test-u8-vasnprintf2.c: New file.
64301         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
64302         * tests/unistdio/test-u8-vasnprintf3.c: New file.
64303         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
64304         * tests/unistdio/test-u8-vasprintf1.c: New file.
64305         * tests/unistdio/test-u8-vsnprintf1.c: New file.
64306         * tests/unistdio/test-u8-vsprintf1.c: New file.
64307         * tests/unistdio/test-u16-asnprintf1.c: New file.
64308         * tests/unistdio/test-u16-asnprintf1.h: New file.
64309         * tests/unistdio/test-u16-printf1.h: New file.
64310         * tests/unistdio/test-u16-vasnprintf1.c: New file.
64311         * tests/unistdio/test-u16-vasnprintf2.c: New file.
64312         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
64313         * tests/unistdio/test-u16-vasnprintf3.c: New file.
64314         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
64315         * tests/unistdio/test-u16-vasprintf1.c: New file.
64316         * tests/unistdio/test-u16-vsnprintf1.c: New file.
64317         * tests/unistdio/test-u16-vsprintf1.c: New file.
64318         * tests/unistdio/test-u32-asnprintf1.c: New file.
64319         * tests/unistdio/test-u32-asnprintf1.h: New file.
64320         * tests/unistdio/test-u32-printf1.h: New file.
64321         * tests/unistdio/test-u32-vasnprintf1.c: New file.
64322         * tests/unistdio/test-u32-vasnprintf2.c: New file.
64323         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
64324         * tests/unistdio/test-u32-vasnprintf3.c: New file.
64325         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
64326         * tests/unistdio/test-u32-vasprintf1.c: New file.
64327         * tests/unistdio/test-u32-vsnprintf1.c: New file.
64328         * tests/unistdio/test-u32-vsprintf1.c: New file.
64329         * modules/unistdio/base: New file.
64330         * modules/unistdio/u-printf-args: New file.
64331         * modules/unistdio/ulc-asnprintf: New file.
64332         * modules/unistdio/ulc-asprintf: New file.
64333         * modules/unistdio/ulc-fprintf: New file.
64334         * modules/unistdio/ulc-printf-parse: New file.
64335         * modules/unistdio/ulc-snprintf: New file.
64336         * modules/unistdio/ulc-sprintf: New file.
64337         * modules/unistdio/ulc-vasnprintf: New file.
64338         * modules/unistdio/ulc-vasprintf: New file.
64339         * modules/unistdio/ulc-vfprintf: New file.
64340         * modules/unistdio/ulc-vsnprintf: New file.
64341         * modules/unistdio/ulc-vsprintf: New file.
64342         * modules/unistdio/u8-asnprintf: New file.
64343         * modules/unistdio/u8-asprintf: New file.
64344         * modules/unistdio/u8-printf-parse: New file.
64345         * modules/unistdio/u8-snprintf: New file.
64346         * modules/unistdio/u8-sprintf: New file.
64347         * modules/unistdio/u8-vasnprintf: New file.
64348         * modules/unistdio/u8-vasprintf: New file.
64349         * modules/unistdio/u8-vsnprintf: New file.
64350         * modules/unistdio/u8-vsprintf: New file.
64351         * modules/unistdio/u8-u8-asnprintf: New file.
64352         * modules/unistdio/u8-u8-asprintf: New file.
64353         * modules/unistdio/u8-u8-snprintf: New file.
64354         * modules/unistdio/u8-u8-sprintf: New file.
64355         * modules/unistdio/u8-u8-vasnprintf: New file.
64356         * modules/unistdio/u8-u8-vasprintf: New file.
64357         * modules/unistdio/u8-u8-vsnprintf: New file.
64358         * modules/unistdio/u8-u8-vsprintf: New file.
64359         * modules/unistdio/u16-asnprintf: New file.
64360         * modules/unistdio/u16-asprintf: New file.
64361         * modules/unistdio/u16-printf-parse: New file.
64362         * modules/unistdio/u16-snprintf: New file.
64363         * modules/unistdio/u16-sprintf: New file.
64364         * modules/unistdio/u16-vasnprintf: New file.
64365         * modules/unistdio/u16-vasprintf: New file.
64366         * modules/unistdio/u16-vsnprintf: New file.
64367         * modules/unistdio/u16-vsprintf: New file.
64368         * modules/unistdio/u16-u16-asnprintf: New file.
64369         * modules/unistdio/u16-u16-asprintf: New file.
64370         * modules/unistdio/u16-u16-snprintf: New file.
64371         * modules/unistdio/u16-u16-sprintf: New file.
64372         * modules/unistdio/u16-u16-vasnprintf: New file.
64373         * modules/unistdio/u16-u16-vasprintf: New file.
64374         * modules/unistdio/u16-u16-vsnprintf: New file.
64375         * modules/unistdio/u16-u16-vsprintf: New file.
64376         * modules/unistdio/u32-asnprintf: New file.
64377         * modules/unistdio/u32-asprintf: New file.
64378         * modules/unistdio/u32-printf-parse: New file.
64379         * modules/unistdio/u32-snprintf: New file.
64380         * modules/unistdio/u32-sprintf: New file.
64381         * modules/unistdio/u32-vasnprintf: New file.
64382         * modules/unistdio/u32-vasprintf: New file.
64383         * modules/unistdio/u32-vsnprintf: New file.
64384         * modules/unistdio/u32-vsprintf: New file.
64385         * modules/unistdio/u32-u32-asnprintf: New file.
64386         * modules/unistdio/u32-u32-asprintf: New file.
64387         * modules/unistdio/u32-u32-snprintf: New file.
64388         * modules/unistdio/u32-u32-sprintf: New file.
64389         * modules/unistdio/u32-u32-vasnprintf: New file.
64390         * modules/unistdio/u32-u32-vasprintf: New file.
64391         * modules/unistdio/u32-u32-vsnprintf: New file.
64392         * modules/unistdio/u32-u32-vsprintf: New file.
64393         * modules/unistdio/ulc-asnprintf-tests: New file.
64394         * modules/unistdio/ulc-vasnprintf-tests: New file.
64395         * modules/unistdio/ulc-vasprintf-tests: New file.
64396         * modules/unistdio/ulc-vsnprintf-tests: New file.
64397         * modules/unistdio/ulc-vsprintf-tests: New file.
64398         * modules/unistdio/u8-asnprintf-tests: New file.
64399         * modules/unistdio/u8-vasnprintf-tests: New file.
64400         * modules/unistdio/u8-vasprintf-tests: New file.
64401         * modules/unistdio/u8-vsnprintf-tests: New file.
64402         * modules/unistdio/u8-vsprintf-tests: New file.
64403         * modules/unistdio/u16-asnprintf-tests: New file.
64404         * modules/unistdio/u16-vasnprintf-tests: New file.
64405         * modules/unistdio/u16-vasprintf-tests: New file.
64406         * modules/unistdio/u16-vsnprintf-tests: New file.
64407         * modules/unistdio/u16-vsprintf-tests: New file.
64408         * modules/unistdio/u32-asnprintf-tests: New file.
64409         * modules/unistdio/u32-vasnprintf-tests: New file.
64410         * modules/unistdio/u32-vasprintf-tests: New file.
64411         * modules/unistdio/u32-vsnprintf-tests: New file.
64412         * modules/unistdio/u32-vsprintf-tests: New file.
64413         * MODULES.html.sh (Unicode string functions): Add the new modules.
64414
64415 2007-07-01  Bruno Haible  <bruno@clisp.org>
64416
64417         * lib/sprintf.c (sprintf): Limit the available length estimation,
64418         to avoid address wraparound.
64419         * lib/vsprintf.c (vsprintf): Likewise.
64420         * modules/sprintf-posix (Dependencies): Add stdint.
64421         * modules/vsprintf-posix (Dependencies): Likewise.
64422
64423 2007-07-01  Bruno Haible  <bruno@clisp.org>
64424
64425         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
64426         Windows PATH as well. Conservative double-quoting. Comments.
64427
64428 2007-07-01  Bruno Haible  <bruno@clisp.org>
64429             Eric Blake  <ebb9@byu.net>
64430             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64431
64432         * gnulib-tool (self_abspathname): Fix algorithm to cope with
64433         empty components in $PATH, denoting '.'.
64434
64435 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64436
64437         * gnulib-tool: Fix indentation.
64438         (func_create_megatestdir): Likewise.
64439         Report by Bruno Haible.
64440
64441 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64442
64443         Sync from Automake.
64444         * build-aux/gnupload: Fix shell portability issues with for loops.
64445         Report by Karl Berry.
64446
64447 2007-06-29  Simon Josefsson  <simon@josefsson.org>
64448
64449         * build-aux/maint.mk (POURL): Use translationproject.org.
64450
64451 2007-06-27  Simon Josefsson  <simon@josefsson.org>
64452             Bruno Haible  <bruno@clisp.org>
64453
64454         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
64455         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
64456         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
64457         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
64458         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
64459
64460 2007-06-27  Bruno Haible  <bruno@clisp.org>
64461
64462         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
64463         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
64464
64465 2007-06-26  Karl Berry  <karl@gnu.org>
64466
64467         * MODULES.html.sh: remove xreadlink-with-size.
64468
64469 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
64470
64471         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
64472         method that I hope also handles the double-include problem noted
64473         by Bruno Haible in
64474         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
64475
64476 2007-06-23  Bruno Haible  <bruno@clisp.org>
64477
64478         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
64479         Don't let the 'mostlyclean' target fail if the last subdirectory could
64480         not be removed.
64481         Reported by Karl Berry.
64482
64483 2007-06-23  Bruno Haible  <bruno@clisp.org>
64484
64485         * gnulib-tool (echo): Add a speedier workaround for ksh.
64486         * tests/test-echo.sh: Likewise.
64487
64488 2007-06-23  Bruno Haible  <bruno@clisp.org>
64489
64490         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
64491         * tests/test-echo.sh: Likewise.
64492
64493 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64494
64495         * gnulib-tool (IFS): Initialize early, so we don't set it to
64496         empty later.
64497         (self_abspathname): Rewrite algorithm to set it, reindent.
64498         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
64499         (func_create_megatestdir): Merge some sed scripts.
64500
64501 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
64502
64503         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
64504         exposed by Sun Studio 11 cc on Solaris 8.
64505
64506 2007-06-22  Bruno Haible  <bruno@clisp.org>
64507
64508         * gnulib-tool (echo): Ensure the echo primitive does not interpret
64509         backslashes.
64510         * tests/test-echo.sh: New file.
64511
64512 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64513
64514         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
64515         simplify `sed_replace_build_aux' scripts, they are portable but
64516         echoing them with `echo' is not.
64517         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
64518
64519 2007-06-21  Karl Berry  <karl@gnu.org>
64520
64521         * config/srclist.txt: guess we can't handle the licenses via
64522         srclist at the moment.
64523
64524 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
64525
64526         * MODULES.html.sh: Add include_next.
64527         * modules/include_next: New file.
64528
64529 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
64530
64531         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
64532         INCLUDE_NEXT.
64533         (gl_CHECK_NEXT_HEADERS): New macro.
64534         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
64535         the obsolescent gl_ABSOLUTE_HEADER.
64536         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
64537         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
64538         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
64539         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
64540         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
64541         * m4/math_h.m4 (gl_MATH_H): Likewise.
64542         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
64543         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
64544         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
64545         * m4/stdint.m4 (gl_STDINT_H): Likewise.
64546         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
64547         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
64548         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
64549         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
64550         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
64551         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
64552         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
64553         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
64554         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
64555         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
64556         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
64557         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
64558         * m4/inttypes.m4 (gl_INTTYPES_H): Define
64559         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
64560         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
64561         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
64562         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
64563         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
64564         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
64565         * lib/float_.h: Likewise.
64566         * lib/inttypes_.h: Likewise.
64567         * lib/math_.h: Likewise.
64568         * lib/search_.h: Likewise.
64569         * lib/signal_.h: Likewise.
64570         * lib/stdint_.h: Likewise.
64571         * lib/stdio_.h: Likewise.
64572         * lib/stdlib_.h: Likewise.
64573         * lib/string_.h: Likewise.
64574         * lib/sys_stat_.h: Likewise.
64575         * lib/sys_time_.h: Likewise.
64576         * lib/time_.h: Likewise.
64577         * lib/unistd_.h: Likewise.
64578         * lib/wchar_.h: Likewise.
64579         * lib/wctype_.h: Likewise.
64580         * lib/dirent_.h: Likewise.
64581         * lib/iconv_.h: Likewise.
64582         * lib/locale_.h: Likewise.
64583         * lib/netinet_in_.h: Likewise.
64584         * lib/sys_select_.h: Likewise.
64585         * lib/sys_socket_.h: Likewise.
64586         * lib/sysexits_.h: Likewise.
64587         * modules/fcntl (Depends-on): Depend on include_next, not
64588         absolute_header.
64589         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
64590         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
64591         * modules/fchdir: Likewise.
64592         * modules/float: Likewise.
64593         * modules/iconv_open: Likewise.
64594         * modules/inttypes: Likewise.
64595         * modules/locale: Likewise.
64596         * modules/math: Likewise.
64597         * modules/netinet_in: Likewise.
64598         * modules/search: Likewise.
64599         * modules/signal: Likewise.
64600         * modules/stdint: Likewise.
64601         * modules/stdio: Likewise.
64602         * modules/stdlib: Likewise.
64603         * modules/string: Likewise.
64604         * modules/sys_select: Likewise.
64605         * modules/sys_socket: Likewise.
64606         * modules/sys_stat: Likewise.
64607         * modules/sys_time: Likewise.
64608         * modules/sysexits: Likewise.
64609         * modules/time: Likewise.
64610         * modules/unistd: Likewise.
64611         * modules/wchar: Likewise.
64612         * modules/wctype: Likewise.
64613         * modules/sys_stat: Change maintainer to "all".
64614         * modules/unistd: Likewise.
64615
64616 2007-06-20  Karl Berry  <karl@gnu.org>
64617
64618         * config/srclist.txt: track www changes in license files.
64619
64620 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
64621
64622         * build-aux/bootstrap: Remove stray dot.
64623         Make sure build_aux settings are honored when linking
64624         gnulib_extra_files.
64625
64626 2007-06-19  Eric Blake  <ebb9@byu.net>
64627
64628         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
64629         Allow compilation on cygwin.
64630
64631 2007-06-19  Jim Meyering  <jim@meyering.net>
64632
64633         xreadlink-with-size: Remove module.  No longer used.
64634         Ex-callers now use xreadlink or mreadlink-with-size.
64635         * modules/xreadlink-with-size: Remove module.
64636         * lib/xreadlink-with-size.c: Remove file.
64637         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
64638         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
64639         just before the function definition *is* accurate.
64640
64641         Eliminate one way canonicalize_filename_mode could exit.
64642         * lib/canonicalize.c (canonicalize_filename_mode):
64643         Use mreadlink_with_size, not xreadlink_with_size.
64644
64645 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
64646
64647         Detect porting problems to FreeBSD/arm, which has time_t wider than
64648         long int.  Original problem reported for GNU diff by Xin Li in
64649         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
64650         * modules/getdate (Depends-on): Add intprops, verify.
64651         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
64652         is an integer type no wider than long int.
64653
64654 2007-06-18  Jim Meyering  <jim@meyering.net>
64655
64656         New module: mreadlink-with-size.
64657         * MODULES.html.sh: Add mreadlink-with-size.
64658         * modules/mreadlink-with-size: New module
64659         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
64660         not xreadlink-with-size.
64661         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
64662
64663 2007-06-16  Bruno Haible  <bruno@clisp.org>
64664
64665         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
64666         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
64667         Reported by Gary V. Vaughan <gary@gnu.org>.
64668
64669 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
64670
64671         Revamp lchown so that it lives in unistd.h where it belongs.
64672         * lib/lchown.h: Remove.
64673         * lib/dirchownmod.c: Don't include lib/lchown.h.
64674         * lib/fchownat.c: Likewise.
64675         * lib/openat.c: Likewise.
64676         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
64677         does not follow symlinks.
64678         (EOPNOTSUPP): Define if not defined.
64679         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
64680         is defined to 0.
64681         (lchown): New decl.
64682         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
64683         Do not check for lchown decl.
64684         Set REPLACE_LCHOWN.
64685         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
64686         REPLACE_LCHOWN.
64687         * modules/chown: Make it clear it follows symlinks.
64688         * modules/lchown: Make it clear it doesn't follow symlinks.
64689         (Files): Remove lib/lchown.h
64690         (Depends-on): Add unistd.
64691         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
64692         (Include): Include <unistd.h>, not "lchown.h".
64693         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
64694         REPLACE_LCHOWN.
64695
64696 2007-06-15  Jim Meyering  <jim@meyering.net>
64697
64698         Change license (GPL to LGPL) of fsusage and dependents.
64699         * modules/fsusage (License): Change to LGPL.
64700         * modules/full-read (License): Likewise.
64701         * modules/full-write (License): Likewise.
64702         * modules/safe-read (License): Likewise.
64703         * modules/safe-write (License): Likewise.
64704
64705 2007-06-14  Ben Pfaff  <blp@gnu.org>
64706
64707         Missing part of allocsa -> malloca transition.
64708         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
64709         gl_MALLOCA.
64710
64711 2007-06-12  Bruno Haible  <bruno@clisp.org>
64712
64713         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
64714         to ia64, x86_64, i386.
64715         Reported by Eric Blake.
64716
64717 2007-06-12  Bruno Haible  <bruno@clisp.org>
64718
64719         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
64720         cross-compiling to x86_64.
64721
64722 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
64723
64724         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
64725         glitch reported by Ralf Wildenhues in
64726         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
64727
64728         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
64729         Vin Shelton.
64730
64731 2007-06-11  Bruno Haible  <bruno@clisp.org>
64732
64733         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
64734         replacement string.
64735         Reported by Eric Blake.
64736
64737 2007-06-10  Bruno Haible  <bruno@clisp.org>
64738
64739         Prepare vasnprintf code for use with Unicode strings.
64740         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
64741         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
64742         TYPE_U32_STRING.
64743         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
64744         a_u32_string variants.
64745         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
64746         * lib/printf-args.c: Don't include config.h and the specification
64747         header if PRINTF_FETCHARGS is already defined.
64748         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
64749         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
64750         TYPE_U16_STRING, TYPE_U32_STRING.
64751         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
64752         u16_directive, u16_directives, u32_directive, u32_directives): New
64753         types.
64754         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
64755         New declarations.
64756         * lib/printf-parse.c: Don't include config.h and the specification
64757         header if PRINTF_PARSE is already defined. Eliminate the set of
64758         parameters for WIDE_CHAR_VERSION; the user of this file must provide
64759         them now. Include c-ctype.h.
64760         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
64761         directive and CHAR_T_ONLY_ASCII.
64762         * lib/vasnprintf.c: Don't include config.h and the specification header
64763         if VASNPRINTF is already defined.
64764         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
64765         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
64766         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
64767         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
64768         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
64769         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
64770         code accordingly.
64771         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
64772         pad_ourselves also in this case, with the 'c' and 's' directives, and
64773         with a different notion of "width".
64774         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
64775
64776 2007-06-10  Bruno Haible  <bruno@clisp.org>
64777
64778         * modules/unistr/u32-mbsnlen: New file.
64779         * lib/unistr/u32-mbsnlen.c: New file.
64780
64781         * modules/unistr/u16-mbsnlen: New file.
64782         * lib/unistr/u16-mbsnlen.c: New file.
64783
64784         * modules/unistr/u8-mbsnlen: New file.
64785         * lib/unistr/u8-mbsnlen.c: New file.
64786
64787         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
64788         declarations.
64789
64790 2007-06-10  Bruno Haible  <bruno@clisp.org>
64791
64792         * lib/string_.h (mbsnlen): New declaration.
64793         * lib/mbsnlen.c: New file.
64794         * m4/mbsnlen.m4: New file.
64795         * modules/mbsnlen: New file.
64796         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
64797         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
64798         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
64799
64800 2007-06-10  Bruno Haible  <bruno@clisp.org>
64801
64802         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
64803
64804 2007-06-10  Bruno Haible  <bruno@clisp.org>
64805
64806         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
64807         * lib/mbuiter.h: Likewise.
64808
64809 2007-06-10  Bruno Haible  <bruno@clisp.org>
64810
64811         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
64812         declaration.
64813
64814 2007-06-10  Karl Berry  <karl@gnu.org>
64815
64816         * config/srclist.txt: remove gettext entries, Bruno prefers
64817         to update individually.
64818
64819 2007-06-10  Bruno Haible  <bruno@clisp.org>
64820
64821         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
64822         'maxlen'. Ensure only length + width bytes are allocated, not
64823         length + 1 + width.
64824
64825 2007-06-09  Bruno Haible  <bruno@clisp.org>
64826
64827         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
64828         (CHAR_T): Remove macro.
64829         (VASNPRINTF): Update.
64830
64831 2007-06-09  Bruno Haible  <bruno@clisp.org>
64832
64833         * MODULES.html.sh (Unicode string functions): Add the new modules.
64834
64835         * modules/uniconv/u32-conv-to-enc: New file.
64836         * lib/uniconv/u32-conv-to-enc.c: New file.
64837         * modules/uniconv/u32-conv-to-enc-tests: New file.
64838         * tests/uniconv/test-u32-conv-to-enc.c: New file.
64839
64840         * modules/uniconv/u16-conv-to-enc: New file.
64841         * lib/uniconv/u16-conv-to-enc.c: New file.
64842         * lib/uniconv/u-conv-to-enc.h: New file.
64843         * modules/uniconv/u16-conv-to-enc-tests: New file.
64844         * tests/uniconv/test-u16-conv-to-enc.c: New file.
64845
64846         * modules/uniconv/u8-conv-to-enc: New file.
64847         * lib/uniconv/u8-conv-to-enc.c: New file.
64848         * modules/uniconv/u8-conv-to-enc-tests: New file.
64849         * tests/uniconv/test-u8-conv-to-enc.c: New file.
64850
64851         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
64852         u32_conv_to_encoding): New declarations.
64853
64854 2007-06-09  Bruno Haible  <bruno@clisp.org>
64855
64856         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
64857
64858 2007-06-09  Bruno Haible  <bruno@clisp.org>
64859
64860         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
64861         * modules/malloca: Renamed from modules/allocsa, updated.
64862         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
64863         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
64864         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
64865         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
64866         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
64867         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
64868         * modules/xmalloca: Renamed from modules/xallocsa, updated.
64869         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
64870         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
64871         * modules/c-strcasestr (Depends-on): Update.
64872         * lib/c-strcasestr.c: Update.
64873         * modules/c-strstr (Depends-on): Update.
64874         * lib/c-strstr.c: Update.
64875         * modules/canonicalize-lgpl (Depends-on): Update.
64876         * lib/canonicalize-lgpl.c: Update.
64877         * modules/clean-temp (Depends-on): Update.
64878         * lib/clean-temp.c: Update.
64879         * modules/csharpcomp (Depends-on): Update.
64880         * lib/csharpcomp.c: Update.
64881         * modules/csharpexec (Depends-on): Update.
64882         * lib/csharpexec.c: Update.
64883         * modules/javacomp (Depends-on): Update.
64884         * lib/javacomp.c: Update.
64885         * modules/javaexec (Depends-on): Update.
64886         * lib/javaexec.c: Update.
64887         * modules/mbscasestr (Depends-on): Update.
64888         * lib/mbscasestr.c: Update.
64889         * modules/mbsstr (Depends-on): Update.
64890         * lib/mbsstr.c: Update.
64891         * modules/setenv (Depends-on): Update.
64892         * lib/setenv.c: Update.
64893         * modules/strcasestr (Depends-on): Update.
64894         * lib/strcasestr.c: Update.
64895         * modules/striconveha (Depends-on): Update.
64896         * lib/striconveha.c: Update.
64897         * modules/relocatable-prog-wrapper (Files): Update.
64898         * lib/relocwrapper.c: Update.
64899         * build-aux/install-reloc: Update.
64900         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
64901
64902 2007-06-08  Bruno Haible  <bruno@clisp.org>
64903
64904         Port to uClibc.
64905         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
64906         * lib/fpurge.c (fpurge): Likewise.
64907         * lib/freading.c (freading): Likewise.
64908         * lib/fseeko.c (rpl_fseeko): Likewise.
64909         * lib/fseterr.c (fseterr): Likewise.
64910         * lib/fwriting.c (fwriting): Likewise.
64911         * tests/test-fflush.c (main): Avoid a failure on uClibc.
64912
64913 2007-06-08  Bruno Haible  <bruno@clisp.org>
64914
64915         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
64916         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
64917         * modules/gettext (Files): Add m4/intlmacosx.m4.
64918
64919 2007-06-07  Bruno Haible  <bruno@clisp.org>
64920
64921         * modules/localename-tests: New file.
64922         * tests/test-localename.c: New file.
64923
64924         New module 'localename'.
64925         * lib/localename.h: New file.
64926         * lib/localename.c: New file, from GNU gettext.
64927         * m4/localename.m4: New file.
64928         * modules/localename: New file.
64929
64930 2007-06-07  Bruno Haible  <bruno@clisp.org>
64931
64932         Work around the lack of <wchar.h> on some builds of uClibc.
64933         * doc/headers/wchar.texi: Update.
64934         * lib/wchar_.h: Include <wchar.h> only if it exists.
64935         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
64936         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
64937         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
64938         doesn't exist.
64939         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
64940         * modules/mbfile (Depends-on): Add wchar.
64941         * modules/mbiter (Depends-on): Likewise.
64942         * modules/mbuiter (Depends-on): Likewise.
64943         Reported by Simon Josefsson.
64944
64945 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
64946
64947         Work around problem reported by Steven M. Schweda in
64948         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
64949         Tru64 5.1B with the Compaq compiler environment installed declares
64950         an 'isblank' function but does not define it in the C library.
64951         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
64952         * lib/regex_internal.h (isblank): Likewise.
64953         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
64954         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
64955
64956 2007-06-05  Bruno Haible  <bruno@clisp.org>
64957
64958         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
64959         ia64.
64960         * modules/printf-safe: New file.
64961         * modules/fprintf-posix (Depends-on): Add printf-safe.
64962         * modules/printf-posix (Depends-on): Likewise.
64963         * modules/snprintf-posix (Depends-on): Likewise.
64964         * modules/sprintf-posix (Depends-on): Likewise.
64965         * modules/vasnprintf-posix (Depends-on): Likewise.
64966         * modules/vasprintf-posix (Depends-on): Likewise.
64967         * modules/vfprintf-posix (Depends-on): Likewise.
64968         * modules/vprintf-posix (Depends-on): Likewise.
64969         * modules/vsnprintf-posix (Depends-on): Likewise.
64970         * modules/vsprintf-posix (Depends-on): Likewise.
64971         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
64972         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
64973         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
64974         "no" on i386, x86_64, ia64.
64975         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
64976         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
64977         on i386, x86_64, ia64.
64978         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
64979         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
64980         on i386, x86_64, ia64.
64981         * tests/test-vasnprintf-posix.c: Include float.h.
64982         (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-vasprintf-posix.c: Include float.h.
64986         (LDBL80_WORDS): New macro.
64987         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
64988         on i386, x86_64, ia64.
64989         * tests/test-snprintf-posix.c: Include float.h.
64990         * tests/test-sprintf-posix.c: Likewise.
64991         * tests/test-vsnprintf-posix.c: Likewise.
64992         * tests/test-vsprintf-posix.c: Likewise.
64993
64994 2007-06-05  Bruno Haible  <bruno@clisp.org>
64995
64996         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
64997         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
64998         non-IEEE numbers on i386, x86_64, ia64.
64999         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
65000         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
65001         * tests/test-isnanl.h: Include float.h.
65002         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
65003
65004 2007-06-05  Bruno Haible  <bruno@clisp.org>
65005
65006         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
65007         also the %a / %A. Handle the %a / %A code before this extra handling.
65008
65009 2007-06-05  Bruno Haible  <bruno@clisp.org>
65010
65011         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
65012         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
65013
65014 2007-06-05  Bruno Haible  <bruno@clisp.org>
65015
65016         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
65017         typo in variable name.
65018
65019 2007-06-05  Eric Blake  <ebb9@byu.net>
65020
65021         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
65022         Reported by Simon Josefsson.
65023
65024 2007-06-04  Bruno Haible  <bruno@clisp.org>
65025
65026         Avoid test failures on some PowerPC platforms.
65027         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
65028         Define differently for PowerPC.
65029         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
65030         Reported by Gary V. Vaughan <gary@gnu.org>.
65031
65032 2007-06-02  Bruno Haible  <bruno@clisp.org>
65033
65034         Fix test-stdint failure on FreeBSD/ia64.
65035         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
65036         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
65037         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
65038         * doc/headers/stdint.texi: Update.
65039
65040 2007-06-01  Bruno Haible  <bruno@clisp.org>
65041
65042         * tests/test-binary-io.c (main): Pass a third argument to open().
65043         Reported by Gary V. Vaughan <gary@gnu.org>.
65044
65045 2007-06-01  Bruno Haible  <bruno@clisp.org>
65046
65047         * doc/functions/frexpl.texi: Update for mingw.
65048
65049 2007-06-01  Bruno Haible  <bruno@clisp.org>
65050
65051         * tests/test-lseek.c (main): Disable test of errno for invalid third
65052         argument.
65053         * doc/functions/lseek.texi: Update.
65054         Reported by Gary V. Vaughan <gary@gnu.org>.
65055
65056 2007-05-28  Bruno Haible  <bruno@clisp.org>
65057
65058         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
65059
65060 2007-05-31  Eric Blake  <ebb9@byu.net>
65061
65062         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
65063         cross compiling.
65064
65065 2007-05-30  Eric Blake  <ebb9@byu.net>
65066         and Bruno Haible  <bruno@clisp.org>
65067
65068         Work around mingw test failures exposed by m4-1.4.9b.
65069         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
65070         * tests/test-unistd.c: Disable uid_t and git_t tests for the
65071         moment.
65072
65073 2007-05-30  Bruno Haible  <bruno@clisp.org>
65074
65075         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
65076         assuming that they are closed. Needed on HP-UX 11.
65077
65078 2007-05-29  Bruno Haible  <bruno@clisp.org>
65079
65080         Fix a problem with #include_next.
65081         * lib/dirent_.h: Split the double-inclusion guard.
65082         * lib/fcntl_.h: Likewise.
65083         * lib/float_.h: Likewise.
65084         * lib/iconv_.h: Likewise.
65085         * lib/inttypes_.h: Likewise.
65086         * lib/locale_.h: Likewise.
65087         * lib/math_.h: Likewise.
65088         * lib/netinet_in_.h: Likewise.
65089         * lib/search_.h: Likewise.
65090         * lib/signal_.h: Likewise.
65091         * lib/stdint_.h: Likewise.
65092         * lib/stdio_.h: Likewise.
65093         * lib/stdlib_.h: Likewise.
65094         * lib/string_.h: Likewise.
65095         * lib/sys_select_.h: Likewise.
65096         * lib/sys_socket_.h: Likewise.
65097         * lib/sys_stat_.h: Likewise.
65098         * lib/sys_time_.h: Likewise.
65099         * lib/sysexits_.h: Likewise.
65100         * lib/time_.h: Likewise.
65101         * lib/unistd_.h: Likewise.
65102         * lib/wchar_.h: Likewise.
65103         * lib/wctype_.h: Likewise.
65104
65105 2007-05-29  Bruno Haible  <bruno@clisp.org>
65106
65107         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
65108         for the moment.
65109
65110 2007-05-29  Bruno Haible  <bruno@clisp.org>
65111
65112         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
65113         invocation.
65114         Reported by Eric Blake.
65115
65116 2007-05-29  Bruno Haible  <bruno@clisp.org>
65117
65118         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
65119         compiling case.
65120
65121 2007-05-29  Eric Blake  <ebb9@byu.net>
65122             Bruno Haible  <bruno@clisp.org>
65123
65124         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
65125         cross compiles.
65126
65127 2007-05-28  Eric Blake  <ebb9@byu.net>
65128
65129         * modules/closein-tests (test_closein_LDADD): Support test on
65130         cygwin with libtool.
65131
65132 2007-05-28  Bruno Haible  <bruno@clisp.org>
65133
65134         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
65135         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
65136         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
65137         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
65138         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
65139         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
65140         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
65141         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
65142         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
65143
65144 2007-05-28  Eric Blake  <ebb9@byu.net>
65145
65146         Unconditionally include <config.h> in unit tests.
65147         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
65148         * tests/test-allocsa.c, tests/test-arcfour.c,
65149         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
65150         tests/test-array_list.c, tests/test-array_oset.c,
65151         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
65152         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
65153         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
65154         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
65155         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
65156         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
65157         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
65158         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
65159         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
65160         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
65161         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
65162         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
65163         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
65164         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
65165         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
65166         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
65167         test-md5.c, test-memmem.c, test-printf-posix.c,
65168         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
65169         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
65170         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
65171         test-strcasestr.c, test-striconv.c, test-striconveh.c,
65172         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
65173         test-vasnprintf-posix2.c, test-vasnprintf.c,
65174         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
65175         test-vfprintf-posix.c, test-vprintf-posix.c,
65176         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
65177         test-xvasprintf.c: Likewise.
65178
65179 2007-05-28  Bruno Haible  <bruno@clisp.org>
65180
65181         * gnulib-tool (func_import): Remember the --with-tests command-line
65182         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
65183         Reported by Eric Blake.
65184
65185 2007-05-28  Bruno Haible  <bruno@clisp.org>
65186
65187         * modules/ftell-tests: New file.
65188         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
65189         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
65190
65191         * lib/ftell.c: New file.
65192         * modules/ftell: New file.
65193         * m4/ftell.m4: New file.
65194         * doc/functions/ftell.texi: Update.
65195         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
65196         REPLACE_FTELL.
65197         * lib/stdio_.h (rpl_ftell): New declaration.
65198         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
65199         REPLACE_FTELL.
65200
65201 2007-05-28  Eric Blake  <ebb9@byu.net>
65202
65203         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
65204
65205 2007-05-28  Bruno Haible  <bruno@clisp.org>
65206
65207         * modules/fseek-tests: New file.
65208         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
65209         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
65210
65211         * lib/fseek.c: New file.
65212         * modules/fseek: New file.
65213         * m4/fseek.m4: New file.
65214         * doc/functions/fseek.texi: Update.
65215         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
65216         REPLACE_FSEEK.
65217         * lib/stdio_.h (rpl_fseek): New declaration.
65218         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
65219         REPLACE_FSEEK.
65220
65221 2007-05-28  Bruno Haible  <bruno@clisp.org>
65222
65223         * lib/stdio_.h (fflush): More comments.
65224
65225 2007-05-28  Bruno Haible  <bruno@clisp.org>
65226
65227         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
65228         runtime test.
65229
65230 2007-05-28  Eric Blake  <ebb9@byu.net>
65231
65232         Improve lseek module.
65233         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
65234         * lib/unistd_.h (lseek): Scale back link warning message.
65235         * tests/test-lseek.c: Beef up test.
65236         * tests/test-lseek.sh: Exercise more facets of lseek.
65237         Reported by Bruno Haible.
65238
65239 2007-05-28  Bruno Haible  <bruno@clisp.org>
65240
65241         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
65242         to define.
65243
65244 2007-05-27  Bruno Haible  <bruno@clisp.org>
65245
65246         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
65247
65248 2007-05-27  Bruno Haible  <bruno@clisp.org>
65249
65250         * modules/openmp: New file.
65251         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
65252         Noah Misch.
65253
65254 2007-05-26  Bruno Haible  <bruno@clisp.org>
65255
65256         * modules/chdir-long (Depends-on): Add fchdir.
65257         * modules/chdir-safer (Depends-on): Likewise.
65258         * modules/fts (Depends-on): Likewise.
65259         * modules/fts-lgpl (Depends-on): Likewise.
65260         * modules/openat (Depends-on): Likewise.
65261         * modules/savewd (Depends-on): Likewise.
65262
65263 2007-05-24  Eric Blake  <ebb9@byu.net>
65264
65265         Fix lseek on mingw.
65266         * modules/lseek: New module.
65267         * m4/lseek.m4: New file.
65268         * lib/lseek.c: New file.
65269         * modules/lseek-tests: New file.
65270         * tests/test-lseek.c: New file.
65271         * tests/test-lseek.sh: New file.
65272         * MODULES.html.sh: Document lseek module.
65273         * modules/fflush (Depends-on): Add lseek, fseeko.
65274         * modules/fseeko (Depends-on): Likewise.
65275         * modules/ftello (Depends-on): Likewise.
65276         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
65277         broken.
65278         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
65279         broken.
65280         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
65281         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
65282         * lib/ftello.c (rpl_ftello): Likewise.
65283         * tests/test-fseeko.c (main): Test this.
65284         * tests/test-fseeko.sh: Likewise.
65285         * tests/test-ftello.c (main): Likewise.
65286         * tests/test-ftello.sh: Likewise.
65287         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
65288         implies replacing fseek.
65289         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
65290         HAVE_FTELLO.
65291         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
65292         * modules/unistd (Makefile.am): Likewise.
65293         * lib/unistd_.h (lseek): Declare a replacement.
65294         * doc/functions/lseek.texi (lseek): Document this fix.
65295         * doc/functions/fseek.texi (fseek): Likewise.
65296         * doc/functions/ftell.texi (ftell): Likewise.
65297
65298 2007-05-24  Bruno Haible  <bruno@clisp.org>
65299
65300         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
65301         in the printed representation of a NaN.
65302         * tests/test-vasprintf-posix.c (test_function): Likewise.
65303         * tests/test-snprintf-posix.h (test_function): Likewise.
65304         * tests/test-sprintf-posix.h (test_function): Likewise.
65305         Reported by Eric Blake.
65306
65307 2007-05-23  Eric Blake  <ebb9@byu.net>
65308
65309         Fix fseeko/ftello on cygwin 1.5.24.
65310         * doc/functions/fseeko.texi (fseeko): Document the fix.
65311         * doc/functions/ftello.texi (ftello): Document the fix.
65312         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
65313         * doc/functions/stdout.text (stdout): New file.
65314         * doc/functions/stderr.text (stderr): New file.
65315         * doc/gnulib.texi (Function Substitutes): Use new files.
65316         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
65317         prior to 1.7.0.
65318         * tests/test-ftello.c (main): Likewise for ftello.
65319         * tests/test-fseeko.sh: New file.
65320         * tests/test-ftello.sh: New file.
65321         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
65322         with seekable stdin.
65323         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
65324         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
65325         (gl_REPLACE_FSEEKO): New macro.
65326         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
65327         * modules/fseeko (Files): Distribute fseeko.c.
65328         * modules/ftello (Files): Distribute ftello.c.
65329         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
65330         mode.
65331         * lib/ftello.c (rpl_ftello): New file.
65332         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
65333         fseeko, ftello.
65334         (gl_STDIN_LARGE_OFFSET): New macro.
65335         * modules/stdio (Makefile.am): Perform the replacement.
65336         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
65337
65338 2007-05-23  Bruno Haible  <bruno@clisp.org>
65339
65340         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
65341         GNULIB_POSIXCHECK is defined.
65342
65343 2007-05-21  Bruno Haible  <bruno@clisp.org>
65344
65345         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
65346         Check also the output for NaN arguments. When cross-compiling, guess
65347         no on IRIX.
65348         * lib/vasnprintf.c: Update comments.
65349         * tests/test-vasnprintf-posix.c (strisnan): New function.
65350         (test_function): Use it.
65351         * tests/test-vasprintf-posix.c (strisnan): New function.
65352         (test_function): Use it.
65353         * tests/test-snprintf-posix.h (strisnan): New function.
65354         (test_function): Use it.
65355         * tests/test-sprintf-posix.h (strisnan): New function.
65356         (test_function): Use it.
65357         Reported by Eric Blake.
65358
65359 2007-05-20  Bruno Haible  <bruno@clisp.org>
65360
65361         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
65362         numbers that fails on BeOS.
65363         * doc/functions/frexpl.texi: Update.
65364
65365 2007-05-20  Jim Meyering  <jim@meyering.net>
65366
65367         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
65368         forced upon us by glibc-2.6.
65369
65370 2007-05-20  Bruno Haible  <bruno@clisp.org>
65371
65372         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
65373         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
65374         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
65375         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
65376         NEED_PRINTF_INFINITE.
65377         (is_infinitel): New function.
65378         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
65379         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
65380         gl_PREREQ_VASNPRINTF_INFINITE.
65381         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
65382         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
65383         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
65384         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
65385         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
65386         gl_PREREQ_VASNPRINTF_INFINITE.
65387         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
65388         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65389         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65390         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65391         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65392         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65393         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65394         * doc/functions/fprintf.texi: Update.
65395         * doc/functions/printf.texi: Update.
65396         * doc/functions/snprintf.texi: Update.
65397         * doc/functions/sprintf.texi: Update.
65398         * doc/functions/vfprintf.texi: Update.
65399         * doc/functions/vprintf.texi: Update.
65400         * doc/functions/vsnprintf.texi: Update.
65401         * doc/functions/vsprintf.texi: Update.
65402
65403 2007-05-20  Bruno Haible  <bruno@clisp.org>
65404
65405         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
65406         was not found in libc.
65407         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
65408
65409 2007-05-20  Bruno Haible  <bruno@clisp.org>
65410
65411         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
65412         printed as "-nan" instead of "nan".
65413         * tests/test-vasprintf-posix.c (test_function): Likewise.
65414         * tests/test-snprintf-posix.h (test_function): Likewise.
65415         * tests/test-sprintf-posix.h (test_function): Likewise.
65416         Needed for HP-UX 11.
65417
65418 2007-05-20  Jim Meyering  <jim@meyering.net>
65419
65420         Fix buggy test for the fchownat-deref bug.
65421         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
65422         symlink required for the run-test.  Without it, this test would
65423         always declare that fchownat doesn't work, and client code would
65424         unnecessarily use the replacement function with fixed libc.
65425         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
65426         Reported by Greg Schafer.
65427
65428 2007-05-19  Bruno Haible  <bruno@clisp.org>
65429
65430         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
65431         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
65432         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
65433         Needed for IRIX 6.5 and Solaris 2.5.1.
65434
65435 2007-05-19  Bruno Haible  <bruno@clisp.org>
65436
65437         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
65438         (test_function): Skip tests involving -0.0 on platforms where
65439         -0.0 = 0.0.
65440         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
65441         (test_function): Skip tests involving -0.0 on platforms where
65442         -0.0 = 0.0.
65443         * tests/test-snprintf-posix.h (have_minus_zero): New function.
65444         (test_function): Skip tests involving -0.0 on platforms where
65445         -0.0 = 0.0.
65446         * tests/test-sprintf-posix.h (have_minus_zero): New function.
65447         (test_function): Skip tests involving -0.0 on platforms where
65448         -0.0 = 0.0.
65449         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
65450         tests.
65451         * tests/test-printf-posix.h (test_function): Likewise.
65452         * tests/test-printf-posix.output: Remove all -0.0 related results.
65453         Needed for IRIX 6.5.
65454
65455 2007-05-19  Bruno Haible  <bruno@clisp.org>
65456
65457         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
65458         printed as "nan0x7fffffff" instead of "nan".
65459         * tests/test-vasprintf-posix.c (test_function): Likewise.
65460         * tests/test-snprintf-posix.h (test_function): Likewise.
65461         * tests/test-sprintf-posix.h (test_function): Likewise.
65462         * tests/test-fprintf-posix.h (NaN): Remove macro.
65463         (test_function): Remove all NaN related tests.
65464         * tests/test-printf-posix.h (NaN): Remove macro.
65465         (test_function): Remove all NaN related tests.
65466         * tests/test-printf-posix.output: Remove all NaN related results.
65467         Needed for IRIX 6.5.
65468
65469 2007-05-19  Bruno Haible  <bruno@clisp.org>
65470
65471         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
65472         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
65473
65474 2007-05-19  Bruno Haible  <bruno@clisp.org>
65475
65476         * lib/float_.h: New file.
65477         * m4/float_h.m4: New file.
65478         * modules/float: New file.
65479         * modules/isnanl (Dependencies): Add float.
65480         * modules/isnanl-nolibm (Dependencies): Likewise.
65481         * modules/mathl (Dependencies): Likewise.
65482         * modules/printf-frexpl (Dependencies): Likewise.
65483         * modules/signbit (Dependencies): Likewise.
65484         * modules/vasnprintf (Dependencies): Likewise.
65485         * doc/headers/float.texi: Update.
65486
65487 2007-05-19  Jim Meyering  <jim@meyering.net>
65488
65489         * lib/utimens.c (gl_futimens): Rename from futimens,
65490         now that glibc-2.6 declares futimens.
65491         * lib/utimens.h: Likewise.
65492
65493 2007-05-19  Bruno Haible  <bruno@clisp.org>
65494
65495         Avoid test failures on mingw.
65496         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
65497         * tests/test-printf-posix.sh: Likewise.
65498         * tests/test-vfprintf-posix.sh: Likewise.
65499         * tests/test-vprintf-posix.sh: Likewise.
65500
65501 2007-05-19  Bruno Haible  <bruno@clisp.org>
65502
65503         Fix *printf result for NaN, Inf, -0.0 on mingw.
65504         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
65505         * lib/vasnprintf.c: Include math.h and isnan.h.
65506         (is_infinite_or_zero): New function.
65507         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
65508         values in the %f, %F, %e, %E, %g, %G directives.
65509         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
65510         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
65511         gl_PRINTF_INFINITE and test its result. Invoke
65512         gl_PREREQ_VASNPRINTF_INFINITE.
65513         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
65514         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65515         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65516         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65517         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65518         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65519         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65520         * doc/functions/fprintf.texi: Update.
65521         * doc/functions/printf.texi: Update.
65522         * doc/functions/snprintf.texi: Update.
65523         * doc/functions/sprintf.texi: Update.
65524         * doc/functions/vfprintf.texi: Update.
65525         * doc/functions/vprintf.texi: Update.
65526         * doc/functions/vsnprintf.texi: Update.
65527         * doc/functions/vsprintf.texi: Update.
65528
65529 2007-05-19  Bruno Haible  <bruno@clisp.org>
65530
65531         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
65532         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
65533         Instead of multiplying with 10^k, set extra_zeroes to k.
65534         (scale10_round_long_double): Remove function.
65535
65536 2007-05-18  Bruno Haible  <bruno@clisp.org>
65537
65538         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
65539         introduced on 2007-05-06.
65540
65541 2007-05-18  Bruno Haible  <bruno@clisp.org>
65542
65543         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
65544         %g directives.
65545         * tests/test-vasprintf-posix.c (test_function): Likewise.
65546         * tests/test-snprintf-posix.h (test_function): Likewise.
65547         * tests/test-sprintf-posix.h (test_function): Likewise.
65548
65549 2007-05-18  Bruno Haible  <bruno@clisp.org>
65550
65551         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
65552         (strmatch): New function.
65553         (test_function): Test the %f directive on numbers of various exponents.
65554         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
65555         (strmatch): New function.
65556         (test_function): Test the %f directive on numbers of various exponents.
65557         * tests/test-snprintf-posix.h (strmatch): New function.
65558         (test_function): Test the %f directive on numbers of various exponents.
65559         * tests/test-sprintf-posix.h (strmatch): New function.
65560         (test_function): Test the %f directive on numbers of various exponents.
65561         * tests/test-snprintf-posix.c (SIZEOF): New macro.
65562         * tests/test-sprintf-posix.c (SIZEOF): New macro.
65563         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
65564         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
65565
65566 2007-05-18  Bruno Haible  <bruno@clisp.org>
65567
65568         Add support for 'long double' number output.
65569         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
65570         * lib/vasnprintf.c: Include math.h and float+.h.
65571         (mp_limb_t): New type.
65572         (GMP_LIMB_BITS): New macro.
65573         (mp_twolimb_t): New type.
65574         (GMP_TWOLIMB_BITS): New macro.
65575         (mpn_t): New type.
65576         (multiply, divide, convert_to_decimal, decode_long_double,
65577         scale10_round_long_double, scale10_round_decimal_long_double,
65578         floorlog10l): New functions.
65579         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
65580         for the %f, %F, %e, %E, %g, %G directives.
65581         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
65582         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
65583         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
65584         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
65585         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
65586         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65587         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65588         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65589         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65590         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65591         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65592         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
65593         * modules/snprintf-posix (Depends-on): Likewise.
65594         * modules/sprintf-posix (Depends-on): Likewise.
65595         * modules/vasnprintf-posix (Depends-on): Likewise.
65596         * modules/vasprintf-posix (Depends-on): Likewise.
65597         * modules/vfprintf-posix (Depends-on): Likewise.
65598         * modules/vsnprintf-posix (Depends-on): Likewise.
65599         * modules/vsprintf-posix (Depends-on): Likewise.
65600         * modules/vasnprintf (Files): Add lib/float+.h.
65601         * doc/functions/fprintf.texi: Update.
65602         * doc/functions/printf.texi: Update.
65603         * doc/functions/snprintf.texi: Update.
65604         * doc/functions/sprintf.texi: Update.
65605         * doc/functions/vfprintf.texi: Update.
65606         * doc/functions/vprintf.texi: Update.
65607         * doc/functions/vsnprintf.texi: Update.
65608         * doc/functions/vsprintf.texi: Update.
65609
65610 2007-05-18  Bruno Haible  <bruno@clisp.org>
65611
65612         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
65613
65614 2007-05-18  Bruno Haible  <bruno@clisp.org>
65615
65616         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
65617         for printing 64-bit integers. Needed for mingw.
65618
65619 2007-05-18  Bruno Haible  <bruno@clisp.org>
65620
65621         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
65622         gl_FUNC_FREXPL_WORKS.
65623         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
65624
65625 2007-05-18  Bruno Haible  <bruno@clisp.org>
65626
65627         * modules/frexpl-nolibm-tests: New file.
65628
65629         * modules/frexpl-nolibm: New file.
65630         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
65631
65632 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
65633
65634         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
65635         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
65636         GCC 4.2, which otherwise issues a lot of warnings.
65637         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
65638         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
65639         Likewise.
65640         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
65641         * modules/iconv_open (iconv.h): Likewise.
65642         * modules/locale (locale.h): Likewise.
65643         * modules/netinet_in (netinet/in.h): Likewise.
65644         * modules/sys_select (sys_select.h): Likewise.
65645         * modules/sys_socket (sys/socket.h): Likewise.
65646         * modules/sys_stat (sys/stat.h): Likewise.
65647         * modules/sysexits (sysexits.h): Likewise.
65648         * modules/unistd (unistd.h): Likewise.
65649
65650 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65651
65652         * modules/closein-tests (Makefile.am): Distribute
65653         `test-closein.sh'.
65654
65655 2007-05-17  Bruno Haible  <bruno@clisp.org>
65656
65657         * tests/test-printf-posix.output: Renamed from
65658         tests/test-fprintf-posix.out.
65659         * modules/fprintf-posix-tests: Update.
65660         * modules/printf-posix-tests: Update.
65661         * modules/vfprintf-posix-tests: Update.
65662         * modules/vprintf-posix-tests: Update.
65663         * tests/test-fprintf-posix.sh: Update.
65664         * tests/test-printf-posix.sh: Update.
65665         * tests/test-vfprintf-posix.sh: Update.
65666         * tests/test-vprintf-posix.sh: Update.
65667         Reported by Ralf Wildenhues.
65668
65669 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
65670
65671         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
65672         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
65673         GCC 4.2, which otherwise issues a lot of warnings.
65674         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
65675         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
65676         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
65677         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
65678         it should no longer be needed.
65679         * lib/string_.h: Likewise.
65680         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
65681         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
65682         * modules/inttypes (inttypes.h): Likewise.
65683         * modules/math (math.h): Likewise.
65684         * modules/search (search.h): Likewise.
65685         * modules/signal (signal.h): Likewise.
65686         * modules/stdint (stdint.h): Likewise.
65687         * modules/stdio (stdio.h): Likewise.
65688         * modules/stdlib (stdlib.h): Likewise.
65689         * modules/string (string.h): Likewise.
65690         * modules/sys_time (sys/time.h): Likewise.
65691         * modules/time (time.h): Likewise.
65692         * modules/wchar (wchar.h): Likewise.
65693         * modules/wctype (wtype.h): Likewise.
65694
65695 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
65696
65697         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
65698
65699 2007-05-13  Bruno Haible  <bruno@clisp.org>
65700
65701         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
65702         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
65703         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
65704         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
65705         (gl_PREREQ_STRTOK_R): Don't require it here.
65706
65707 2007-05-13  Bruno Haible  <bruno@clisp.org>
65708
65709         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
65710         when used in C++ mode.
65711
65712 2007-05-12  Bruno Haible  <bruno@clisp.org>
65713
65714         * lib/linebuffer.h: Tweak doc.
65715         * lib/linebuffer.c: Likewise.
65716
65717 2007-05-12  James Youngman  <jay@gnu.org>
65718
65719         * lib/linebuffer.c (readlinebuffer_delim): New function,
65720         like readlinebuffer, but use a caller-specified delimiter.
65721         (readlinebuffer): Just call readlinebuffer_delim with '\n'
65722         as the delimiter.
65723         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
65724
65725 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
65726
65727         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
65728         * modules/openat (Files): Remove openat-die.c.
65729         (Depends-on): Add openat-die.
65730         * modules/openat-die: New module.
65731
65732 2007-05-06  Bruno Haible  <bruno@clisp.org>
65733
65734         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
65735         Update with info about Cygwin.
65736         * doc/functions/fprintf.texi: Update.
65737         * doc/functions/printf.texi: Update.
65738         * doc/functions/snprintf.texi: Update.
65739         * doc/functions/sprintf.texi: Update.
65740         * doc/functions/vfprintf.texi: Update.
65741         * doc/functions/vprintf.texi: Update.
65742         * doc/functions/vsnprintf.texi: Update.
65743         * doc/functions/vsprintf.texi: Update.
65744         Reported by Eric Blake.
65745
65746 2007-05-06  Bruno Haible  <bruno@clisp.org>
65747
65748         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
65749         padding ourselves for the floating-point directives.
65750         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
65751         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
65752         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
65753         gl_PRINTF_FLAG_ZERO and test its result. Invoke
65754         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
65755         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65756         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
65757         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65758         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65759         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65760         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65761         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65762         * tests/test-snprintf-posix.h (test_function): Also check the width
65763         and some flags in the %f directive.
65764         * tests/test-sprintf-posix.h (test_function): Likewise.
65765         * tests/test-vasnprintf-posix.c (test_function): Likewise.
65766         * tests/test-vasprintf-posix.c (test_function): Likewise.
65767         * doc/functions/fprintf.texi: Update.
65768         * doc/functions/printf.texi: Update.
65769         * doc/functions/snprintf.texi: Update.
65770         * doc/functions/sprintf.texi: Update.
65771         * doc/functions/vfprintf.texi: Update.
65772         * doc/functions/vprintf.texi: Update.
65773         * doc/functions/vsnprintf.texi: Update.
65774         * doc/functions/vsprintf.texi: Update.
65775
65776 2007-05-06  Bruno Haible  <bruno@clisp.org>
65777
65778         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
65779         pass the ' flag character to sprintf or snprintf.
65780         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
65781         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
65782         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
65783         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
65784         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
65785         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65786         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
65787         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65788         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65789         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65790         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65791         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65792         * tests/test-snprintf-posix.h (test_function): Also check the grouping
65793         flag.
65794         * tests/test-sprintf-posix.h (test_function): Likewise.
65795         * tests/test-vasnprintf-posix.c (test_function): Likewise.
65796         * tests/test-vasprintf-posix.c (test_function): Likewise.
65797         * doc/functions/fprintf.texi: Update.
65798         * doc/functions/printf.texi: Update.
65799         * doc/functions/snprintf.texi: Update.
65800         * doc/functions/sprintf.texi: Update.
65801         * doc/functions/vfprintf.texi: Update.
65802         * doc/functions/vprintf.texi: Update.
65803         * doc/functions/vsnprintf.texi: Update.
65804         * doc/functions/vsprintf.texi: Update.
65805
65806 2007-05-01  Bruno Haible  <bruno@clisp.org>
65807
65808         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
65809
65810 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
65811
65812         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
65813         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
65814
65815 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
65816
65817         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
65818         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
65819         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
65820
65821 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
65822
65823         * lib/argp-help.c (struct hol_entry): New member `ord'.
65824         (HOL_ENTRY_PTRCMP): Use ord for comparison
65825         (hol_sort): Initialize ord.
65826
65827 2007-05-01  Bruno Haible  <bruno@clisp.org>
65828
65829         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
65830         Reported by Eric Blake.
65831         * doc/gnulib.texi (Function Substitutes): Update.
65832
65833 2007-05-01  Bruno Haible  <bruno@clisp.org>
65834
65835         * doc/functions.texi: Remove file, now redundant through
65836         doc/functions/*.texi.
65837
65838 2007-05-01  Bruno Haible  <bruno@clisp.org>
65839
65840         * modules/argp (Depends-on): Add sleep.
65841
65842 2007-05-01  Bruno Haible  <bruno@clisp.org>
65843
65844         * modules/sleep-tests: New file.
65845         * tests/test-sleep.c: New file.
65846
65847         * modules/sleep: New file.
65848         * lib/sleep.c: New file.
65849         * m4/sleep.m4: New file.
65850         * lib/unistd_.h (sleep): New declaration.
65851         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
65852         HAVE_SLEEP.
65853         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
65854         * doc/functions/sleep.texi: Document the sleep module.
65855
65856 2007-05-01  Bruno Haible  <bruno@clisp.org>
65857
65858         * lib/sigprocmask.h: Remove file.
65859         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
65860         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
65861         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
65862         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
65863         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
65864         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
65865         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
65866         HAVE_SIGSET_T as a shell variable.
65867         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
65868         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
65869         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
65870         (Depends-on): Add signal. Remove verify.
65871         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
65872         (Include): Mention <signal.h> instead of sigprocmask.h.
65873         * NEWS: Mention the change.
65874         * lib/fatal-signal.c: Don't include sigprocmask.h.
65875
65876 2007-05-01  Bruno Haible  <bruno@clisp.org>
65877
65878         * modules/signal: New file.
65879         * lib/signal_.h: New file.
65880         * m4/signal_h.m4: New file.
65881
65882 2007-05-01  Bruno Haible  <bruno@clisp.org>
65883
65884         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
65885         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
65886         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
65887         HAVE_WCTYPE_CTMP_BUG into wctype.h.
65888
65889 2007-05-01  Bruno Haible  <bruno@clisp.org>
65890
65891         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
65892         configure time.
65893         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
65894         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
65895         * modules/sys_stat (Makefile.am): Substitute their values into
65896         sys/stat.h.
65897
65898 2007-05-01  Bruno Haible  <bruno@clisp.org>
65899
65900         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
65901         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
65902         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
65903
65904 2007-05-01  Bruno Haible  <bruno@clisp.org>
65905
65906         * doc/header/assert.texi: Undo last change: don't mention the gnulib
65907         'assert' module here.
65908
65909 2007-05-01  Bruno Haible  <bruno@clisp.org>
65910
65911         * doc/functions/*.texi: New files.
65912         * doc/functions/google-ranking.txt: New file.
65913         * doc/gnulib.texi (Function Substitutes): New chapter.
65914         (ctime, inet_ntoa): Remove sections.
65915         * doc/ctime.texi: Remove file.
65916         * doc/inet_ntoa.texi: Remove file.
65917         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
65918         dependencies.
65919         (%.info): New rule, specifying a --reference-limit.
65920
65921 2007-05-01  Bruno Haible  <bruno@clisp.org>
65922
65923         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
65924
65925 2007-05-01  Bruno Haible  <bruno@clisp.org>
65926
65927         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
65928         the portability of 'mkdir' to mingw systems.
65929
65930 2007-05-01  Bruno Haible  <bruno@clisp.org>
65931
65932         * doc/headers/google-ranking.txt: New file.
65933
65934 2007-04-30  Eric Blake  <ebb9@byu.net>
65935
65936         Prefer fseeko to fseek.
65937         * modules/getpass (Depends-on): Add fseeko.
65938         * lib/getpass.c (getpass): Use fseeko, not fseek.
65939
65940 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
65941
65942         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
65943         assumes the sorting is stable, while most qsort implementations
65944         are not.  Use argument addresses to ensure they never compare as
65945         equal.
65946
65947         * tests/test-argp-2.sh (usage-indent test): Fix output
65948         (func_compare): Restore diff options
65949         * tests/test-argp.c: Restore #include "progname.h"
65950
65951 2007-04-29  Bruno Haible  <bruno@clisp.org>
65952
65953         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
65954         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
65955         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
65956         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65957         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
65958         (configure.ac): Define CHECK_SNPRINTF_POSIX.
65959         (TESTS, check_PROGRAMS): Add test-snprintf.
65960         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
65961         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
65962         (TESTS, check_PROGRAMS): Add test-vsnprintf.
65963         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
65964         assertions that fail on HP-UX, OSF/1, or IRIX.
65965         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
65966
65967 2007-04-29  Bruno Haible  <bruno@clisp.org>
65968
65969         * MODULES.html.sh (posix_functions): Remove 'contents'.
65970
65971 2007-04-29  Karl Berry  <karl@gnu.org>
65972
65973         * config/srclist.txt (gendocs_template_min): new entry.
65974
65975 2007-04-29  Bruno Haible  <bruno@clisp.org>
65976
65977         Work around fpurge bug on BSD systems.
65978         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
65979         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
65980         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
65981         fpurge to rpl_fpurge if the system already has this function.
65982         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
65983         the case where the system already has this function. Correct invariants
65984         on BSD systems.
65985         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
65986         BSD systems.
65987
65988 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
65989
65990         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
65991         proposed by Sven Verdoolaege.
65992
65993         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
65994         options.
65995         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
65996         (usage and help tests): Update
65997
65998 2007-04-29  Bruno Haible  <bruno@clisp.org>
65999
66000         * tests/test-fflush.c (main): Use a file of size 17, not 10.
66001         Print more information in case of failure. Disable a test on BeOS.
66002
66003 2007-04-29  Bruno Haible  <bruno@clisp.org>
66004
66005         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
66006         This helps debugging on systems on which no gdb is available.
66007
66008 2007-04-29  Bruno Haible  <bruno@clisp.org>
66009
66010         * lib/freading.h: Improve comments.
66011         * lib/fwriting.h: Likewise.
66012         * tests/test-freading.c (main): Don't check freading immediately after
66013         repositioning. Needed for glibc.
66014
66015 2007-04-29  Bruno Haible  <bruno@clisp.org>
66016
66017         * lib/freading.c (freading): Trivial simplification.
66018
66019 2007-04-28  Bruno Haible  <bruno@clisp.org>
66020
66021         * tests/test-fwriting.c (main): Also test the interaction between
66022         fflush and fwriting.
66023         * modules/fwriting-tests (Depends-on): Add fflush.
66024
66025         * tests/test-freading.c (main): Also test the interaction between
66026         fflush and freading.
66027         * modules/freading-tests (Depends-on): Add fflush.
66028
66029 2007-04-28  Bruno Haible  <bruno@clisp.org>
66030
66031         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
66032         fseeko and ftello.
66033         Suggested by Eric Blake.
66034
66035 2007-04-28  Jim Meyering  <jim@meyering.net>
66036
66037         Avoid false-negative in gl_STDINT_H's C99 conformance test.
66038         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
66039         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
66040
66041 2007-04-27  Eric Blake  <ebb9@byu.net>
66042
66043         * doc/headers/assert.texi (assert.h): Document assert module use.
66044
66045 2007-04-27  Bruno Haible  <bruno@clisp.org>
66046
66047         * doc/headers/*.texi: New files.
66048         * doc/gnulib.texi (Header File Substitutes): New chapter.
66049         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
66050         dependencies.
66051         (standards.info ,standards.html, standards.dvi): Update dependencies.
66052         (mostlyclean, clean): New targets.
66053
66054 2007-04-27  Bruno Haible  <bruno@clisp.org>
66055
66056         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
66057         * modules/sysexits (Files, Makefile.am): Update.
66058
66059         * lib/sys_socket_.h: Renamed from lib/socket_.h.
66060         * modules/sys_socket (Files, Makefile.am): Update.
66061
66062         * lib/sys_stat_.h: Renamed from lib/stat_.h.
66063         * modules/sys_stat (Files, Makefile.am): Update.
66064
66065 2007-04-27  Eric Blake  <ebb9@byu.net>
66066
66067         * lib/freading.h: Improve comments.
66068         * lib/fwriting.h: Likewise.
66069         * lib/fflush.c: Likewise.
66070
66071         Fix closein for mingw.
66072         * modules/closein-tests: Add tests for closein.
66073         * tests/test-closein.c: New file.
66074         * tests/test-closein.sh: Likewise.
66075         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
66076         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
66077
66078 2007-04-27  Bruno Haible  <bruno@clisp.org>
66079
66080         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
66081         version is < 6.
66082         * lib/math_.h [__DECC]: Likewise.
66083         * lib/stdio_.h [__DECC]: Likewise.
66084         * lib/stdlib_.h [__DECC]: Likewise.
66085         * lib/string_.h [__DECC]: Likewise.
66086         * lib/time_.h [__DECC]: Likewise.
66087         * lib/wchar_.h [__DECC]: Likewise.
66088         * lib/wctype_.h [__DECC]: Likewise.
66089
66090 2007-04-27  Bruno Haible  <bruno@clisp.org>
66091
66092         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
66093
66094 2007-04-27  Bruno Haible  <bruno@clisp.org>
66095
66096         * lib/fflush.c: Add comments.
66097         * modules/fpurge-tests (Depends-on): Add fflush.
66098         * modules/freadable-tests (Depends-on): Likewise.
66099         * modules/fwritable-tests (Depends-on): Likewise.
66100
66101 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
66102
66103         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
66104         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
66105         Report by Bruno Haible <bruno@clisp.org>.
66106
66107 2007-04-26  Eric Blake  <ebb9@byu.net>
66108
66109         Fix fflush on mingw.
66110         * modules/fflush (Depends-on): Add freading.
66111         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
66112         but unread data.
66113
66114 2007-04-26  Eric Blake  <ebb9@byu.net>
66115         and Bruno Haible  <bruno@clisp.org>
66116
66117         Implement freading and fwriting.
66118         * lib/freading.c: New file.
66119         * lib/freading.h: Likewise.
66120         * m4/freading.m4: Likewise.
66121         * modules/freading: Likewise.
66122         * modules/freading-tests: Likewise.
66123         * tests/test-freading.c: Likewise.
66124         * lib/fwriting.c: New file.
66125         * lib/fwriting.h: Likewise.
66126         * m4/fwriting.m4: Likewise.
66127         * modules/fwriting: Likewise.
66128         * modules/fwriting-tests: Likewise.
66129         * tests/test-fwriting.c: Likewise.
66130         * MODULES.html.sh (File stream based Input/Output): Mention them.
66131
66132 2007-04-26  Bruno Haible  <bruno@clisp.org>
66133
66134         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
66135         'long' when we assume it.
66136         Suggested by Eric Blake.
66137
66138 2007-04-26  Bruno Haible  <bruno@clisp.org>
66139
66140         Ensure fseeko, ftello are declared on glibc systems.
66141         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
66142         * modules/fseeko (configure.ac-early): Likewise.
66143         * modules/ftello (configure.ac-early): Likewise.
66144         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
66145         AC_FUNC_FSEEKO for this.
66146         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
66147         (gl_CHECK_FSEEKO): Remove macro.
66148
66149 2007-04-26  Bruno Haible  <bruno@clisp.org>
66150
66151         * tests/test-fflush.c (main): Also check the ftell result after
66152         fflush and fseek/fseeko.
66153         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
66154         file descriptor position cache in the stream.
66155         * lib/fseeko.c (rpl_fseeko): Likewise.
66156
66157 2007-04-26  Bruno Haible  <bruno@clisp.org>
66158
66159         * modules/fflush-tests (Depends-on): Add fseeko.
66160
66161 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
66162             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66163
66164         * lib/argz_.h: ensure error_t definition is obtained in same
66165         mechanism system argz.h would have.
66166         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
66167         argz facilities are known bad.  Err on the side of caution if
66168         cross-compiling.
66169
66170 2007-04-25  Eric Blake  <ebb9@byu.net>
66171
66172         * lib/fpurge.c (includes): Use stdlib.h for free.
66173         * tests/test-fflush.c (main): Also test fflush-fseeko.
66174
66175 2007-04-25  Bruno Haible  <bruno@clisp.org>
66176
66177         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
66178         * lib/fseeko.c: New file.
66179         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
66180         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
66181         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
66182         gl_FUNC_FSEEKO.
66183         (gl_FUNC_FSEEKO): Invoke it.
66184         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
66185         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
66186         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
66187
66188 2007-04-25  Bruno Haible  <bruno@clisp.org>
66189
66190         * modules/fflush (Depends-on): Add ftello.
66191
66192 2007-04-25  Bruno Haible  <bruno@clisp.org>
66193
66194         * modules/ftello-tests: New file.
66195         * tests/test-ftello.c: New file.
66196
66197         * modules/ftello: New file.
66198         * m4/ftello.m4: New file.
66199         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
66200         HAVE_FTELLO.
66201         * lib/stdio_.h (ftello): New declaration.
66202         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
66203         HAVE_FTELLO.
66204
66205 2007-04-25  Bruno Haible  <bruno@clisp.org>
66206
66207         * modules/fseeko-tests: New file.
66208         * tests/test-fseeko.c: New file.
66209
66210         * modules/fseeko: New file.
66211         * m4/fseeko.m4: New file.
66212         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
66213         HAVE_FSEEKO.
66214         * lib/stdio_.h (fseeko): New declaration.
66215         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
66216         HAVE_FSEEKO.
66217
66218 2007-04-25  Bruno Haible  <bruno@clisp.org>
66219
66220         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
66221
66222 2007-04-25  Bruno Haible  <bruno@clisp.org>
66223
66224         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
66225         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
66226         * tests/test-unistd.c: Likewise.
66227         * tests/test-fcntl.c: Likewise.
66228
66229 2007-04-23  Eric Blake  <ebb9@byu.net>
66230
66231         * lib/fflush.c: Fix missing include.
66232         Reported by Bruno Haible.
66233
66234 2007-04-23  Bruno Haible  <bruno@clisp.org>
66235
66236         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
66237         Reported by Eric Blake.
66238
66239 2007-04-23  Bruno Haible  <bruno@clisp.org>
66240
66241         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
66242
66243 2007-04-23  Bruno Haible  <bruno@clisp.org>
66244
66245         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
66246
66247 2007-04-23  Bruno Haible  <bruno@clisp.org>
66248
66249         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
66250         Needed on HP-UX 11.
66251
66252 2007-04-16  Eric Blake  <ebb9@byu.net>
66253
66254         Make fflush rely on fpurge.
66255         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
66256         open coding all variants.
66257         * modules/fflush (Depends-on): Add fpurge and unistd.
66258         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
66259         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
66260
66261         Fix --with-tests compilation on cygwin.
66262         * modules/argmatch-tests (Makefile.am): List gnulib library first
66263         in LDADD.
66264         * modules/argp-tests (Makefile.am): Likewise.
66265         * modules/array-list-tests (Makefile.am): Likewise.
66266         * modules/array-oset-tests (Makefile.am): Likewise.
66267         * modules/avltree-list-tests (Makefile.am): Likewise.
66268         * modules/avltree-oset-tests (Makefile.am): Likewise.
66269         * modules/avltreehash-list-tests (Makefile.am): Likewise.
66270         * modules/carray-list-tests (Makefile.am): Likewise.
66271         * modules/dirname-tests (Makefile.am): Likewise.
66272         * modules/frexp-tests (Makefile.am): Likewise.
66273         * modules/isnanl-tests (Makefile.am): Likewise.
66274         * modules/linked-list-tests (Makefile.am): Likewise.
66275         * modules/linkedhash-list-tests (Makefile.am): Likewise.
66276         * modules/lock-tests (Makefile.am): Likewise.
66277         * modules/rbtree-list-tests (Makefile.am): Likewise.
66278         * modules/rbtree-oset-tests (Makefile.am): Likewise.
66279         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
66280         * modules/tls-tests (Makefile.am): Likewise.
66281         * modules/tsearch-tests (Makefile.am): Likewise.
66282         * modules/xvasprintf-tests (Makefile.am): Likewise.
66283
66284         Fix fpurge for cygwin.
66285         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
66286         value.
66287         * modules/fpurge-tests (Depends-on): Clean up trash.
66288
66289 2007-04-16  Simon Josefsson  <simon@josefsson.org>
66290
66291         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
66292
66293         * m4/autobuild.m4: Re-indent.
66294
66295 2007-04-13  Bruno Haible  <bruno@clisp.org>
66296
66297         * modules/fpurge-tests: New file.
66298         * tests/test-fpurge.c: New file.
66299
66300         * modules/fpurge: New file.
66301         * lib/fpurge.h: New file.
66302         * lib/fpurge.c: New file.
66303         * m4/fpurge.m4: New file.
66304
66305 2007-04-13  Bruno Haible  <bruno@clisp.org>
66306
66307         * modules/fbufmode-tests: New file.
66308         * tests/test-fbufmode.c: New file.
66309
66310         * modules/fbufmode: New file.
66311         * lib/fbufmode.h: New file.
66312         * lib/fbufmode.c: New file.
66313         * m4/fbufmode.m4: New file.
66314
66315 2007-04-13  Bruno Haible  <bruno@clisp.org>
66316
66317         * modules/fwritable-tests: New file.
66318         * tests/test-fwritable.c: New file.
66319
66320         * modules/fwritable: New file.
66321         * lib/fwritable.h: New file.
66322         * lib/fwritable.c: New file.
66323         * m4/fwritable.m4: New file.
66324
66325 2007-04-13  Bruno Haible  <bruno@clisp.org>
66326
66327         * modules/freadable-tests: New file.
66328         * tests/test-freadable.c: New file.
66329
66330         * modules/freadable: New file.
66331         * lib/freadable.h: New file.
66332         * lib/freadable.c: New file.
66333         * m4/freadable.m4: New file.
66334
66335 2007-04-13  Bruno Haible  <bruno@clisp.org>
66336
66337         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
66338         MOSTLYCLEANFILES.
66339
66340 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
66341
66342         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
66343         gzip bootstrap.conf to avoid dragging in i18n machinery.
66344         (gnulib_tool_option): Use it.
66345
66346 2007-04-13  Bruno Haible  <bruno@clisp.org>
66347
66348         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
66349         %F directives.
66350         * tests/test-vasprintf-posix.c (test_function): Likewise.
66351         * tests/test-snprintf-posix.h (test_function): Likewise.
66352         * tests/test-sprintf-posix.h (test_function): Likewise.
66353         * tests/test-fprintf-posix.h (test_function): Likewise.
66354         * tests/test-printf-posix.h (test_function): Likewise.
66355         * tests/test-fprintf-posix.out: Likewise.
66356
66357 2007-04-13  Bruno Haible  <bruno@clisp.org>
66358
66359         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
66360         * modules/tls-tests (configure.ac): Likewise.
66361         Reported by Arto C. Nirkko <anirkko@insel.ch>.
66362
66363 2007-04-13  Bruno Haible  <bruno@clisp.org>
66364
66365         * lib/tls.c (glthread_tls_get): Fix return type.
66366         Patch by Arto C. Nirkko <anirkko@insel.ch>.
66367
66368 2007-04-12  Eric Blake  <ebb9@byu.net>
66369
66370         * modules/gettime (Depends-on): Remove gettime.
66371         Reported by Dmitry V. Levin.
66372
66373 2007-04-12  Bruno Haible  <bruno@clisp.org>
66374
66375         * modules/fflush (Include): Mention <stdio.h>.
66376         * modules/strtoimax (Include): Mention <inttypes.h>.
66377         * modules/strtoumax (Include): Likewise.
66378
66379 2007-04-12  Eric Blake  <ebb9@byu.net>
66380
66381         * .cvsignore: New file.
66382         * .gitignore: Likewise.
66383
66384 2007-04-12  Bruno Haible  <bruno@clisp.org>
66385
66386         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
66387         not before, since $(LDADD) often contains libgnu.a.
66388         * modules/striconv-tests (test_striconv_LDADD): Likewise.
66389         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
66390         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
66391         Needed on Cygwin.
66392
66393 2007-04-12  Eric Blake  <ebb9@byu.net>
66394
66395         Work around glibc's failure to flush stdin on fclose.
66396         * lib/closein.c (close_stdin): Flush stdin before closing.
66397
66398         Work around glibc's failure to reset seekable stdin on exit.
66399         * modules/closein: New module.
66400         * lib/closein.c: New file.
66401         * lib/closein.h: Likewise.
66402         * m4/closein.m4: Likewise.
66403         * MODULES.html.sh (File stream based Input/Output): Document it.
66404
66405 2007-04-12  Simon Josefsson  <simon@josefsson.org>
66406
66407         * gnulib-tool: Rename generated 'autobuild' script to
66408         'do-autobuild' in --create-megatestdir output.
66409
66410         * doc/gnulib.texi (Build robot for gnulib): Fix.
66411
66412 2007-04-12  Simon Josefsson  <simon@josefsson.org>
66413
66414         * modules/sysexits (Depends-on): Add absolute-header.
66415
66416 2007-04-12  Eric Blake  <ebb9@byu.net>
66417
66418         No need to preserve errno on success.
66419         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
66420         Reported by Bruno Haible.
66421
66422 2007-04-12  Simon Josefsson  <simon@josefsson.org>
66423
66424         * MODULES.html.sh (Support for maintaining and releasing
66425         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
66426
66427 2007-04-12  Simon Josefsson  <simon@josefsson.org>
66428
66429         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
66430
66431 2007-04-12  Simon Josefsson  <simon@josefsson.org>
66432
66433         * modules/autobuild: New module.
66434
66435         * m4/autobuild.m4: New file.
66436
66437 2007-04-11  Bruno Haible  <bruno@clisp.org>
66438
66439         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
66440         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
66441         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
66442         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
66443         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
66444         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66445         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66446         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
66447         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66448         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66449         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
66450         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66451         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66452         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
66453         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66454         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66455         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
66456         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66457         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66458         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
66459         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66460         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66461         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
66462         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66463         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66464         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
66465         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66466         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66467         Reported by Eric Blake.
66468
66469 2007-04-11  Bruno Haible  <bruno@clisp.org>
66470
66471         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
66472
66473 2007-04-10  Bruno Haible  <bruno@clisp.org>
66474
66475         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
66476         for NaN and Infinity. Needed on FreeBSD 6.1.
66477         * tests/test-vasnprintf-posix.c (test_function): Undo last change
66478         regarding results for "%010a" of Infinity and NaN.
66479         * tests/test-vasprintf-posix.c (test_function): Likewise.
66480         * tests/test-snprintf-posix.h (test_function): Likewise.
66481         * tests/test-sprintf-posix.h (test_function): Likewise.
66482         * tests/test-fprintf-posix.h (test_function): Likewise.
66483         * tests/test-printf-posix.h (test_function): Likewise.
66484         * tests/test-fprintf-posix.out: Likewise.
66485
66486 2007-04-10  Bruno Haible  <bruno@clisp.org>
66487
66488         * modules/locale-tests: New file.
66489         * tests/test-locale.c: New file.
66490
66491         * modules/locale: New file.
66492         * lib/locale_.h: New file.
66493         * m4/locale_h.m4: New file.
66494
66495 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
66496             Bruno Haible  <bruno@clisp.org>
66497
66498         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
66499         be determined, test for availability of the copysignf, copysign,
66500         copysignl functions.
66501         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
66502         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
66503         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
66504
66505 2007-04-09  Eric Blake  <ebb9@byu.net>
66506
66507         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
66508         * modules/stdio (Makefile.am): Support fflush.
66509         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
66510         * modules/fflush: New file.
66511         * lib/fflush.c: Likewise.
66512         * m4/fflush.m4: Likewise.
66513         * modules/fflush-tests: New test.
66514         * tests/test-fflush.c: Likewise.
66515         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
66516
66517 2007-04-06  Bruno Haible  <bruno@clisp.org>
66518
66519         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
66520         (VASNPRINTF): Use signbit for faster determination whether to print a
66521         minus sign.
66522         * modules/vasnprintf (Files): Remove lib/float+.h.
66523         * modules/fprintf-posix (Depends-on): Add signbit.
66524         * modules/snprintf-posix (Depends-on): Likewise.
66525         * modules/sprintf-posix (Depends-on): Likewise.
66526         * modules/vasnprintf-posix (Depends-on): Likewise.
66527         * modules/vasprintf-posix (Depends-on): Likewise.
66528         * modules/vfprintf-posix (Depends-on): Likewise.
66529         * modules/vsnprintf-posix (Depends-on): Likewise.
66530         * modules/vsprintf-posix (Depends-on): Likewise.
66531
66532 2007-04-06  Bruno Haible  <bruno@clisp.org>
66533
66534         * tests/test-frexp.c (main): Test also the sign bit of zero results.
66535         * tests/test-frexpl.c (main): Likewise.
66536         * tests/test-ldexpl.c (main): Likewise.
66537         * modules/frexp-tests (Depends-on): Add signbit.
66538         * modules/frexpl-tests (Depdends-on): Likewise.
66539         * modules/ldexpl-tests (Depdends-on): Likewise.
66540
66541 2007-04-06  Bruno Haible  <bruno@clisp.org>
66542
66543         * modules/signbit-tests: New file.
66544         * tests/test-signbit.c: New file.
66545
66546         * modules/signbit: New file.
66547         * lib/signbitf.c: New file.
66548         * lib/signbitd.c: New file.
66549         * lib/signbitl.c: New file.
66550         * m4/signbit.m4: New file.
66551         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
66552         (signbit): New macro.
66553         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
66554         REPLACE_SIGNBIT.
66555         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
66556         REPLACE_FREXPL into math.h.
66557
66558 2007-04-06  Bruno Haible  <bruno@clisp.org>
66559
66560         * modules/isnanf-nolibm-tests: New file.
66561         * tests/test-isnanf.c: New file.
66562
66563         * modules/isnanf-nolibm: New file.
66564         * lib/isnanf.h: New file.
66565         * lib/isnanf.c: New file.
66566         * lib/isnan.c: Consider the USE_FLOAT macro.
66567         * m4/isnanf.m4: New file.
66568
66569 2007-04-06  Bruno Haible  <bruno@clisp.org>
66570
66571         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
66572         (Link): New section.
66573
66574         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
66575
66576 2007-04-06  Bruno Haible  <bruno@clisp.org>
66577
66578         Assume the 'long double' type.
66579         * m4/longdouble.m4: Remove file.
66580         * config/srclist.txt: Don't mention longdouble.m4.
66581         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
66582         * lib/float+.h: Likewise.
66583         * lib/frexp.c: Likewise.
66584         * lib/printf-args.h: Likewise.
66585         * lib/printf-args.c: Likewise.
66586         * lib/printf-frexp.c: Likewise.
66587         * lib/printf-parse.c: Likewise.
66588         * lib/vasnprintf.c: Likewise.
66589         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
66590         * m4/intl.m4: Likewise.
66591         * m4/isnanl.m4: Likewise.
66592         * m4/printf.m4: Likewise.
66593         * m4/printf-frexpl.m4: Likewise.
66594         * m4/vasnprintf.m4: Likewise.
66595         * modules/allocsa (Files): Remove m4/longdouble.m4.
66596         * modules/gettext (Files): Likewise.
66597         * modules/relocatable-prog-wrapper (Files): Likewise.
66598         * modules/vasnprintf (Files): Likewise.
66599         * modules/isnanl (Files): Likewise.
66600         (Include): Simplify.
66601         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
66602         (Include): Simplify.
66603         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
66604         (Include): Simplify.
66605         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
66606         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66607         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
66608         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66609         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
66610         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66611         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
66612         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66613         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
66614         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66615         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
66616         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66617         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
66618         * tests/test-isnanl.c: Likewise.
66619         * tests/test-snprintf-posix.h: Likewise.
66620         * tests/test-sprintf-posix.h: Likewise.
66621         * tests/test-vasnprintf-posix.c: Likewise.
66622         * tests/test-vasnprintf-posix2.c: Likewise.
66623         * tests/test-vasprintf-posix.c: Likewise.
66624
66625 2007-04-06  Bruno Haible  <bruno@clisp.org>
66626
66627         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
66628         * lib/math_.h [__DECC]: Include the overridden include file through
66629         #include_next, outside the double-inclusion guard.
66630         * lib/stdio_.h [__DECC]: Likewise.
66631         * lib/stdlib_.h [__DECC]: Likewise.
66632         * lib/string_.h [__DECC]: Likewise.
66633         * lib/time_.h [__DECC]: Likewise.
66634         * lib/wchar_.h [__DECC]: Likewise.
66635         * lib/wctype_.h [__DECC]: Likewise.
66636         * lib/inttypes_.h [__DECC]: Likewise.
66637         Reported by Albert Chin <china@thewrittenword.com> in
66638         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
66639
66640 2007-04-04  Eric Blake  <ebb9@byu.net>
66641
66642         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
66643         1.5.x.
66644
66645 2007-04-04  Bruno Haible  <bruno@clisp.org>
66646
66647         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
66648         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
66649
66650 2007-04-04  Bruno Haible  <bruno@clisp.org>
66651
66652         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
66653         results for "%010a" of Infinity and NaN.
66654         * tests/test-vasprintf-posix.c (test_function): Likewise.
66655         * tests/test-snprintf-posix.h (test_function): Likewise.
66656         * tests/test-sprintf-posix.h (test_function): Likewise.
66657         * tests/test-fprintf-posix.h (test_function): Remove these tests.
66658         * tests/test-printf-posix.h (test_function): Likewise.
66659         * tests/test-fprintf-posix.out: Update.
66660         Needed for FreeBSD 6.1.
66661
66662 2007-04-04  Bruno Haible  <bruno@clisp.org>
66663
66664         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
66665         directly used by the gnulib modules nor by gnulib-tool.
66666
66667 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
66668
66669         * DEPENDENCIES: Give overall description of version dependency
66670         desirability.  Use more-typical names for apps.
66671         Add shell, coreutils, diffutils, grep, tar, gzip.
66672
66673 2007-04-04  Simon Josefsson  <simon@josefsson.org>
66674
66675         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
66676
66677 2007-04-04  Karl Berry  <karl@gnu.org>
66678
66679         * MODULES.html.sh (func_module): missing '.
66680
66681 2007-04-03  Bruno Haible  <bruno@clisp.org>
66682
66683         * modules/argmatch-tests (Makefile.am): New variable
66684         test_argmatch_LDADD.
66685         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
66686         * modules/array-list-tests (Makefile.am): New variable
66687         test_array_list_LDADD.
66688         * modules/array-oset-tests (Makefile.am): New variable
66689         test_array_oset_LDADD.
66690         * modules/avltree-list-tests (Makefile.am): New variable
66691         test_avltree_list_LDADD.
66692         * modules/avltree-oset-tests (Makefile.am): New variable
66693         test_avltree_oset_LDADD.
66694         * modules/avltreehash-list-tests (Makefile.am): New variable
66695         test_avltreehash_list_LDADD.
66696         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
66697         test_canonicalize_lgpl_LDADD.
66698         * modules/carray-list-tests (Makefile.am): New variable
66699         test_carray_list_LDADD.
66700         * modules/dirname-tests (Makefile.am): New variable
66701         test_dirname_LDADD.
66702         * modules/linked-list-tests (Makefile.am): New variable
66703         test_linked_list_LDADD.
66704         * modules/linkedhash-list-tests (Makefile.am): New variable
66705         test_linkedhash_list_LDADD.
66706         * modules/rbtree-list-tests (Makefile.am): New variable
66707         test_rbtree_list_LDADD.
66708         * modules/rbtree-oset-tests (Makefile.am): New variable
66709         test_rbtree_oset_LDADD.
66710         * modules/rbtreehash-list-tests (Makefile.am): New variable
66711         test_rbtreehash_list_LDADD.
66712         * modules/xvasprintf-tests (Makefile.am): New variable
66713         test_xvasprintf_LDADD.
66714         Reported by Eric Blake.
66715
66716 2007-04-03  Eric Blake  <ebb9@byu.net>
66717
66718         * DEPENDENCIES: Weaken m4 requirements.
66719
66720 2007-04-03  Bruno Haible  <bruno@clisp.org>
66721
66722         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
66723         * modules/isnanl-tests (configure.ac): Likewise.
66724
66725 2007-04-03  Ben Pfaff  <blp@gnu.org>
66726
66727         * modules/iconv_open: Add $(srcdir)/ to source directory
66728         references in Makefile fragments that call gperf, to fix VPATH
66729         builds.
66730
66731 2007-04-03  Bruno Haible  <bruno@clisp.org>
66732
66733         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
66734         * lib/ldexpl.c: Undo last change.
66735
66736 2007-04-03  Bruno Haible  <bruno@clisp.org>
66737
66738         * modules/printf-frexpl (Depends-on): Undo last change.
66739         (Files): Add m4/ldexpl.m4.
66740
66741 2007-04-03  Bruno Haible  <bruno@clisp.org>
66742
66743         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
66744         * modules/isnanl (Link): New section.
66745
66746         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
66747         * modules/frexp (Link): New section.
66748
66749         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
66750         * modules/frexpl (Link): New section.
66751
66752         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
66753         * modules/ldexpl (Link): New section.
66754
66755 2007-04-03  Bruno Haible  <bruno@clisp.org>
66756
66757         * modules/TEMPLATE-EXTENDED: New file.
66758         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
66759
66760 2007-04-03  Bruno Haible  <bruno@clisp.org>
66761
66762         * DEPENDENCIES: New file.
66763         Suggested by Simon Josefsson.
66764
66765 2007-04-03  Bruno Haible  <bruno@clisp.org>
66766
66767         * doc/gnulib.texi: Escape @.
66768
66769 2007-04-03  James Youngman  <jay@gnu.org>
66770         and Paul Eggert  <eggert@cs.ucla.edu>
66771
66772         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
66773         birthtime on all systems that have birthtime, not just those which
66774         use st_birthtimensec rather than st_birthtim.  Putting zero in
66775         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
66776         that the birth time is not available for files on an NFS mount.
66777
66778 2007-04-03  Simon Josefsson  <simon@josefsson.org>
66779
66780         * modules/memxor: Move back from crypto/, suggested by Bruno.
66781         * modules/crypto/hmac-sha1: Fix memxor dependency.
66782
66783         * modules/crypto/gc: Moved from ../.
66784
66785 2007-04-02  Eric Blake  <ebb9@byu.net>
66786
66787         * lib/ldexpl.c (includes): Avoid libm.
66788
66789         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
66790
66791 2007-04-02  Bruno Haible  <bruno@clisp.org>
66792
66793         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
66794         on IRIX.
66795
66796 2007-04-02  Bruno Haible  <bruno@clisp.org>
66797
66798         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
66799         x86 or x86_64 platforms running MacOS X.
66800         Reported by Ryan Schmidt <@ryandesign.com>.
66801
66802 2007-04-02  Bruno Haible  <bruno@clisp.org>
66803
66804         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
66805         i386.
66806
66807 2007-04-01  Simon Josefsson  <simon@josefsson.org>
66808
66809         * modules/crypto/arcfour: Moved from ../.
66810         * modules/crypto/arcfour-tests: Moved from ../.
66811         * modules/crypto/arctwo: Moved from ../.
66812         * modules/crypto/arctwo-tests: Moved from ../.
66813         * modules/crypto/des: Moved from ../.
66814         * modules/crypto/des-tests: Moved from ../.
66815         * modules/crypto/gc-arcfour: Moved from ../.
66816         * modules/crypto/gc-arcfour-tests: Moved from ../.
66817         * modules/crypto/gc-arctwo: Moved from ../.
66818         * modules/crypto/gc-arctwo-tests: Moved from ../.
66819         * modules/crypto/gc-des: Moved from ../.
66820         * modules/crypto/gc-des-tests: Moved from ../.
66821         * modules/crypto/gc-hmac-md5: Moved from ../.
66822         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
66823         * modules/crypto/gc-hmac-sha1: Moved from ../.
66824         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
66825         * modules/crypto/gc-md2: Moved from ../.
66826         * modules/crypto/gc-md2-tests: Moved from ../.
66827         * modules/crypto/gc-md4: Moved from ../.
66828         * modules/crypto/gc-md4-tests: Moved from ../.
66829         * modules/crypto/gc-md5: Moved from ../.
66830         * modules/crypto/gc-md5-tests: Moved from ../.
66831         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
66832         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
66833         * modules/crypto/gc-random: Moved from ../.
66834         * modules/crypto/gc-rijndael: Moved from ../.
66835         * modules/crypto/gc-rijndael-tests: Moved from ../.
66836         * modules/crypto/gc-sha1: Moved from ../.
66837         * modules/crypto/gc-sha1-tests: Moved from ../.
66838         * modules/crypto/gc-tests: Moved from ../.
66839         * modules/crypto/hmac-md5: Moved from ../.
66840         * modules/crypto/hmac-md5-tests: Moved from ../.
66841         * modules/crypto/hmac-sha1: Moved from ../.
66842         * modules/crypto/hmac-sha1-tests: Moved from ../.
66843         * modules/crypto/md2: Moved from ../.
66844         * modules/crypto/md2-tests: Moved from ../.
66845         * modules/crypto/md4: Moved from ../.
66846         * modules/crypto/md4-tests: Moved from ../.
66847         * modules/crypto/md5: Moved from ../.
66848         * modules/crypto/md5-tests: Moved from ../.
66849         * modules/crypto/memxor: Moved from ../.
66850         * modules/crypto/rijndael: Moved from ../.
66851         * modules/crypto/rijndael-tests: Moved from ../.
66852         * modules/crypto/sha1: Moved from ../.
66853
66854 2007-03-30  James Youngman  <jay@gnu.org>
66855
66856         * tests/test-stat-time.c (prepare_test): use chmod() rather than
66857         rename() to change the ctime of a file (because ctime is unaffected
66858         by rename on jfs2 on AIX 5.1).
66859         (main): Start by doing cleanup, in case a previous run failed leaving
66860         test files behind.
66861
66862 2007-03-31  Bruno Haible  <bruno@clisp.org>
66863
66864         Support old proprietary implementations of iconv.
66865         * modules/iconv_open: New file.
66866         * lib/iconv_.h: New file.
66867         * m4/iconv_h.m4: New file.
66868         * lib/iconv_open.c: New file.
66869         * lib/iconv_open-aix.gperf: New file.
66870         * lib/iconv_open-hpux.gperf: New file.
66871         * lib/iconv_open-irix.gperf: New file.
66872         * lib/iconv_open-osf.gperf: New file.
66873         * m4/iconv_open.m4: New file.
66874         * modules/linebreak (Depends-on): Add iconv_open.
66875         * modules/striconv (Depends-on): Likewise.
66876         * modules/striconveh (Depends-on): Likewise.
66877         * modules/unicodeio (Depends-on): Likewise.
66878         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
66879         (iconv_t)(-1).
66880         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
66881         conversion if cd is (iconv_t)(-1).
66882         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
66883         is not possible.
66884
66885 2007-03-31  Bruno Haible  <bruno@clisp.org>
66886
66887         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
66888         work on Solaris either. Protect also second use of "autodetect_jp".
66889
66890 2007-03-31  Bruno Haible  <bruno@clisp.org>
66891
66892         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
66893         the function is not present.
66894
66895 2007-03-31  Bruno Haible  <bruno@clisp.org>
66896
66897         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
66898         the function is not present.
66899
66900 2007-03-31  Bruno Haible  <bruno@clisp.org>
66901
66902         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
66903         a bug in HP-UX iconv_open().
66904
66905 2007-03-31  Bruno Haible  <bruno@clisp.org>
66906
66907         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
66908         (Mathematics <math.h>): New section, add fpieee.
66909         (Input/output <stdio.h>): Add fseterr.
66910         (Mathematics <math.h>): New section, add printf-frexp.
66911         (Container data structures): Add sublist.
66912         (Core language properties): Add fpucw, inline.
66913         (Functions for greatest-width integer types <inttypes.h>): Add
66914         imaxabs, imaxdiv, inttypes.
66915         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
66916         isnanl-nolibm, ldexp.
66917         (Mathematics <math.h>): New section, add printf-frexpl.
66918         (Support for systems lacking POSIX:2001): Add fprintf-posix,
66919         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
66920         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
66921         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
66922         (Unicode string functions): Add unistr/u*-mbtoucr.
66923         (Java): Add javacomp-script, javaexec-script.
66924         (C#): Add csharpcomp-script, csharpexec-script.
66925         (Support for building libraries and executables): Add havelib,
66926         relocatable-*.
66927         (Support for maintaining and releasing projects): Renamed from
66928         'Support for maintaining and release projects'. Add announce-gen.
66929
66930 2007-03-31  Bruno Haible  <bruno@clisp.org>
66931
66932         * README: Talk primarily about git.
66933         (git and CVS): Renamed from CVS.
66934         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
66935         gnulib is available through git.
66936         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
66937
66938 2007-03-30  Bruno Haible  <bruno@clisp.org>
66939
66940         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
66941         * lib/poll_.h: Likewise.
66942         * lib/stat_.h: Likewise.
66943         * lib/sys_time_.h: Likewise.
66944         * lib/sysexit_.h: Likewise.
66945         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
66946         * lib/stdbool_.h: Likewise.
66947         * lib/byteswap_.h: Add double-inclusion guard.
66948
66949 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
66950
66951         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
66952
66953 2007-03-30  Karl Berry  <karl@gnu.org>
66954
66955         * config/srclist-update: double space after USA in the license
66956         substitution, since that's how it's usually (?) written.
66957
66958 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
66959
66960         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
66961         reported by Bruno Haible.
66962
66963 2007-03-29  Bruno Haible  <bruno@clisp.org>
66964
66965         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
66966         a bug in AIX iconv().
66967
66968 2007-03-29  Bruno Haible  <bruno@clisp.org>
66969
66970         * modules/ldexpl-tests: New file.
66971         * tests/test-ldexpl.c: New file.
66972
66973 2007-03-29  Bruno Haible  <bruno@clisp.org>
66974
66975         * lib/ldexpl.c: Include fpucw.h.
66976         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
66977         multiplication.
66978         * modules/ldexpl (Depends-on): Add fpucw.
66979
66980 2007-03-29  Bruno Haible  <bruno@clisp.org>
66981
66982         * modules/ldexpl: New file.
66983         * m4/ldexpl.m4: New file.
66984         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
66985         set.
66986         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
66987         REPLACE_LDEXPL.
66988         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
66989         REPLACE_LDEXPL.
66990         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
66991         gl_FUNC_LDEXPL_WORKS.
66992         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
66993         * modules/mathl (Files): Remove lib/ldexpl.c.
66994         (Depends-on): Add ldexpl.
66995
66996 2007-03-29  Bruno Haible  <bruno@clisp.org>
66997
66998         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
66999
67000 2007-03-29  Bruno Haible  <bruno@clisp.org>
67001
67002         * tests/test-striconveh.c (main): Don't assume that a direct conversion
67003         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
67004         and possibly also HP-UX.
67005         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
67006         work on AIX, IRIX, HP-UX, OSF/1.
67007         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
67008         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
67009         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
67010         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
67011         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
67012         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
67013
67014 2007-03-29  Bruno Haible  <bruno@clisp.org>
67015
67016         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
67017
67018 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
67019
67020         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
67021         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
67022
67023 2007-03-29  Eric Blake  <ebb9@byu.net>
67024
67025         * lib/acl-internal.h: Remove redundant include.
67026         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
67027         Cygwin when a file is locked.
67028
67029 2007-03-29  Bruno Haible  <bruno@clisp.org>
67030
67031         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
67032         file.
67033         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
67034
67035 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
67036
67037         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
67038         try to remove a parent directory if the child couldn't be removed
67039         (except for the first rmdir, which could fail because the child
67040         doesn't exist).  Problem reported by Jeff Blaine in
67041         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
67042
67043 2007-03-28  Bruno Haible  <bruno@clisp.org>
67044
67045         * lib/striconveh.c (utf8conv_carefully): New function.
67046         (mem_cd_iconveh_internal): Invoke it.
67047
67048 2007-03-28  Bruno Haible  <bruno@clisp.org>
67049
67050         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
67051         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
67052         input.
67053         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
67054         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
67055         unistr/u8-uctomb.
67056
67057 2007-03-28  Bruno Haible  <bruno@clisp.org>
67058
67059         * modules/unistr/u8-mbtoucr: New file.
67060         * lib/unistr/u8-mbtoucr.c: New file.
67061         * modules/unistr/u16-mbtoucr: New file.
67062         * lib/unistr/u16-mbtoucr.c: New file.
67063         * modules/unistr/u16-mbtoucr: New file.
67064         * lib/unistr/u16-mbtoucr.c: New file.
67065         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
67066
67067 2007-03-27  Simon Josefsson  <simon@josefsson.org>
67068             Bruno Haible  <bruno@clisp.org>
67069
67070         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
67071         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
67072         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
67073
67074         * m4/stdio_h.m4: Add stubs for vasprintf too.
67075
67076         * modules/stdio: Support vasprintf in sed command.
67077
67078         * modules/vasprintf: Depend on stdio for prototypes.  Remove
67079         vasprintf.h.  Add stdio module indicator.
67080
67081         * lib/stdio_.h: Declare asprintf and vasprintf, based on
67082         vasprintf.h.
67083
67084         * lib/vasprintf.h: File removed.
67085
67086         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
67087         * lib/vasprintf.c: Ditto.
67088         * lib/xvasprintf.c: Ditto.
67089         * tests/test-vasprintf-posix.c: Ditto.
67090         * tests/test-vasprintf.c: Ditto.
67091
67092 2007-03-27  Bruno Haible  <bruno@clisp.org>
67093
67094         Make vasnprintf multithread-safe.
67095         * lib/vasnprintf.c (decimal_point_char): New function.
67096         (VASNPRINTF): Use it.
67097         Suggested by Simon Josefsson.
67098
67099 2007-03-27  Eric Blake  <ebb9@byu.net>
67100
67101         Support sub-second birthtime on cygwin.
67102         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
67103         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
67104         (get_stat_birthtime): Also work with st_birthtim.
67105
67106 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
67107
67108         * lib/stat-time.h (USE_BIRTHTIME): Remove.
67109         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
67110         (get_stat_birthtime_ns): Do not try to use "spare" fields.
67111         (get_stat_birthtime_ns): Simplify compile-time tests.
67112         (get_stat_birthtime): Change the API to look like
67113         get_stat_mtime etc., except return a negative tv_nsec on error.
67114         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
67115         Don't check for "spare" fields.
67116         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
67117         or for struct stat.st_birthtime, as these tests aren't used.
67118         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
67119
67120 2007-03-27  Bruno Haible  <bruno@clisp.org>
67121
67122         * lib/stat-time.h: Include <sys/stat.h>.
67123
67124 2007-03-27  James Youngman  <jay@gnu.org>
67125
67126         * lib/stat-time.h (get_stat_birthtime): New function for
67127           retrieving st_birthtime as provided by UFS2 (hence *BSD).
67128         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
67129           and its variants.
67130         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
67131         * modules/stat-time-test: New file.
67132         * tests/test-stat-time.c: New test, devised by Bruno Haible.
67133
67134 2007-03-26  Bruno Haible  <bruno@clisp.org>
67135
67136         Better support of signalling NaNs.
67137         * lib/atanl.c: Include isnanl.h.
67138         (atanl): Perform test for NaN at the beginning of the function and
67139         through a call to isnanl.
67140         * lib/cosl.c: Include isnanl.h.
67141         (cosl): Perform test for NaN at the beginning of the function and
67142         through a call to isnanl.
67143         * lib/ldexpl.c: Include isnanl.h.
67144         (ldexpl): Perform test for NaN through a call to isnanl.
67145         * lib/logl.c: Include isnanl.h.
67146         (logl): Perform test for NaN at the beginning of the function and
67147         through a call to isnanl.
67148         * lib/sinl.c: Include isnanl.h.
67149         (sinl): Perform test for NaN at the beginning of the function and
67150         through a call to isnanl.
67151         * lib/sqrtl.c: Include isnanl.h.
67152         (sqrtl): Perform test for NaN at the beginning of the function and
67153         through a call to isnanl.
67154         * lib/tanl.c: Include isnanl.h.
67155         (tanl): Perform test for NaN at the beginning of the function and
67156         through a call to isnanl.
67157         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
67158         * modules/mathl (Depends-on): Add isnanl.
67159
67160 2007-03-26  Eric Blake  <ebb9@byu.net>
67161
67162         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
67163         regression in logic sense of previous patch.
67164
67165 2007-03-26  Bruno Haible  <bruno@clisp.org>
67166
67167         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
67168         unportable shell command "if ! ...".
67169         Reported by Ralf Wildenhues.
67170
67171 2007-03-25  Bruno Haible  <bruno@clisp.org>
67172
67173         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
67174         <sysexits.h> file, and only add EX_CONFIG.
67175         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
67176         absolute file name and whether it is sufficient. Substitute also
67177         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
67178         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
67179         ABSOLUTE_SYSEXITS_H into sysexits.h.
67180
67181 2007-03-25  Bruno Haible  <bruno@clisp.org>
67182
67183         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
67184         hints is NULL.
67185
67186 2007-03-25  Bruno Haible  <bruno@clisp.org>
67187
67188         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
67189         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
67190
67191 2007-03-25  Bruno Haible  <bruno@clisp.org>
67192
67193         * lib/vasnprintf.c: Include langinfo.h.
67194         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
67195         multithread-safe.
67196         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
67197         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
67198         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
67199         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
67200         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
67201         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
67202         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
67203         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
67204         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
67205         Reported by Simon Josefsson.
67206
67207 2007-03-25  Bruno Haible  <bruno@clisp.org>
67208
67209         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
67210         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
67211         * modules/vasnprintf (Depends-on): Add stdint.
67212
67213 2007-03-25  Bruno Haible  <bruno@clisp.org>
67214
67215         * modules/fpieee: New file.
67216         * m4/fpieee.m4: New file.
67217         * modules/isnan-nolibm (Depends-on): Add fpieee.
67218         * modules/isnanl-nolibm (Depends-on): Add fpieee.
67219         * modules/isnanl (Depends-on): Add fpieee.
67220
67221 2007-03-25  Bruno Haible  <bruno@clisp.org>
67222
67223         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
67224
67225 2007-03-25  Bruno Haible  <bruno@clisp.org>
67226
67227         Avoid test failures on IRIX 6.5.
67228         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
67229         (main): Use it.
67230         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
67231         macros.
67232         (main): Use them.
67233
67234 2007-03-25  Bruno Haible  <bruno@clisp.org>
67235
67236         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
67237         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
67238         exists but doesn't work.
67239         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
67240         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
67241         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
67242         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
67243         math.h.
67244
67245 2007-03-25  Bruno Haible  <bruno@clisp.org>
67246
67247         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
67248         returns inf. Needed on IRIX 6.5.
67249
67250 2007-03-25  Bruno Haible  <bruno@clisp.org>
67251
67252         * tests/test-frexpl.c: Include isnanl-nolibm.h.
67253         (main): Use isnanl instead of x != x idiom.
67254         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
67255
67256         * tests/test-frexp.c: Include isnan.h.
67257         (main): Use isnan instead of x != x idiom.
67258         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
67259
67260 2007-03-25  Bruno Haible  <bruno@clisp.org>
67261
67262         * tests/test-frexp.c (NaN): New function/macro.
67263         (main): Use it instead of 0.0 / 0.0.
67264         * tests/test-isnan.c (NaN): New function/macro.
67265         (main): Use it instead of 0.0 / 0.0.
67266         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
67267         (test_function): Use it instead of 0.0 / 0.0.
67268         * tests/test-vasprintf-posix.c (NaN): New function/macro.
67269         (test_function): Use it instead of 0.0 / 0.0.
67270         * tests/test-snprintf-posix.h (NaN): New function/macro.
67271         (test_function): Use it instead of 0.0 / 0.0.
67272         * tests/test-sprintf-posix.h (NaN): New function/macro.
67273         (test_function): Use it instead of 0.0 / 0.0.
67274         * tests/test-fprintf-posix.h (NaN): New function/macro.
67275         (test_function): Use it instead of 0.0 / 0.0.
67276         * tests/test-printf-posix.h (NaN): New function/macro.
67277         (test_function): Use it instead of 0.0 / 0.0.
67278
67279         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
67280
67281 2007-03-25  Bruno Haible  <bruno@clisp.org>
67282
67283         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
67284
67285 2007-03-25  Bruno Haible  <bruno@clisp.org>
67286
67287         * lib/regexec.c (merge_state_with_log): Make static.
67288
67289 2007-03-25  Bruno Haible  <bruno@clisp.org>
67290
67291         * lib/trigl.c (kernel_rem_pio2): Make static.
67292
67293 2007-03-25  Bruno Haible  <bruno@clisp.org>
67294
67295         * lib/sincosl.c (sincosl_table): Make static.
67296
67297 2007-03-25  Bruno Haible  <bruno@clisp.org>
67298
67299         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
67300         if the compiler does not support C99.
67301
67302 2007-03-25  Bruno Haible  <bruno@clisp.org>
67303
67304         * modules/time (Makefile.am): Ensure all rule action lines start with a
67305         tab.
67306
67307 2007-03-24  Bruno Haible  <bruno@clisp.org>
67308
67309         * modules/tsearch-tests: New file.
67310         * tests/test-tsearch.sh: New file.
67311         * tests/test-tsearch.c: New file, mostly copied from glibc.
67312
67313         * modules/search-tests: New file.
67314         * tests/test-search.c: New file.
67315
67316         * modules/search: New file.
67317         * lib/search_.h: New file, incorporating lib/tsearch.h.
67318         * m4/search_h.m4: New file.
67319         * lib/tsearch.h: Remove file.
67320         * lib/tsearch.c: Include search.h instead of tsearch.h.
67321         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
67322         HAVE_TSEARCH.
67323         * modules/tsearch (Files): Remove lib/tsearch.h.
67324         (Depends-on): Add search.
67325         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
67326         (Include): Change tsearch.h into search.h.
67327
67328 2007-03-24  Bruno Haible  <bruno@clisp.org>
67329
67330         * modules/fpucw: New file.
67331         * lib/fpucw.h: New file.
67332         * lib/frexp.c: Include fpucw.h.
67333         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
67334         (FUNC): Use them.
67335         * lib/printf-frexp.c: Include fpucw.h.
67336         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
67337         (FUNC): Use them.
67338         * lib/vasnprintf.c: Include fpucw.h.
67339         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
67340         'long double' calculations.
67341         * tests/test-frexpl.c: Include fpucw.h.
67342         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
67343         * tests/test-printf-frexpl.c: Include fpucw.h.
67344         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
67345         * modules/frexpl (Depends-on): Add fpucw.
67346         * modules/printf-frexpl (Depends-on): Likewise.
67347         * modules/fprintf-posix (Depends-on): Likewise.
67348         * modules/snprintf-posix (Depends-on): Likewise.
67349         * modules/sprintf-posix (Depends-on): Likewise.
67350         * modules/vasnprintf-posix (Depends-on): Likewise.
67351         * modules/vasprintf-posix (Depends-on): Likewise.
67352         * modules/vfprintf-posix (Depends-on): Likewise.
67353         * modules/vsnprintf-posix (Depends-on): Likewise.
67354         * modules/vsprintf-posix (Depends-on): Likewise.
67355         * modules/frexpl-tests (Depends-on): Likewise.
67356         * modules/printf-frexpl-tests (Depends-on): Likewise.
67357
67358 2007-03-24  Bruno Haible  <bruno@clisp.org>
67359
67360         * lib/float+.h: New file.
67361         * lib/isnan.c: Include float+.h.
67362         (SIZE): New macro.
67363         (FUNC): Compare only SIZE bytes of the value.
67364         * lib/vasnprintf.c: Include float+.h.
67365         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
67366         SIZEOF_LDBL or SIZEOF_DBL bytes.
67367         * modules/isnan-nolibm (Files): Add lib/float+.h.
67368         * modules/isnanl-nolibm (Files): Add lib/float+.h.
67369         * modules/isnanl (Files): Add lib/float+.h.
67370         * modules/vasnprintf (Files): Add lib/float+.h.
67371
67372 2007-03-24  Bruno Haible  <bruno@clisp.org>
67373
67374         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
67375         include isnanl-nolibm.h.
67376
67377 2007-03-24  Bruno Haible  <bruno@clisp.org>
67378
67379         * tests/test-read-file.c (main): Don't produce spurious output for
67380         expected situations. Make the test fail if it encountered unexpected
67381         results.
67382
67383 2007-03-24  Bruno Haible  <bruno@clisp.org>
67384
67385         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
67386         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
67387
67388 2007-03-24  Bruno Haible  <bruno@clisp.org>
67389
67390         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
67391
67392 2007-03-24  Bruno Haible  <bruno@clisp.org>
67393
67394         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
67395         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
67396
67397         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
67398         * modules/utf8-ucs4: Turn into a symbolic link to module
67399         unistr/u8-mbtouc.
67400
67401         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
67402         utf8-ucs4-unsafe.
67403         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
67404         unistr/u8-mbtouc-unsafe.
67405
67406         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
67407         * modules/utf16-ucs4: Turn into a symbolic link to module
67408         unistr/u16-mbtouc.
67409
67410         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
67411         utf16-ucs4-unsafe.
67412         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
67413         unistr/u16-mbtouc-unsafe.
67414
67415         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
67416         * modules/ucs4-utf8: Turn into a symbolic link to module
67417         unistr/u8-ubtomb.
67418
67419         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
67420         * modules/ucs4-utf16: Turn into a symbolic link to module
67421         unistr/u16-ubtomb.
67422
67423 2007-03-24  Bruno Haible  <bruno@clisp.org>
67424
67425         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
67426         Enable the function only if HAVE_INLINE.
67427         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
67428         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
67429         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
67430         Enable the function only if HAVE_INLINE.
67431         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
67432         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
67433         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
67434         Enable the function only if HAVE_INLINE.
67435         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
67436         Enable the function only if HAVE_INLINE.
67437         * modules/utf8-ucs4: Update.
67438         * modules/utf8-ucs4-unsafe: Update.
67439         * modules/utf16-ucs4: Update.
67440         * modules/utf16-ucs4-unsafe: Update.
67441         * modules/ucs4-utf8: Update.
67442         * modules/ucs4-utf16: Update.
67443
67444 2007-03-24  Bruno Haible  <bruno@clisp.org>
67445
67446         * lib/utf8-ucs4.h: Remove file.
67447         * lib/utf8-ucs4-unsafe.h: Remove file.
67448         * lib/utf16-ucs4.h: Remove file.
67449         * lib/utf16-ucs4-unsafe.h: Remove file.
67450         * lib/ucs4-utf8.h: Remove file.
67451         * lib/ucs4-utf16.h: Remove file.
67452         * lib/unistr.h: Include their previous contents.
67453         * m4/utf-ucs4.m4: Remove file.
67454         * m4/ucs4-utf.m4: Remove file.
67455         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
67456         (Depends-on): Add unistr/base.
67457         (configure.ac): Remove gl_UTF_UCS4.
67458         (Makefile.am): Update.
67459         (Include): Change to unistr.h.
67460         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
67461         (Depends-on): Add unistr/base.
67462         (configure.ac): Remove gl_UTF_UCS4.
67463         (Makefile.am): Update.
67464         (Include): Change to unistr.h.
67465         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
67466         (Depends-on): Add unistr/base.
67467         (configure.ac): Remove gl_UTF_UCS4.
67468         (Makefile.am): Update.
67469         (Include): Change to unistr.h.
67470         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
67471         (Depends-on): Add unistr/base.
67472         (configure.ac): Remove gl_UTF_UCS4.
67473         (Makefile.am): Update.
67474         (Include): Change to unistr.h.
67475         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
67476         (Depends-on): Add unistr/base.
67477         (configure.ac): Remove gl_UCS4_UTF.
67478         (Makefile.am): Update.
67479         (Include): Change to unistr.h.
67480         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
67481         (Depends-on): Add unistr/base.
67482         (configure.ac): Remove gl_UCS4_UTF.
67483         (Makefile.am): Update.
67484         (Include): Change to unistr.h.
67485         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
67486         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
67487         utf8-ucs4-unsafe.h.
67488         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
67489         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
67490         utf16-ucs4-unsafe.h.
67491         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
67492         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
67493         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
67494         * lib/unistr/u8-strchr.c: Likewise.
67495         * lib/unistr/u8-strrchr.c: Likewise.
67496         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
67497         * lib/unistr/u16-strchr.c: Likewise.
67498         * lib/unistr/u16-strrchr.c: Likewise.
67499         * lib/striconveh.c: Update.
67500         * lib/linebreak.c: Update.
67501
67502 2007-03-24  Bruno Haible  <bruno@clisp.org>
67503
67504         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
67505         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
67506
67507 2007-03-22  Bruno Haible  <bruno@clisp.org>
67508
67509         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
67510
67511 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
67512
67513         * MODULES.html.sh (File system functions): New module write-any-file.
67514         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
67515         * m4/write-any-file.m4: New files.
67516
67517 2007-03-23  Eric Blake  <ebb9@byu.net>
67518
67519         * gnulib-tool: Rearrange space-tab sequences, since some editors
67520         like to eat them.
67521
67522 2007-03-23  Eric Blake  <ebb9@byu.net>
67523
67524         * lib/version-etc.c (version_etc_va): Update license wording to
67525         be more concise.  Recommended by Richard Stallman.
67526
67527 2007-03-22  Bruno Haible  <bruno@clisp.org>
67528
67529         * lib/poll.c (MSG_PEEK): New fallback definition.
67530
67531 2007-03-22  Bruno Haible  <bruno@clisp.org>
67532
67533         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
67534         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
67535         (main): Update.
67536         Fixes a compilation error on BeOS.
67537
67538 2007-03-22  Bruno Haible  <bruno@clisp.org>
67539
67540         * modules/frexpl-tests: New file.
67541         * tests/test-frexpl.c: New file.
67542
67543         * modules/frexpl: New file.
67544         * m4/frexpl.m4: New file.
67545         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
67546         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
67547         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
67548         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
67549         (Depends-on): Add frexpl. Remove isnanl-nolibm.
67550         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
67551
67552 2007-03-22  Bruno Haible  <bruno@clisp.org>
67553
67554         * lib/frexpl.c: Share code with lib/frexp.c.
67555         * modules/mathl (Files): Add lib/frexp.c.
67556         (Depends-on): Add isnanl-nolibm.
67557
67558 2007-03-22  Bruno Haible  <bruno@clisp.org>
67559
67560         * modules/printf-frexp (Files): Add m4/frexp.m4.
67561         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
67562         only if the found frexp function actually works.
67563
67564 2007-03-22  Bruno Haible  <bruno@clisp.org>
67565
67566         * lib/frexp.c: Remove older implementation that uses divisions.
67567
67568 2007-03-21  Bruno Haible  <bruno@clisp.org>
67569
67570         * modules/frexp-tests: New file.
67571         * tests/test-frexp.c: New file.
67572
67573         * modules/frexp: New file.
67574         * lib/frexp.c: New file.
67575         * m4/frexp.m4: New file.
67576         * lib/math_.h (frexp): New declaration.
67577         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
67578         REPLACE_FREXP.
67579         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
67580
67581 2007-03-21  Bruno Haible  <bruno@clisp.org>
67582
67583         * modules/isnanl-tests: New file.
67584         * tests/test-isnanl.c: New file.
67585
67586         * modules/isnanl: New file.
67587         * lib/isnanl.h: New file.
67588         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
67589         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
67590         gl_FUNC_ISNANL_WORKS.
67591         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
67592         New macros.
67593
67594 2007-03-21  Bruno Haible  <bruno@clisp.org>
67595
67596         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
67597         lib/isnanl.h.
67598         (Include): Update.
67599         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
67600         * lib/vasnprintf.c: Update.
67601         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
67602         tests/test-isnanl.h, remove tests/test-isnanl.c.
67603         (Makefile.am): Update.
67604         * tests/test-isnanl-nolibm.c: New file.
67605         * tests/test-isnanl.h: New file.
67606         * tests/test-isnanl.c: Remove file.
67607
67608 2007-03-21  Jim Meyering  <jim@meyering.net>
67609
67610         When trying to open ".", treat ESTALE like EACCES.
67611         * lib/savewd.c (savewd_save): Resort to forking not just upon
67612         failure with EACCES, but also when errno is ESTALE.
67613
67614 2007-03-20  Bruno Haible  <bruno@clisp.org>
67615
67616         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
67617         Needed on AIX 5.1. Reported by Matthew Woehlke.
67618
67619 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
67620
67621         Suggestions by Bruno Haible:
67622         * lib/acl-internal.h: Include "gettext.h" rather than rolling
67623         our own.
67624         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
67625         * modules/acl (Depends-on): Add gettext.
67626
67627 2007-03-19  Bruno Haible  <bruno@clisp.org>
67628
67629         * modules/iconvme: Remove file.
67630         * lib/iconvme.h: Remove file.
67631         * lib/iconvme.c: Remove file.
67632         * m4/iconvme.m4: Remove file.
67633
67634 2007-03-19  Bruno Haible  <bruno@clisp.org>
67635
67636         * doc/relocatable-maint.texi: Break long shell script line.
67637         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
67638
67639 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
67640
67641         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
67642         handle file_has_acl.
67643         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
67644         * lib/acl.c: Move header inclusions and related macro defns into
67645         lib/acl-internal.h.
67646         (S_ISLNK): Remove defn, since that's now done for us.
67647         (file_has_acl): Move to lib/file-has-acl.c.
67648         Call acl_trivial if available.  This is the crucial part of the fix.
67649         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
67650         shared within the library.  Rewrite a bit, partly to make it compatible
67651         with the GNU coding style.
67652         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
67653         Remove unnecessary double-quotes.
67654         Don't test for acl_to_text; the build will catch that.
67655         Replace acl_entries if it doesn't exist and it is needed.
67656         Check for -lsec and acl_trivial (as used on Solaris 10).
67657         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
67658         lib/file-has-acl.c.
67659         (Depends-on): Add sys_stat, for S_ISLNK.
67660
67661 2007-03-19  Ben Pfaff  <blp@gnu.org>
67662
67663         * doc/gnulib.texi: Fix typos.
67664         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
67665
67666 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
67667
67668         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
67669         If size is zero here, buf must be zero.
67670
67671 2007-03-19  Simon Josefsson  <simon@josefsson.org>
67672
67673         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
67674         <bruno@clisp.org>.
67675
67676 2007-03-18  Bruno Haible  <bruno@clisp.org>
67677
67678         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
67679         Suggested by Eric Blake.
67680
67681 2007-03-18  Ben Pfaff  <blp@gnu.org>
67682
67683         * doc/relocatable.texi: Recommend using as prefix a directory
67684         that does not exist and will never be created.  Based on
67685         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
67686         and others.
67687
67688 2007-03-17  Bruno Haible  <bruno@clisp.org>
67689
67690         * lib/fchownat.c: Include lchown.h.
67691
67692 2007-03-17  Bruno Haible  <bruno@clisp.org>
67693
67694         Fix endless loop when the given allocated size was > INT_MAX.
67695         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
67696         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
67697         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
67698         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
67699         * lib/sprintf.c (sprintf): Likewise.
67700
67701 2007-03-17  Bruno Haible  <bruno@clisp.org>
67702
67703         * tests/test-argp-2.sh (func_compare): Output a context diff.
67704
67705 2007-03-17  Bruno Haible  <bruno@clisp.org>
67706
67707         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
67708         locale's decimal-point character.
67709
67710 2007-03-17  Bruno Haible  <bruno@clisp.org>
67711
67712         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
67713         before comparing it. Needed because on some platforms (e.g. x86) a
67714         'long double' occupies less bytes than sizeof (long double).
67715
67716 2007-03-17  Bruno Haible  <bruno@clisp.org>
67717
67718         * tests/test-crc.c (main): Make printf statements 64-bit clean.
67719         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
67720         * tests/test-getaddrinfo.c (simple): Likewise.
67721         * tests/test-read-file.c (main): Likewise.
67722
67723 2007-03-17  Bruno Haible  <bruno@clisp.org>
67724
67725         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
67726
67727 2007-03-17  Bruno Haible  <bruno@clisp.org>
67728
67729         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
67730         unused variable.
67731
67732 2007-03-17  Bruno Haible  <bruno@clisp.org>
67733
67734         * tests/test-c-strcasecmp.c: Include c-strcase.h.
67735         * tests/test-c-strncasecmp.c: Likewise.
67736
67737 2007-03-17  Bruno Haible  <bruno@clisp.org>
67738
67739         * modules/stdlib (Depends-on): Add unistd.
67740         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
67741         Needed for MacOS X 10.3.
67742
67743 2007-03-17  Bruno Haible  <bruno@clisp.org>
67744
67745         * lib/unistr/u-strdup.h: Include <stdlib.h>.
67746
67747 2007-03-17  Bruno Haible  <bruno@clisp.org>
67748
67749         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
67750
67751 2007-03-17  Bruno Haible  <bruno@clisp.org>
67752
67753         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
67754         to reflect files copied from gnulib (with or without modifications).
67755         Suggested by Jim Meyering.
67756
67757 2007-03-17  Eric Blake  <ebb9@byu.net>
67758
67759         * NEWS: Document stdlib change from 2007-02-18.
67760
67761 2007-03-17  Jim Meyering  <jim@meyering.net>
67762
67763         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
67764         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
67765         someone uses a name containing shell meta-characters.
67766         Reported by Alfred M. Szmidt.
67767
67768         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
67769
67770 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
67771
67772         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
67773         and copy gettext configuration files only if configure.ac contains
67774         a use of AM_GNU_GETTEXT_VERSION.
67775
67776 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
67777
67778         * build-aux/bootstrap (gnulib_name): New variable.
67779         (gnulib_tool_options): Use it.
67780
67781 2007-03-13  Simon Josefsson  <simon@josefsson.org>
67782
67783         * tests/test-des.c: Use new namespace.
67784
67785 2007-03-15  Bruno Haible  <bruno@clisp.org>
67786
67787         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
67788         Reported by James Youngman <jay@gnu.org>.
67789
67790 2007-03-15  Bruno Haible  <bruno@clisp.org>
67791
67792         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
67793         declared prototype. Needed with cc on OSF/1 5.1.
67794
67795 2007-03-15  Bruno Haible  <bruno@clisp.org>
67796
67797         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
67798         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
67799         (struct gl_list_implementation): Add dispose_fn argument to the
67800         'create_empty', 'create' methods.
67801         (struct gl_list_impl_base): Add field 'dispose_fn'.
67802         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
67803         argument.
67804         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
67805         dispose_fn argument.
67806         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
67807         dispose_fn on the dropped values.
67808         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
67809         dispose_fn argument.
67810         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
67811         dropped values.
67812         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
67813         (gl_tree_remove_node): Call dispose_fn on the dropped value.
67814         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
67815         (gl_tree_remove_node): Call dispose_fn on the dropped value.
67816         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
67817         argument.
67818         (gl_tree_list_free): Call dispose_fn on the dropped values.
67819         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
67820         the dropped values.
67821         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
67822         Add dispose_fn argument.
67823         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
67824         Call dispose_fn on the dropped values.
67825         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
67826         Add dispose_fn argument.
67827         (gl_sublist_create): Initialize the 'dispose_fn' field.
67828         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
67829         * tests/test-array_list.c (main): Update.
67830         * tests/test-carray_list.c (main): Update.
67831         * tests/test-avltree_list.c (main): Update.
67832         * tests/test-rbtree_list.c (main): Update.
67833         * tests/test-avltreehash_list.c (main): Update.
67834         * tests/test-rbtreehash_list.c (main): Update.
67835         * tests/test-linked_list.c (main): Update.
67836         * tests/test-linkedhash_list.c (main): Update.
67837         * tests/test-array_oset.c (main): Update.
67838
67839 2007-03-15  Bruno Haible  <bruno@clisp.org>
67840
67841         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
67842         (gl_oset_create_empty): Add dispose_fn argument.
67843         (struct gl_oset_implementation): Add dispose_fn argument to
67844         'create_empty' method.
67845         (struct gl_oset_impl_base): Add dispose_fn field.
67846         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
67847         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
67848         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
67849         values.
67850         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
67851         (gl_tree_oset_free): Call dispose_fn on the dropped values.
67852         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
67853         dropped value.
67854         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
67855         dropped value.
67856         * tests/test-array_oset.c (main): Update.
67857         * tests/test-avltree_oset.c (main): Update.
67858         * tests/test-rbtree_oset.c (main): Update.
67859         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
67860
67861 2007-03-13  Bruno Haible  <bruno@clisp.org>
67862
67863         * tests/test-stdbool.c (i): Update after last patch.
67864
67865 2007-03-12  Bruno Haible  <bruno@clisp.org>
67866
67867         * lib/quotearg.c: Include <wctype.h> early, before the definition of
67868         the iswprint macro. Needed on Solaris 2.5.1.
67869
67870 2007-03-12  Bruno Haible  <bruno@clisp.org>
67871
67872         * tests/test-printf-frexp.c (main): Declare x as volatile.
67873
67874 2007-03-12  Simon Josefsson  <simon@josefsson.org>
67875
67876         * doc/gnulib.texi (Build robot for gnulib): New section.
67877
67878 2007-03-12  Jim Meyering  <jim@meyering.net>
67879
67880         * build-aux/bootstrap: New file.
67881         * build-aux/bootstrap.conf: New file, from coreutils.
67882
67883 2007-03-11  Bruno Haible  <bruno@clisp.org>
67884
67885         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
67886
67887 2007-03-12  Simon Josefsson  <simon@josefsson.org>
67888
67889         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
67890         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
67891         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
67892
67893 2007-03-11  Bruno Haible  <bruno@clisp.org>
67894
67895         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
67896         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
67897
67898 2007-03-11  Bruno Haible  <bruno@clisp.org>
67899
67900         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
67901         formula. Needed for SunPRO C 5.0.
67902
67903 2007-03-11  Bruno Haible  <bruno@clisp.org>
67904
67905         * modules/long-options (Depends-on): Add getopt.
67906
67907 2007-03-11  Bruno Haible  <bruno@clisp.org>
67908
67909         * modules/modechange (Depends-on): Add stdbool.
67910
67911 2007-03-11  Bruno Haible  <bruno@clisp.org>
67912
67913         * modules/i-ring (Depends-on): Add stdbool.
67914
67915 2007-03-11  Bruno Haible  <bruno@clisp.org>
67916
67917         * modules/gc-des (Depends-on): Add stdbool.
67918
67919 2007-03-11  Bruno Haible  <bruno@clisp.org>
67920
67921         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
67922
67923 2007-03-11  Bruno Haible  <bruno@clisp.org>
67924
67925         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
67926
67927 2007-03-11  Bruno Haible  <bruno@clisp.org>
67928
67929         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
67930
67931 2007-03-11  Bruno Haible  <bruno@clisp.org>
67932
67933         * lib/vasnprintf.c (sprintf): Undefine.
67934
67935 2007-03-11  Bruno Haible  <bruno@clisp.org>
67936
67937         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
67938         initializers in SunPRO C and Compaq C compilers.
67939
67940 2007-03-11  Bruno Haible  <bruno@clisp.org>
67941
67942         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
67943         decrementing code ANSI C compliant.
67944
67945 2007-03-11  Bruno Haible  <bruno@clisp.org>
67946
67947         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
67948         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
67949
67950 2007-03-11  Bruno Haible  <bruno@clisp.org>
67951
67952         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
67953         <stdbool.h> substitute doesn't pass.
67954
67955 2007-03-11  Bruno Haible  <bruno@clisp.org>
67956
67957         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
67958
67959 2007-03-11  Bruno Haible  <bruno@clisp.org>
67960
67961         * gnulib-tool (func_create_megatestdir): Create also an autobuild
67962         script, for submission to autobuild.josefsson.org.
67963
67964 2007-03-10  Bruno Haible  <bruno@clisp.org>
67965
67966         * modules/canonicalize-lgpl-tests: New file.
67967         * tests/test-canonicalize-lgpl.sh: New file.
67968         * tests/test-canonicalize-lgpl.c: New file.
67969
67970         * modules/c-strcase-tests: New file.
67971         * tests/test-c-strcase.sh: New file.
67972         * tests/test-c-strcasecmp.c: New file.
67973         * tests/test-c-strncasecmp.c: New file.
67974
67975         * modules/atexit-tests: New file.
67976         * tests/test-atexit.sh: New file.
67977         * tests/test-atexit.c: New file.
67978
67979 2007-03-10  Bruno Haible  <bruno@clisp.org>
67980
67981         * tests/test-binary-io.sh: Use temporary filenames that are not so
67982         likely to clash with those of other tests (in a parallel make).
67983         * tests/test-binary-io.c: Likewise.
67984
67985 2007-03-10  Bruno Haible  <bruno@clisp.org>
67986
67987         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
67988         fallback; use #error instead.
67989         Suggested by Simon Josefsson.
67990
67991 2007-03-10  Bruno Haible  <bruno@clisp.org>
67992
67993         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
67994         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
67995         first and the last.
67996
67997 2007-03-10  Bruno Haible  <bruno@clisp.org>
67998
67999         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
68000
68001 2007-03-10  Bruno Haible  <bruno@clisp.org>
68002
68003         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
68004         "make distcheck".
68005         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
68006         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
68007         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
68008
68009 2007-03-10  Bruno Haible  <bruno@clisp.org>
68010
68011         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
68012         variable.
68013         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
68014         variable.
68015
68016 2007-03-09  Eric Blake  <ebb9@byu.net>
68017         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
68018
68019         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
68020         types are not being provided by gnulib.
68021         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
68022         types are supported.
68023
68024 2007-03-10  Bruno Haible  <bruno@clisp.org>
68025
68026         * lib/stdio_.h (__attribute__): New macro.
68027         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
68028         vsprintf): Specify __attribute__ __format__ for GCC.
68029         Suggested by Eric Blake.
68030
68031 2007-03-09  Bruno Haible  <bruno@clisp.org>
68032
68033         * modules/printf-posix-tests: New file.
68034         * tests/test-printf-posix.sh: New file.
68035         * tests/test-printf-posix.c: New file.
68036
68037         * modules/printf-posix: New file.
68038         * lib/printf.c: New file.
68039         * m4/printf-posix-rpl.m4: New file.
68040         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
68041         REPLACE_PRINTF.
68042         * lib/stdio_.h (printf): New declaration.
68043         (format, __format__, ____printf____, ____scanf____, ____strftime____,
68044         ____strfmon____): New macros.
68045         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
68046         REPLACE_PRINTF.
68047
68048 2007-03-09  Bruno Haible  <bruno@clisp.org>
68049
68050         * tests/test-vasnprintf-posix2.sh: New file.
68051         * tests/test-vasnprintf-posix2.c: New file.
68052         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
68053         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
68054         (Makefile.am): Activate test-vasnprintf-posix2.sh.
68055
68056         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
68057         a locale dependent decimal point, rather than always '.'.
68058
68059 2007-03-09  Eric Blake  <ebb9@byu.net>
68060
68061         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
68062         spite of platforms like Tandem/NSK that define it to -1.
68063
68064 2007-03-08  Bruno Haible  <bruno@clisp.org>
68065
68066         * modules/vprintf-posix-tests: New file.
68067         * tests/test-vprintf-posix.sh: New file.
68068         * tests/test-vprintf-posix.c: New file.
68069         * tests/test-printf-posix.h: New file.
68070
68071         * modules/vprintf-posix: New file.
68072         * lib/vprintf.c: New file.
68073         * m4/vprintf-posix.m4: New file.
68074         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
68075         REPLACE_VPRINTF.
68076         * lib/stdio_.h (vprintf): New declaration.
68077         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
68078         REPLACE_VPRINTF.
68079
68080 2007-03-08  Bruno Haible  <bruno@clisp.org>
68081
68082         * modules/fprintf-posix-tests: New file.
68083         * tests/test-fprintf-posix.sh: New file.
68084         * tests/test-fprintf-posix.c: New file.
68085
68086         * modules/fprintf-posix: New file.
68087         * lib/fprintf.c: New file.
68088         * m4/fprintf-posix.m4: New file.
68089         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
68090         REPLACE_FPRINTF.
68091         * lib/stdio_.h (fprintf): New declaration.
68092         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
68093         REPLACE_FPRINTF.
68094
68095 2007-03-08  Bruno Haible  <bruno@clisp.org>
68096
68097         * modules/vfprintf-posix-tests: New file.
68098         * tests/test-vfprintf-posix.sh: New file.
68099         * tests/test-vfprintf-posix.c: New file.
68100         * tests/test-fprintf-posix.h: New file.
68101         * tests/test-fprintf-posix.out: New file.
68102
68103         * modules/vfprintf-posix: New file.
68104         * lib/vfprintf.c: New file.
68105         * m4/vfprintf-posix.m4: New file.
68106         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
68107         REPLACE_VFPRINTF.
68108         * lib/stdio_.h (vfprintf): New declaration.
68109         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
68110         REPLACE_VFPRINTF.
68111
68112 2007-03-08  Bruno Haible  <bruno@clisp.org>
68113
68114         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
68115
68116 2007-03-08  Bruno Haible  <bruno@clisp.org>
68117
68118         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
68119         instead of 'expr' invocations.
68120         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
68121         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
68122         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
68123         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
68124         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
68125         Suggested by Paul Eggert.
68126
68127 2007-03-08  Bruno Haible  <bruno@clisp.org>
68128
68129         * modules/fseterr-tests: New file.
68130         * tests/test-fseterr.c: New file.
68131
68132         * modules/fseterr: New file.
68133         * lib/fseterr.h: New file.
68134         * lib/fseterr.c: New file.
68135
68136 2007-03-08  Bruno Haible  <bruno@clisp.org>
68137
68138         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
68139         * lib/getopt_.h: Likewise.
68140         * lib/mbswidth.h: Likewise.
68141         * lib/setenv.h: Likewise.
68142         * lib/vasnprintf.h: Likewise.
68143         * lib/vasprintf.h: Likewise.
68144         * lib/verror.h: Likewise.
68145         * lib/xsetenv.h: Likewise.
68146         * lib/xvasprintf.h: Likewise.
68147
68148 2007-03-08  Jim Meyering  <jim@meyering.net>
68149
68150         * users.txt: Add parted.
68151
68152         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
68153
68154 2007-03-07  Bruno Haible  <bruno@clisp.org>
68155
68156         * m4/printf.m4: Make the shell script snippets copy&pastable.
68157
68158 2007-03-02  Bruno Haible  <bruno@clisp.org>
68159
68160         * lib/netinet_in_.h: New file.
68161         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
68162         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
68163         * modules/netinet_in (Files): Add lib/netinet_in_.h.
68164         (Depends-on): Add absolute-header.
68165         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
68166         into netinet/in.h.
68167
68168 2007-03-03  Bruno Haible  <bruno@clisp.org>
68169
68170         * lib/sys_select_.h: New file.
68171         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
68172         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
68173         * modules/sys_select (Files): Add lib/sys_select_.h.
68174         (Depends-on): Add absolute-header.
68175         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
68176         into sys/select.h.
68177
68178 2007-03-02  Bruno Haible  <bruno@clisp.org>
68179
68180         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
68181         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
68182         values.
68183         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
68184         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
68185         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
68186         * modules/sys_socket (Depends-on): Add absolute-header.
68187         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
68188         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
68189         (Include): Remove requirement of inclusion of <sys/types.h>.
68190
68191 2007-03-02  Bruno Haible  <bruno@clisp.org>
68192
68193         * lib/byteswap_.h (bswap_32): Fix formula.
68194
68195 2007-03-06  Bruno Haible  <bruno@clisp.org>
68196
68197         * modules/sprintf-posix-tests: New file.
68198         * tests/test-sprintf-posix.c: New file.
68199
68200         * modules/sprintf-posix: New file.
68201         * lib/sprintf.c: New file.
68202         * m4/sprintf-posix.m4: New file.
68203         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
68204         REPLACE_SPRINTF.
68205         * lib/stdio_.h (sprintf): New declaration.
68206         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
68207         REPLACE_SPRINTF.
68208
68209 2007-03-06  Bruno Haible  <bruno@clisp.org>
68210
68211         * modules/vsprintf-posix-tests: New file.
68212         * tests/test-vsprintf-posix.c: New file.
68213         * tests/test-sprintf-posix.h: New file.
68214
68215         * modules/vsprintf-posix: New file.
68216         * lib/vsprintf.c: New file.
68217         * m4/vsprintf-posix.m4: New file.
68218         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
68219         REPLACE_VSPRINTF.
68220         * lib/stdio_.h (vsprintf): New declaration.
68221         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
68222         REPLACE_VSPRINTF.
68223
68224 2007-03-06  Bruno Haible  <bruno@clisp.org>
68225
68226         * modules/vsnprintf (Depend-on): Remove minmax.
68227
68228 2007-03-06  Bruno Haible  <bruno@clisp.org>
68229
68230         * modules/snprintf-posix-tests: New file.
68231         * tests/test-snprintf-posix.c: New file.
68232
68233         * modules/snprintf-posix: New file.
68234         * m4/snprintf-posix.m4: New file.
68235         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
68236         gl_FUNC_SNPRINTF.
68237         (gl_FUNC_SNPRINTF): Invoke it.
68238         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
68239         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
68240         is set.
68241         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
68242
68243 2007-03-06  Bruno Haible  <bruno@clisp.org>
68244
68245         * modules/vsnprintf-posix-tests: New file.
68246         * tests/test-vsnprintf-posix.c: New file.
68247         * tests/test-snprintf-posix.h: New file.
68248
68249         * modules/vsnprintf-posix: New file.
68250         * m4/vsnprintf-posix.m4: New file.
68251         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
68252         gl_FUNC_VSNPRINTF.
68253         (gl_FUNC_VSNPRINTF): Invoke it.
68254         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
68255         * lib/stdio_.h (vsnprintf): Define as a replacement if
68256         REPLACE_VSNPRINTF is set.
68257         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
68258
68259 2007-03-06  Bruno Haible  <bruno@clisp.org>
68260
68261         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
68262         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
68263
68264 2007-03-06  Bruno Haible  <bruno@clisp.org>
68265
68266         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
68267         (asinl): Declare also if HAVE_DECL_ASINL is set.
68268         (atanl): Declare also if HAVE_DECL_ATANL is set.
68269         (ceill): Declare also if HAVE_DECL_CEILL is set.
68270         (cosl): Declare also if HAVE_DECL_COSL is set.
68271         (expl): Declare also if HAVE_DECL_EXPL is set.
68272         (floorl): Declare also if HAVE_DECL_FLOORL is set.
68273         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
68274         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
68275         (logl): Declare also if HAVE_DECL_LOGL is set.
68276         (sinl): Declare also if HAVE_DECL_SINL is set.
68277         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
68278         (tanl): Declare also if HAVE_DECL_TANL is set.
68279         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
68280         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
68281         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
68282         declaration of frexpl, ldexpl.
68283         * modules/printf-frexpl (Depends-on): Add math.
68284         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
68285
68286 2007-03-05  Bruno Haible  <bruno@clisp.org>
68287
68288         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
68289         frexpl and ldexpl are declared.
68290         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
68291
68292 2007-03-05  Bruno Haible  <bruno@clisp.org>
68293
68294         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
68295         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
68296
68297 2007-03-05  Bruno Haible  <bruno@clisp.org>
68298
68299         * lib/stdio_.h: Include <stddef.h>.
68300
68301 2007-03-05  Bruno Haible  <bruno@clisp.org>
68302
68303         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
68304
68305 2007-03-05  Bruno Haible  <bruno@clisp.org>
68306
68307         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
68308         NetBSD 4, from Ralf Wildenhues.
68309
68310 2007-03-04  Bruno Haible  <bruno@clisp.org>
68311
68312         * lib/vasprintf.h: Update #if logic for the case when the functions
68313         exist but are overridden.
68314
68315 2007-03-04  Bruno Haible  <bruno@clisp.org>
68316
68317         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
68318         implementations: glibc-2.4 and MacOS X 10.3.
68319         * tests/test-vasnprintf-posix.c (test_function): Test also the case
68320         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
68321         * tests/test-vasprintf-posix.c (test_function): Likewise.
68322
68323 2007-03-04  Bruno Haible  <bruno@clisp.org>
68324
68325         * modules/vasprintf-posix-tests: New file.
68326         * tests/test-vasprintf-posix.c: New file.
68327
68328         * modules/vasprintf-posix: New file.
68329         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
68330         defined.
68331         * m4/vasprintf-posix.m4: New file.
68332         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
68333         gl_FUNC_VASPRINTF.
68334         (gl_FUNC_VASPRINTF): Invoke it.
68335         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
68336         here.
68337         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
68338
68339 2007-03-04  Bruno Haible  <bruno@clisp.org>
68340
68341         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
68342         REPLACE_GETTIMEOFDAY.
68343         * modules/sys_time (Makefile.am): Likewise.
68344         * m4/sys_time_h.m4: Likewise.
68345         * m4/gettimeofday.m4: Likewise.
68346
68347 2007-03-04  Bruno Haible  <bruno@clisp.org>
68348
68349         * modules/vasnprintf-posix-tests: New file.
68350         * tests/test-vasnprintf-posix.c: New file.
68351
68352         * modules/vasnprintf-posix: New file.
68353         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
68354         printf-frexpl.h.
68355         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
68356         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
68357         REPLACE_VASNPRINTF is defined.
68358         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
68359         gl_FUNC_VASNPRINTF.
68360         (gl_FUNC_VASNPRINTF): Invoke it.
68361         * m4/vasnprintf-posix.m4: New file.
68362         * m4/printf.m4: New file.
68363
68364 2007-03-04  Bruno Haible  <bruno@clisp.org>
68365
68366         Compile progreloc.c only if --enable-relocatable is specified.
68367         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
68368         if --enable-relocatable was specified.
68369         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
68370         lib_SOURCES.
68371
68372 2007-03-04  Jim Meyering  <jim@meyering.net>
68373
68374         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
68375         Use it consistently, rather than enumerating errno constants.
68376
68377 2007-03-04  Bruno Haible  <bruno@clisp.org>
68378
68379         * modules/xvasprintf-tests: New file.
68380         * tests/test-xvasprintf.c: New file.
68381
68382         * modules/vasprintf-tests: New file.
68383         * tests/test-vasprintf.c: New file.
68384
68385         * modules/vasnprintf-tests: New file.
68386         * tests/test-vasnprintf.c: New file.
68387
68388         * modules/vsnprintf-tests: New file.
68389         * tests/test-vsnprintf.c: New file.
68390
68391         * modules/snprintf-tests: New file.
68392         * tests/test-snprintf.c: New file.
68393
68394 2007-03-04  Bruno Haible  <bruno@clisp.org>
68395
68396         Compile relocatable.c only if --enable-relocatable is specified.
68397         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
68398         gl_RELOCATABLE_LIBRARY.
68399         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
68400         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
68401         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
68402         gl_RELOCATABLE_LIBRARY.
68403         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
68404         (Makefile.am): Remove lib_SOURCES.
68405         * modules/relocatable-lib-lgpl (configure.ac): Invoke
68406         gl_RELOCATABLE_LIBRARY.
68407         (Makefile.am): Remove lib_SOURCES.
68408         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
68409         always.
68410         * modules/relocatable-prog-wrapper (configure.ac): Invoke
68411         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
68412
68413 2007-03-04  Bruno Haible  <bruno@clisp.org>
68414
68415         * modules/argmatch-tests: New file.
68416         * tests/test-argmatch.c: New file.
68417
68418         * tests/test-allocsa.c (main): Halve the number of loop runs.
68419
68420         * modules/alloca-opt-tests: New file.
68421         * tests/test-alloca-opt.c: New file.
68422
68423 2007-03-04  Jim Meyering  <jim@meyering.net>
68424
68425         Work around difference between Linux ACLs and Solaris 10 ZFS.
68426         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
68427         for EINVAL.
68428
68429 2007-03-03  Bruno Haible  <bruno@clisp.org>
68430
68431         * modules/relocatable-prog (Depends-on): Add back progreloc's
68432         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
68433
68434 2007-03-03  Bruno Haible  <bruno@clisp.org>
68435
68436         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
68437         * modules/relocatable-lib: New file.
68438
68439 2007-03-03  Bruno Haible  <bruno@clisp.org>
68440
68441         * modules/relocatable-prog: Renamed from modules/relocatable.
68442         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
68443
68444 2007-03-03  Bruno Haible  <bruno@clisp.org>
68445
68446         * modules/relocatable-script (Files): Add doc/relocatable.texi,
68447         m4/relocatable-lib.m4.
68448         (Depends-on): Remove 'relocatable'.
68449         (configure.ac): Add gl_RELOCATABLE_NOP.
68450
68451 2007-03-03  Bruno Haible  <bruno@clisp.org>
68452
68453         * modules/relocatable-prog-wrapper: New file.
68454         * modules/relocatable (Depends-on): Add it. Remove all other
68455         dependencies except progname.
68456         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
68457
68458         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
68459         (gl_FUNC_STRERROR): Nop.
68460         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
68461
68462         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
68463         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
68464
68465         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
68466         (gl_FUNC_READLINK): Update.
68467
68468         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
68469
68470 2007-03-03  Bruno Haible  <bruno@clisp.org>
68471
68472         * lib/xreadlink.c: Include <unistd.h> unconditionally.
68473         * modules/xreadlink (Depends-on): Add unistd.
68474         * modules/xreadlink-with-size (Depends-on): Likewise.
68475
68476 2007-03-03  Bruno Haible  <bruno@clisp.org>
68477
68478         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
68479         extracted from gt_FUNC_SETENV.
68480         (gt_FUNC_SETENV): Remove macro.
68481         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
68482         remove gt_FUNC_SETENV.
68483
68484 2007-03-03  Bruno Haible  <bruno@clisp.org>
68485
68486         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
68487         ENABLE_RELOCATABLE here.
68488         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
68489
68490 2007-03-03  Bruno Haible  <bruno@clisp.org>
68491
68492         * modules/rbtreehash-list-tests (Depends-on): Add progname.
68493         * tests/test-rbtreehash_list.c: Include progname.h.
68494         (main): Call set_program_name.
68495
68496         * modules/rbtree-oset-tests (Depends-on): Add progname.
68497         * tests/test-rbtree_oset.c: Include progname.h.
68498         (main): Call set_program_name.
68499
68500         * modules/rbtree-list-tests (Depends-on): Add progname.
68501         * tests/test-rbtree_list.c: Include progname.h.
68502         (main): Call set_program_name.
68503
68504         * modules/linked-list-tests (Depends-on): Add progname.
68505         * tests/test-linked_list.c: Include progname.h.
68506         (main): Call set_program_name.
68507
68508 2007-03-03  Bruno Haible  <bruno@clisp.org>
68509
68510         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
68511         All uses of __restrict changed to _Restrict_.
68512         * lib/glob_.h (__restrict): Remove macro.
68513
68514 2007-03-02  Bruno Haible  <bruno@clisp.org>
68515
68516         * modules/gettext (configure.ac): Require gettext infrastructure
68517         from version 0.16.1.
68518
68519 2007-03-02  Bruno Haible  <bruno@clisp.org>
68520
68521         * modules/linkedhash-list-tests (Depends-on): Add progname.
68522         * tests/test-linkedhash_list.c: Include progname.h.
68523         (main): Call set_program_name.
68524
68525         * modules/carray-list-tests (Depends-on): Add progname.
68526         * tests/test-carray_list.c: Include progname.h.
68527         (main): Call set_program_name.
68528
68529         * modules/avltreehash-list-tests (Depends-on): Add progname.
68530         * tests/test-avltreehash_list.c: Include progname.h.
68531         (main): Call set_program_name.
68532
68533         * modules/avltree-oset-tests (Depends-on): Add progname.
68534         * tests/test-avltree_oset.c: Include progname.h.
68535         (main): Call set_program_name.
68536
68537         * modules/avltree-list-tests (Depends-on): Add progname.
68538         * tests/test-avltree_list.c: Include progname.h.
68539         (main): Call set_program_name.
68540
68541         * modules/array-oset-tests (Depends-on): Add progname.
68542         * tests/test-array_oset.c: Include progname.h.
68543         (main): Call set_program_name.
68544
68545         * modules/array-list-tests (Depends-on): Add progname.
68546         * tests/test-array_list.c: Include progname.h.
68547         (main): Call set_program_name.
68548
68549         * modules/argp-tests (Depends-on): Add progname.
68550         * tests/test-argp.c: Include argp.h first. Include progname.h.
68551         (main): Call set_program_name.
68552
68553 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
68554
68555         * doc/gnulib-tool.texi (Initial import): Reword description of
68556         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
68557         limited effect even if defined after the first system include.
68558
68559 2007-03-01  Bruno Haible  <bruno@clisp.org>
68560
68561         * build-aux/config.libpath: Update to libtool-1.5.22.
68562         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
68563
68564 2007-03-01  Bruno Haible  <bruno@clisp.org>
68565
68566         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
68567         foo_CFLAGS.
68568         Reported by Ralf Wildenhues.
68569
68570 2007-03-01  Bruno Haible  <bruno@clisp.org>
68571
68572         * build-aux/install-reloc: Remove object files left over by some
68573         compilers.
68574         Reported by Ralf Wildenhues.
68575
68576 2007-03-01  Bruno Haible  <bruno@clisp.org>
68577
68578         * build-aux/install-reloc: Break long lines.
68579
68580 2007-03-01  Bruno Haible  <bruno@clisp.org>
68581
68582         * doc/relocatable.texi: Document that it may not work on OpenBSD.
68583         Reported by Ralf Wildenhues.
68584
68585 2007-03-01  Bruno Haible  <bruno@clisp.org>
68586
68587         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
68588         include ordering constraints.
68589
68590 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
68591
68592         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
68593         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
68594         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
68595         as another example.
68596         * lib/time_.h: Fix misspelling.
68597         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
68598         Require gl_HEADER_TIME_H_DEFAULTS.
68599         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
68600         * m4/time_r.m4 (gl_TIME_R): Likewise.
68601         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
68602
68603 2007-03-01  Bruno Haible  <bruno@clisp.org>
68604
68605         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
68606         * m4/utimens.m4 (gl_UTIMENS): Likewise.
68607
68608 2007-03-01  Jim Meyering  <jim@meyering.net>
68609
68610         * modules/xreadlink (Maintainer): Add my name.
68611         * modules/xreadlink-with-size (Depends-on): Alphabetize.
68612
68613 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
68614             Bruno Haible  <bruno@clisp.org>
68615
68616         * build-aux/install-reloc: Compile also c-ctype.c.
68617         * build-aux/relocatable.sh.in: New file.
68618         * doc/relocatable.texi: New file.
68619         * doc/relocatable-maint.texi: New file.
68620         * doc/gnulib.texi: Include relocatable-maint.texi.
68621         * lib/progreloc.c: Include unistd.h unconditionally.
68622         * lib/relocwrapper.c: Include unistd.h unconditionally.
68623         Include c-ctype.h.
68624         (add_dotbin): Use c_tolower.
68625         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
68626         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
68627         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
68628         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
68629         to m4/relocatable-lib.m4.
68630         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
68631         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
68632         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
68633         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
68634         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
68635         * modules/relocatable: New file.
68636         * modules/relocatable-lib: New file.
68637         * modules/relocatable-script: New file.
68638
68639 2007-02-28  Bruno Haible  <bruno@clisp.org>
68640
68641         Import --enable-relocatable infrastructure.
68642         * build-aux/config.libpath: New file, from GNU gettext.
68643         * build-aux/install-reloc: New file, from GNU gettext.
68644         * build-aux/reloc-ldflags: New file, from GNU gettext.
68645         * lib/relocatable.h: New file, from GNU gettext.
68646         * lib/relocatable.c: New file, from GNU gettext.
68647         * lib/relocwrapper.c: New file, from GNU gettext.
68648         * m4/relocatable.m4: New file, from GNU gettext.
68649
68650 2007-02-28  Bruno Haible  <bruno@clisp.org>
68651
68652         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
68653
68654         * modules/xreadlink: New file, from GNU gettext with modifications.
68655         * lib/xreadlink.c: New file, from GNU gettext.
68656         * lib/xreadlink.h: Add comments.
68657         (xreadlink): New declaration.
68658
68659         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
68660         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
68661         lib/xreadlink-with-size.c.
68662         (configure.ac): Remove gl_XREADLINK invocation.
68663         (Makefile.am): Augment lib_SOURCES.
68664         * m4/xreadlink.m4: Remove file.
68665         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
68666         (xreadlink_with_size): Renamed from xreadink.
68667         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
68668         * modules/canonicalize (Depends-on): Replace xreadlink with
68669         xreadlink-with-size.
68670         * lib/canonicalize.c (canonicalize_filename_mode): Update.
68671
68672 2007-02-25  Jim Meyering  <jim@meyering.net>
68673
68674         * build-aux/announce-gen: When complaining about excess arguments,
68675         list them.
68676
68677 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
68678
68679         * README: Document signed integer overflow situation more
68680         accurately.
68681
68682 2007-02-25  Bruno Haible  <bruno@clisp.org>
68683
68684         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
68685         'a' or 'A' conversion.
68686
68687 2007-02-25  Bruno Haible  <bruno@clisp.org>
68688
68689         * modules/filename: Renamed from modules/pathname.
68690         (Files): Replace lib/pathname.h with lib/filename.h. Replace
68691         lib/concatpath.c with lib/concat-filename.c.
68692         (Makefile.am): Update.
68693         (Include): Replace pathname.h with filename.h.
68694         * lib/filename.h: Renamed from lib/pathname.h.
68695         (concatenated_filename): Renamed from concatenated_pathname.
68696         * lib/concat-filename.c: Renamed from lib/concatpath.c.
68697         (concatenated_filename): Renamed from concatenated_pathname.
68698         * lib/findprog.c: Include filename.h instead of pathname.h.
68699         (find_in_path): Update.
68700         * lib/javacomp.c: Include filename.h instead of pathname.h.
68701         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
68702         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
68703         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
68704         is_oldgcj_14_13_usable, is_javac_usable): Update.
68705         * lib/javaexec.c: Include filename.h instead of pathname.h.
68706         (execute_java_class): Update.
68707         * modules/findprog: Update.
68708         * modules/javacomp: Update.
68709         * modules/javaexec: Update.
68710         * MODULES.html.sh (File system functions): Add 'filename', remove
68711         'pathname'.
68712
68713 2007-02-25  Bruno Haible  <bruno@clisp.org>
68714
68715         * modules/printf-frexpl-tests: New file.
68716         * tests/test-printf-frexpl.c: New file.
68717
68718         * modules/printf-frexpl: New file.
68719         * lib/printf-frexpl.h: New file.
68720         * lib/printf-frexpl.c: New file.
68721         * m4/printf-frexpl.m4: New file.
68722
68723 2007-02-25  Bruno Haible  <bruno@clisp.org>
68724
68725         * modules/printf-frexp-tests: New file.
68726         * tests/test-printf-frexp.c: New file.
68727
68728         * modules/printf-frexp: New file.
68729         * lib/printf-frexp.h: New file.
68730         * lib/printf-frexp.c: New file.
68731         * m4/printf-frexp.m4: New file.
68732
68733 2007-02-25  Bruno Haible  <bruno@clisp.org>
68734
68735         Assume automake >= 1.10 for the tests.
68736         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
68737         * modules/arctwo-tests: Likewise.
68738         * modules/argp-tests: Likewise.
68739         * modules/avltree-list-tests: Likewise.
68740         * modules/avltree-oset-tests: Likewise.
68741         * modules/avltreehash-list-tests: Likewise.
68742         * modules/carray-list-tests: Likewise.
68743         * modules/crc-tests: Likewise.
68744         * modules/des-tests: Likewise.
68745         * modules/gc-arcfour-tests: Likewise.
68746         * modules/gc-arctwo-tests: Likewise.
68747         * modules/gc-des-tests: Likewise.
68748         * modules/gc-hmac-md5-tests: Likewise.
68749         * modules/gc-hmac-sha1-tests: Likewise.
68750         * modules/gc-md2-tests: Likewise.
68751         * modules/gc-md4-tests: Likewise.
68752         * modules/gc-md5-tests: Likewise.
68753         * modules/gc-pbkdf2-sha1-tests: Likewise.
68754         * modules/gc-rijndael-tests: Likewise.
68755         * modules/gc-sha1-tests: Likewise.
68756         * modules/gc-tests: Likewise.
68757         * modules/getaddrinfo-tests: Likewise.
68758         * modules/hmac-md5-tests: Likewise.
68759         * modules/hmac-sha1-tests: Likewise.
68760         * modules/linked-list-tests: Likewise.
68761         * modules/linkedhash-list-tests: Likewise.
68762         * modules/lock-tests: Likewise.
68763         * modules/md2-tests: Likewise.
68764         * modules/md4-tests: Likewise.
68765         * modules/md5-tests: Likewise.
68766         * modules/rbtree-list-tests: Likewise.
68767         * modules/rbtree-oset-tests: Likewise.
68768         * modules/rbtreehash-list-tests: Likewise.
68769         * modules/read-file-tests: Likewise.
68770         * modules/rijndael-tests: Likewise.
68771         * modules/stdint-tests: Likewise.
68772         * modules/tls-tests: Likewise.
68773
68774 2007-02-24  Bruno Haible  <bruno@clisp.org>
68775
68776         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
68777         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
68778         function; instead check whether isnan with a double argument links.
68779         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
68780         function; instead check whether isnan with a 'long double' argument
68781         links.
68782         Reported by Eric Blake <ebb9@byu.net>.
68783
68784 2007-02-24  Bruno Haible  <bruno@clisp.org>
68785
68786         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
68787         defined.
68788         * lib/isnanl.c: Remove all code. Just include isnan.c.
68789         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
68790
68791 2007-02-25  Jim Meyering  <jim@meyering.net>
68792
68793         Avoid conflicting types for 'unsetenv' on FreeBSD.
68794         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
68795         conflicting with FreeBSD's (5.0 and 6.1) function declaration
68796         in stdlib.h.
68797
68798 2007-02-24  Bruno Haible  <bruno@clisp.org>
68799
68800         * modules/isnanl-nolibm-tests: New file.
68801         * tests/test-isnanl.c: New file.
68802
68803         * modules/isnanl-nolibm: New file.
68804         * lib/isnanl.h: New file.
68805         * lib/isnanl.c: New file.
68806         * m4/isnanl.m4: New file.
68807
68808 2007-02-24  Bruno Haible  <bruno@clisp.org>
68809
68810         * modules/isnan-nolibm-tests: New file.
68811         * tests/test-isnan.c: New file.
68812
68813         * modules/isnan-nolibm: New file.
68814         * lib/isnan.h: New file.
68815         * lib/isnan.c: New file.
68816         * m4/isnan.m4: New file.
68817
68818 2007-02-24  Bruno Haible  <bruno@clisp.org>
68819
68820         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
68821         assume that an exponent fits in 20 bits.
68822
68823 2007-02-24  Jim Meyering  <jim@meyering.net>
68824
68825         * m4/regex.m4: Update the description of the configure-time option,
68826         --without-included-regex, to state accurately what the defaults are,
68827         and perhaps to give people an idea why using this option is risky.
68828
68829 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
68830
68831         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
68832         loops on small arguments.  This attempts to avoid the problem
68833         Bruno Haible reported for AIX 4.3.2 in
68834         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
68835
68836 2007-02-23  Bruno Haible  <bruno@clisp.org>
68837
68838         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
68839         Needed for help2man.
68840
68841 2007-02-23  Karl Berry  <karl@gnu.org>
68842
68843         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
68844         exists, foo.h should be cvs-ignored, not committed.
68845
68846 2007-02-23  Eric Blake  <ebb9@byu.net>
68847
68848         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
68849         * lib/stat-time.h (includes): Likewise.
68850         * lib/utimecmp.c (includes): Likewise.
68851         * lib/utimens.h (includes): Likewise.
68852         * lib/getdate.y (includes): Also include "timespec.h" for use
68853         internal to the module.
68854         * modules/utimens (Depends-on): Revert yesterday's patch.
68855         * modules/nanosleep (Depends-on): Add missing dependency.
68856
68857 2007-02-22  Bruno Haible  <bruno@clisp.org>
68858
68859         * lib/glob.c: Don't include getlogin_r.h.
68860
68861 2007-02-22  Jim Meyering  <jim@meyering.net>
68862
68863         * modules/utimens (Depends-on): Add timespec, required for
68864         utimens.h's inclusion of timespec.h.
68865
68866 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
68867
68868         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
68869         long unreadable paths in GNU/Linux.  Problem reported by Andreas
68870         Schwab in
68871         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
68872         I'll try to think of a better way to fix the Solaris problem.
68873
68874         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
68875         like glibc; on Solaris 10, it fails with errno == EINVAL.
68876         POSIX says the behavior is unspecified if the first argument is NULL,
68877         so play it safe and never pass NULL to the system getcwd.
68878
68879 2007-02-21  Jim Meyering  <jim@meyering.net>
68880
68881         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
68882         of gettimeofday.  It would conflict with the one now always
68883         provided via sys_time_.h.  Reported by Matthew Woehlke, as
68884         an IRIX 6.5 build failure.
68885
68886 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
68887
68888         Minor fixups to port to Solaris 10 with Sun C 5.8.
68889         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
68890         * modules/getcwd (Depends-on): Add dirfd.
68891         * lib/putenv.c (putenv): #undef it.
68892         (rpl_putenv): New decl.
68893         (malloc, free): Include <stdlib.h> rather than prototyping separately.
68894
68895 2007-02-20  Bruno Haible  <bruno@clisp.org>
68896
68897         * modules/stdio-tests: New file.
68898         * tests/test-stdio.c: New file.
68899
68900         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
68901         (Depends-on): Add stdio.
68902         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
68903         (Include): Use <stdio.h> instead of vsnprintf.h.
68904         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
68905         HAVE_DECL_VSNPRINTF.
68906         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
68907
68908         * modules/snprintf (Files): Remove lib/snprintf.h.
68909         (Depends-on): Add stdio.
68910         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
68911         (Include): Use <stdio.h> instead of snprintf.h.
68912         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
68913         HAVE_DECL_SNPRINTF.
68914         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
68915         * lib/getaddrinfo.c: Likewise.
68916
68917         * modules/stdio: New file.
68918         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
68919         * lib/snprintf.h: Remove file.
68920         * lib/vsnprintf.h: Remove file.
68921         * lib/.cppi-disable: Remove snprintf.h.
68922         * m4/stdio_h.m4: New file.
68923         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
68924
68925 2007-02-20  Jim Meyering  <jim@meyering.net>
68926
68927         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
68928         used by e.g., mingw.  From Bruno Haible.
68929
68930 2007-02-19  Bruno Haible  <bruno@clisp.org>
68931
68932         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
68933         warnings.
68934         Reported by Ben Pfaff <blp@cs.stanford.edu>.
68935
68936 2007-02-19  Bruno Haible  <bruno@clisp.org>
68937
68938         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
68939         from mingw users.
68940
68941 2007-02-19  Bruno Haible  <bruno@clisp.org>
68942
68943         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
68944         warnings.
68945         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
68946
68947 2007-02-19  Jim Meyering  <jim@meyering.net>
68948
68949         Don't use FD after a successful "fdopendir (fd)".
68950         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
68951         Reset it by calling dirfd on the just-obtained DIR*.
68952
68953         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
68954         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
68955
68956 2007-02-18  Bruno Haible  <bruno@clisp.org>
68957
68958         * lib/readlink.c: Include <unistd.h>.
68959         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
68960         HAVE_READLINK.
68961         * modules/readlink (Depends-on): Add unistd.
68962         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68963         (Include): Add <unistd.h>.
68964
68965         * lib/getlogin_r.h: Remove file.
68966         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
68967         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
68968         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
68969         HAVE_DECL_GETLOGIN_R.
68970         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
68971         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68972         (Include): Use <unistd.h> instead of getlogin_r.h.
68973
68974         * lib/getcwd.h: Remove file.
68975         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
68976         * lib/xgetcwd.c: Likewise.
68977         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
68978         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
68979         * modules/getcwd (Files): Remove lib/getcwd.h.
68980         (Depends-on): Add unistd.
68981         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68982         (Include): Use <unistd.h> instad of getcwd.h.
68983
68984         * lib/ftruncate.c: Include <unistd.h> first.
68985         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
68986         Set HAVE_FTRUNCATE.
68987         * modules/ftruncate (Depends-on): Add unistd.
68988         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68989
68990         * lib/fchdir.c: Include <unistd.h> first.
68991         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
68992         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
68993         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
68994         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68995         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
68996
68997         * lib/dup2.c: Include <unistd.h> first.
68998         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
68999         HAVE_DUP2.
69000         * modules/dup2 (Depends-on): Add unistd.
69001         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
69002
69003         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
69004         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
69005         REPLACE_CHOWN. Don't define chown as a macro here.
69006         * modules/chown (Depends-on): Add unistd.
69007         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
69008
69009         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
69010         Add definition for GL_LINK_WARNING.
69011         (chown, dup2): New declarations.
69012         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
69013         link warning.
69014         (ftruncate): New declaration.
69015         (getcwd): New declaration, taken from old getcwd.h.
69016         (getlogin_r): New declaration, taken from old getlogin_r.h.
69017         (readlink): New declaration.
69018         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
69019         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
69020         (gl_PREREQ_UNISTD): Remove macro.
69021         (gl_UNISTD_MODULE_INDICATOR): New macro.
69022         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
69023         many new variables. Don't set UNISTD_H.
69024         * modules/unistd (Description): Change.
69025         (Depends-on): Add link-warning.
69026         (configure.ac): Update.
69027         (Makefile.am): Create unistd.h always. Substitute many new variables
69028         into it.
69029
69030 2007-02-18  Bruno Haible  <bruno@clisp.org>
69031
69032         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
69033         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
69034         HAVE_GETSUBOPT.
69035         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
69036         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
69037         * lib/getsubopt.h: Remove file.
69038         * modules/getsubopt (Files): Remove lib/getsubopt.h.
69039         (Depends-on): Add stdlib.
69040         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
69041         (Includes): Use <stdlib.h> instead of getsubopt.h.
69042         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
69043         Set HAVE_GETSUBOPT.
69044         * lib/getsubopt.c: Don't include getsubopt.h.
69045
69046 2007-02-18  Bruno Haible  <bruno@clisp.org>
69047
69048         * modules/fchdir (Depends-on): Add dup2.
69049
69050 2007-02-18  Bruno Haible  <bruno@clisp.org>
69051
69052         * lib/stdlib_.h: Handle glibc's special invocation convention
69053         specially.
69054
69055 2007-02-18  Bruno Haible  <bruno@clisp.org>
69056
69057         * modules/stdlib-tests: New file.
69058         * tests/test-stdlib.c: New file.
69059
69060         * modules/mkstemp (Files): Remove lib/mkstemp.h.
69061         (Depends-on): Add stdlib.
69062         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
69063         (Includes): Use <stdlib.h> instead of mkstemp.h.
69064         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
69065         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
69066         * lib/mkstemp.c: Don't include mkstemp.h.
69067         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
69068         * lib/stdlib--.h: Don't include mkstemp.h.
69069
69070         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
69071         (Depends-on): Add stdlib.
69072         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
69073         (Includes): Use <stdlib.h> instead of mkdtemp.h.
69074         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
69075         HAVE_MKDTEMP.
69076         * lib/mkdtemp.c: Don't include mkdtemp.h.
69077         * lib/clean-temp.c: Don't include mkdtemp.h.
69078
69079         * modules/exit (Files): Remove lib/exit.h.
69080         (Depends-on): Add stdlib.
69081         (Makefile.am): Remove lib_SOURCES.
69082         (Include): Use <stdlib.h> instead of exit.h.
69083         * lib/argmatch.c: Don't include exit.h.
69084         * lib/execute.c: Likewise.
69085         * lib/pagealign_alloc.c: Likewise.
69086         * lib/pipe.c: Likewise.
69087         * lib/wait-process.c: Likewise.
69088         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
69089         * lib/exitfail.c: Likewise.
69090         * lib/savewd.c: Likewise.
69091         * lib/xsetenv.c: Likewise.
69092
69093         * modules/stdlib: New file.
69094         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
69095         and extra comments about mkstemp().
69096         * lib/exit.h: Remove file.
69097         * lib/mkdtemp.h: Remove file.
69098         * lib/mkstemp.h: Remove file.
69099         * m4/stdlib_h.m4: New file.
69100         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
69101
69102 2007-02-18  Bruno Haible  <bruno@clisp.org>
69103
69104         * modules/math-tests: New file.
69105         * tests/test-math.c: New file.
69106
69107         * modules/math: New file.
69108         * modules/mathl (Files): Remove lib/mathl.h.
69109         (Depends-on): Add math.
69110         (Makefile.am): Don't mention mathl.h.
69111         (Include): Use <math.h> instead of mathl.h.
69112         * lib/math_.h: New file.
69113         * lib/mathl.h: Remove file.
69114         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
69115         mathl.h.
69116         * lib/asinl.c: Likewise.
69117         * lib/atanl.c: Likewise.
69118         * lib/ceill.c: Likewise.
69119         * lib/cosl.c: Likewise.
69120         * lib/expl.c: Likewise.
69121         * lib/floorl.c: Likewise.
69122         * lib/frexpl.c: Likewise.
69123         * lib/ldexpl.c: Likewise.
69124         * lib/logl.c: Likewise.
69125         * lib/sincosl.c: Likewise.
69126         * lib/sinl.c: Likewise.
69127         * lib/sqrtl.c: Likewise.
69128         * lib/tanl.c: Likewise.
69129         * lib/trigl.c: Likewise.
69130         * m4/math_h.m4: New file.
69131         * MODULES.html.sh (Mathematics): Add math.
69132
69133 2007-02-17  Bruno Haible  <bruno@clisp.org>
69134
69135         * modules/wctype-tests: New file.
69136         * tests/test-wctype.c: New file.
69137
69138         * modules/wchar-tests: New file.
69139         * tests/test-wchar.c: New file.
69140
69141         * modules/unistd-tests: New file.
69142         * tests/test-unistd.c: New file.
69143
69144         * modules/time-tests: New file.
69145         * tests/test-time.c: New file.
69146
69147         * modules/sysexits-tests: New file.
69148         * tests/test-sysexits.c: New file.
69149
69150         * modules/sys_time-tests: New file.
69151         * tests/test-sys_time.c: New file.
69152
69153         * modules/sys_stat-tests: New file.
69154         * tests/test-sys_stat.c: New file.
69155
69156         * modules/sys_socket-tests: New file.
69157         * tests/test-sys_socket.c: New file.
69158
69159         * modules/sys_select-tests: New file.
69160         * tests/test-sys_select.c: New file.
69161
69162         * modules/string-tests: New file.
69163         * tests/test-string.c: New file.
69164
69165         * modules/stdbool-tests: New file.
69166         * tests/test-stdbool.c: New file.
69167
69168         * modules/netinet_in-tests: New file.
69169         * tests/test-netinet_in.c: New file.
69170
69171         * modules/inttypes-tests: New file.
69172         * tests/test-inttypes.c: New file.
69173
69174         * modules/fcntl-tests: New file.
69175         * tests/test-fcntl.c: New file.
69176
69177         * modules/byteswap-tests: New file.
69178         * tests/test-byteswap.c: New file.
69179
69180         * modules/arpa_inet-tests: New file.
69181         * tests/test-arpa_inet.c: New file.
69182
69183 2007-02-17  Bruno Haible  <bruno@clisp.org>
69184
69185         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
69186         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
69187         if the corresponding module is not enabled. Emit link warnings if
69188         the function is used nevertheless.
69189         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
69190         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
69191         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
69192         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
69193         * modules/inttypes (Depends-on): Add link-warning.
69194         (Makefile.am): Copy the contents of build-aux/link-warning.h into
69195         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
69196         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
69197         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
69198         * modules/imaxdiv (configure.ac): Likewise.
69199         * modules/strtoimax (configure.ac): Likewise.
69200         * modules/strtoumax (configure.ac): Likewise.
69201
69202 2007-02-17  Bruno Haible  <bruno@clisp.org>
69203
69204         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
69205         gl_STRING_MODULE_INDICATOR_DEFAULTS.
69206         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
69207         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
69208
69209 2007-02-17  Bruno Haible  <bruno@clisp.org>
69210
69211         * modules/link-warning: New file.
69212         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
69213         * lib/string_.h (GL_LINK_WARNING): Remove definition.
69214         * modules/string (Depends-on): Add link-warning.
69215         (Makefile.am): Copy the contents of build-aux/link-warning.h into
69216         string.h.
69217         * MODULES.html.sh (Support for building libraries and executables): Add
69218         link-warning.
69219
69220 2007-02-17  Bruno Haible  <bruno@clisp.org>
69221
69222         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
69223         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
69224         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
69225         long lines.
69226
69227 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
69228             Bruno Haible  <bruno@clisp.org>
69229
69230         * modules/tmpfile: New file.
69231         * lib/tmpfile.c: New file.
69232         * m4/tmpfile.m4: New file.
69233         * MODULES.html.sh (func_all_modules): New section "Input/output".
69234
69235 2007-02-15  Bruno Haible  <bruno@clisp.org>
69236
69237         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
69238         (supports_delete_on_close): New function.
69239         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
69240
69241 2007-02-14  Bruno Haible  <bruno@clisp.org>
69242
69243         * modules/mbspcasecmp-tests: New file.
69244         * tests/test-mbspcasecmp.sh: New file.
69245         * tests/test-mbspcasecmp.c: New file.
69246
69247         New module mbspcasecmp.
69248         * modules/mbspcasecmp: New file.
69249         * lib/mbspcasecmp.c: New file.
69250         * lib/string_.h (strncasecmp): Change warning message.
69251         (mbspcasecmp): New declaration.
69252         * m4/mbspcasecmp.m4: New file.
69253         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69254         GNULIB_MBSPCASECMP.
69255         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
69256         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
69257
69258 2007-02-14  Bruno Haible  <bruno@clisp.org>
69259
69260         * modules/mbsncasecmp-tests: New file.
69261         * tests/test-mbsncasecmp.sh: New file.
69262         * tests/test-mbsncasecmp.c: New file.
69263
69264         New module mbsncasecmp.
69265         * modules/mbsncasecmp: New file.
69266         * lib/mbsncasecmp.c: New file.
69267         * lib/string_.h (mbsncasecmp): New declaration.
69268         * m4/mbsncasecmp.m4: New file.
69269         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69270         GNULIB_MBSNCASECMP.
69271         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
69272         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
69273
69274 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
69275
69276         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
69277         Verify that it doesn't overlap with our flags.
69278         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
69279         do not have the desired effect in multibyte locales; instead, use
69280         mbscasecmp.
69281         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
69282         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
69283         we don't require GNU fnmatch ourselves (if our users require it, they
69284         should do so explicitly).
69285
69286         Fix regex code so it doesn't rely on strcasecmp.
69287         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
69288         Otherwise, include gnulib's langinfo.h.
69289         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
69290         undesirable behavior in non-C locales.  Instead, rely on localecharset.
69291         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
69292         * modules/regex (FILES): Remove m4/codeset.m4.
69293         (Depends-on): Add localcharset.  Remove strcase.
69294
69295 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69296
69297         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
69298         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
69299
69300 2007-02-13  Bruno Haible  <bruno@clisp.org>
69301
69302         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
69303         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69304
69305 2007-02-12  Bruno Haible  <bruno@clisp.org>
69306
69307         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
69308         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
69309         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
69310         time warning rather than a link error.
69311
69312 2007-02-12  Bruno Haible  <bruno@clisp.org>
69313
69314         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
69315         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
69316         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69317
69318 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
69319
69320         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
69321         args, not 2.
69322
69323 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
69324
69325         New module 'time', so that apps can include <time.h> as per
69326         POSIX and GNU instead of separate include files like time_r.h
69327         and timegm.h.  This implementation tries out a simpler approach
69328         for replacing decls in standard include files (as compared to
69329         the string module), somewhat as an experiment.
69330
69331         * config/srclist.txt: Comment out mktime.c for now.
69332         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
69333         since it doesn't apply any more.  Use generic wording instead.
69334         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
69335         'time'.
69336         * lib/time_.h, m4/time_h.m4, modules/time: New files.
69337         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
69338         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
69339         Don't include <sys/types.h>; no longer needed since we assume C89.
69340         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
69341         * lib/strftime.c: Likewise.
69342         * lib/time_r.c: Likewise.
69343         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
69344         * lib/nanosleep.c: Include <time.h> first, to check interface.
69345         * lib/strptime.c: Likewise.
69346         * lib/time_r.c: Likewise.
69347         * lib/timegm.c: Likewise.
69348         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
69349         needed.
69350         * lib/timegm.c: Don't include timegm.h; no longer needed.
69351         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
69352         time.h now handles any problems in that area.
69353         (struct timespec, nanosleep): Remove; time.h now arranges for these.
69354         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
69355         that time.h defines struct timespec.
69356         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
69357         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
69358         handles that.
69359         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
69360         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
69361         needed.  Set REPLACE_LOCALTIME.
69362         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
69363         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
69364         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
69365         nanosleep; time_h.m4 now does that.  Don't require
69366         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
69367         module handles this now.
69368         * modules/getdate (Depends-on): Remove timespec.  Add time.
69369         * modules/nanosleep (Depends-on): Likewise.
69370         * modules/stat-time (Depends-on): Likewise.
69371         * modules/nanosleep (Include): Include time.h, not timespec.h.
69372         * modules/strptime (Files): Remove lib/strptime.h.
69373         (Depends-on): Add extensions, time.
69374         (Include): Include time.h, not strptime.h.
69375         * modules/time_r (Files): Remove lib/time_r.h.
69376         (Depends-on): Add time.
69377         (Include): Include time.h, not time_r.h.
69378         * modules/timegm: Likewise.
69379         * modules/timespec (Description): Now does timespec-related decls
69380         of our own, instead of struct timespec itself.
69381         (Depends-on): Add time; remove extensions.
69382         (Maintainer): Add self.
69383         * modules/utimecmp (Depends-on): Add time; remove timespec.
69384         * modules/utimens (Depends-on): Likewise.
69385         * modules/xnanosleep (Depends-on): Likewise.
69386
69387 2007-02-11  Bruno Haible  <bruno@clisp.org>
69388
69389         * lib/c-strstr.c: Include allocsa.h.
69390         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
69391         * lib/c-strcasestr.c: Include allocsa.h.
69392         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
69393         * lib/strcasestr.c: Include allocsa.h.
69394         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
69395         * lib/mbsstr.c: Include allocsa.h.
69396         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
69397         allocsa/freesa instead of malloc/free.
69398         * lib/mbscasestr.c: Include allocsa.h.
69399         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
69400         allocsa/freesa instead of malloc/free.
69401         * modules/c-strstr (Depends-on): Add allocsa.
69402         * modules/c-strcasestr (Depends-on): Likewise.
69403         * modules/strcasestr (Depends-on): Likewise.
69404         * modules/mbsstr (Depends-on): Likewise.
69405         * modules/mbscasestr (Depends-on): Likewise.
69406
69407 2007-02-11  Bruno Haible  <bruno@clisp.org>
69408
69409         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
69410
69411         * modules/mbsspn-tests: New file.
69412         * tests/test-mbsspn.sh: New file.
69413         * tests/test-mbsspn.c: New file.
69414
69415 2007-02-11  Bruno Haible  <bruno@clisp.org>
69416
69417         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
69418
69419         * modules/mbspbrk-tests: New file.
69420         * tests/test-mbspbrk.sh: New file.
69421         * tests/test-mbspbrk.c: New file.
69422
69423 2007-02-11  Bruno Haible  <bruno@clisp.org>
69424
69425         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
69426         unneeded cast.
69427
69428         * modules/mbscspn-tests: New file.
69429         * tests/test-mbscspn.sh: New file.
69430         * tests/test-mbscspn.c: New file.
69431
69432 2007-02-11  Bruno Haible  <bruno@clisp.org>
69433
69434         * modules/mbscasecmp-tests: New file.
69435         * tests/test-mbscasecmp.sh: New file.
69436         * tests/test-mbscasecmp.c: New file.
69437
69438 2007-02-11  Bruno Haible  <bruno@clisp.org>
69439
69440         Ensure O(n) worst-case complexity of mbscasestr.
69441         * lib/mbscasestr.c: Include stdbool.h.
69442         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
69443         functions.
69444         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
69445         the bookkeeping indicates that it's worth it.
69446         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
69447
69448         * modules/mbscasestr-tests: New file.
69449         * tests/test-mbscasestr1.c: New file.
69450         * tests/test-mbscasestr2.sh: New file.
69451         * tests/test-mbscasestr2.c: New file.
69452         * tests/test-mbscasestr3.sh: New file.
69453         * tests/test-mbscasestr3.c: New file.
69454         * tests/test-mbscasestr4.sh: New file.
69455         * tests/test-mbscasestr4.c: New file.
69456         * m4/locale-tr.m4: New file.
69457
69458 2007-02-11  Bruno Haible  <bruno@clisp.org>
69459
69460         Ensure O(n) worst-case complexity of mbsstr.
69461         * lib/mbsstr.c: Include stdbool.h.
69462         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
69463         functions.
69464         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
69465         bookkeeping indicates that it's worth it.
69466         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
69467
69468         * modules/mbsstr-tests: New file.
69469         * tests/test-mbsstr1.c: New file.
69470         * tests/test-mbsstr2.sh: New file.
69471         * tests/test-mbsstr2.c: New file.
69472         * tests/test-mbsstr3.sh: New file.
69473         * tests/test-mbsstr3.c: New file.
69474         * m4/locale-fr.m4: New file.
69475
69476 2007-02-11  Bruno Haible  <bruno@clisp.org>
69477
69478         * lib/mbsrchr.c (mbsrchr): Fix bug.
69479
69480         * modules/mbsrchr-tests: New file.
69481         * tests/test-mbsrchr.sh: New file.
69482         * tests/test-mbsrchr.c: New file.
69483
69484 2007-02-11  Bruno Haible  <bruno@clisp.org>
69485
69486         * lib/mbschr.c (mbschr): Fix bug.
69487
69488         * modules/mbschr-tests: New file.
69489         * tests/test-mbschr.sh: New file.
69490         * tests/test-mbschr.c: New file.
69491         * m4/locale-zh.m4: New file.
69492
69493 2007-02-11  Bruno Haible  <bruno@clisp.org>
69494
69495         Support for copying multibyte string iterators.
69496         * lib/mbiter.h: Include <string.h>.
69497         (mbiter_multi_copy): New function.
69498         (mbi_copy): New macro.
69499         * lib/mbuiter.h: Include <string.h>.
69500         (mbuiter_multi_copy): New function.
69501         (mbui_copy): New macro.
69502
69503 2007-02-11  Bruno Haible  <bruno@clisp.org>
69504
69505         New module mbslen.
69506         * modules/mbslen: New file.
69507         * lib/mbslen.c: New file.
69508         * lib/string_.h (mbslen): New declaration.
69509         * m4/mbslen.m4: New file.
69510         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69511         GNULIB_MBSLEN.
69512         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
69513         * MODULES.html.sh (Internationalization functions): Add mbslen.
69514
69515 2007-02-11  Bruno Haible  <bruno@clisp.org>
69516
69517         Ensure O(n) worst-case complexity of strcasestr substitute.
69518         * lib/strcasestr.c: Include stdbool.h.
69519         (knuth_morris_pratt): New function.
69520         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
69521         bookkeeping indicates that it's worth it.
69522         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
69523
69524         * modules/strcasestr-tests: New file.
69525         * tests/test-strcasestr.c: New file.
69526
69527 2007-02-11  Bruno Haible  <bruno@clisp.org>
69528
69529         Ensure O(n) worst-case complexity of c_strcasestr.
69530         * lib/c-strcasestr.c: Include stdbool.h, string.h.
69531         (knuth_morris_pratt): New function.
69532         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
69533         the bookkeeping indicates that it's worth it.
69534         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
69535
69536         * modules/c-strcasestr-tests: New file.
69537         * tests/test-c-strcasestr.c: New file.
69538
69539 2007-02-11  Bruno Haible  <bruno@clisp.org>
69540
69541         Ensure O(n) worst-case complexity of c_strstr.
69542         * lib/c-strstr.c: Include stdbool.h, string.h.
69543         (knuth_morris_pratt): New function.
69544         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
69545         bookkeeping indicates that it's worth it.
69546         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
69547
69548         * lib/c-strstr.c: Complete rewrite for maintainability.
69549
69550         * modules/c-strstr-tests: New file.
69551         * tests/test-c-strstr.c: New file.
69552
69553 2007-02-11  Bruno Haible  <bruno@clisp.org>
69554
69555         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
69556         5.2.1 and earlier, whereby \055 was treated just like the range
69557         delimiter '-'.
69558         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
69559
69560 2007-02-08  Bruno Haible  <bruno@clisp.org>
69561
69562         * modules/regex (Depends-on): Add stdbool.
69563         Reported by Dalibor Topic <robilad@kaffe.org>.
69564
69565 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
69566
69567         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
69568         Prefer returning from main to exiting from it.
69569         Remove unnecessary parens after sizeof.
69570
69571 2007-02-05  Bruno Haible  <bruno@clisp.org>
69572
69573         New module mbssep.
69574         * modules/mbssep: New file.
69575         * lib/mbssep.c: New file.
69576         * lib/string_.h (strsep): Add a conditional link warning.
69577         (mbssep): New declaration.
69578         * m4/mbssep.m4: New file.
69579         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69580         GNULIB_MBSSEP.
69581         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
69582         * MODULES.html.sh (Internationalization functions): Add mbssep.
69583
69584 2007-02-05  Bruno Haible  <bruno@clisp.org>
69585
69586         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
69587         Optimize search in case of 1 delimiter.
69588
69589 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
69590
69591         * lib/acl.h: Include sys/types.h before sys/acl.h.
69592
69593 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
69594
69595         Merge upstream fix for glibc bugzilla #3957:
69596
69597         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
69598
69599         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
69600         bit for RE_HAT_LISTS_NOT_NEWLINE.
69601         (build_charclass_op): Remove bogus comment.
69602
69603 2007-02-05  Simon Josefsson  <simon@josefsson.org>
69604
69605         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
69606
69607 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
69608
69609         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
69610         * lib/memmem.c [!defined _LIBC]: Include config.h.
69611
69612 2007-02-04  Bruno Haible  <bruno@clisp.org>
69613
69614         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
69615         warning message.
69616
69617 2007-02-04  Bruno Haible  <bruno@clisp.org>
69618
69619         New module mbstok_r.
69620         * modules/mbstok_r: New file.
69621         * lib/mbstok_r.c: New file.
69622         * lib/string_.h (strtok_r): Change argument names to match the
69623         comments. Add a conditional link warning.
69624         (mbstok_r): New declaration.
69625         * m4/mbstok_r.m4: New file.
69626         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69627         GNULIB_MBSTOK_R.
69628         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
69629         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
69630
69631 2007-02-04  Bruno Haible  <bruno@clisp.org>
69632
69633         New module mbsspn.
69634         * modules/mbsspn: New file.
69635         * lib/mbsspn.c: New file.
69636         * lib/string_.h (strspn): Add a conditional link warning.
69637         (mbsspn): New declaration.
69638         * m4/mbsspn.m4: New file.
69639         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69640         GNULIB_MBSSPN.
69641         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
69642         * MODULES.html.sh (Internationalization functions): Add mbsspn.
69643
69644 2007-02-04  Bruno Haible  <bruno@clisp.org>
69645
69646         New module mbspbrk.
69647         * modules/mbspbrk: New file.
69648         * lib/mbspbrk.c: New file.
69649         * lib/string_.h (strpbrk): Add a conditional link warning.
69650         (mbspbrk): New declaration.
69651         * m4/mbspbrk.m4: New file.
69652         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69653         GNULIB_MBSPBRK.
69654         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
69655         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
69656
69657 2007-02-04  Bruno Haible  <bruno@clisp.org>
69658
69659         New module mbscspn.
69660         * modules/mbscspn: New file.
69661         * lib/mbscspn.c: New file.
69662         * lib/string_.h (strcspn): Add a conditional link warning.
69663         (mbscspn): New declaration.
69664         * m4/mbscspn.m4: New file.
69665         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69666         GNULIB_MBSCSPN.
69667         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
69668         * MODULES.html.sh (Internationalization functions): Add mbscspn.
69669
69670 2007-02-04  Bruno Haible  <bruno@clisp.org>
69671
69672         New module mbscasestr, reduced goal of strcasestr.
69673         * modules/mbscasestr: New file.
69674         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
69675         (mbscasestr): Renamed from strcasestr.
69676         * lib/strcasestr.c: Don't include mbuiter.h.
69677         (strcasestr): Remove support for multibyte locales.
69678         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
69679         Change the conditional link warning.
69680         (mbscasestr): New declaration.
69681         * m4/mbscasestr.m4: New file.
69682         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
69683         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
69684         REPLACE_STRCASESTR.
69685         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
69686         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
69687         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
69688         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
69689         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
69690         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
69691         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
69692         (Depends-on): Remove mbuiter.
69693         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
69694
69695 2007-02-04  Bruno Haible  <bruno@clisp.org>
69696
69697         Simplify handling of strncasecmp.
69698         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
69699         the conditional link warning.
69700         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
69701         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
69702         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
69703         * modules/strcase (configure.ac): Don't invoke
69704         gl_STRING_MODULE_INDICATOR.
69705         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
69706
69707 2007-02-04  Bruno Haible  <bruno@clisp.org>
69708
69709         New module mbscasecmp, reduced goal of strcasecmp.
69710         * modules/mbscasecmp: New file.
69711         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
69712         (mbscasecmp): Renamed from strcasecmp.
69713         * lib/strcasecmp.c: Don't include mbuiter.h.
69714         (strcasecmp): Remove support for multibyte locales.
69715         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
69716         Change the conditional link warning.
69717         (mbscasecmp): New declaration.
69718         * m4/mbscasecmp.m4: New file.
69719         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
69720         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
69721         REPLACE_STRCASECMP.
69722         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
69723         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69724         GNULIB_MBSCASECMP.
69725         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
69726         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
69727         * modules/strcase (Files): Remove m4/mbrtowc.m4.
69728         (Depends-on): Remove mbuiter.
69729         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
69730
69731 2007-02-04  Bruno Haible  <bruno@clisp.org>
69732
69733         New module mbsstr. Remove module strstr.
69734         * modules/mbsstr: New file.
69735         * modules/strstr: Remove file.
69736         * lib/mbsstr.c: Renamed from lib/strstr.c.
69737         (mbsstr): Renamed from strstr.
69738         * lib/string_.h (strstr): Remove declaration. Change the conditional
69739         link warning.
69740         (mbsstr): New declaration.
69741         * m4/mbsstr.m4: New file.
69742         * m4/strstr.m4: Remove file.
69743         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
69744         REPLACE_STRSTR.
69745         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
69746         Don't initialize GNULIB_STRSTR.
69747         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
69748         substitute GNULIB_STRSTR and REPLACE_STRSTR.
69749         * MODULES.html.sh (Internationalization functions): Add mbsstr.
69750         (Support for systems lacking ANSI C 89): Remove strstr.
69751
69752 2007-02-04  Bruno Haible  <bruno@clisp.org>
69753
69754         New module mbsrchr.
69755         * modules/mbsrchr: New file.
69756         * lib/mbsrchr.c: New file.
69757         * lib/string_.h (strrchr): Add a conditional link warning.
69758         (mbsrchr): New declaration.
69759         * m4/mbsrchr.m4: New file.
69760         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69761         GNULIB_MBSRCHR.
69762         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
69763         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
69764
69765 2007-02-04  Bruno Haible  <bruno@clisp.org>
69766
69767         New module mbschr.
69768         * modules/mbschr: New file.
69769         * lib/mbschr.c: New file.
69770         * lib/string_.h (strchr): Add a conditional link warning.
69771         (mbschr): New declaration.
69772         * m4/mbschr.m4: New file.
69773         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69774         GNULIB_MBSCHR.
69775         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
69776         * MODULES.html.sh (Internationalization functions): Add mbschr.
69777
69778 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
69779
69780         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
69781
69782         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
69783
69784 2007-02-04  Bruno Haible  <bruno@clisp.org>
69785
69786         New module description section 'configure.ac-early'.
69787         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
69788         (func_get_autoconf_early_snippet): New function.
69789         (func_import, func_create_testdir): Use it. Remove special cases for
69790         modules 'extensions' and 'lock'.
69791         * modules/extensions (configure.ac-early): Require
69792         gl_USE_SYSTEM_EXTENSIONS.
69793         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
69794
69795 2007-02-04  Bruno Haible  <bruno@clisp.org>
69796
69797         Make use of gcj-4.3's -fsource and -ftarget option.
69798         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
69799         and if so try the options -fsource and -ftarget.
69800         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
69801         source_version, ftarget_option, target_version arguments.
69802         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
69803         (is_envjavac_oldgcj_14_14_usable): Renamed from
69804         is_envjavac_gcj_14_14_usable.
69805         (is_envjavac_oldgcj_14_13_usable): Renamed from
69806         is_envjavac_gcj_14_13_usable.
69807         (is_gcj_present): Update.
69808         (is_gcj_43, is_gcj43_usable): New functions.
69809         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
69810         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
69811         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
69812         try the options -fsource and -ftarget.
69813
69814 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
69815
69816         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
69817         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
69818         larger value.
69819
69820 2007-02-03  Jim Meyering  <jim@meyering.net>
69821
69822         Give tools a better chance to allocate space for very large buffers.
69823         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
69824
69825         Make pwd and readlink work also when run with an unreadable parent dir
69826         on systems with openat support.
69827         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
69828         provided getcwd function, even when we have openat support.
69829         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
69830
69831 2007-02-02  Bruno Haible  <bruno@clisp.org>
69832
69833         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
69834         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
69835         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
69836         portability problems if one of these functions is only used on specific
69837         platforms.
69838         Reported by Paul Eggert.
69839
69840 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
69841
69842         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
69843         is causing more trouble than it's curing.
69844         * lib/regex_internal.h (__mempcpy): Remove.
69845         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
69846         (and make the code a tad smaller to boot).
69847         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
69848
69849 2007-02-02  Jim Meyering  <jim@meyering.net>
69850
69851         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
69852         section, not in the Makefile.am: one.
69853
69854 2007-02-02  Eric Blake  <ebb9@byu.net>
69855
69856         * lib/strchrnul.c: Always include config.h first.
69857
69858         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
69859         gnulib strstr is not necessary here.
69860
69861 2007-02-02  Simon Josefsson  <simon@josefsson.org>
69862
69863         * m4/socklen.m4: Fix typo.
69864
69865 2007-02-02  Eric Blake  <ebb9@byu.net>
69866
69867         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
69868         * modules/netinet_in (Makefile.am): Likewise.
69869
69870 2007-02-01  Bruno Haible  <bruno@clisp.org>
69871
69872         * lib/string_.h (GL_LINK_WARNING): New macro.
69873         (strcasecmp, strstr, strcasestr): If provided by the system,
69874         conditionally define as a macro that leads to a warning instead of to
69875         an error.
69876         (strncasecmp): Conditionally define as a macro that leads to a warning.
69877
69878 2007-02-01  Karl Berry  <karl@gnu.org>
69879
69880         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
69881
69882 2007-02-01  Bruno Haible  <bruno@clisp.org>
69883
69884         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
69885         renamings.
69886
69887 2007-02-01  Eric Blake  <ebb9@byu.net>
69888
69889         * modules/regex (Depends-on): Revert dependence on mempcpy.
69890         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
69891         module's definition of mempcpy.
69892         Reported by Paul Eggert.
69893
69894 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
69895
69896         * lib/string_.h: If the gnulib module XYZ is not present, undefine
69897         the symbol XYZ before redefining it.  This fixes a problem with
69898         programs that don't use XYZ, when compiled on systems that define
69899         XYZ to something else.
69900
69901 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
69902
69903         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
69904         occurs when "mkdir -m foo" creates a setgid directory that is (1)
69905         writeable to group or other and (2) is intended to have a special
69906         mode bit that is set or cleared.  In such a case, the directory
69907         should be neither group- nor other-writeable until the special
69908         mode bits are right.
69909
69910 2007-01-31  Eric Blake  <ebb9@byu.net>
69911
69912         * modules/mountlist (Depends-on): Add strstr.
69913
69914         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
69915         bug.
69916         * modules/string (Makefile.am): Remove redundant replacement.
69917         * modules/regex (Depends-on): Add mempcpy.
69918
69919 2007-01-31  Bruno Haible  <bruno@clisp.org>
69920
69921         New module description field 'Link'.
69922         * gnulib-tool (func_usage): Document --extract-link-directive.
69923         (sed_extract_prog): Recognize 'Link' directive.
69924         (func_get_link_directive): New function.
69925         (func_import): Show summary of link directives.
69926         Handle --extract-link-directive option.
69927         * modules/acl (Link): New section.
69928         * modules/clock-time (Link): New section.
69929         * modules/euidaccess (Link): New section.
69930         * modules/gettext (Link): New section.
69931         * modules/iconv (Link): New section.
69932         * modules/lock (Link): New section.
69933         * modules/nanosleep (Link): New section.
69934         * modules/readline (Link): New section.
69935
69936 2007-01-27  Bruno Haible  <bruno@clisp.org>
69937
69938         Enforce the use of gnulib modules for unportable <string.h> functions.
69939         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
69940         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
69941         (gl_HEADER_STRING_H_BODY): Require it.
69942         * lib/string_.h: If the gnulib module XYZ is not present, redefine
69943         the symbol XYZ to one that gives a link error.
69944         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
69945         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
69946         * modules/mempcpy (configure.ac): Likewise.
69947         * modules/memrchr (configure.ac): Likewise.
69948         * modules/stpcpy (configure.ac): Likewise.
69949         * modules/stpncpy (configure.ac): Likewise.
69950         * modules/strcase (configure.ac): Likewise.
69951         * modules/strcasestr (configure.ac): Likewise.
69952         * modules/strchrnul (configure.ac): Likewise.
69953         * modules/strdup (configure.ac): Likewise.
69954         * modules/strndup (configure.ac): Likewise.
69955         * modules/strnlen (configure.ac): Likewise.
69956         * modules/strpbrk (configure.ac): Likewise.
69957         * modules/strsep (configure.ac): Likewise.
69958         * modules/strstr (configure.ac): Likewise.
69959         * modules/strtok_r (configure.ac): Likewise.
69960
69961 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
69962
69963         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
69964
69965 2007-01-30  Jim Meyering  <jim@meyering.net>
69966
69967         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
69968
69969 2007-01-29  Bruno Haible  <bruno@clisp.org>
69970
69971         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
69972         * lib/execute.c: Likewise.
69973         * lib/pipe.c: Likewise.
69974         * lib/printf-args.h: Likewise.
69975         * lib/printf-args.c: Likewise.
69976         * lib/printf-parse.c: Likewise.
69977         * lib/vasnprintf.c: Likewise.
69978
69979 2007-01-29  Eric Blake  <ebb9@byu.net>
69980
69981         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
69982         declaration.
69983
69984 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
69985
69986         * lib/strptime.h (strptime): Use 'restrict' for args where
69987         POSIX requires this.
69988         * lib/strptime.c (strptime): Likewise.
69989         Change license notice from LGPL to GPL, since gnulib-tool will
69990         change this as needed.
69991         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
69992         defined.
69993         Include "strptime.h" first, to check interface.
69994         Do not #undef _LIBC and _NL_CURRENT.
69995         Do not include <stdlib.h>; no longer needed.
69996         Include "time_r.h" and declare ptime_locale_status
69997         only if _LIBC is not defined.
69998         (__P): Remove unused macro.
69999         (match_string): Bring back glibc version, but use it only if _LIBC
70000         is defined.
70001         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
70002         Remove unnecessary assertion and abort() call.
70003         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
70004         * m4/strptime.m4: Fix serial number comment.
70005         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
70006         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
70007         (Depends-on): Add time_r.
70008
70009 2007-01-29  Bruno Haible  <bruno@clisp.org>
70010
70011         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
70012         strptime.
70013         * modules/strptime (Depends-on): Add stdbool.
70014         * lib/strptime.h: Include <time.h> always. Add comments.
70015
70016 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
70017
70018         * modules/strptime: New file.
70019         * lib/strptime.h: New file.
70020         * lib/strptime.c: New file.
70021         * m4/strptime.m4: New file.
70022
70023 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
70024
70025         * MODULES.html.sh: New module mpsort.
70026         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
70027
70028         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
70029         a circularity problem with HP-UX ia64 reported by Bob Proulx in
70030         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
70031         All uses changed.
70032         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
70033         All uses changed.
70034         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
70035         to _Restrict_.
70036         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
70037         the parameter matches the prototype.
70038
70039 2007-01-28  Jim Meyering  <jim@meyering.net>
70040
70041         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
70042         sys/time.h here, reverting that part of the previous patch:
70043         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
70044
70045 2007-01-28  Bruno Haible  <bruno@clisp.org>
70046
70047         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
70048         value of $(SYS_TIME_H).
70049         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
70050         remove it conditionally, too. [added by Jim Meyering]
70051         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
70052         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
70053         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
70054         GETTIMEOFDAY_REPLACEMENT to 1.
70055
70056 2007-01-28  Bruno Haible  <bruno@clisp.org>
70057
70058         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
70059         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
70060         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
70061         Set UNISTD_H instead of UNISTD_H2.
70062         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
70063
70064 2007-01-28  Bruno Haible  <bruno@clisp.org>
70065
70066         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
70067         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
70068
70069 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70070
70071         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
70072         (func_create_testdir): Ensure C locale for `grep' and `tr'
70073         character ranges.
70074         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
70075         ACLOCAL_AMFLAGS parsing state machine.
70076
70077 2007-01-27  Bruno Haible  <bruno@clisp.org>
70078
70079         * modules/unistr/base: Update.
70080
70081 2007-01-27  Bruno Haible  <bruno@clisp.org>
70082
70083         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
70084         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
70085         * modules/unistr/u32-mbtouc-unsafe: Renamed from
70086         modules/unistr/u32-mbtouc.
70087         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
70088         * lib/unistr.h: Update.
70089         * lib/linebreak.c: Update.
70090         * modules/unistr/u32-mbtouc: Renamed from
70091         modules/unistr/u32-mbtouc-safe.
70092         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
70093         * lib/unistr.h: Update.
70094         * lib/unistr/u32-to-u8.c: Update.
70095         * lib/unistr/u32-to-u16.c: Update.
70096
70097 2007-01-27  Bruno Haible  <bruno@clisp.org>
70098
70099         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
70100         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
70101         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
70102         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
70103         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
70104         * modules/unistr/u16-mbtouc-unsafe: Renamed from
70105         modules/unistr/u16-mbtouc.
70106         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
70107         * lib/unistr.h: Update.
70108         * lib/linebreak.c: Update.
70109         * modules/linebreak: Update.
70110         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
70111         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
70112         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
70113         * modules/unistr/u16-mbtouc: Renamed from
70114         modules/unistr/u16-mbtouc-safe.
70115         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
70116         * lib/unistr.h: Update.
70117         * lib/unistr/u16-to-u8.c: Update.
70118         * modules/unistr/u16-to-u8: Update.
70119         * lib/unistr/u16-to-u32.c: Update.
70120         * modules/unistr/u16-to-u32: Update.
70121
70122 2007-01-27  Bruno Haible  <bruno@clisp.org>
70123
70124         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
70125         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
70126         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
70127         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
70128         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
70129         * modules/unistr/u8-mbtouc-unsafe: Renamed from
70130         modules/unistr/u8-mbtouc.
70131         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
70132         * lib/unistr.h: Update.
70133         * lib/striconveh.c: Update.
70134         * modules/striconveh: Update.
70135         * lib/linebreak.c: Update.
70136         * modules/linebreak: Update.
70137         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
70138         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
70139         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
70140         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
70141         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
70142         * lib/unistr.h: Update.
70143         * lib/striconveh.c: Update.
70144         * modules/striconveh: Update.
70145         * lib/unistr/u8-to-u16.c: Update.
70146         * modules/unistr/u8-to-u16: Update.
70147         * lib/unistr/u8-to-u32.c: Update.
70148         * modules/unistr/u8-to-u32: Update.
70149
70150 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70151
70152         Sync from Libtool.
70153         * lib/argz.c: Do not include strings.h nor memory.h, include
70154         string.h unconditionally.  Patch by Simon Josefsson.
70155
70156 2007-01-27  Bruno Haible  <bruno@clisp.org>
70157
70158         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
70159         from gl_HEADER_STRING_H_BODY.
70160         (gl_HEADER_STRING_H_BODY): Require it.
70161         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
70162         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
70163         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
70164         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
70165         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
70166         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
70167         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
70168         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
70169         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
70170         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
70171         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
70172         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
70173         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
70174         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
70175         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
70176
70177 2007-01-27  Bruno Haible  <bruno@clisp.org>
70178
70179         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
70180         check_PROGRAMS into noinst_PROGRAMS.
70181         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
70182         check_PROGRAMS in this case.
70183         (func_import): Set for_test to false.
70184         (func_create_testdir): Set for_test to true.
70185
70186 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
70187             Bruno Haible  <bruno@clisp.org>
70188
70189         * modules/strcasestr (Files): Remove lib/strcasestr.h.
70190         (Depends-on): Add string.
70191         (Includes): Use <string.h> instead of strcasestr.h.
70192         * modules/string (Makefile.am): Also substitute the value of
70193         REPLACE_STRCASESTR.
70194         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
70195         assume strcasestr is declared in <string.h> not <strings.h>. Also
70196         set REPLACE_STRCASESTR.
70197         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
70198         REPLACE_STRCASESTR.
70199         * lib/strcasestr.h: Remove file.
70200         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
70201         * lib/string_.h (strcasestr): New declaration.
70202
70203 2007-01-27  Bruno Haible  <bruno@clisp.org>
70204
70205         * lib/string_.h: Use 'extern'.
70206
70207 2007-01-27  Jim Meyering  <jim@meyering.net>
70208
70209         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
70210         of set-but-not-used local, "q".
70211
70212         * lib/mempcpy.c: Include <config.h> before <string.h>.
70213         This fixes a compilation error on HP-UX, due to the system's
70214         "restrict"-using mempcpy prototype.
70215
70216 2007-01-26  Bruno Haible  <bruno@clisp.org>
70217
70218         Small optimization.
70219         * lib/javacomp.c: Include c-strstr.h.
70220          (is_envjavac_gcj): Use c_strstr instead of strstr.
70221         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
70222
70223 2007-01-26  Bruno Haible  <bruno@clisp.org>
70224
70225         * MODULES.html.sh (Unicode string functions): Add the new modules.
70226
70227         * modules/uniconv/u32-strconv-to-locale: New file.
70228         * lib/uniconv/u32-strconv-to-locale.c: New file.
70229
70230         * modules/uniconv/u16-strconv-to-locale: New file.
70231         * lib/uniconv/u16-strconv-to-locale.c: New file.
70232
70233         * modules/uniconv/u8-strconv-to-locale: New file.
70234         * lib/uniconv/u8-strconv-to-locale.c: New file.
70235
70236         * modules/uniconv/u32-strconv-from-locale: New file.
70237         * lib/uniconv/u32-strconv-from-locale.c: New file.
70238
70239         * modules/uniconv/u16-strconv-from-locale: New file.
70240         * lib/uniconv/u16-strconv-from-locale.c: New file.
70241
70242         * modules/uniconv/u8-strconv-from-locale: New file.
70243         * lib/uniconv/u8-strconv-from-locale.c: New file.
70244
70245         * modules/uniconv/u32-strconv-to-enc: New file.
70246         * lib/uniconv/u32-strconv-to-enc.c: New file.
70247         * modules/uniconv/u32-strconv-to-enc-tests: New file.
70248         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
70249
70250         * modules/uniconv/u16-strconv-to-enc: New file.
70251         * lib/uniconv/u16-strconv-to-enc.c: New file.
70252         * lib/uniconv/u-strconv-to-enc.h: New file.
70253         * modules/uniconv/u16-strconv-to-enc-tests: New file.
70254         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
70255
70256         * modules/uniconv/u8-strconv-to-enc: New file.
70257         * lib/uniconv/u8-strconv-to-enc.c: New file.
70258         * modules/uniconv/u8-strconv-to-enc-tests: New file.
70259         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
70260
70261         * modules/uniconv/u32-strconv-from-enc: New file.
70262         * lib/uniconv/u32-strconv-from-enc.c: New file.
70263         * modules/uniconv/u32-strconv-from-enc-tests: New file.
70264         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
70265
70266         * modules/uniconv/u16-strconv-from-enc: New file.
70267         * lib/uniconv/u16-strconv-from-enc.c: New file.
70268         * modules/uniconv/u16-strconv-from-enc-tests: New file.
70269         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
70270
70271         * modules/uniconv/u8-strconv-from-enc: New file.
70272         * lib/uniconv/u8-strconv-from-enc.c: New file.
70273         * lib/uniconv/u-strconv-from-enc.h: New file.
70274         * modules/uniconv/u8-strconv-from-enc-tests: New file.
70275         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
70276
70277         * modules/uniconv/u32-conv-from-enc: New file.
70278         * lib/uniconv/u32-conv-from-enc.c: New file.
70279         * modules/uniconv/u32-conv-from-enc-tests: New file.
70280         * tests/uniconv/test-u32-conv-from-enc.c: New file.
70281
70282         * modules/uniconv/u16-conv-from-enc: New file.
70283         * lib/uniconv/u16-conv-from-enc.c: New file.
70284         * lib/uniconv/u-conv-from-enc.h: New file.
70285         * modules/uniconv/u16-conv-from-enc-tests: New file.
70286         * tests/uniconv/test-u16-conv-from-enc.c: New file.
70287
70288         * modules/uniconv/u8-conv-from-enc: New file.
70289         * lib/uniconv/u8-conv-from-enc.c: New file.
70290         * modules/uniconv/u8-conv-from-enc-tests: New file.
70291         * tests/uniconv/test-u8-conv-from-enc.c: New file.
70292
70293         * modules/uniconv/base: New file.
70294         * lib/uniconv.h: New file.
70295
70296 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
70297
70298         * doc/gnulib-tool.texi (Initial import): Update to match current
70299         behavior with strdup module.
70300         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
70301         * lib/memmem.h: Remove; all uses removed.  This is now done
70302         by <string.h>.
70303         * lib/mempcpy.h: Likewise.
70304         * lib/memrchr.h: Likewise.
70305         * lib/stpcpy.h: Likewise.
70306         * lib/stpncpy.h: Likewise.
70307         * lib/strcase.h: Likewise.
70308         * lib/strchrnul.h: Likewise.
70309         * lib/strdup.h: Likewise.
70310         * lib/strndup.h: Likewise.
70311         * lib/strnlen.h: Likewise.
70312         * lib/strpbrk.h: Likewise.
70313         * lib/strsep.h: Likewise.
70314         * lib/strstr.h: Likewise.
70315         * lib/strtok_r.h: Likewise.
70316         * lib/string_.h: New file.
70317         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
70318         Rely on <string.h> instead.
70319         * lib/canon-host.c: Likewise.
70320         * lib/chdir-long.c: Likewise.
70321         * lib/concatpath.c: Likewise.
70322         * lib/exclude.c: Likewise.
70323         * lib/fchdir.c: Likewise.
70324         * lib/getaddrinfo.c: Likewise.
70325         * lib/getcwd.c: Likewise.
70326         * lib/getsubopt.c: Likewise.
70327         * lib/glob.c: Likewise.
70328         * lib/hard-locale.c: Likewise.
70329         * lib/iconvme.c: Likewise.
70330         * lib/javacomp.c: Likewise.
70331         * lib/mempcpy.c: Likewise.
70332         * lib/memrchr.c: Likewise.
70333         * lib/regex_internal.h: Likewise.
70334         * lib/stpncpy.c: Likewise.
70335         * lib/strcasecmp.c: Likewise.
70336         * lib/strchrnul.c: Likewise.
70337         * lib/strdup.c: Likewise.
70338         * lib/striconv.c: Likewise.
70339         * lib/striconveh.c: Likewise.
70340         * lib/striconveha.c: Likewise.
70341         * lib/strncasecmp.c: Likewise.
70342         * lib/strndup.c: Likewise.
70343         * lib/strnlen.c: Likewise.
70344         * lib/strsep.c: Likewise.
70345         * lib/strstr.c: Likewise.
70346         * lib/strtok_r.c: Likewise.
70347         * lib/userspec.c: Likewise.
70348         * lib/w32spawn.h: Likewise.
70349         * lib/xstrndup.c: Likewise.
70350         * lib/mountlist.c (strstr): Remove decl.
70351         * m4/string_h.m4: New file.
70352         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
70353         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
70354         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
70355         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
70356         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
70357         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
70358         Set REPLACE_STRCASECMP if necessary.
70359         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
70360         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
70361         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
70362         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
70363         HAVE_DECL_STRDUP if necessary.
70364         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
70365         since gl_FUNC_STRNDUP does that now.
70366         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
70367         Check for decl here...
70368         (gl_PREREQ_STRNLEN): ... not here.
70369         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
70370         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
70371         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
70372         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
70373         necessary.
70374         * modules/string: New file.
70375         * modules/memmem (Files): Remove special-purpose include file.
70376         (Depends-on): Add string.
70377         (Include): Include <string.h>, not the removed file.
70378         * modules/mempcpy: Likewise.
70379         * modules/memrchr: Likewise.
70380         * modules/stpcpy: Likewise.
70381         * modules/stpncpy: Likewise.
70382         * modules/strcase: Likewise.
70383         * modules/strchrnul: Likewise.
70384         * modules/strdup: Likewise.
70385         * modules/strndup: Likewise.
70386         * modules/strnlen: Likewise.
70387         * modules/strpbrk: Likewise.
70388         * modules/strsep: Likewise.
70389         * modules/strstr: Likewise.
70390         * modules/strtok_r: Likewise.
70391         * tests/test-dirname.c: Don't include "strdup.h", since
70392         <string.h> now suffices.
70393         * tests/test-memmem.c: Don't include "memmem.h", since
70394         <string.h> now suffices.
70395
70396 2007-01-25  Bruno Haible  <bruno@clisp.org>
70397
70398         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
70399         *resultp is 0.
70400
70401         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
70402         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
70403         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
70404         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
70405
70406         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
70407         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
70408         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
70409         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
70410         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
70411         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
70412
70413 2007-01-24  Bruno Haible  <bruno@clisp.org>
70414
70415         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
70416         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
70417         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
70418         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
70419         gl_FUNC_FTS_CORE.
70420         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
70421         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
70422         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
70423         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
70424         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
70425         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
70426         gl_FUNC_FCHOWNAT.
70427         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
70428         gl_FUNC_STRFTIME.
70429         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
70430         Reported by Ralf Wildenhues.
70431
70432 2007-01-24  Bruno Haible  <bruno@clisp.org>
70433
70434         Drop AC_REQUIRE calls that are redundant with the module dependencies.
70435         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
70436         gl_GETADDRINFO.
70437         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
70438         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
70439         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
70440
70441 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
70442
70443         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
70444         Don't use 'exit'; just return from 'main'.
70445         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
70446
70447         * lib/fnmatch_.h: Readjust white space and comments to match
70448         glibc, to avoid spurious diffs.
70449
70450 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
70451
70452         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
70453         2004-12-01 change by Jakub Jelinek, since this code won't compile
70454         if !LIBC.  Problem reported by Bob Proulx.
70455
70456 2007-01-23  Bruno Haible  <bruno@clisp.org>
70457
70458         * lib/striconveh.c: Include c-strcaseeq.h.
70459         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
70460         * modules/striconveh (Depends-on): Add c-strcaseeq.
70461
70462 2007-01-23  Bruno Haible  <bruno@clisp.org>
70463
70464         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
70465
70466         * modules/c-strcaseeq: New file.
70467         * lib/c-strcaseeq.h: New file.
70468
70469         * modules/streq: New file.
70470         * lib/streq.h: New file.
70471
70472 2007-01-23  Bruno Haible  <bruno@clisp.org>
70473
70474         * modules/striconveha-tests: New file.
70475         * tests/test-striconveha.c: New file.
70476
70477         * lib/striconveha.h: Include <stdbool.h>.
70478         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
70479         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
70480         (mem_iconveha_notranslit): Renamed from mem_iconveha.
70481         (mem_iconveha): New function.
70482         (str_iconveha_notranslit): Renamed from str_iconveha.
70483         (str_iconveha): New function.
70484         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
70485         c-strcase.
70486
70487 2007-01-23  Bruno Haible  <bruno@clisp.org>
70488
70489         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
70490         encodings without forgiving before trying any encoding with handler.
70491         (str_iconveha): Try all encodings without forgiving before trying any
70492         encoding with handler.
70493
70494 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
70495
70496         Import the following changes from libc.
70497
70498         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
70499
70500         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
70501
70502         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
70503
70504         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
70505         normal_bracket label.
70506
70507         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
70508
70509         [BZ #361]
70510         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
70511         to normal_bracket after fetching the next character.
70512
70513 2007-01-22  Bruno Haible  <bruno@clisp.org>
70514
70515         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
70516         argument.
70517         * lib/striconveh.c (iconv_carefully_1): New function.
70518         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
70519         argument.
70520         (str_cd_iconveh): Update.
70521         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
70522         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
70523         * tests/test-striconveh.c (MAGIC): New macro.
70524         (new_offsets): New function.
70525         (main): Test call with and without offsets.
70526
70527 2007-01-22  Bruno Haible  <bruno@clisp.org>
70528
70529         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
70530         * modules/sys_select (Makefile.am): Likewise.
70531         * modules/sys_socket (Makefile.am): Likewise.
70532         * modules/sys_time (Makefile.am): Likewise.
70533
70534 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
70535
70536         * modules/gettimeofday (License): Change from GPL to LGPL, since
70537         gettimeofday is a library function.
70538
70539 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70540
70541         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
70542
70543 2007-01-21  Bruno Haible  <bruno@clisp.org>
70544
70545         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
70546
70547 2007-01-21  Bruno Haible  <bruno@clisp.org>
70548
70549         * modules/striconveha: New file.
70550         * lib/striconveha.h: New file.
70551         * lib/striconveha.c: New file.
70552         * MODULES.html.sh (Internationalization functions): Add striconveha.
70553         * lib/striconv.c (str_iconv): Optimize the case of an empty input
70554         string.
70555         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
70556
70557 2007-01-21  Bruno Haible  <bruno@clisp.org>
70558
70559         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
70560         * lib/striconveh.c (str_iconveh): Likewise.
70561
70562 2007-01-21  Bruno Haible  <bruno@clisp.org>
70563
70564         * lib/striconveh.h (mem_iconveh): New declaration.
70565         * lib/striconveh.c (mem_iconveh): New function.
70566         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
70567
70568 2007-01-21  Bruno Haible  <bruno@clisp.org>
70569
70570         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
70571
70572         * lib/striconveh.h (mem_cd_iconveh): Change specification.
70573         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
70574         original result buffer.
70575         (str_cd_iconveh): Update.
70576         * tests/test-striconveh.c (main): Update.
70577
70578         * lib/striconv.h (mem_cd_iconv): Change specification.
70579         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
70580         result buffer.
70581         (str_cd_iconv): Update.
70582         * tests/test-striconv.c (main): Update.
70583
70584 2007-01-21  Bruno Haible  <bruno@clisp.org>
70585
70586         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
70587
70588 2007-01-20  Jim Meyering  <jim@meyering.net>
70589
70590         * lib/userspec.c (parse_with_separator): If a user or group string
70591         starts with "+", skip the corresponding name-to-ID look-up, since
70592         such a look-up must fail: user and group names may not include "+".
70593
70594 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
70595
70596         * lib/poll.c: Include sys/time.h and time.h unconditionally,
70597         since we now assume the sys_time module.
70598         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
70599         check for sys/time.h; no longer needed.
70600         * modules/poll (Depends-on): Depend on sys_time.
70601
70602 2007-01-18  Bruno Haible  <bruno@clisp.org>
70603
70604         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
70605         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
70606
70607         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
70608         gettimeofday.
70609
70610         * tests/test-gettimeofday.c: Include <time.h>.
70611         (dummy): Remove variable.
70612
70613         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
70614         gl_HEADER_SYS_TIME_H.
70615         (gl_HEADER_SYS_TIME_H): New macro.
70616
70617         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
70618         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70619         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
70620         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
70621         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70622         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
70623         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
70624         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70625         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
70626         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
70627         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70628
70629         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
70630         last change; it caused a compilation error when cross-compiling to
70631         Cygwin.
70632
70633 2007-01-18  Jim Meyering  <jim@meyering.net>
70634
70635         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
70636         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
70637         than the race-prone "test -d sys || mkdir sys".
70638         (configure.ac): Use AC_PROG_MKDIR_P.
70639         * modules/sys_select: Likewise.
70640         * modules/sys_socket: Likewise.
70641         * modules/sys_time: Likewise.
70642
70643 2007-01-18  Eric Blake  <ebb9@byu.net>
70644
70645         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
70646         replace gettimeofday.
70647         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
70648         name, to avoid infinite recursion.
70649
70650 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
70651
70652         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
70653         module sys_time.
70654         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
70655         assume timespec.h defines struct timeval.
70656         * lib/settime.c: Likewise.
70657         * lib/utimens.c: Likewise.
70658         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
70659         since we now assume the gettimeofday module.
70660         * lib/tempname.c (__gen_tempname): Likewise.
70661         * lib/gettimeofday.h: Remove.
70662         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
70663         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
70664         Include <time.h>, for 'time()'.
70665         (localtime_buffer_addr): Also use this workaround if
70666         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
70667         to simplify the uses.  All uses changed.
70668         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
70669         that #undef is inside {}, and 'const' follows type name consistently.
70670         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
70671         (gettimeofday): Do not use the maximum possible value for
70672         tv->tv_usec, since that might break usages other than ls.c.
70673         Instead, we'll leave ls.c alone.  This undoes today's patch
70674         by Bruno.  Add a compile-time warning for 1s-clock resolution;
70675         we've never observed the problem but might as well keep the
70676         canary.
70677         * lib/nanosleep.c: Include timespec.h first, for interface check.
70678         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
70679         now assume the sys_time module.
70680         * lib/tempname.c: Likewise.
70681         * lib/timespec.h: Likewise.
70682         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
70683         needed.
70684         * lib/strftime.c: Likewise.
70685         * lib/timespec.h: Likewise.
70686         * lib/posixtm.c: Include posixtm.h first, for interface check.
70687         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
70688         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
70689         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
70690         * lib/sys_time_.h: New file.
70691         * lib/timespec.h (struct timespec): Use long int, not long.
70692         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
70693         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
70694         Remove obsolescent call to AC_HEADER_TIME.
70695         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
70696         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
70697         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
70698         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
70699         Likewise.
70700         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
70701         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
70702         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
70703         into the sys_time module.  Check for gettimeofday just once.
70704         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
70705         for gettimeofday signature to just check the signature.  Merely
70706         compile it, since linking doesn't test signature.  Improve test for
70707         whether gettimeofday.o is actually needed.
70708         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
70709         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
70710         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
70711         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70712         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
70713         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
70714         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
70715         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
70716         than worrying about sys/time.h.
70717         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
70718         Don't bother worrying about TIME_WITH_SYS_TIME.
70719         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
70720         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
70721         * m4/sys_time_h.m4: New file.
70722         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
70723         Don't include sys/time.h.  Return from main rather than exiting.
70724         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
70725         all uses changed.
70726         * modules/gethrxtime (Depends-on): Add sys_time.
70727         * modules/gettime (Depends-on): Likewise.
70728         * modules/gettimeofday (Depends-on): Likewise.
70729         * modules/nanosleep (Depends-on): Likewise.
70730         * modules/settime (Depends-on): Likewise.
70731         * modules/tempname (Depends-on): Likewise.
70732         * modules/utimens (Depends-on): Likewise.
70733         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
70734         (Include): Change back to <sys/time.h>.
70735         (Maintainer): Add self.
70736         * modules/sys_time: New file.
70737         * modules/tempname (Depends-on): Add gettimeofday.
70738         * tests/test-gettimeofday.c: Include <sys/time.h>
70739         rather than gettimeofday.h.
70740
70741 2007-01-17  Bruno Haible  <bruno@clisp.org>
70742
70743         * gnulib-tool (func_get_license): Revert last patch. Instead, let
70744         the license default to GPL.
70745         (func_create_testdir): Don't complain if a module is LGPL and its
70746         tests module depends on GPLed modules.
70747
70748 2007-01-17  Bruno Haible  <bruno@clisp.org>
70749
70750         * lib/gettimeofday.c (gettimeofday): Add code for the case
70751         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
70752         maximum possible value for tv->tv_usec, rather than the minimum one.
70753
70754 2005-10-08  Martin Lambers  <marlam@marlam.de>
70755 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
70756 2007-01-16  Bruno Haible  <bruno@clisp.org>
70757
70758         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
70759         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
70760         gl_FUNC_GETTIMEOFDAY.
70761         (Include): Add gettimeofday.h.
70762         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
70763         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
70764         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
70765         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
70766         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
70767         * lib/gettimeofday.h: New file.
70768         * lib/gettimeofday.c: Include <sys/timeb.h>.
70769         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
70770         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70771         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
70772         fall back on time().
70773
70774         * tests/test-gettimeofday.c: New file.
70775         * modules/gettimeofday-tests: New file.
70776
70777 2007-01-16  Eric Blake  <ebb9@byu.net>
70778
70779         * modules/fnmatch (Depends-on): Depend on wchar.
70780         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
70781         * m4/fnmatch.m4: Likewise.
70782         * modules/mbchar (Makefile.am): Assume <wchar.h>.
70783         * m4/mbchar.m4: Likewise.
70784         * modules/mbswidth (Depends-on): Depend on wchar.
70785         * lib/mbswidth.c: Assume <wchar.h>.
70786         * m4/mbswidth.m4: Likewise.
70787         * modules/quotearg (Depends-on): Depend on wchar.
70788         * lib/quotearg.c: Assume <wchar.h>.
70789         * m4/quotearg.m4: Likewise.
70790         * modules/regex (Depends-on): Depend on wchar.
70791         * lib/regex_internal.h: Assume <wchar.h>.
70792         * m4/regex.m4: Likewise.
70793         * modules/stdint (Depends-on): Depend on wchar.
70794         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
70795         * m4/stdint.m4: Likewise.
70796         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
70797         * modules/strftime (Depends-on): Depend on wchar.
70798         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
70799         * modules/strtol (Depends-on): Depend on wchar.
70800         * lib/strtol.c: Assume <wchar.h>.
70801         * modules/wcwidth (Depends-on): Depend on wchar.
70802         * lib/wcwidth.h: Assume <wchar.h>.
70803         * m4/wcwidth.m4: Likewise.
70804
70805 2007-01-16  Bruno Haible  <bruno@clisp.org>
70806
70807         * modules/csharpexec-script: New, created from...
70808         * modules/csharpexec: ... this.
70809
70810 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
70811
70812         * modules/javaexec-script: New, created from...
70813         * modules/javaexec: ... this.
70814
70815 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70816
70817         * modules/poll (Dependencies): Add sys_select.
70818
70819 2007-01-15  Jim Meyering  <jim@meyering.net>
70820
70821         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
70822         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
70823         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
70824         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
70825
70826 2007-01-15  Bruno Haible  <bruno@clisp.org>
70827
70828         * modules/striconveh: New file.
70829         * lib/striconveh.h: New file.
70830         * lib/striconveh.c: New file.
70831         * MODULES.html.sh (Internationalization functions): Add striconveh.
70832
70833         * modules/striconveh-tests: New file.
70834         * tests/test-striconveh.c: New file.
70835
70836 2007-01-15  Bruno Haible  <bruno@clisp.org>
70837
70838         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
70839         not from GNU libiconv or GNU libc.
70840
70841 2007-01-15  Bruno Haible  <bruno@clisp.org>
70842
70843         * doc/gnulib-intro.texi (Copyright): Explain the different license
70844         terms for module descriptions, autoconf macros, tests, documentation.
70845
70846 2007-01-14  Bruno Haible  <bruno@clisp.org>
70847
70848         * modules/striconv-tests: New file.
70849         * tests/test-striconv.c: New file.
70850
70851 2007-01-14  Bruno Haible  <bruno@clisp.org>
70852
70853         * modules/iconv-tests: New file.
70854         * tests/test-iconv.c: New file.
70855
70856 2007-01-14  Bruno Haible  <bruno@clisp.org>
70857
70858         * gnulib-tool (func_get_license): For test modules, use the license of
70859         the main module.
70860
70861 2007-01-14  Bruno Haible  <bruno@clisp.org>
70862
70863         * modules/iconv (Include): Clarify that <iconv.h> can only be included
70864         if iconv is found to exist.
70865
70866 2007-01-14  Bruno Haible  <bruno@clisp.org>
70867
70868         * modules/c-ctype-tests: New file.
70869         * tests/test-c-ctype.c: New file.
70870
70871 2007-01-14  Bruno Haible  <bruno@clisp.org>
70872
70873         * modules/binary-io-tests: New file.
70874         * tests/test-binary-io.sh: New file.
70875         * tests/test-binary-io.c: New file.
70876
70877 2007-01-14  Bruno Haible  <bruno@clisp.org>
70878
70879         * modules/array-oset-tests: New file.
70880         * tests/test-array_oset.c: New file.
70881
70882 2007-01-14  Bruno Haible  <bruno@clisp.org>
70883
70884         * modules/array-list-tests: New file.
70885         * tests/test-array_list.c: New file.
70886
70887 2007-01-14  Bruno Haible  <bruno@clisp.org>
70888
70889         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
70890         and make.
70891         Reported by Simon Josefsson in
70892         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
70893
70894 2007-01-14  Bruno Haible  <bruno@clisp.org>
70895
70896         * modules/allocsa-tests: New file.
70897         * tests/test-allocsa.c: New file.
70898
70899 2007-01-14  Bruno Haible  <bruno@clisp.org>
70900
70901         * modules/fchdir (Depends-on): Add absolute-header.
70902         * modules/unistd (Depends-on): Likewise.
70903
70904 2006-12-30  Bruno Haible  <bruno@clisp.org>
70905
70906         * modules/fchdir: New file.
70907         * modules/unistd (Files): Add lib/unistd_.h.
70908         (Makefile.am): Generate unistd.h from unistd_.h.
70909         * lib/fchdir.c: New file.
70910         * lib/dirent_.h: New file.
70911         * lib/unistd_.h: New file.
70912         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
70913         * m4/fchdir.m4: New file.
70914         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
70915         (gl_HEADER_UNISTD): Invoke it.
70916         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
70917         function.
70918         * lib/backupfile.c (opendir, closedir): Undefine.
70919         * lib/chown.c (open, close): Undefine.
70920         * lib/clean-temp.c (open, close): Undefine.
70921         * lib/copy-file.c (open, close): Undefine.
70922         * lib/execute.c (open, close): Undefine.
70923         * lib/fsusage.c (open, close): Undefine.
70924         * lib/gc-gnulib.c (open, close): Undefine.
70925         * lib/getcwd.c (opendir, closedir): Undefine.
70926         * lib/glob.c (opendir, closedir): Undefine.
70927         * lib/javacomp.c (open, close): Undefine.
70928         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
70929         * lib/openat-proc.c (open, close): Undefine.
70930         * lib/pagealign_alloc.c (open, close): Undefine.
70931         * lib/pipe.c (open, close): Undefine.
70932         * lib/progreloc.c (open, close): Undefine.
70933         * lib/savedir.c (opendir, closedir): Undefine.
70934         * lib/utime.c (open, close): Undefine.
70935         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
70936
70937 2007-01-10  Bruno Haible  <bruno@clisp.org>
70938
70939         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
70940
70941 2007-01-12  Eric Blake  <ebb9@byu.net>
70942
70943         Provide a robust <wchar.h>.  Further simplifications are now
70944         possible in other modules, but not included here.
70945         * modules/wchar: New module.
70946         * m4/wchar.m4: New file.
70947         * lib/wchar_.h: Likewise.
70948         * modules/mbchar (Depends-on): Depend on wchar, as the first use
70949         of the new module.
70950         * MODULES.html.sh (Extended multibyte and wide character utilities):
70951         New section.
70952
70953 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
70954
70955         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
70956         to a reasonable default for memory allocation.
70957         (xreadlink): Don't allocate a huge buffer, to work around a buggy
70958         file system that reports garbage st_size values for symlinks.
70959         Problem reported by Liyang Hu.
70960
70961 2007-01-11  Simon Josefsson  <simon@josefsson.org>
70962
70963         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
70964         Emacs .#* auto-save files).
70965
70966 2007-01-11  Bruno Haible  <bruno@clisp.org>
70967
70968         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
70969         directory.
70970
70971 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
70972
70973         Use @...@ consistently in lib/wctype_.h.
70974         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
70975         on it being set to 1 or 0.
70976         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
70977         go back to AC_SUBSTing it.
70978         * modules/wctype (Makefile.am): Undo previous change.
70979
70980 2007-01-10  Eric Blake  <ebb9@byu.net>
70981
70982         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
70983         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
70984         * modules/wctype (Makefile.am): Likewise.
70985         Reported by Chris McGuire.
70986
70987 2007-01-10  Jim Meyering  <jim@meyering.net>
70988
70989         fts.c: a small readability/maintainability improvement
70990         * lib/fts.c (fts_read): Make this code slightly more readable and
70991         maintainable by hoisting the "sp->fts_cur = p" assignments to
70992         immediately follow the statements that set P.  Derived from
70993         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
70994
70995 2007-01-10  Eric Blake  <ebb9@byu.net>
70996
70997         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
70998         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
70999         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
71000         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
71001         Reported by Chris McGuire.
71002
71003 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71004
71005         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
71006         in sed script.
71007
71008 2007-01-09  Bruno Haible  <bruno@clisp.org>
71009
71010         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
71011         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
71012         variables.
71013         (func_module): Use them.
71014
71015 2007-01-09  Bruno Haible  <bruno@clisp.org>
71016
71017         * modules/unistr/base: New file.
71018         * lib/unistr.h: New file.
71019
71020         * modules/unistr/u8-to-u16: New file.
71021         * lib/unistr/u8-to-u16.c: New file.
71022
71023         * modules/unistr/u8-to-u32: New file.
71024         * lib/unistr/u8-to-u32.c: New file.
71025
71026         * modules/unistr/u16-to-u8: New file.
71027         * lib/unistr/u16-to-u8.c: New file.
71028
71029         * modules/unistr/u16-to-u32: New file.
71030         * lib/unistr/u16-to-u32.c: New file.
71031
71032         * modules/unistr/u32-to-u8: New file.
71033         * lib/unistr/u32-to-u8.c: New file.
71034
71035         * modules/unistr/u32-to-u16: New file.
71036         * lib/unistr/u32-to-u16.c: New file.
71037
71038         * modules/unistr/u8-check: New file.
71039         * modules/unistr/u16-check: New file.
71040         * modules/unistr/u32-check: New file.
71041         * lib/unistr/u8-check.c: New file.
71042         * lib/unistr/u16-check.c: New file.
71043         * lib/unistr/u32-check.c: New file.
71044
71045         * modules/unistr/u8-chr: New file.
71046         * modules/unistr/u16-chr: New file.
71047         * modules/unistr/u32-chr: New file.
71048         * lib/unistr/u8-chr.c: New file.
71049         * lib/unistr/u16-chr.c: New file.
71050         * lib/unistr/u32-chr.c: New file.
71051
71052         * modules/unistr/u8-cmp: New file.
71053         * modules/unistr/u16-cmp: New file.
71054         * modules/unistr/u32-cmp: New file.
71055         * lib/unistr/u8-cmp.c: New file.
71056         * lib/unistr/u16-cmp.c: New file.
71057         * lib/unistr/u32-cmp.c: New file.
71058
71059         * modules/unistr/u8-cpy: New file.
71060         * modules/unistr/u16-cpy: New file.
71061         * modules/unistr/u32-cpy: New file.
71062         * lib/unistr/u8-cpy.c: New file.
71063         * lib/unistr/u16-cpy.c: New file.
71064         * lib/unistr/u32-cpy.c: New file.
71065         * lib/unistr/u-cpy.h: New file.
71066
71067         * modules/unistr/u8-cpy-alloc: New file.
71068         * modules/unistr/u16-cpy-alloc: New file.
71069         * modules/unistr/u32-cpy-alloc: New file.
71070         * lib/unistr/u8-cpy-alloc.c: New file.
71071         * lib/unistr/u16-cpy-alloc.c: New file.
71072         * lib/unistr/u32-cpy-alloc.c: New file.
71073         * lib/unistr/u-cpy-alloc.h: New file.
71074
71075         * modules/unistr/u8-endswith: New file.
71076         * modules/unistr/u16-endswith: New file.
71077         * modules/unistr/u32-endswith: New file.
71078         * lib/unistr/u8-endswith.c: New file.
71079         * lib/unistr/u16-endswith.c: New file.
71080         * lib/unistr/u32-endswith.c: New file.
71081         * lib/unistr/u-endswith.h: New file.
71082
71083         * modules/unistr/u8-mblen: New file.
71084         * modules/unistr/u16-mblen: New file.
71085         * modules/unistr/u32-mblen: New file.
71086         * lib/unistr/u8-mblen.c: New file.
71087         * lib/unistr/u16-mblen.c: New file.
71088         * lib/unistr/u32-mblen.c: New file.
71089
71090         * modules/unistr/u8-mbtouc: New file.
71091         * modules/unistr/u16-mbtouc: New file.
71092         * modules/unistr/u32-mbtouc: New file.
71093         * lib/unistr/u8-mbtouc.c: New file.
71094         * lib/unistr/u16-mbtouc.c: New file.
71095         * lib/unistr/u32-mbtouc.c: New file.
71096
71097         * modules/unistr/u8-mbtouc-safe: New file.
71098         * modules/unistr/u16-mbtouc-safe: New file.
71099         * modules/unistr/u32-mbtouc-safe: New file.
71100         * lib/unistr/u8-mbtouc-safe.c: New file.
71101         * lib/unistr/u16-mbtouc-safe.c: New file.
71102         * lib/unistr/u32-mbtouc-safe.c: New file.
71103
71104         * modules/unistr/u8-move: New file.
71105         * modules/unistr/u16-move: New file.
71106         * modules/unistr/u32-move: New file.
71107         * lib/unistr/u8-move.c: New file.
71108         * lib/unistr/u16-move.c: New file.
71109         * lib/unistr/u32-move.c: New file.
71110         * lib/unistr/u-move.h: New file.
71111
71112         * modules/unistr/u8-next: New file.
71113         * modules/unistr/u16-next: New file.
71114         * modules/unistr/u32-next: New file.
71115         * lib/unistr/u8-next.c: New file.
71116         * lib/unistr/u16-next.c: New file.
71117         * lib/unistr/u32-next.c: New file.
71118
71119         * modules/unistr/u8-prev: New file.
71120         * modules/unistr/u16-prev: New file.
71121         * modules/unistr/u32-prev: New file.
71122         * lib/unistr/u8-prev.c: New file.
71123         * lib/unistr/u16-prev.c: New file.
71124         * lib/unistr/u32-prev.c: New file.
71125
71126         * modules/unistr/u8-set: New file.
71127         * modules/unistr/u16-set: New file.
71128         * modules/unistr/u32-set: New file.
71129         * lib/unistr/u8-set.c: New file.
71130         * lib/unistr/u16-set.c: New file.
71131         * lib/unistr/u32-set.c: New file.
71132         * lib/unistr/u-set.h: New file.
71133
71134         * modules/unistr/u8-startswith: New file.
71135         * modules/unistr/u16-startswith: New file.
71136         * modules/unistr/u32-startswith: New file.
71137         * lib/unistr/u8-startswith.c: New file.
71138         * lib/unistr/u16-startswith.c: New file.
71139         * lib/unistr/u32-startswith.c: New file.
71140         * lib/unistr/u-startswith.h: New file.
71141
71142         * modules/unistr/u8-stpcpy: New file.
71143         * modules/unistr/u16-stpcpy: New file.
71144         * modules/unistr/u32-stpcpy: New file.
71145         * lib/unistr/u8-stpcpy.c: New file.
71146         * lib/unistr/u16-stpcpy.c: New file.
71147         * lib/unistr/u32-stpcpy.c: New file.
71148         * lib/unistr/u-stpcpy.h: New file.
71149
71150         * modules/unistr/u8-stpncpy: New file.
71151         * modules/unistr/u16-stpncpy: New file.
71152         * modules/unistr/u32-stpncpy: New file.
71153         * lib/unistr/u8-stpncpy.c: New file.
71154         * lib/unistr/u16-stpncpy.c: New file.
71155         * lib/unistr/u32-stpncpy.c: New file.
71156         * lib/unistr/u-stpncpy.h: New file.
71157
71158         * modules/unistr/u8-strcat: New file.
71159         * modules/unistr/u16-strcat: New file.
71160         * modules/unistr/u32-strcat: New file.
71161         * lib/unistr/u8-strcat.c: New file.
71162         * lib/unistr/u16-strcat.c: New file.
71163         * lib/unistr/u32-strcat.c: New file.
71164         * lib/unistr/u-strcat.h: New file.
71165
71166         * modules/unistr/u8-strchr: New file.
71167         * modules/unistr/u16-strchr: New file.
71168         * modules/unistr/u32-strchr: New file.
71169         * lib/unistr/u8-strchr.c: New file.
71170         * lib/unistr/u16-strchr.c: New file.
71171         * lib/unistr/u32-strchr.c: New file.
71172
71173         * modules/unistr/u8-strcmp: New file.
71174         * modules/unistr/u16-strcmp: New file.
71175         * modules/unistr/u32-strcmp: New file.
71176         * lib/unistr/u8-strcmp.c: New file.
71177         * lib/unistr/u16-strcmp.c: New file.
71178         * lib/unistr/u32-strcmp.c: New file.
71179
71180         * modules/unistr/u8-strcpy: New file.
71181         * modules/unistr/u16-strcpy: New file.
71182         * modules/unistr/u32-strcpy: New file.
71183         * lib/unistr/u8-strcpy.c: New file.
71184         * lib/unistr/u16-strcpy.c: New file.
71185         * lib/unistr/u32-strcpy.c: New file.
71186         * lib/unistr/u-strcpy.h: New file.
71187
71188         * modules/unistr/u8-strcspn: New file.
71189         * modules/unistr/u16-strcspn: New file.
71190         * modules/unistr/u32-strcspn: New file.
71191         * lib/unistr/u8-strcspn.c: New file.
71192         * lib/unistr/u16-strcspn.c: New file.
71193         * lib/unistr/u32-strcspn.c: New file.
71194         * lib/unistr/u-strcspn.h: New file.
71195
71196         * modules/unistr/u8-strdup: New file.
71197         * modules/unistr/u16-strdup: New file.
71198         * modules/unistr/u32-strdup: New file.
71199         * lib/unistr/u8-strdup.c: New file.
71200         * lib/unistr/u16-strdup.c: New file.
71201         * lib/unistr/u32-strdup.c: New file.
71202         * lib/unistr/u-strdup.h: New file.
71203
71204         * modules/unistr/u8-strlen: New file.
71205         * modules/unistr/u16-strlen: New file.
71206         * modules/unistr/u32-strlen: New file.
71207         * lib/unistr/u8-strlen.c: New file.
71208         * lib/unistr/u16-strlen.c: New file.
71209         * lib/unistr/u32-strlen.c: New file.
71210         * lib/unistr/u-strlen.h: New file.
71211
71212         * modules/unistr/u8-strmblen: New file.
71213         * modules/unistr/u16-strmblen: New file.
71214         * modules/unistr/u32-strmblen: New file.
71215         * lib/unistr/u8-strmblen.c: New file.
71216         * lib/unistr/u16-strmblen.c: New file.
71217         * lib/unistr/u32-strmblen.c: New file.
71218
71219         * modules/unistr/u8-strmbtouc: New file.
71220         * modules/unistr/u16-strmbtouc: New file.
71221         * modules/unistr/u32-strmbtouc: New file.
71222         * lib/unistr/u8-strmbtouc.c: New file.
71223         * lib/unistr/u16-strmbtouc.c: New file.
71224         * lib/unistr/u32-strmbtouc.c: New file.
71225
71226         * modules/unistr/u8-strncat: New file.
71227         * modules/unistr/u16-strncat: New file.
71228         * modules/unistr/u32-strncat: New file.
71229         * lib/unistr/u8-strncat.c: New file.
71230         * lib/unistr/u16-strncat.c: New file.
71231         * lib/unistr/u32-strncat.c: New file.
71232         * lib/unistr/u-strncat.h: New file.
71233
71234         * modules/unistr/u8-strncmp: New file.
71235         * modules/unistr/u16-strncmp: New file.
71236         * modules/unistr/u32-strncmp: New file.
71237         * lib/unistr/u8-strncmp.c: New file.
71238         * lib/unistr/u16-strncmp.c: New file.
71239         * lib/unistr/u32-strncmp.c: New file.
71240
71241         * modules/unistr/u8-strncpy: New file.
71242         * modules/unistr/u16-strncpy: New file.
71243         * modules/unistr/u32-strncpy: New file.
71244         * lib/unistr/u8-strncpy.c: New file.
71245         * lib/unistr/u16-strncpy.c: New file.
71246         * lib/unistr/u32-strncpy.c: New file.
71247         * lib/unistr/u-strncpy.h: New file.
71248
71249         * modules/unistr/u8-strnlen: New file.
71250         * modules/unistr/u16-strnlen: New file.
71251         * modules/unistr/u32-strnlen: New file.
71252         * lib/unistr/u8-strnlen.c: New file.
71253         * lib/unistr/u16-strnlen.c: New file.
71254         * lib/unistr/u32-strnlen.c: New file.
71255         * lib/unistr/u-strnlen.h: New file.
71256
71257         * modules/unistr/u8-strpbrk: New file.
71258         * modules/unistr/u16-strpbrk: New file.
71259         * modules/unistr/u32-strpbrk: New file.
71260         * lib/unistr/u8-strpbrk.c: New file.
71261         * lib/unistr/u16-strpbrk.c: New file.
71262         * lib/unistr/u32-strpbrk.c: New file.
71263         * lib/unistr/u-strpbrk.h: New file.
71264
71265         * modules/unistr/u8-strrchr: New file.
71266         * modules/unistr/u16-strrchr: New file.
71267         * modules/unistr/u32-strrchr: New file.
71268         * lib/unistr/u8-strrchr.c: New file.
71269         * lib/unistr/u16-strrchr.c: New file.
71270         * lib/unistr/u32-strrchr.c: New file.
71271
71272         * modules/unistr/u8-strspn: New file.
71273         * modules/unistr/u16-strspn: New file.
71274         * modules/unistr/u32-strspn: New file.
71275         * lib/unistr/u8-strspn.c: New file.
71276         * lib/unistr/u16-strspn.c: New file.
71277         * lib/unistr/u32-strspn.c: New file.
71278         * lib/unistr/u-strspn.h: New file.
71279
71280         * modules/unistr/u8-strstr: New file.
71281         * modules/unistr/u16-strstr: New file.
71282         * modules/unistr/u32-strstr: New file.
71283         * lib/unistr/u8-strstr.c: New file.
71284         * lib/unistr/u16-strstr.c: New file.
71285         * lib/unistr/u32-strstr.c: New file.
71286         * lib/unistr/u-strstr.h: New file.
71287
71288         * modules/unistr/u8-strtok: New file.
71289         * modules/unistr/u16-strtok: New file.
71290         * modules/unistr/u32-strtok: New file.
71291         * lib/unistr/u8-strtok.c: New file.
71292         * lib/unistr/u16-strtok.c: New file.
71293         * lib/unistr/u32-strtok.c: New file.
71294         * lib/unistr/u-strtok.h: New file.
71295
71296         * modules/unistr/u8-uctomb: New file.
71297         * modules/unistr/u16-uctomb: New file.
71298         * modules/unistr/u32-uctomb: New file.
71299         * lib/unistr/u8-uctomb.c: New file.
71300         * lib/unistr/u16-uctomb.c: New file.
71301         * lib/unistr/u32-uctomb.c: New file.
71302
71303         * MODULES.html.sh (Unicode string functions): Add the new modules.
71304
71305 2007-01-08  Bruno Haible  <bruno@clisp.org>
71306
71307         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
71308         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
71309         subdirectories.
71310
71311 2007-01-08  Karl Berry  <karl@gnu.org>
71312
71313         * doc/error.texi: mention that main() fns must set program_name
71314         when progname is used.
71315
71316 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
71317
71318         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
71319         WCTYPE_H is empty, for the benefit of builds from non-distclean
71320         directories.  Problem reported by Eric Blake in
71321         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
71322
71323 2007-01-08  Bruno Haible  <bruno@clisp.org>
71324
71325         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
71326         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
71327         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
71328         PROVIDE_CANONICALIZE_FILENAME_MODE.
71329         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
71330
71331 2007-01-08  Bruno Haible  <bruno@clisp.org>
71332
71333         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
71334         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
71335         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
71336         * lib/fts.c: Likewise.
71337         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
71338
71339 2006-12-25  Bruno Haible  <bruno@clisp.org>
71340
71341         * modules/utf8-ucs4-safe: New file.
71342         * lib/utf8-ucs4-safe.h: New file.
71343         * lib/unistr/utf8-ucs4-safe.c: New file.
71344
71345         * modules/utf16-ucs4-safe: New file.
71346         * lib/utf16-ucs4-safe.h: New file.
71347         * lib/unistr/utf16-ucs4-safe.c: New file.
71348
71349         * MODULES.html.sh (Unicode string functions): Add the new modules.
71350
71351 2007-01-08  Bruno Haible  <bruno@clisp.org>
71352
71353         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
71354         (Depends-on): Add unitypes.
71355         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
71356         (u8_mbtouc_aux): Move out to separate file.
71357         (u8_mbtouc): Use ucs4_t, uint8_t types.
71358         * lib/unistr/utf8-ucs4.c: New file.
71359
71360         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
71361         (Depends-on): Add unitypes.
71362         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
71363         (u16_mbtouc_aux): Move out to separate file.
71364         (u16_mbtouc): Use ucs4_t, uint16_t types.
71365         * lib/unistr/utf16-ucs4.c: New file.
71366
71367         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
71368         (Depends-on): Add unitypes.
71369         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
71370         (u8_uctomb_aux): Move out to separate file.
71371         (u8_uctomb): Use ucs4_t, uint8_t types.
71372         * lib/unistr/ucs4-utf8.c: New file.
71373
71374         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
71375         (Depends-on): Add unitypes.
71376         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
71377         (u16_uctomb_aux): Move out to separate file.
71378         (u16_uctomb): Use ucs4_t, uint16_t types.
71379         * lib/unistr/ucs4-utf16.c: New file.
71380
71381 2006-12-25  Bruno Haible  <bruno@clisp.org>
71382
71383         * modules/unitypes: New file.
71384         * lib/unitypes.h: New file.
71385         * MODULES.html.sh (func_all_modules): New section "Unicode string
71386         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
71387         this section. Add unitypes.
71388
71389 2007-01-08  Bruno Haible  <bruno@clisp.org>
71390
71391         Avoid variable names that conflict with those from libtool.
71392         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
71393         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
71394         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
71395         library_names_spec to acl_library_names_spec, hardcode_* to
71396         acl_hardcode_*.
71397         Reported by Ralf Wildenhues.
71398
71399 2007-01-08  Bruno Haible  <bruno@clisp.org>
71400
71401         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
71402         definition.
71403         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
71404         definition.
71405         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
71406         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
71407         definition.
71408         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
71409         definition.
71410         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
71411         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
71412         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
71413         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
71414         definition.
71415         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
71416         definition.
71417         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
71418         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
71419         GC_USE_<algorithm>.
71420         * lib/gc-libgcrypt.c: Likewise.
71421         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
71422         * modules/gc-arctwo (configure.ac): Likewise.
71423         * modules/gc-des (configure.ac): Likewise.
71424         * modules/gc-hmac-md5 (configure.ac): Likewise.
71425         * modules/gc-hmac-sha1 (configure.ac): Likewise.
71426         * modules/gc-md2 (configure.ac): Likewise.
71427         * modules/gc-md4 (configure.ac): Likewise.
71428         * modules/gc-md5 (configure.ac): Likewise.
71429         * modules/gc-random (configure.ac): Likewise.
71430         * modules/gc-rijndael (configure.ac): Likewise.
71431         * modules/gc-sha1 (configure.ac): Likewise.
71432
71433 2007-01-08  Bruno Haible  <bruno@clisp.org>
71434
71435         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
71436         macro definition.
71437         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
71438         definition.
71439         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
71440         definition.
71441         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
71442         * modules/fcntl-safer (configure.ac): Likewise.
71443         * modules/fopen-safer (configure.ac): Likewise.
71444         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
71445         GNULIB_FWRITEERROR macro definition.
71446
71447 2007-01-08  Bruno Haible  <bruno@clisp.org>
71448
71449         * m4/gnulib-common.m4: New file.
71450         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
71451         (func_get_filelist): Add m4/gnulib-common.m4.
71452
71453 2007-01-08  Bruno Haible  <bruno@clisp.org>
71454
71455         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
71456         command.
71457
71458 2007-01-08  Jim Meyering  <jim@meyering.net>
71459
71460         Use a more robust test for a "can't happen" condition.
71461         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
71462         narrowed the st_size value.  Presuming the "can't happen" condition
71463         is true, that narrowing could conceivably convert an invalid st_size
71464         value into a valid one.  Instead, use a change based on Matthew
71465         Woehlke's original patch.
71466
71467         Slight readability improvement: use an assert-like macro
71468         in place of literal "abort ()" uses.
71469         * lib/fts.c (fts_assert): Define.
71470         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
71471         Use this macro instead of a bare 'abort'.
71472
71473 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
71474
71475         Don't worry about using IRIX 5.3's wctype.h broken definitions;
71476         simply work around them.
71477         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
71478         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
71479         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
71480         declaring.
71481         Don't bother to define as macros, since the standard doesn't require it.
71482         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
71483         longer worry about IRIX 5.3.
71484         (HAVE_WCTYPE_CTMP_BUG): Remove.
71485
71486 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
71487
71488         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
71489         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
71490         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
71491         Problems reported by Georg Schwarz for IRIX 5.3.
71492
71493         * gnulib-tool (autoconf_minversion): Take the maximum version number
71494         found, not the minimum.  Problem reported by James Youngman.
71495
71496 2007-01-03  Karl Berry  <karl@gnu.org>
71497
71498         * doc/error.texi: new file, explaining interaction with progname.
71499         * doc/gnulib.texi: include it.  Update copyright.
71500
71501 2007-01-03  Simon Josefsson  <simon@josefsson.org>
71502
71503         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
71504         AC_CANONICAL_HOST, to improve autobuild outputs.
71505
71506 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
71507             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
71508
71509         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
71510         sockets, server sockets, and other file descriptors.  Count errors
71511         to compute the return value.  Reorder the code a bit to be easier
71512         to follow.  Don't set event bits that were not requested (except
71513         POLLERR and POLLHUP).
71514
71515 2007-01-01  Bruno Haible  <bruno@clisp.org>
71516
71517         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
71518
71519 2007-01-03  Jim Meyering  <jim@meyering.net>
71520
71521         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
71522
71523 2007-01-02  Bruno Haible  <bruno@clisp.org>
71524
71525         * modules/settime (Include): Require timespec.h.
71526         * modules/nanosleep (Include): Likewise.
71527
71528 2007-01-01  Bruno Haible  <bruno@clisp.org>
71529
71530         * gnulib-tool (func_emit_copyright_notice): Bump year.
71531         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
71532
71533 2007-01-01  Bruno Haible  <bruno@clisp.org>
71534
71535         Improve support for OpenBSD.
71536         * build-aux/config.rpath (libname_spec): Export.
71537         (library_names_spec): New variable. Export.
71538         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
71539         library_names_spec from the config.rpath output. Locate shared library
71540         through the name pattern in library_names_spec.
71541
71542 2007-01-01  Eric Blake  <ebb9@byu.net>
71543
71544         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
71545
71546 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
71547
71548         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
71549         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
71550         assume the C locale, and avoid an "eval" that could cause trouble.
71551         Problem with SORT reported by Bob Proulx.
71552
71553         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
71554         Define.  Trivial patch from Henning Nielsen Lund, originally
71555         sent to bug-grep@gnu.org today.
71556
71557 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
71558
71559         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
71560         struct stat.  Problem reported by Henning Nielsen Lund.
71561         * lib/acl.c: Include acl.h first, to check interface.  Don't
71562         bother to include sys/types.h and sys/stat.h again.
71563
71564 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
71565
71566         Import the following change from libc; problem reported by
71567         Sven Verdoolaege.
71568
71569         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
71570
71571         [BZ #1373]
71572         * lib/argp.h: Remove __NTH for __argp_usage inline function.
71573
71574 2006-12-28  Jim Meyering  <jim@meyering.net>
71575
71576         * build-aux/announce-gen: Do not assume that the package
71577         builds any of tar.gz, tar.bz2, and .xdelta files.
71578         Suggestion from Simon Josefsson.
71579
71580 2006-12-28  Simon Josefsson  <simon@josefsson.org>
71581
71582         * modules/announce-gen: New file.
71583
71584 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
71585
71586         * lib/mbchar.h: Just include <wctype.h>; the wctype module
71587         handles its gotchas now.
71588         * lib/mbswidth.c: Likewise.
71589         * lib/wcwidth.h: Likewise.
71590         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
71591         and iswcntrl; the wctype module does this stuff now.
71592         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
71593         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
71594         * modules/mbchar (Depends-on): Add wctype.
71595         * modules/mbswidth (Depends-on): Likewise.
71596         * modules/wcwidth (Depends-on): Likewise.
71597
71598 2006-12-27  Eric Blake  <ebb9@byu.net>
71599
71600         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
71601         module uses more than what <wctype.h> is required to provide.
71602
71603 2006-12-26  Eric Blake  <ebb9@byu.net>
71604
71605         * gnulib-tool (sed_extract_prog): Avoid space-tab.
71606
71607 2006-12-26  Eric Blake  <ebb9@byu.net>
71608
71609         * modules/absolute-header: New module.
71610         * modules/fcntl (Depends-on): Depend on it.
71611         * modules/inttypes (Depends-on): Likewise.
71612         * modules/stdint (Depends-on): Likewise.
71613         * modules/sys_stat (Depends-on): Likewise.
71614         * modules/wctype (Depends-on): Likewise.
71615         * MODULES.html.sh (Support for building libraries and
71616         executables): Document it.
71617
71618 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
71619
71620         * gnulib-tool (SED): Remove, undoing previous change.
71621         The problem was that it broke coreutils on Solaris, because
71622         "sed --posix" leaked into a makefile.
71623         (sed): New alias, if 'alias' and GNU sed.
71624
71625 2006-12-24  Jim Meyering  <jim@meyering.net>
71626
71627         Work around an fchownat bug in glibc-2.4:
71628         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
71629         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
71630         in spite of the -P option.
71631         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
71632         New macros.
71633         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
71634         * modules/openat (Files): Add lib/fchownat.c.
71635         * lib/openat.c (fchownat): Don't define here.  Move to...
71636         * lib/fchownat.c: ...this new file.
71637
71638 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
71639
71640         Fix bug reported by Bruno Haible in
71641         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
71642         where quotearg.c didn't compile on Mac OS X 10.2 because it
71643         lacks <wchar.h> and wint_t.
71644         * lib/wctype_.h (__wctype_wint_t): New type.
71645         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
71646         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
71647         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
71648         Arg is now of type __wctype_wint_t, not wint_t.
71649         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
71650         substitute HAVE_WINT_T.
71651         * modules/wctype (Files): Add m4/wint_t.m4.
71652         (wctype.h): Substitute HAVE_WINT_T.
71653
71654 2006-12-23  Bruno Haible  <bruno@clisp.org>
71655
71656         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
71657
71658 2006-12-23  Bruno Haible  <bruno@clisp.org>
71659
71660         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
71661         S_ISLNK.
71662         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
71663         mingw.
71664
71665 2006-12-22  Bruno Haible  <bruno@clisp.org>
71666
71667         * lib/copy-file.c: Include acl.h.
71668         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
71669         Close the file descriptors only after being done with copy_acl.
71670         * modules/copy-file (Depends-on): Add acl.
71671
71672 2006-12-22  Bruno Haible  <bruno@clisp.org>
71673
71674         * gnulib-tool (SED): New variable.
71675         Use $SED instead of sed everywhere.
71676
71677 2006-12-22  Bruno Haible  <bruno@clisp.org>
71678
71679         * modules/no-c++: New file.
71680         * m4/no-c++.m4: New file.
71681         * MODULES.html.sh (Support for building libraries and executables):
71682         Add no-c++.
71683
71684 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
71685
71686         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
71687         Include <limits.h>, and use its INT_MAX to rewrite the
71688         j loop so that it does not overflow 'int'.  Problem reported by
71689         Ralf Wildenhues in
71690         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
71691         Play it safe by shifting left by 1 rather than multiplying by 2,
71692         as GCC is less likely to optimize this away when the value
71693         is signed (when it assumes overflow leads to undefined behavior).
71694         Also, don't assume time_t uses two's complement.
71695
71696 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
71697
71698         * MODULES.html.sh: New module wctype.
71699         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
71700         * lib/fnmatch.c: Don't bother to include <wchar.h> before
71701         <wctype.h>, since the new wctype module should fix this.
71702         * lib/quotearg.c: Include <wctype.h> unconditionally, since
71703         the wctype module should arrange for it.
71704         * lib/regex_internal.h: Likewise.
71705         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
71706         since the wctype module should handle this now.
71707         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
71708         * modules/fnmatch (Depends-on): Add wctype.
71709         * modules/quotearg (Depends-on): Likewise.
71710         * modules/regex (Depends-on): Likewise.
71711
71712 2006-12-19  Bruno Haible  <bruno@clisp.org>
71713
71714         * lib/strdup.h [C++]: Wrap definitions in extern "C".
71715         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
71716
71717 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71718
71719         * modules/savewd (Depends-on): Fix dependency on fcntl.
71720
71721 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
71722
71723         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
71724         conforms to C99, rather than relying on the user's environment
71725         setting of STDINT_H.
71726
71727 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
71728         and Eric Blake  <ebb9@byu.net>
71729
71730         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
71731         This is more consistent with the other defines here.
71732         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
71733         Port to z/OS.  Problem reported by Paul Gilmartin.
71734         Change local vars to use gl_ prefix rather than ac_.
71735         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
71736         with other defines.
71737         * modules/double-slash-root: New module.
71738         * modules/dirname (Files): Remove m4/double-slash-root.m4.
71739         (Depends-on): Add double-slash-root.
71740         * MODULES.html.sh (File system functions): Mention new module.
71741
71742 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
71743
71744         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
71745         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
71746         This is for the benefit of gzip, which doesn't do i18n.
71747
71748 2006-12-12  Jim Meyering  <jim@meyering.net>
71749
71750         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
71751         Reported by Andreas Schwab <schwab@suse.de>.
71752
71753 2006-12-12  Bruno Haible  <bruno@clisp.org>
71754
71755         Merge these changes.
71756         2006-09-05  Bruno Haible  <bruno@clisp.org>
71757         * lib/iconvme.c (iconv_string): No need to save and restore errno when
71758         iconv_alloc succeeded.
71759         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
71760         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
71761         test for " && dest " at the end - dest is always != NULL there. Call
71762         iconv with 4xNULL arguments initially, to reset the state. Call iconv
71763         with 2xNULL arguments, also to flush the state storage. Handle the
71764         IRIX iconv behaviour. Realloc the final result, to throw away unused
71765         memory.
71766
71767 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
71768
71769         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
71770         and fchmodat unconditionally, since glibc 2.4 has them.
71771         Problem reported by Arkadiusz Miskiewicz.
71772
71773 2006-12-10  Bruno Haible  <bruno@clisp.org>
71774
71775         * gnulib-tool (func_import): Show the include files only for those
71776         modules that are copied and specified.
71777         Reported by Karl Berry.
71778
71779 2006-12-08  Jim Meyering  <jim@meyering.net>
71780
71781         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
71782         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
71783
71784         * build-aux/announce-gen: Add two new options, both optional:
71785         --bootstrap-tools=TOOL_LIST
71786               a comma-separated list of tools, e.g.,
71787               autoconf,automake,bison,gnulib
71788         --gnulib-snapshot-date=DATE
71789               if gnulib is in the bootstrap tool list,
71790               then report this as the snapshot date.
71791               If not specified, use the current date/time.
71792               If you specify a date here, be sure it's UTC.
71793
71794 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71795
71796         * tests/test-argp-2.sh: Fix test to match actual output.
71797         (func_compare): Fix sed script to be portable.
71798
71799 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
71800
71801         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
71802         workaround for this case.  It is not autoconfigured now; offhand
71803         it's hard to see how to autoconfigure it.
71804
71805 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
71806
71807         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
71808         a directory that is about to be chowned.  Such a directory's
71809         initial file permissions should permit the owner only and this
71810         should not be changed until after the chown, since the group and
71811         other bits would be incorrect if they granted permission before
71812         the chown.
71813
71814         Fix porting problem for iswctype reported by Georg Schwarz in:
71815         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
71816         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
71817         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
71818         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
71819         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
71820
71821 2006-12-03  Jim Meyering  <jim@meyering.net>
71822
71823         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
71824         p->fts_statp may not yet be defined.
71825         (fts_read): Instead, set it in the caller, once p->fts_statp is
71826         sure to be defined, and corresponds to a top-level directory.
71827         This bug made du -x fail.  Here's the coreutils test case:
71828         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
71829         Reported by Mike Frysinger.
71830
71831 2006-12-01  Jim Meyering  <jim@meyering.net>
71832
71833         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
71834         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
71835         Reported by Simon Josefsson.
71836
71837 2006-11-30  Jim Meyering  <jim@meyering.net>
71838
71839         * m4/warning.m4: Use the all-permissive copyright notice
71840         recommended by RMS (rather than LGPL).
71841         * m4/vararrays.m4: Likewise.
71842         * m4/flexmember.m4: Likewise.
71843
71844 2006-11-29  Bruno Haible  <bruno@clisp.org>
71845
71846         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
71847         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
71848         using +=.
71849         Reported by Simon Josefsson <simon@josefsson.org>.
71850
71851 2006-11-28  James Youngman <jay@gnu.org>
71852
71853         * README: Advise users that they might find the bug-gnulib@gnu.org
71854         and autotools-announce@gnu.org mailing lists useful.
71855
71856 2006-11-28  Bruno Haible  <bruno@clisp.org>
71857
71858         * m4/ptrdiff_max.m4: Remove file.
71859
71860 2006-11-21  Bruno Haible  <bruno@clisp.org>
71861
71862         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
71863         _AC_COMPUTE_INT.
71864         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
71865         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
71866         _AC_COMPUTE_INT.
71867         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
71868         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
71869         _AC_COMPUTE_INT.
71870         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
71871
71872 2006-11-28  Jim Meyering  <jim@meyering.net>
71873
71874         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
71875         warning from "gcc -Wshadow" about shadowing the builtin.
71876
71877 2006-11-27  Bruno Haible  <bruno@clisp.org>
71878
71879         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
71880         _AC_COMPUTE_INT.
71881         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
71882
71883 2006-11-27  Bruno Haible  <bruno@clisp.org>
71884             Paul Eggert  <eggert@cs.ucla.edu>
71885
71886         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
71887
71888 2006-11-26  Bruno Haible  <bruno@clisp.org>
71889
71890         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
71891         noinst_LTLIBRARIES.
71892
71893 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
71894             Bruno Haible  <bruno@clisp.org>
71895
71896         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
71897         if compiling with "gcc -ansi".
71898
71899 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
71900
71901         Fix some incompatibilities with gcc -ansi -pedantic.
71902         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
71903         if compiling pedantically with GCC, unless it's C99 or later.
71904         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
71905         it mishandles gcc -ansi -pedantic as well.
71906         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
71907         if gcc -pedantic.
71908         * lib/regexec.c (check_node_accept_bytes): Don't use auto
71909         initializers for struct if -pedantic, unless it's C99 or later.
71910
71911 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
71912
71913         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
71914         Don't close an fd more than once. Identical atimes indicate
71915         success, not failure.
71916
71917 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
71918
71919         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
71920
71921 2006-11-23  Jim Meyering  <jim@meyering.net>
71922
71923         * build-aux/announce-gen: New file.  From coreutils.
71924
71925 2006-11-22  Jim Meyering  <jim@meyering.net>
71926
71927         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
71928         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
71929         (fts_read): Use a temporary to narrow the overused st_size member
71930         before using it in a switch statement.  Reported by Matthew Woehlke.
71931
71932         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
71933         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
71934
71935 2006-11-20  Bruno Haible  <bruno@clisp.org>
71936
71937         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
71938         changequote instead of pairs of brackets.
71939         Reported by Andreas Schwab <schwab@suse.de>.
71940
71941 2006-11-21  Jim Meyering  <jim@meyering.net>
71942
71943         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
71944         so as to remain compatible with older compilers.
71945         Patch from Michael Deutschmann.
71946
71947 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
71948
71949         * MODULES.html.sh (File system functions): Add openat.
71950
71951         * lib/openat.h (rpl_fstatat): New macro, if
71952         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
71953         (fstatat): Define to rpl_fstatat under the same conditions,
71954         unless COMPILING_FSTATAT.
71955         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
71956         seems to have the bug.
71957         * lib/fstatat.c: New file.
71958         * modules/openat (Files): Add it.
71959
71960 2006-11-20  Bruno Haible  <bruno@clisp.org>
71961
71962         * Makefile: New file.
71963
71964 2006-11-20  Jim Meyering  <jim@meyering.net>
71965
71966         The beginnings of syntax-related checks for gnulib.
71967         * lib/Makefile: New file.
71968         * lib/t-idcache: New script.  Ensure that the two halves of
71969         idcache.c stay in sync.
71970
71971         * lib/idcache.c: Adjust comments in user- and group- portions to
71972         be more accurate, and to be consistent with one another.
71973
71974 2006-11-20  Jim Meyering  <jim@meyering.net>
71975
71976         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
71977         continue using the flexible array member (thus, this module performs
71978         half as many malloc calls), with the addition that...
71979         (getgroup, getuser): Consistently record a non-match via an empty
71980         "name" string, and map an empty string match to a NULL return value.
71981         * modules/idcache (Depends-on): Re-add flexmember.
71982
71983         * lib/idcache.c (getuser): Remove all uses of the register keyword.
71984         (getuidbyname, getgroup, getgidbyname): Likewise.
71985
71986         Use cleaner syntax: NULL rather than 0.
71987         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
71988
71989 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
71990
71991         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
71992         It mishandled the case where the group was missing.
71993         Problem reported by Greg Schafer.
71994         * modules/idcache: Likewise.
71995
71996 2006-11-18  Jim Meyering  <jim@meyering.net>
71997
71998         * check-module (%exempt_header): Add exception for some
71999         conditionally-included headers.
72000
72001         * modules/i-ring (Depends-on): Add verify.
72002         (License): Change to LGPL.
72003
72004 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
72005
72006         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
72007         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
72008         and inttostr.h.  Use snprintf rather than uinttostr, so that
72009         LGPLed code doesn't depend on GPLed.
72010
72011 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
72012
72013         * modules/inline (License): Change from GPL to LGPL.
72014
72015 2006-11-17  Jim Meyering  <jim@meyering.net>
72016
72017         * modules/d-type (License): Switch to LGPL.
72018
72019 2006-11-15  Bruno Haible  <bruno@clisp.org>
72020
72021         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
72022
72023 2006-11-15  Eric Blake  <ebb9@byu.net>
72024
72025         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
72026         the module dependency.
72027
72028 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72029             Bruno Haible  <bruno@clisp.org>
72030
72031         * gnulib-tool (func_create_testdir): Add license consistency check.
72032
72033 2006-11-15  Eric Blake  <ebb9@byu.net>
72034
72035         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
72036         random "(cached)" in configure output.
72037
72038 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72039
72040         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
72041         test for conforming inttypes.h is both announced and cached.
72042
72043         * MODULES.html.sh (seen_modules, seen_files): New variables.
72044         (func_module): Rewrite to use a few less gnulib-tool and sed
72045         invocations.  Avoid a couple of quadratic algorithms for ...
72046         (missed_modules, missed_files): ... these, with ...
72047         (func_append, func_tmpdir): ... these new functions, from
72048         gnulib-tool.  Analogously, install traps for cleanup.
72049
72050         * tests/test-gc.c (main): Remove unused variables.
72051         * tests/test-read-file.c: Include stdlib.h, for 'free'.
72052
72053 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
72054
72055         * modules/inttostr (License): Change to LGPL.
72056
72057 2006-11-14  Eric Blake  <ebb9@byu.net>
72058
72059         * modules/tempname (License): Change to LGPL.
72060
72061 2006-11-14  Eric Blake  <ebb9@byu.net>
72062
72063         * doc/functions.texi (Function Portability): *printf functions on
72064         Cygwin now understand all POSIX size specifiers.
72065
72066 2006-11-14  Bruno Haible  <bruno@clisp.org>
72067
72068         * modules/c-ctype (License): Change to LGPL.
72069
72070 2006-11-12  Bruno Haible  <bruno@clisp.org>
72071
72072         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
72073         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
72074         for GNOME libraries, for which the include files are installed in
72075         subdirectories of $prefix/include.
72076
72077 2006-11-12  Bruno Haible  <bruno@clisp.org>
72078
72079         * m4/lib-link.m4: Require at least autoconf-2.54.
72080         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
72081         name to underscores for the --with option.
72082
72083 2006-11-13  Bruno Haible  <bruno@clisp.org>
72084
72085         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
72086         the tests directory.
72087         Reported by Ralf Wildenhues.
72088
72089 2006-11-13  Bruno Haible  <bruno@clisp.org>
72090
72091         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
72092         (func_emit_initmacro_end): Undo the override here.
72093         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
72094         Works around the famous automake error in coreutils.
72095
72096 2006-11-13  Eric Blake  <ebb9@byu.net>
72097
72098         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
72099         element, not its node.
72100
72101 2006-11-12  Bruno Haible  <bruno@clisp.org>
72102
72103         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
72104         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
72105
72106 2006-11-12  Bruno Haible  <bruno@clisp.org>
72107
72108         * gnulib-tool: New option --local-symlink.
72109         (func_usage): Document it.
72110         (lsymbolic): New variable.
72111         (func_import, func_create_testdir): If --symlink was not specified,
72112         test whether --local-symlink was specified and the file comes from
72113         the local_gnulib_dir.
72114
72115 2006-11-12  Bruno Haible  <bruno@clisp.org>
72116
72117         * gnulib-tool (func_ln): New function.
72118         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
72119
72120 2006-11-12  Bruno Haible  <bruno@clisp.org>
72121
72122         Finish support for source files in subdirectories.
72123         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
72124         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
72125         AUTOMAKE_OPTIONS.
72126         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
72127
72128 2006-11-12  Bruno Haible  <bruno@clisp.org>
72129
72130         * gnulib-tool (func_get_automake_snippet): Synthesize also an
72131         EXTRA_lib_SOURCES augmentation.
72132         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
72133
72134 2006-11-12  Jim Meyering  <jim@meyering.net>
72135
72136         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
72137         file descriptors.  This also averts a failure on systems with
72138         native openat support when a traversed directory lacks "x" access.
72139         * lib/fts_.h: Include "i-ring.h"
72140         (struct FTS) [fts_fd_ring]: New member.
72141         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
72142         (FCHDIR): Add parentheses.
72143         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
72144         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
72145         When descending, rather than simply closing the previous
72146         fts_cwd_fd value, push that file descriptor onto the ring.
72147         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
72148         (fts_open): Initialize the new fd_ring member.
72149         (fts_close): Clear the ring.
72150         (fts_safe_changedir): When possible, use our new fd_ring to skip
72151         the diropen and fstat and dev/ino comparison that would normally
72152         accompany a virtual `chdir ("..")'.
72153
72154         * modules/fts (Depends-on): Add i-ring.
72155         * modules/i-ring: New module.
72156         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
72157         * m4/i-ring.m4: New file.
72158
72159 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72160
72161         * gnulib-tool (func_create_testdir): Fix replacement of
72162         `build-aux' in configure.ac.  Run autotools in gltests
72163         subdirectory.
72164         (func_create_testdir, func_create_megatestdir, test): There is
72165         no need for '--force' in most autotool invocations in a new
72166         tree.  Actually fail the whole test if any of the tools, or the
72167         configure or make stages fail.
72168
72169         Sync from Automake.
72170         * build-aux/gnupload: Revert last change.  Add pointer to upload
72171         instructions of the GNU Maintenance Instructions.
72172         Suggestion by Karl Berry.
72173
72174 2006-11-10  Jim Meyering  <jim@meyering.net>
72175
72176         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
72177
72178 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
72179
72180         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
72181         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
72182         (bind_textdomain_codeset) [! ENABLE_NLS]:
72183         Evaluate all the arguments.  That way, callers get compatible behavior
72184         if the arguments have side effects.  Also, it avoids some GCC
72185         diagnostics in some cases; Joel E. Denny reported problems when Bison
72186         was configured with --enable-gcc-warnigs.
72187
72188 2006-11-10  Jim Meyering  <jim@meyering.net>
72189
72190         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
72191         relevant options in CFLAGS (like -O, -fno-inline) are taken into
72192         account.
72193
72194 2006-11-10  Jim Meyering  <jim@meyering.net>
72195
72196         * modules/inline: New file/module.
72197         * modules/xalloc (Files): Remove m4/inline.m4.
72198         (Depends-on): Add inline, instead.
72199         * modules/oset: Likewise.
72200         * modules/list: Likewise.
72201
72202 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
72203
72204         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
72205         Problem reported by Matthew Woehlke.
72206
72207 2006-11-09  Bruno Haible  <bruno@clisp.org>
72208
72209         * lib/tempname.c (gen_tempname): Remove variant that invokes
72210         __gen_tempname.
72211         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
72212         __gen_tempname.
72213
72214 2006-11-08  Bruno Haible  <bruno@clisp.org>
72215
72216         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
72217         to 'yes' instead of 'cross-compiling'.
72218
72219 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
72220
72221         * lib/quotearg.h (quotearg_free): New decl.
72222         * lib/quotearg.c (quotearg_free): New function.
72223         (slot0, nslots, slotvec0, slotvec):
72224         Now file-scope so that quotearg_free can get at them.
72225
72226 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72227
72228         Sync from Automake.
72229         * build-aux/gnupload: Add missing 'gnu' to example URL.
72230         Report by Karl Berry.
72231
72232 2006-11-08  Bruno Haible  <bruno@clisp.org>
72233
72234         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
72235         Suggested by Paul Eggert.
72236
72237 2006-11-08  Jim Meyering  <jim@meyering.net>
72238
72239         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
72240         It's already included if !_LIBC.
72241         (fts_safe_changedir): Add a comment.
72242
72243 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
72244
72245         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
72246         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
72247         Matthew Woehlke.
72248
72249         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
72250         definitions up, to avoid colliding with change below.
72251         (static_inline) [HAVE_INLINE]: New macro.
72252         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
72253         Provide extern decls when !HAVE_INLINE.  Do not define unless
72254         static_inline is defined, either by us or by xmalloc.c.  Use
72255         static_inline rather than static inline.
72256         (XCALLOC): Optimize sizeof(T) = 1 case.
72257         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
72258
72259 2006-11-07  Bruno Haible  <bruno@clisp.org>
72260
72261         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
72262         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
72263         AC_C_INLINE.
72264         * modules/xalloc (Files): Add m4/inline.m4.
72265
72266 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72267
72268         * README: Fix typo.
72269         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
72270         (Miscellanous Notes): ...from this.
72271
72272 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
72273
72274         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
72275         Mention that offsetof should be used instead of sizeof.
72276         From Bruno Haible.
72277
72278 2006-11-07  Bruno Haible  <bruno@clisp.org>
72279
72280         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
72281
72282 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
72283
72284         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
72285         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
72286         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
72287         (gl_tree_add_before, gl_tree_add_after):
72288         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
72289         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
72290         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
72291         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
72292         (gl_linked_add_after, gl_linked_add_at): Likewise.
72293         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
72294         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
72295         (gl_tree_add_before, gl_tree_add_after): Likewise.
72296         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
72297         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
72298         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
72299
72300 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72301
72302         * lib/gl_oset.h: Use C comment style, not C++ comment style.
72303
72304 2006-11-06  Bruno Haible  <bruno@clisp.org>
72305
72306         * m4/inline.m4: New file.
72307         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
72308         * modules/list (Files): Add m4/inline.m4.
72309         * modules/oset (Files): Likewise.
72310
72311 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
72312
72313         * lib/idcache.c: Include <stddef.h>, for offsetof.
72314         (struct userid.name): Change from char * to a flexible array member.
72315         All uses changed.
72316         * modules/idcache (Depends-on): Add flexmember.
72317
72318         * MODULES.html.sh (Core language properties): New module flexmember.
72319         * modules/flexmember, m4/flexmember.m4: New files.
72320
72321         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
72322         inline functions that are identical with the old xnmalloc_inline,
72323         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
72324         that we can avoid some unnecessary integer multiplications and
72325         divisions in the common case where the element size is known at
72326         compile time.
72327         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
72328         needed.
72329         (xnboundedmalloc): Remove.
72330         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
72331         arguments, for consistency with rest of this header.
72332         (xcharalloc): Rewrite using XNMALLOC.
72333         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
72334         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
72335         versions have been moved to lib/xalloc.h and renamed to be the
72336         non-*_inline versions.
72337         (xmalloc, xrealloc): Implement without reference to the xnmalloc
72338         and xnrealloc functions, since those functions are now inline and
72339         now call us.
72340         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
72341         renaming described above.
72342         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
72343         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
72344         captures the dependency in AC_C_INLINE.
72345
72346         New module canonicalize-lgpl, proposed by Charles Wilson in
72347         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
72348         with a few small changes afterwards.
72349         * MODULES.html.sh (File system functions): New module
72350         canonicalize-lgpl.
72351         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
72352         and canonicalize_file_name.
72353         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
72354         * modules/canonicalize-lgpl: New files.
72355
72356 2006-11-05  Bruno Haible  <bruno@clisp.org>
72357
72358         * gnulib-tool (func_import, func_create_testdir): Create directories
72359         also for files in subdirectories of lib/.
72360
72361 2006-11-05  Bruno Haible  <bruno@clisp.org>
72362
72363         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
72364         ANSI C compliant.
72365
72366 2006-11-03  Bruno Haible  <bruno@clisp.org>
72367
72368         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
72369         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
72370         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
72371         (xnboundedmalloc): New inline function.
72372         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
72373         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
72374         xmalloc.
72375         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
72376         xmalloc.
72377         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
72378         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
72379         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
72380         xmalloc.
72381         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
72382         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
72383         xmalloc.
72384         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
72385         gl_tree_add_after): Use XMALLOC instead of xmalloc.
72386         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
72387         xmalloc.
72388         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
72389         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
72390         gl_tree_add_after): Use XMALLOC instead of xmalloc.
72391         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
72392         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
72393         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
72394         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
72395
72396 2006-11-03  Bruno Haible  <bruno@clisp.org>
72397
72398         * lib/c-ctype.h [C++]: Define functions without name mangling.
72399         * lib/fwriteerror.h [C++]: Likewise.
72400         * lib/gcd.h [C++]: Likewise.
72401         * lib/linebreak.h [C++]: Likewise.
72402
72403 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
72404
72405         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
72406         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
72407         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
72408         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
72409         Check for functions and headers just once.
72410         Check for declaration of canonicalize_file_name.
72411         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
72412
72413 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
72414
72415         * gnulib-tool (func_import): Fix typo in actioncmd.
72416
72417 2006-11-02  Bruno Haible  <bruno@clisp.org>
72418
72419         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
72420         newline sequence in the Makefile.am snippet as a space, like "make"
72421         does.
72422         Reported by Roger Persson <perrog@gmail.com>.
72423
72424 2006-11-01  Bruno Haible  <bruno@clisp.org>
72425
72426         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
72427         already declared in <string.h>.
72428         * lib/strcase.h (strncasecmp): Don't declare it if yes.
72429
72430 2006-11-01  Bruno Haible  <bruno@clisp.org>
72431
72432         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
72433         * lib/strcase.h: Include <string.h>.
72434         (strcasecmp): Define to rpl_strcasecmp here.
72435
72436 2006-11-01  Bruno Haible  <bruno@clisp.org>
72437
72438         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
72439
72440 2006-11-01  Eric Blake  <ebb9@byu.net>
72441
72442         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
72443
72444         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
72445
72446 2006-10-29  Bruno Haible  <bruno@clisp.org>
72447
72448         Make it compile in C++ mode.
72449         * lib/full-write.c (full_rw): Add a cast.
72450
72451 2006-11-01  Bruno Haible  <bruno@clisp.org>
72452
72453         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
72454         be POSIX compliant.
72455         Reported by Roger Persson <perrog@gmail.com>.
72456
72457 2006-11-01  Eric Blake  <ebb9@byu.net>
72458
72459         * lib/getopt_.h: Fix comments.
72460
72461 2006-10-31  Eric Blake  <ebb9@byu.net>
72462
72463         * modules/tmpdir (Depends-on): Add sys_stat.
72464         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
72465         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
72466         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
72467         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
72468         tempname.
72469
72470 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
72471
72472         Avoid some C++ diagnostics reported by Bruno Haible.
72473         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
72474         xmalloc.
72475         (quotearg_alloc): Use xcharalloc rather than xmalloc.
72476         (struct slotvec): Move to top level.
72477         (quotearg_n_options): Rewrite to avoid xmalloc.
72478         * lib/xalloc.h (xcharalloc): New function.
72479         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
72480         [defined __cplusplus]: Add function template that provides result
72481         type propagation.  This part of the change is from Bruno Haible.
72482
72483 2006-10-29  Bruno Haible  <bruno@clisp.org>
72484
72485         Make it compile in C++ mode.
72486         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
72487         * lib/strnlen1.c (strnlen1): Cast memchr result.
72488         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
72489         * lib/clean-temp.c (string_equals, string_hash): Add casts.
72490         (create_temp_dir): Rename local variable 'template'.
72491         (compile_csharp_using_sscli): Add cast.
72492         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
72493         * lib/findprog.c (find_in_path): Likewise.
72494         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
72495         * lib/wait-process.c (register_slave_subprocess): Likewise.
72496
72497 2006-10-22  Bruno Haible  <bruno@clisp.org>
72498
72499         * modules/tsearch: New file.
72500         * lib/tsearch.h: New file.
72501         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
72502         * m4/tsearch.m4: New file.
72503         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
72504
72505 2006-10-29  Eric Blake  <ebb9@byu.net>
72506
72507         * lib/arcfour.c: Assume config.h.
72508         * lib/arctwo.c: Likewise.
72509         * lib/base64.c: Likewise.
72510         * lib/check-version.c: Likewise.
72511         * lib/crc.c: Likewise.
72512         * lib/des.c: Likewise.
72513         * lib/gc-gnulib.c: Likewise.
72514         * lib/gc-libgcrypt.c: Likewise.
72515         * lib/gc-pbkdf2-sha1.c: Likewise.
72516         * lib/getaddrinfo.c: Likewise.
72517         * lib/getdelim.c: Likewise.
72518         * lib/getline.c: Likewise.
72519         * lib/hmac-md5.c: Likewise.
72520         * lib/hmac-sha1.c: Likewise.
72521         * lib/iconvme.c: Likewise.
72522         * lib/md2.c: Likewise.
72523         * lib/md4.c: Likewise.
72524         * lib/memxor.c: Likewise.
72525         * lib/read-file.c: Likewise.
72526         * lib/readline.c: Likewise.
72527         * lib/rijndael-alg-fst.c: Likewise.
72528         * lib/rijndael-api-fst.c: Likewise.
72529         * lib/xgetdomainname.c: Likewise.
72530
72531 2006-10-28  Eric Blake  <ebb9@byu.net>
72532
72533         * lib/xstrndup.c: Assume config.h.
72534
72535 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
72536
72537         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
72538         stat-macros.h is now for our own macros, whereas stat_h is for
72539         macros in the <sys/stat.h> name space.
72540         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
72541         (STAT_MACROS_H): Remove.
72542         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
72543         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
72544         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
72545         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
72546         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
72547         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
72548         Move these macros to ...
72549         * lib/stat_.h: here.  Don't include stat-macros.h.
72550         * lib/canonicalize.c: Don't include stat-macros.h.
72551         * lib/chown.c: Likewise.
72552         * lib/euidaccess.c: Likewise.
72553         * lib/file-type.c: Likewise.
72554         * lib/filemode.c: Likewise.
72555         * lib/glob.c: Likewise.
72556         * lib/isapipe.c: Likewise.
72557         * lib/lchown.c: Likewise.
72558         * lib/lstat.c: Likewise.
72559         * lib/mkdir-p.c: Likewise.
72560         * lib/rmdir.c: Likewise.
72561         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
72562         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
72563         unless mkdir isn't declared, to speed up 'configure'.
72564         Always create sys/stat.h, since it's unlikely any real sys/stat.h
72565         would define all the S_* symbols.
72566         * modules/canonicalize (Depends-on):
72567         Depend on sys_stat, not stat-macros.
72568         * modules/chown: Likewise.
72569         * modules/euidaccess: Likewise.
72570         * modules/filemode: Likewise.
72571         * modules/file-type: Likewise.
72572         * modules/glob: Likewise.
72573         * modules/isapipe: Likewise.
72574         * modules/lchown: Likewise.
72575         * modules/lstat: Likewise.
72576         * modules/mkancesdirs: Likewise.
72577         * modules/rmdir: Likewise.
72578         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
72579         * modules/modechange: Likewise.
72580         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
72581         (configure.ac): Remove gl_STAT_MACROS.
72582         * modules/sys_stat (Depends-on): Remove stat-macros.
72583
72584 2006-10-27  Bruno Haible  <bruno@clisp.org>
72585
72586         * m4/signed.m4: Remove file.
72587         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
72588         invocation.
72589         * modules/vasnprintf (Files): Remove m4/signed.m4.
72590
72591 2006-10-27  Bruno Haible  <bruno@clisp.org>
72592
72593         Update to GNU gettext 0.16.
72594         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
72595         m4/inttypes-h.m4, m4/signed.m4.
72596         * m4/gettext.m4: Update to GNU gettext 0.16.
72597         * m4/intl.m4: New file, from GNU gettext.
72598         * m4/intldir.m4: New file, from GNU gettext.
72599         * config/srclist.txt: Update
72600
72601 2006-10-27  Eric Blake  <ebb9@byu.net>
72602
72603         * MODULES.html.sh: Document tempname.
72604         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
72605         dependencies.
72606         (Files): Move lib/tempname.c...
72607         * modules/tempname: ...to this new module.
72608         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
72609         (gl_PREREQ_TEMPNAME): Move...
72610         * m4/tempname.m4: ...to this new file.
72611         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
72612         * modules/sys_stat (Depends-on): Add stat-macros.
72613         * lib/stat_.h (includes): Pick up stat macros.
72614         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
72615         if stat macros are broken.
72616         * lib/tempname.c (includes): No need to include "stat-macros.h".
72617         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
72618         (direxists, __path_search) [!_LIBC]: Don't compile these in
72619         gnulib; the tmpdir module covers that.
72620         * lib/tempname.h: New file.
72621
72622 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
72623
72624         * COPYING: Explain how gnulib-tool converts licence headers.
72625         Almost all wording by Eric Blake.
72626
72627 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
72628
72629         * lib/mbchar.h (is_basic_table): Make read-only.
72630         * lib/mbchar.c (is_basic_table): Likewise.
72631         Reported by John Darrington.
72632
72633 2006-10-25  Bruno Haible  <bruno@clisp.org>
72634
72635         * lib/progname.h (set_program_name): Undefine before defining.
72636
72637 2006-10-25  Bruno Haible  <bruno@clisp.org>
72638
72639         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
72640         false for non-gcc C++ compilers.
72641         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
72642
72643 2006-10-24  Bruno Haible  <bruno@clisp.org>
72644
72645         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
72646         iconv implementations like Irix iconv.
72647
72648 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
72649
72650         * modules/vararrays: New file.
72651         * m4/vararrays.m4: New file, taken from diffutils.
72652         * MODULES.html.sh: New module vararrays.
72653
72654 2006-10-24  Karl Berry  <karl@gnu.org>
72655
72656         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
72657         Don't call GNU Unix.
72658
72659 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72660
72661         * users.txt: Add Libtool.
72662
72663         Sync from Libtool:
72664
72665         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
72666
72667         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
72668         to gnulib's policy of including config.h unconditionally.
72669
72670 2006-10-24  Bruno Haible  <bruno@clisp.org>
72671
72672         * modules/wcwidth (Files): Add m4/wint_t.m4.
72673         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
72674         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
72675
72676 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
72677
72678         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
72679         to pacify GCC with some -W flags enabled.  Problem reported by
72680         Bruno Haible.
72681
72682 2006-10-24  Jim Meyering  <jim@meyering.net>
72683
72684         * MODULES.html.sh: Remove uinttostr.  It's not a module.
72685         Reported by Karl Berry.
72686
72687 2006-10-23  Bruno Haible  <bruno@clisp.org>
72688
72689         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
72690
72691 2006-10-24  Bruno Haible  <bruno@clisp.org>
72692
72693         * lib/gl_list.h: Use C comment style, not C++ comment style.
72694
72695 2006-10-23  Eric Blake  <ebb9@byu.net>
72696
72697         * lib/getaddrinfo.c (includes): Add missing include.
72698
72699 2006-10-23  Bruno Haible  <bruno@clisp.org>
72700             Paul Eggert  <eggert@cs.ucla.edu>
72701
72702         Ability to rename obstack_free.
72703         * lib/obstack.h (__obstack_free): New macro. Declare instead of
72704         obstack_free.
72705         (obstack_free): Invoke the __obstack_free macro.
72706         * lib/obstack.c (obstack_free): Use __obstack_free macro.
72707
72708 2006-10-23  Bruno Haible  <bruno@clisp.org>
72709             Paul Eggert  <eggert@cs.ucla.edu>
72710
72711         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
72712         __argc, __argv from the declaration. (They are defined as macros on
72713         mingw.)
72714
72715 2006-10-22  Bruno Haible  <bruno@clisp.org>
72716
72717         * doc/gnulib-intro.texi: New file.
72718         * doc/gnulib.texi: Include it.
72719
72720 2006-10-21  Bruno Haible  <bruno@clisp.org>
72721
72722         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
72723         "Introduction", "Miscellanous Notes", "Particular Modules".
72724
72725 2006-10-21  Bruno Haible  <bruno@clisp.org>
72726
72727         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
72728         Change mostlyclean-local rule to avoid sh syntax error from bash
72729         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
72730
72731 2006-10-23  Jim Meyering  <jim@meyering.net>
72732
72733         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
72734         in place of snprintf.
72735
72736         * modules/inttostr (Files): Add lib/uinttostr.c.
72737         * lib/uinttostr.c (inttostr): New file/function.
72738         * lib/inttostr.h (uinttostr): Declare.
72739         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
72740         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
72741         Add uinttostr.
72742         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
72743
72744 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
72745
72746         * lib/canonicalize.c (ELOOP): Define if not already defined.
72747         Problem reported by Bruno Haible in
72748         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
72749
72750 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
72751
72752         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
72753         Problem reported by Perry Smith and Ville Laurikari.
72754
72755         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
72756         uses.
72757
72758 2006-10-19  Bruno Haible  <bruno@clisp.org>
72759
72760         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
72761         for mingw.
72762
72763 2006-10-19  Bruno Haible  <bruno@clisp.org>
72764
72765         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
72766         Needed for mingw.
72767
72768 2006-10-19  Bruno Haible  <bruno@clisp.org>
72769
72770         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
72771
72772 2006-10-19  Bruno Haible  <bruno@clisp.org>
72773
72774         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
72775         it.
72776
72777 2006-10-19  Bruno Haible  <bruno@clisp.org>
72778
72779         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
72780         invocation.
72781
72782 2006-10-19  Bruno Haible  <bruno@clisp.org>
72783
72784         * gnulib-tool (func_create_testdir): Don't include ftruncate and
72785         mountlist by default.
72786
72787 2006-10-16  Bruno Haible  <bruno@clisp.org>
72788
72789         * lib/c-strstr.c: Include c-strstr.h.
72790
72791 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
72792
72793         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
72794         in a slash.
72795
72796 2006-10-18  Bruno Haible  <bruno@clisp.org>
72797
72798         * lib/lock.h [C++]: Wrap definitions in extern "C".
72799
72800 2006-10-18  Bruno Haible  <bruno@clisp.org>
72801
72802         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
72803         gl_LIBOBJS list.
72804
72805 2006-10-18  Bruno Haible  <bruno@clisp.org>
72806
72807         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
72808
72809 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
72810
72811         * lib/xstrtol.h: Include gettext.h.
72812         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
72813         Problem reported by Eric Blake.
72814         * modules/xstrtol (Depends-on): Add gettext-h.
72815
72816 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
72817
72818         * lib/strftime.c (advance): New macro.
72819         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
72820         incomplete type, so you can't add 0 to it.  Problem and patch
72821         reported by Eelco Dolstra for dietlibc.
72822
72823 2006-10-18  Jim Meyering  <jim@meyering.net>
72824
72825         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
72826         type for a local, and rename it: s/up/user_proc/.
72827
72828 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
72829
72830         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
72831         READ_UTMP_USER_PROCESS.
72832         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
72833
72834 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
72835
72836         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
72837         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
72838
72839 2006-10-17  Eric Blake  <ebb9@byu.net>
72840
72841         * lib/sigprocmask.c (sigprocmask): Fix typo.
72842
72843         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
72844
72845         * modules/clean-temp (Makefile.am): Don't add to make output...
72846         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
72847         config.h.
72848
72849 2006-10-17  Bruno Haible  <bruno@clisp.org>
72850
72851         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
72852         differently if DEFAULT_TEXT_DOMAIN is set.
72853
72854 2006-10-16  Bruno Haible  <bruno@clisp.org>
72855
72856         * lib/clean-temp.c: Include fwriteerror.h.
72857
72858 2006-10-16  Bruno Haible  <bruno@clisp.org>
72859
72860         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
72861
72862 2006-10-16  Bruno Haible  <bruno@clisp.org>
72863
72864         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
72865         * lib/sigprocmask.h: Include <sys/types.h>.
72866         (sigset_t): Use the system's definition if present.
72867
72868 2006-10-17  Eric Blake  <ebb9@byu.net>
72869
72870         * lib/xvasprintf.c (includes): Assume config.h.
72871         * lib/xasprintf.c (includes): Likewise.
72872
72873 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
72874
72875         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
72876         at least as wide as intmax_t.
72877
72878 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
72879
72880         (Imported from Automake.)
72881         * build-aux/gnupload: Update to version 1.1 of directive file.
72882
72883 2006-10-16  Eric Blake  <ebb9@byu.net>
72884
72885         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
72886         match Automake 1.10a.
72887
72888 2006-10-14  Bruno Haible  <bruno@clisp.org>
72889
72890         * modules/sigprocmask: New file.
72891         * lib/sigprocmask.h: New file.
72892         * lib/sigprocmask.c: New file.
72893         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
72894         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
72895         request sigprocmask.o.
72896         (gl_PREREQ_SIGPROCMASK): New macro.
72897         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
72898         (Depends-on): Add sigprocmask.
72899         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
72900         gt_SIGNALBLOCKING. Test for 'raise' only once.
72901         * lib/fatal-signal.c: Include sigprocmask.h.
72902         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
72903         unblock_fatal_signals): Define always.
72904         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
72905         sigprocmask.
72906
72907 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
72908
72909         Sync from Automake.
72910         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
72911         which incorrectly sets the mode of an existing destination
72912         directory.  In some cases the unpatched install-sh could do the
72913         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
72914         system.  We hope this is rare in practice, but it's clearly worth
72915         fixing.  Problem reported by Alex Unleashed in
72916         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
72917         Also, don't bother to check for -m bugs unless we're using -m;
72918         suggested by Stepan Kasal.
72919
72920 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72921
72922         Sync from Automake.
72923         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
72924         `-c' flag, so they appear at the same position as in %FASTDEP%
72925         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
72926         which ignores unknown options only after the first non-option.
72927         Bug report against M4 by Nelson H. F. Beebe.
72928
72929 2006-10-13  Jim Meyering  <jim@meyering.net>
72930
72931         Fix a bug in yesterday's change.
72932         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
72933         p->fts_statp->st_dev would be used uninitialized.
72934         Ensures that we always call fts_stat on the very first entry.
72935         Miklos Szeredi reported that find -xdev stopped working.
72936
72937 2006-10-12  Bruno Haible  <bruno@clisp.org>
72938
72939         * gnulib-tool (func_get_automake_snippet): Append an automatically
72940         computed EXTRA_DIST augmentation.
72941         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
72942         * modules/alloca-opt (Makefile.am): Likewise.
72943         * modules/allocsa (Makefile.am): Likewise.
72944         * modules/arcfour (Makefile.am): Likewise.
72945         * modules/arctwo (Makefile.am): Likewise.
72946         * modules/argmatch (Makefile.am): Likewise.
72947         * modules/argz (Makefile.am): Likewise.
72948         * modules/atexit (Makefile.am): Likewise.
72949         * modules/backupfile (Makefile.am): Likewise.
72950         * modules/byteswap (Makefile.am): Likewise.
72951         * modules/c-strtod (Makefile.am): Likewise.
72952         * modules/c-strtold (Makefile.am): Likewise.
72953         * modules/calloc (Makefile.am): Likewise.
72954         * modules/canon-host (Makefile.am): Likewise.
72955         * modules/canonicalize (Makefile.am): Likewise.
72956         * modules/chdir-long (Makefile.am): Likewise.
72957         * modules/chdir-safer (Makefile.am): Likewise.
72958         * modules/check-version (Makefile.am): Likewise.
72959         * modules/chown (Makefile.am): Likewise.
72960         * modules/cloexec (Makefile.am): Likewise.
72961         * modules/close-stream (Makefile.am): Likewise.
72962         * modules/closeout (Makefile.am): Likewise.
72963         * modules/crc (Makefile.am): Likewise.
72964         * modules/csharpexec (Makefile.am): Likewise.
72965         * modules/cycle-check (Makefile.am): Likewise.
72966         * modules/des (Makefile.am): Likewise.
72967         * modules/dev-ino (Makefile.am): Likewise.
72968         * modules/dirfd (Makefile.am): Likewise.
72969         * modules/dirname (Makefile.am): Likewise.
72970         * modules/dup2 (Makefile.am): Likewise.
72971         * modules/eealloc (Makefile.am): Likewise.
72972         * modules/error (Makefile.am): Likewise.
72973         * modules/euidaccess (Makefile.am): Likewise.
72974         * modules/exclude (Makefile.am): Likewise.
72975         * modules/exitfail (Makefile.am): Likewise.
72976         * modules/fcntl-safer (Makefile.am): Likewise.
72977         * modules/fcntl (Makefile.am): Likewise.
72978         * modules/file-type (Makefile.am): Likewise.
72979         * modules/fileblocks (Makefile.am): Likewise.
72980         * modules/filemode (Makefile.am): Likewise.
72981         * modules/filenamecat (Makefile.am): Likewise.
72982         * modules/fnmatch (Makefile.am): Likewise.
72983         * modules/fopen-safer (Makefile.am): Likewise.
72984         * modules/fpending (Makefile.am): Likewise.
72985         * modules/fprintftime (Makefile.am): Likewise.
72986         * modules/free (Makefile.am): Likewise.
72987         * modules/fsusage (Makefile.am): Likewise.
72988         * modules/ftruncate (Makefile.am): Likewise.
72989         * modules/fts (Makefile.am): Likewise.
72990         * modules/gc-arcfour (Makefile.am): Likewise.
72991         * modules/gc-des (Makefile.am): Likewise.
72992         * modules/gc-hmac-md5 (Makefile.am): Likewise.
72993         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
72994         * modules/gc-md4 (Makefile.am): Likewise.
72995         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
72996         * modules/gc-sha1 (Makefile.am): Likewise.
72997         * modules/gc (Makefile.am): Likewise.
72998         * modules/getaddrinfo (Makefile.am): Likewise.
72999         * modules/getcwd (Makefile.am): Likewise.
73000         * modules/getdelim (Makefile.am): Likewise.
73001         * modules/getdomainname (Makefile.am): Likewise.
73002         * modules/getgroups (Makefile.am): Likewise.
73003         * modules/gethostname (Makefile.am): Likewise.
73004         * modules/gethrxtime (Makefile.am): Likewise.
73005         * modules/getline (Makefile.am): Likewise.
73006         * modules/getloadavg (Makefile.am): Likewise.
73007         * modules/getlogin_r (Makefile.am): Likewise.
73008         * modules/getndelim2 (Makefile.am): Likewise.
73009         * modules/getopt (Makefile.am): Likewise.
73010         * modules/getpagesize (Makefile.am): Likewise.
73011         * modules/getpass-gnu (Makefile.am): Likewise.
73012         * modules/getpass (Makefile.am): Likewise.
73013         * modules/getsubopt (Makefile.am): Likewise.
73014         * modules/gettime (Makefile.am): Likewise.
73015         * modules/gettimeofday (Makefile.am): Likewise.
73016         * modules/getugroups (Makefile.am): Likewise.
73017         * modules/getusershell (Makefile.am): Likewise.
73018         * modules/glob (Makefile.am): Likewise.
73019         * modules/group-member (Makefile.am): Likewise.
73020         * modules/hard-locale (Makefile.am): Likewise.
73021         * modules/hash (Makefile.am): Likewise.
73022         * modules/hmac-md5 (Makefile.am): Likewise.
73023         * modules/hmac-sha1 (Makefile.am): Likewise.
73024         * modules/human (Makefile.am): Likewise.
73025         * modules/idcache (Makefile.am): Likewise.
73026         * modules/imaxabs (Makefile.am): Likewise.
73027         * modules/imaxdiv (Makefile.am): Likewise.
73028         * modules/inet_ntop (Makefile.am): Likewise.
73029         * modules/inet_pton (Makefile.am): Likewise.
73030         * modules/intprops (Makefile.am): Likewise.
73031         * modules/inttostr (Makefile.am): Likewise.
73032         * modules/inttypes (Makefile.am): Likewise.
73033         * modules/isapipe (Makefile.am): Likewise.
73034         * modules/javaversion (Makefile.am): Likewise.
73035         * modules/lchmod (Makefile.am): Likewise.
73036         * modules/lchown (Makefile.am): Likewise.
73037         * modules/localcharset (Makefile.am): Likewise.
73038         * modules/long-options (Makefile.am): Likewise.
73039         * modules/lstat (Makefile.am): Likewise.
73040         * modules/malloc (Makefile.am): Likewise.
73041         * modules/mathl (Makefile.am): Likewise.
73042         * modules/mbchar (Makefile.am): Likewise.
73043         * modules/md2 (Makefile.am): Likewise.
73044         * modules/md4 (Makefile.am): Likewise.
73045         * modules/md5 (Makefile.am): Likewise.
73046         * modules/memcasecmp (Makefile.am): Likewise.
73047         * modules/memchr (Makefile.am): Likewise.
73048         * modules/memcmp (Makefile.am): Likewise.
73049         * modules/memcoll (Makefile.am): Likewise.
73050         * modules/memcpy (Makefile.am): Likewise.
73051         * modules/memmem (Makefile.am): Likewise.
73052         * modules/memmove (Makefile.am): Likewise.
73053         * modules/mempcpy (Makefile.am): Likewise.
73054         * modules/memrchr (Makefile.am): Likewise.
73055         * modules/memset (Makefile.am): Likewise.
73056         * modules/memxor (Makefile.am): Likewise.
73057         * modules/mkancesdirs (Makefile.am): Likewise.
73058         * modules/mkdir-p (Makefile.am): Likewise.
73059         * modules/mkdir (Makefile.am): Likewise.
73060         * modules/mkdtemp (Makefile.am): Likewise.
73061         * modules/mkstemp (Makefile.am): Likewise.
73062         * modules/mktime (Makefile.am): Likewise.
73063         * modules/modechange (Makefile.am): Likewise.
73064         * modules/mountlist (Makefile.am): Likewise.
73065         * modules/nanosleep (Makefile.am): Likewise.
73066         * modules/obstack (Makefile.am): Likewise.
73067         * modules/openat (Makefile.am): Likewise.
73068         * modules/pagealign_alloc (Makefile.am): Likewise.
73069         * modules/pathmax (Makefile.am): Likewise.
73070         * modules/physmem (Makefile.am): Likewise.
73071         * modules/poll (Makefile.am): Likewise.
73072         * modules/posixtm (Makefile.am): Likewise.
73073         * modules/posixver (Makefile.am): Likewise.
73074         * modules/putenv (Makefile.am): Likewise.
73075         * modules/quote (Makefile.am): Likewise.
73076         * modules/quotearg (Makefile.am): Likewise.
73077         * modules/raise (Makefile.am): Likewise.
73078         * modules/read-file (Makefile.am): Likewise.
73079         * modules/readline (Makefile.am): Likewise.
73080         * modules/readlink (Makefile.am): Likewise.
73081         * modules/readtokens (Makefile.am): Likewise.
73082         * modules/readutmp (Makefile.am): Likewise.
73083         * modules/realloc (Makefile.am): Likewise.
73084         * modules/regex (Makefile.am): Likewise.
73085         * modules/rename-dest-slash (Makefile.am): Likewise.
73086         * modules/rename (Makefile.am): Likewise.
73087         * modules/rijndael (Makefile.am): Likewise.
73088         * modules/rmdir (Makefile.am): Likewise.
73089         * modules/rpmatch (Makefile.am): Likewise.
73090         * modules/safe-read (Makefile.am): Likewise.
73091         * modules/safe-write (Makefile.am): Likewise.
73092         * modules/same-inode (Makefile.am): Likewise.
73093         * modules/same (Makefile.am): Likewise.
73094         * modules/save-cwd (Makefile.am): Likewise.
73095         * modules/savedir (Makefile.am): Likewise.
73096         * modules/setenv (Makefile.am): Likewise.
73097         * modules/settime (Makefile.am): Likewise.
73098         * modules/sha1 (Makefile.am): Likewise.
73099         * modules/sig2str (Makefile.am): Likewise.
73100         * modules/snprintf (Makefile.am): Likewise.
73101         * modules/stat-macros (Makefile.am): Likewise.
73102         * modules/stat-time (Makefile.am): Likewise.
73103         * modules/stdbool (Makefile.am): Likewise.
73104         * modules/stdint (Makefile.am): Likewise.
73105         * modules/stdlib-safer (Makefile.am): Likewise.
73106         * modules/stpcpy (Makefile.am): Likewise.
73107         * modules/stpncpy (Makefile.am): Likewise.
73108         * modules/strcase (Makefile.am): Likewise.
73109         * modules/strcasestr (Makefile.am): Likewise.
73110         * modules/strchrnul (Makefile.am): Likewise.
73111         * modules/strcspn (Makefile.am): Likewise.
73112         * modules/strdup (Makefile.am): Likewise.
73113         * modules/strerror (Makefile.am): Likewise.
73114         * modules/strftime (Makefile.am): Likewise.
73115         * modules/strndup (Makefile.am): Likewise.
73116         * modules/strnlen (Makefile.am): Likewise.
73117         * modules/strpbrk (Makefile.am): Likewise.
73118         * modules/strsep (Makefile.am): Likewise.
73119         * modules/strstr (Makefile.am): Likewise.
73120         * modules/strtod (Makefile.am): Likewise.
73121         * modules/strtoimax (Makefile.am): Likewise.
73122         * modules/strtok_r (Makefile.am): Likewise.
73123         * modules/strtol (Makefile.am): Likewise.
73124         * modules/strtoll (Makefile.am): Likewise.
73125         * modules/strtoul (Makefile.am): Likewise.
73126         * modules/strtoull (Makefile.am): Likewise.
73127         * modules/strtoumax (Makefile.am): Likewise.
73128         * modules/strverscmp (Makefile.am): Likewise.
73129         * modules/sys_socket (Makefile.am): Likewise.
73130         * modules/sys_stat (Makefile.am): Likewise.
73131         * modules/sysexits (Makefile.am): Likewise.
73132         * modules/time_r (Makefile.am): Likewise.
73133         * modules/timegm (Makefile.am): Likewise.
73134         * modules/timespec (Makefile.am): Likewise.
73135         * modules/tmpfile-safer (Makefile.am): Likewise.
73136         * modules/trim (Makefile.am): Likewise.
73137         * modules/unistd-safer (Makefile.am): Likewise.
73138         * modules/unlinkdir (Makefile.am): Likewise.
73139         * modules/unlocked-io (Makefile.am): Likewise.
73140         * modules/userspec (Makefile.am): Likewise.
73141         * modules/utime (Makefile.am): Likewise.
73142         * modules/utimecmp (Makefile.am): Likewise.
73143         * modules/utimens (Makefile.am): Likewise.
73144         * modules/vasnprintf (Makefile.am): Likewise.
73145         * modules/vasprintf (Makefile.am): Likewise.
73146         * modules/vsnprintf (Makefile.am): Likewise.
73147         * modules/xalloc (Makefile.am): Likewise.
73148         * modules/xgetcwd (Makefile.am): Likewise.
73149         * modules/xnanosleep (Makefile.am): Likewise.
73150         * modules/xreadlink (Makefile.am): Likewise.
73151         * modules/xstrtod (Makefile.am): Likewise.
73152         * modules/xstrtol (Makefile.am): Likewise.
73153         * modules/xstrtold (Makefile.am): Likewise.
73154         * modules/yesno (Makefile.am): Likewise.
73155         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
73156
73157 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
73158
73159         * modules/error (Makefile.am): Distribute files through
73160         EXTRA_DIST, not lib_SOURCES.
73161
73162 2006-10-12  Eric Blake  <ebb9@byu.net>
73163
73164         * modules/error (Makefile.am): Distribute files in /lib.
73165         * modules/obstack (Makefile.am): Likewise.
73166
73167 2006-10-12  Bruno Haible  <bruno@clisp.org>
73168
73169         * modules/acl (Makefile.am): Distribute all files in lib/ through
73170         EXTRA_DIST.
73171         * modules/arcfour (Makefile.am): Likewise.
73172         * modules/arctwo (Makefile.am): Likewise.
73173         * modules/argmatch (Makefile.am): Likewise.
73174         * modules/argz (Makefile.am): Likewise.
73175         * modules/atexit (Makefile.am): Likewise.
73176         * modules/backupfile (Makefile.am): Likewise.
73177         * modules/c-strtod (Makefile.am): Likewise.
73178         * modules/c-strtold (Makefile.am): Likewise.
73179         * modules/calloc (Makefile.am): Likewise.
73180         * modules/canon-host (Makefile.am): Likewise.
73181         * modules/canonicalize (Makefile.am): Likewise.
73182         * modules/chdir-long (Makefile.am): Likewise.
73183         * modules/chdir-safer (Makefile.am): Likewise.
73184         * modules/check-version (Makefile.am): Likewise.
73185         * modules/chown (Makefile.am): Likewise.
73186         * modules/cloexec (Makefile.am): Likewise.
73187         * modules/close-stream (Makefile.am): Likewise.
73188         * modules/closeout (Makefile.am): Likewise.
73189         * modules/crc (Makefile.am): Likewise.
73190         * modules/cycle-check (Makefile.am): Likewise.
73191         * modules/des (Makefile.am): Likewise.
73192         * modules/dirfd (Makefile.am): Likewise.
73193         * modules/dirname (Makefile.am): Likewise.
73194         * modules/dup2 (Makefile.am): Likewise.
73195         * modules/euidaccess (Makefile.am): Likewise.
73196         * modules/exclude (Makefile.am): Likewise.
73197         * modules/exitfail (Makefile.am): Likewise.
73198         * modules/fcntl-safer (Makefile.am): Likewise.
73199         * modules/file-type (Makefile.am): Likewise.
73200         * modules/fileblocks (Makefile.am): Likewise.
73201         * modules/filemode (Makefile.am): Likewise.
73202         * modules/filenamecat (Makefile.am): Likewise.
73203         * modules/fnmatch (Makefile.am): Likewise.
73204         * modules/fopen-safer (Makefile.am): Likewise.
73205         * modules/fpending (Makefile.am): Likewise.
73206         * modules/fprintftime (Makefile.am): Likewise.
73207         * modules/free (Makefile.am): Likewise.
73208         * modules/fsusage (Makefile.am): Likewise.
73209         * modules/ftruncate (Makefile.am): Likewise.
73210         * modules/fts (Makefile.am): Likewise.
73211         * modules/gc (Makefile.am): Likewise.
73212         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
73213         * modules/getaddrinfo (Makefile.am): Likewise.
73214         * modules/getcwd (Makefile.am): Likewise.
73215         * modules/getdelim (Makefile.am): Likewise.
73216         * modules/getdomainname (Makefile.am): Likewise.
73217         * modules/getgroups (Makefile.am): Likewise.
73218         * modules/gethostname (Makefile.am): Likewise.
73219         * modules/gethrxtime (Makefile.am): Likewise.
73220         * modules/getline (Makefile.am): Likewise.
73221         * modules/getloadavg (Makefile.am): Likewise.
73222         * modules/getlogin_r (Makefile.am): Likewise.
73223         * modules/getopt (Makefile.am): Likewise.
73224         * modules/getpass (Makefile.am): Likewise.
73225         * modules/getpass-gnu (Makefile.am): Likewise.
73226         * modules/getsubopt (Makefile.am): Likewise.
73227         * modules/gettime (Makefile.am): Likewise.
73228         * modules/gettimeofday (Makefile.am): Likewise.
73229         * modules/getugroups (Makefile.am): Likewise.
73230         * modules/getusershell (Makefile.am): Likewise.
73231         * modules/glob (Makefile.am): Likewise.
73232         * modules/group-member (Makefile.am): Likewise.
73233         * modules/hard-locale (Makefile.am): Likewise.
73234         * modules/hash (Makefile.am): Likewise.
73235         * modules/hmac-md5 (Makefile.am): Likewise.
73236         * modules/hmac-sha1 (Makefile.am): Likewise.
73237         * modules/human (Makefile.am): Likewise.
73238         * modules/idcache (Makefile.am): Likewise.
73239         * modules/imaxabs (Makefile.am): Likewise.
73240         * modules/imaxdiv (Makefile.am): Likewise.
73241         * modules/inet_ntop (Makefile.am): Likewise.
73242         * modules/inet_pton (Makefile.am): Likewise.
73243         * modules/inttostr (Makefile.am): Likewise.
73244         * modules/isapipe (Makefile.am): Likewise.
73245         * modules/lchown (Makefile.am): Likewise.
73246         * modules/long-options (Makefile.am): Likewise.
73247         * modules/lstat (Makefile.am): Likewise.
73248         * modules/malloc (Makefile.am): Likewise.
73249         * modules/mathl (Makefile.am): Likewise.
73250         * modules/mbchar (Makefile.am): Likewise.
73251         * modules/md2 (Makefile.am): Likewise.
73252         * modules/md4 (Makefile.am): Likewise.
73253         * modules/md5 (Makefile.am): Likewise.
73254         * modules/memcasecmp (Makefile.am): Likewise.
73255         * modules/memchr (Makefile.am): Likewise.
73256         * modules/memcmp (Makefile.am): Likewise.
73257         * modules/memcoll (Makefile.am): Likewise.
73258         * modules/memcpy (Makefile.am): Likewise.
73259         * modules/memmem (Makefile.am): Likewise.
73260         * modules/memmove (Makefile.am): Likewise.
73261         * modules/mempcpy (Makefile.am): Likewise.
73262         * modules/memrchr (Makefile.am): Likewise.
73263         * modules/memset (Makefile.am): Likewise.
73264         * modules/memxor (Makefile.am): Likewise.
73265         * modules/mkancesdirs (Makefile.am): Likewise.
73266         * modules/mkdir (Makefile.am): Likewise.
73267         * modules/mkdir-p (Makefile.am): Likewise.
73268         * modules/mkdtemp (Makefile.am): Likewise.
73269         * modules/mkstemp (Makefile.am): Likewise.
73270         * modules/mktime (Makefile.am): Likewise.
73271         * modules/modechange (Makefile.am): Likewise.
73272         * modules/mountlist (Makefile.am): Likewise.
73273         * modules/nanosleep (Makefile.am): Likewise.
73274         * modules/openat (Makefile.am): Likewise.
73275         * modules/pagealign_alloc (Makefile.am): Likewise.
73276         * modules/physmem (Makefile.am): Likewise.
73277         * modules/poll (Makefile.am): Likewise.
73278         * modules/posixtm (Makefile.am): Likewise.
73279         * modules/posixver (Makefile.am): Likewise.
73280         * modules/putenv (Makefile.am): Likewise.
73281         * modules/quote (Makefile.am): Likewise.
73282         * modules/quotearg (Makefile.am): Likewise.
73283         * modules/raise (Makefile.am): Likewise.
73284         * modules/read-file (Makefile.am): Likewise.
73285         * modules/readline (Makefile.am): Likewise.
73286         * modules/readlink (Makefile.am): Likewise.
73287         * modules/readtokens (Makefile.am): Likewise.
73288         * modules/readutmp (Makefile.am): Likewise.
73289         * modules/realloc (Makefile.am): Likewise.
73290         * modules/regex (Makefile.am): Likewise.
73291         * modules/rename (Makefile.am): Likewise.
73292         * modules/rename-dest-slash (Makefile.am): Likewise.
73293         * modules/rijndael (Makefile.am): Likewise.
73294         * modules/rmdir (Makefile.am): Likewise.
73295         * modules/rpmatch (Makefile.am): Likewise.
73296         * modules/safe-read (Makefile.am): Likewise.
73297         * modules/safe-write (Makefile.am): Likewise.
73298         * modules/same (Makefile.am): Likewise.
73299         * modules/save-cwd (Makefile.am): Likewise.
73300         * modules/savedir (Makefile.am): Likewise.
73301         * modules/setenv (Makefile.am): Likewise.
73302         * modules/settime (Makefile.am): Likewise.
73303         * modules/sha1 (Makefile.am): Likewise.
73304         * modules/sig2str (Makefile.am): Likewise.
73305         * modules/snprintf (Makefile.am): Likewise.
73306         * modules/stdlib-safer (Makefile.am): Likewise.
73307         * modules/stpcpy (Makefile.am): Likewise.
73308         * modules/stpncpy (Makefile.am): Likewise.
73309         * modules/strcase (Makefile.am): Likewise.
73310         * modules/strcasestr (Makefile.am): Likewise.
73311         * modules/strchrnul (Makefile.am): Likewise.
73312         * modules/strcspn (Makefile.am): Likewise.
73313         * modules/strdup (Makefile.am): Likewise.
73314         * modules/strerror (Makefile.am): Likewise.
73315         * modules/strftime (Makefile.am): Likewise.
73316         * modules/strndup (Makefile.am): Likewise.
73317         * modules/strnlen (Makefile.am): Likewise.
73318         * modules/strpbrk (Makefile.am): Likewise.
73319         * modules/strsep (Makefile.am): Likewise.
73320         * modules/strstr (Makefile.am): Likewise.
73321         * modules/strtod (Makefile.am): Likewise.
73322         * modules/strtoimax (Makefile.am): Likewise.
73323         * modules/strtok_r (Makefile.am): Likewise.
73324         * modules/strtol (Makefile.am): Likewise.
73325         * modules/strtoll (Makefile.am): Likewise.
73326         * modules/strtoul (Makefile.am): Likewise.
73327         * modules/strtoull (Makefile.am): Likewise.
73328         * modules/strtoumax (Makefile.am): Likewise.
73329         * modules/strverscmp (Makefile.am): Likewise.
73330         * modules/time_r (Makefile.am): Likewise.
73331         * modules/timegm (Makefile.am): Likewise.
73332         * modules/tmpfile-safer (Makefile.am): Likewise.
73333         * modules/unistd-safer (Makefile.am): Likewise.
73334         * modules/unlinkdir (Makefile.am): Likewise.
73335         * modules/userspec (Makefile.am): Likewise.
73336         * modules/utime (Makefile.am): Likewise.
73337         * modules/utimecmp (Makefile.am): Likewise.
73338         * modules/utimens (Makefile.am): Likewise.
73339         * modules/vasnprintf (Makefile.am): Likewise.
73340         * modules/vasprintf (Makefile.am): Likewise.
73341         * modules/vsnprintf (Makefile.am): Likewise.
73342         * modules/xalloc (Makefile.am): Likewise.
73343         * modules/xgetcwd (Makefile.am): Likewise.
73344         * modules/xnanosleep (Makefile.am): Likewise.
73345         * modules/xreadlink (Makefile.am): Likewise.
73346         * modules/xstrtod (Makefile.am): Likewise.
73347         * modules/xstrtol (Makefile.am): Likewise.
73348         * modules/xstrtold (Makefile.am): Likewise.
73349         * modules/yesno (Makefile.am): Likewise.
73350
73351 2006-10-12  Jim Meyering  <jim@meyering.net>
73352
73353         * m4/getloadavg.m4: Revert the change below.
73354
73355         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
73356         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
73357         fail with a symlink, which is what coreutils' ./bootstrap now
73358         creates by default.
73359
73360 2006-10-12  Bruno Haible  <bruno@clisp.org>
73361
73362         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
73363         mingw.
73364         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
73365         MSVC and mingw explicitly.
73366
73367 2006-10-11  Simon Josefsson  <jas@extundo.com>
73368             Bruno Haible  <bruno@clisp.org>
73369
73370         Add support for multiple gnulib-tool invocations in the scope of a
73371         single configure.ac file.
73372         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
73373         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
73374         with the same contents as the _LIBADD variable.
73375         (func_emit_initmacro_start, func_emit_initmacro_end,
73376         func_emit_initmacro_done): New functions.
73377         (func_import, func_create_testdir): Invoke them. Allow the identifiers
73378         gl_LIBOBJS and gl_LTLIBOBJS.
73379
73380 2006-10-11  Bruno Haible  <bruno@clisp.org>
73381
73382         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
73383         (func_create_testdir): Don't create po/Makefile.am, don't invoke
73384         autoreconf. Instead, invoke autopoint explicitly but move back the
73385         *.m4 files from gnulib.
73386
73387 2006-10-11  Bruno Haible  <bruno@clisp.org>
73388
73389         * gnulib-tool (func_usage): Make module names after --create-testdir
73390         optional.
73391         (func_create_testdir): If no module was specified, use nearly all
73392         modules.
73393
73394 2006-10-12  Jim Meyering  <jim@meyering.net>
73395
73396         Big performance improvement for fts-based tools that use FTS_NOSTAT.
73397         Avoid spurious inode-mismatch problems on non-POSIX file systems.
73398         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
73399         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
73400         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
73401         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
73402         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
73403         (fts_set_stat_required): New function.
73404         (fts_open): Defer the calls to fts_stat, if possible or requested.
73405         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
73406         into fts_stat itself.
73407         (fts_read): Perform any required (deferred) fts_stat call.
73408         (fts_build): Likewise, for the directory we're about to open and read.
73409         In the readdir loop, carefully decide whether each entry will require
73410         an eventual call to fts_stat, using dirent.d_type info if available.
73411         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
73412         a command line argument into this function.  Update all callers.
73413         Map a return value of FTS_DOT to FTS_D for a command line argument.
73414         * modules/fts (Depends-on): Add d-type.  Alphabetize.
73415         Thanks to Miklos Szeredi for his tenacity and for the initial
73416         bug report about "find" failing on a FUSE-based file system.
73417
73418         * lib/fts.c (fts_open): Use consistent indentation.
73419
73420 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
73421
73422         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
73423         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
73424         reported by Jim Meyering.  All uses of cache variables renamed
73425         to match Autoconf's.
73426         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
73427         the other one.
73428
73429         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
73430         Fix misspelling in diagnostic.
73431
73432 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
73433
73434         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
73435         defined.  Problem reported by Matthew Woehlke.
73436
73437         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
73438         Add support for Tandem NonStop R series.
73439         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
73440         Use new macro.
73441
73442         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
73443         (has_trailing_slash): Omit size arg; all callers changed.
73444         Omit 'inline', since it doesn't help performance and we'd
73445         need to configure it.
73446         Don't count //, ///, etc. as having a trailing slash.
73447         As a side effect, this removes a C99ism reported by Matthew Woehlke.
73448         (rpl_rename_dest_slash): On failure, use rename's errno rather
73449         than (in some cases) an incorrect or junk errno.
73450         Simplify code by removing need to compute length; this does
73451         cause it to make two passes instead of one over the file name,
73452         but it's worth it.
73453
73454         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
73455         change, since Autoconf's version may no longer be appropriate now
73456         that we are using CVS Autoconf's version.  Add support for Tandem.
73457
73458 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
73459             Bruno Haible  <bruno@clisp.org>
73460
73461         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
73462         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
73463         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
73464         gl_AC_TYPE_LONG_LONG.
73465
73466         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
73467         instead of HAVE_LONG_LONG.
73468         * lib/printf-args.c (printf_fetchargs): Likewise.
73469         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
73470         * lib/vasnprintf.c (VASNPRINTF): Likewise.
73471         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
73472         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
73473         gl_AC_TYPE_LONG_LONG.
73474
73475 2006-10-11  Bruno Haible  <bruno@clisp.org>
73476
73477         * m4/longlong.m4: Add comments.
73478         * m4/ulonglong.m4: Likewise.
73479
73480 2006-10-10  Bruno Haible  <bruno@clisp.org>
73481
73482         Make it possible to #define stpcpy, strdup to aliases.
73483         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
73484         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
73485
73486 2006-10-10  Bruno Haible  <bruno@clisp.org>
73487
73488         Make it possible to #define gcd to an alias.
73489         * lib/gcd.c: Include config.h.
73490
73491 2006-10-10  Bruno Haible  <bruno@clisp.org>
73492
73493         Make it possible to #define c_isascii to an alias.
73494         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
73495         defined. Undefine the macros before defining them, to avoid gcc
73496         warnings.
73497         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
73498         define NO_C_CTYPE_MACROS early.
73499
73500 2006-10-10  Bruno Haible  <bruno@clisp.org>
73501
73502         Make it possible to #define set_program_name to an alias.
73503         * lib/progname.c: Don't undefine set_program_name; instead, undefine
73504         ENABLE_RELOCATABLE early.
73505
73506 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
73507
73508         Port to Tandem NSK OSS, which has 64-bit signed int but at most
73509         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
73510         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
73511         More generally, don't assume that 64-bit signed int is available
73512         if unsigned int is, and vice versa.
73513         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
73514         unsigned symbols, not on their signed counterparts.
73515         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
73516         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
73517         (UINT64_C, UINTMAX_C):
73518         Likewise.
73519         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
73520         unsigned counterparts.
73521         (Have_long_long, Unsigned): New macros.
73522         (Int): Renamed from INT.
73523         (strtoimax): Use the new macros.
73524         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
73525         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
73526         * modules/inttypes (inttypes.h): Substitute
73527         HAVE_UNSIGNED_LONG_LONG_INT.
73528         * modules/stdint (stdint.h): Likewise.
73529         (Files): Add m4/ulonglong.m4.
73530
73531 2006-10-10  Bruno Haible  <bruno@clisp.org>
73532
73533         Fix a gcc -Wshadow warning.
73534         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
73535         to 'bucket'.
73536         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
73537         gl_linked_indexof_from_to): Likewise.
73538         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
73539         Likewise.
73540         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
73541         Likewise.
73542         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
73543         Reported by Eric Blake.
73544
73545 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
73546
73547         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
73548         for NetBSD.  Problem reported by Bruno Haible.
73549
73550 2006-10-09  Jim Meyering  <jim@meyering.net>
73551
73552         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
73553         Patch from Bruno Haible.
73554
73555 2006-10-09  Jim Meyering  <jim@meyering.net>
73556
73557         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
73558         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
73559         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
73560
73561 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
73562
73563         Don't include <config.h> twice; this doesn't work in some cases,
73564         e.g., when config.h has "#define intmax_t long long int" and
73565         we include <config.h>, <inttypes.h>, <config.h> in that order.
73566         Problem reported by Matthew Woehlke in:
73567         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
73568         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
73569         * lib/fts-cycle.c: Don't include config.h.
73570         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
73571         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
73572         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
73573         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
73574         inttypes.h.
73575         * lib/xstrtoumax.c: Likewise.
73576         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
73577         __strtol and the like, so that this module is more like its siblings.
73578         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
73579         Remove; no longer needed now that we assume gnulib inttypes.h.
73580
73581 2006-10-08  Bruno Haible  <bruno@clisp.org>
73582
73583         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
73584         option.
73585
73586 2006-10-07  Jim Meyering  <jim@meyering.net>
73587
73588         * modules/inttypes (inttypes.h): Revert what seems to have been
73589         an inadvertent part of today's change: use "|", not "/" in the
73590         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
73591
73592 2006-10-07  Bruno Haible  <bruno@clisp.org>
73593
73594         * modules/sublist: New file.
73595
73596 2006-10-07  Bruno Haible  <bruno@clisp.org>
73597
73598         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
73599         * modules/argz (argz.h): Likewise.
73600         * modules/arpa_inet (arpa/inet.h): Likewise.
73601         * modules/byteswap (byteswap.h): Likewise.
73602         * modules/configmake (configmake.h): Likewise.
73603         * modules/fcntl (fcntl.h): Likewise.
73604         * modules/fnmatch (fnmatch.h): Likewise.
73605         * modules/getopt (getopt.h): Likewise.
73606         * modules/glob (glob.h): Likewise.
73607         * modules/inttypes (inttypes.h): Likewise.
73608         * modules/netinet_in (netinet/in.h): Likewise.
73609         * modules/poll (poll.h): Likewise.
73610         * modules/stdbool (stdbool.h): Likewise.
73611         * modules/stdint (stdint.h): Likewise.
73612         * modules/sys_select (sys/select.h): Likewise.
73613         * modules/sys_socket (sys/socket.h): Likewise.
73614         * modules/sys_stat (sys/stat.h): Likewise.
73615         * modules/sysexits (sysexits.h): Likewise.
73616         * modules/unistd (unistd.h): Likewise.
73617         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
73618         Add a "DO NOT EDIT" comment to the generated file.
73619         (func_import): Likewise for gnulib-comp.m4.
73620
73621 2006-10-07  Bruno Haible  <bruno@clisp.org>
73622
73623         * lib/gl_sublist.h: New file.
73624         * lib/gl_sublist.c: New file.
73625
73626 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
73627
73628         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
73629         name (relative to the original working directory) and the file
73630         name component (relative to the temporary working directory).  All
73631         callers changed.
73632         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
73633         * lib/mkdir-p.c (make_dir_parents): Likewise.
73634         * lib/mkdir-p.h (make_dir_parents): Likewise.
73635
73636 2006-10-06  Eric Blake  <ebb9@byu.net>
73637
73638         Define several macros for use by the clean-temp module.
73639         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
73640         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
73641         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
73642
73643         * lib/clean-temp.h (close_stream_temp): New declaration.
73644         * lib/clean-temp.c (includes): Pull in headers according to what
73645         other modules are in use.
73646         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
73647
73648 2006-10-06  Bruno Haible  <bruno@clisp.org>
73649
73650         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
73651         instead of fopen, fwriteerror.
73652
73653 2006-10-06  Bruno Haible  <bruno@clisp.org>
73654
73655         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
73656         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
73657         int.
73658         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
73659         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
73660         Return an error indicator.
73661         Suggested by Eric Blake.
73662
73663 2006-10-06  Bruno Haible  <bruno@clisp.org>
73664
73665         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
73666         Reported by Eric Blake.
73667
73668 2006-10-06  Bruno Haible  <bruno@clisp.org>
73669
73670         * modules/closeout (Description): Mention stderr too.
73671
73672 2006-10-06  Bruno Haible  <bruno@clisp.org>
73673         and Paul Eggert  <eggert@cs.ucla.edu>
73674
73675         * lib/closeout.c (close_stdout): Also close stderr.
73676         * lib/closeout.h: Update comment.
73677
73678 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
73679
73680         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
73681         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
73682         * lib/dirchownmod.c: Include lchown.h.
73683         * lib/lchown.c: Don't include files that lchown.h now includes.
73684         Don't declare chown, since lchown.h now does that.
73685         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
73686         (lchown): Define to rpl_chown if lchown is declared but
73687         does not exist.  Declare using a prototype if lchown is not
73688         declared.  Add a copyright notice.
73689         * lib/mkstemp.h: Include <unistd.h>.
73690         * lib/openat.c: Include lchown.h.
73691
73692         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
73693         we now test for that separately.
73694         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
73695         rather than O_NOFOLLOW, when testing whether it's possible to
73696         avoid a race condition reliably.
73697         * lib/savewd.c (savewd_chdir): Likewise.
73698
73699         Remove macros that are no longer needed now that stdint.h is
73700         reliable.
73701         * lib/fsusage.c (UINTMAX_MAX): Remove.
73702         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
73703         * lib/utimecmp.c (SIZE_MAX): Remove.
73704
73705         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
73706
73707         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
73708         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
73709         O_NOATIME works.
73710
73711 2006-10-05  Bruno Haible  <bruno@clisp.org>
73712
73713         * lib/gl_list.h (gl_sortedlist_search_from_to,
73714         gl_sortedlist_indexof_from_to): New declarations.
73715         (gl_list_implementation): New fields sortedlist_search_from_to,
73716         sortedlist_indexof_from_to.
73717         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
73718         inline functions.
73719         * lib/gl_list.c (gl_sortedlist_search_from_to,
73720         gl_sortedlist_indexof_from_to): New functions.
73721         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
73722         function.
73723         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
73724         (gl_array_sortedlist_search_from_to): New function.
73725         (gl_array_list_implementation): Update.
73726         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
73727         function.
73728         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
73729         (gl_carray_sortedlist_search_from_to): New function.
73730         (gl_carray_list_implementation): Update.
73731         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
73732         gl_linked_sortedlist_indexof_from_to): New functions.
73733         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
73734         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
73735         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
73736         gl_tree_sortedlist_indexof_from_to): New functions.
73737         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
73738         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
73739         Update.
73740         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
73741         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
73742         Update.
73743
73744 2006-10-05  Bruno Haible  <bruno@clisp.org>
73745
73746         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
73747         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
73748         (struct gl_list_implementation): Add fields search_from_to,
73749         indexof_from_to. Remove fields search, indexof.
73750         (gl_list_search): Use the search_from_to method.
73751         (gl_list_search_from, gl_list_search_from_to): New functions.
73752         (gl_list_indexof): Use the indexof_from_to method.
73753         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
73754         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
73755         (gl_list_search_from, gl_list_search_from_to): New functions.
73756         (gl_list_indexof): Use the indexof_from_to method.
73757         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
73758         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
73759         gl_array_indexof. Add start_index, end_index arguments.
73760         (gl_array_search_from_to): Renamed from gl_array_search. Add
73761         start_index, end_index arguments.
73762         (gl_array_remove, gl_array_list_implementation): Update.
73763         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
73764         gl_carray_indexof. Add start_index, end_index arguments.
73765         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
73766         start_index, end_index arguments.
73767         (gl_carray_remove, gl_carray_list_implementation): Update.
73768         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
73769         gl_linked_search. Add start_index, end_index arguments.
73770         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
73771         start_index, end_index arguments.
73772         (gl_linked_remove): Update.
73773         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
73774         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
73775         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
73776         field to 'size_t'.
73777         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
73778         gl_tree_search. Add start_index, end_index arguments.
73779         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
73780         start_index, end_index arguments.
73781         (gl_tree_remove): Update.
73782         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
73783         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
73784         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
73785         function.
73786         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
73787         gl_tree_search. Add start_index, end_index arguments.
73788         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
73789         start_index, end_index arguments.
73790         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
73791         Update.
73792         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
73793
73794 2006-10-05  Bruno Haible  <bruno@clisp.org>
73795
73796         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
73797
73798         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
73799         fwriteerror_temp): New declarations.
73800         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
73801         (descriptors): New variable.
73802         (cleanup): First, close the descriptors.
73803         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
73804         fclose_temp, fwriteerror_temp): New functions.
73805
73806 2006-10-04  Jim Meyering  <jim@meyering.net>
73807
73808         * lib/fts.c (fts_open): Tiny comment change.
73809
73810 2006-10-04  Bruno Haible  <bruno@clisp.org>
73811
73812         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
73813         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
73814         gl_LOCK_BODY.
73815         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
73816         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
73817         gl_LOCK_EARLY_BODY.
73818         (gl_LOCK): Require gl_LOCK_BODY.
73819
73820 2006-10-04  Bruno Haible  <bruno@clisp.org>
73821
73822         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
73823         (gl_oset_search_atleast): New declaration.
73824         (struct gl_oset_implementation): Add field 'search_atleast'.
73825         (gl_oset_search_atleast): New inline function.
73826         * lib/gl_oset.c (gl_oset_search_atleast): New function.
73827         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
73828         (gl_array_oset_implementation): Update.
73829         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
73830         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
73831         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
73832
73833 2006-10-04  Bruno Haible  <bruno@clisp.org>
73834
73835         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
73836
73837 2006-10-03  Bruno Haible  <bruno@clisp.org>
73838
73839         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
73840         from gl_avltreehash_list_implementation.
73841
73842 2006-10-03  Bruno Haible  <bruno@clisp.org>
73843
73844         * lib/gl_oset.c (gl_oset_add): Fix return type.
73845
73846 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
73847
73848         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
73849
73850 2006-10-02  Eric Blake  <ebb9@byu.net>
73851
73852         * modules/strnlen (Depends-on): Add extensions.
73853
73854 2006-10-02  Eric Blake  <ebb9@byu.net>
73855
73856         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
73857         definition in 2.60+.
73858
73859 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
73860
73861         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
73862         checks.
73863
73864 2006-10-02  Bruno Haible  <bruno@clisp.org>
73865
73866         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
73867         to the AUTOMAKE_OPTIONS.
73868         Reported by Jim Meyering.
73869
73870 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
73871
73872         Work around bug in Solaris 10 /proc file system:
73873         /proc/self/fd/NNN/.. isn't the parent directory of
73874         the directory whose file descriptor is NNN.  This needs to
73875         be worked around at run time, not compile time, since a
73876         program might be built on Solaris 8, where things work, and
73877         run on Solaris 10.
73878         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
73879         to use the following interface instead:
73880         (OPENAT_BUFFER_SIZE): New macro.
73881         (openat_proc_name): New function.
73882         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
73883         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
73884         Likewise.
73885         * lib/openat-proc.c: New file.
73886         * modules/openat (Files): Add lib/openat-proc.c.
73887         (Depends-on): Add same-inode, stdbool.
73888         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
73889
73890 2006-09-29  Bruno Haible  <bruno@clisp.org>
73891
73892         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
73893         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
73894         argument. Set stdout_closed before testing for ferror, not after.
73895         (fwriteerror, fwriteerror_no_ebadf): New functions.
73896
73897 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73898
73899         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
73900
73901 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
73902
73903         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
73904         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
73905
73906 2006-09-28  Jim Meyering  <jim@meyering.net>
73907
73908         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
73909         Include <unistd.h>.
73910
73911 2006-09-28  Bruno Haible  <bruno@clisp.org>
73912
73913         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
73914         * modules/linkedhash-list (Depends-on): Likewise.
73915         * modules/rbtreehash-list (Depends-on): Likewise.
73916
73917 2006-09-28  Bruno Haible  <bruno@clisp.org>
73918
73919         * lib/strndup.h: Simplify the redefinition of strndup.
73920         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
73921         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
73922
73923 2006-09-28  Bruno Haible  <bruno@clisp.org>
73924
73925         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
73926         * lib/gl_linkedhash_list.c: Likewise.
73927         * lib/gl_rbtreehash_list.c: Likewise.
73928
73929 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
73930
73931         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
73932         getaddrinfo.
73933
73934         * lib/__fpending.h: Don't include <stdio_ext.h> unless
73935         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
73936         it causes <stdio_ext.h> to cause a compile-time error.
73937         Problem reported by Nelson H. F. Beebe.
73938         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
73939         of HAVE_DECL___PENDING.
73940
73941         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
73942         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
73943         declaration.
73944
73945 2006-09-27  Jim Meyering  <jim@meyering.net>
73946
73947         This file could end up with a definition for a function
73948         named __strndup, rather than rpl_strndup on a system with
73949         incomplete weak_alias support.
73950         * lib/strndup.c (strndup): Rename from __strndup.
73951         Remove #defines that used to map __strndup to strndup.
73952         Don't use K&R prototypes.
73953         Remove LIBC-related code, since this file is not sync'd with glibc.
73954         * lib/strndup.h: Revamp, accordingly.
73955         * m4/strndup.m4: Modernize.
73956
73957 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
73958
73959         * modules/savewd (Depends-on): Add 'raise'.
73960         * lib/savewd.c: Include <signal.h>, for 'raise'.
73961
73962 2006-09-26  Jim Meyering  <jim@meyering.net>
73963
73964         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
73965         when we detect Darwin 8.7.0's acl_get_file bug.
73966         Rearrange to perform the new (below) run-test while $LIBS
73967         contains any acl-related library.  Set USE_ACL at the end.
73968         (gl_ACL_GET_FILE): New function.
73969
73970 2006-09-26  Eric Blake  <ebb9@byu.net>
73971
73972         * lib/verror.c: Include <config.h> unconditionally.
73973
73974 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
73975
73976         * modules/clock-time (Maintainer): Add self.
73977         * modules/getlogin_r (Depends-on): Add extensions.
73978
73979 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73980
73981         * modules/clock-time: New module.
73982         * modules/nanosleep (Depends-on): Add clock-time.
73983         * modules/gethrxtime (Depends-on): Likewise.
73984         * modules/gettime (Depends-on): Likewise.
73985         * modules/settime (Depends-on): Likewise.
73986
73987         * modules/fts-lgpl: Depend on openat.
73988         * modules/mkancesdirs: Depend on savewd.
73989         * modules/mkdir-p: Likewise.
73990
73991 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73992
73993         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
73994
73995         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
73996         `gl_have_arbitrary_file_name_length_limit' to
73997         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
73998         actually works between configure runs.
73999
74000 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74001             Bruno Haible  <bruno@clisp.org>
74002
74003         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
74004
74005 2006-09-25  Jim Meyering  <jim@meyering.net>
74006
74007         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
74008         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
74009
74010 2006-09-25  Eric Blake  <ebb9@byu.net>
74011
74012         * gnulib-tool (func_import, func_create_testdir): Fix typos in
74013         exec's in 2006-09-18 patch when shuffling fds.
74014
74015 2006-09-25  Bruno Haible  <bruno@clisp.org>
74016
74017         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
74018         Reported by Jim Meyering.
74019
74020 2006-09-24  Jim Meyering  <jim@meyering.net>
74021
74022         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
74023         compare a pointer against a literal "0".  That caused failures with
74024         at least HP-UX's hpcc.
74025
74026 2006-09-22  Simon Josefsson  <jas@extundo.com>
74027
74028         * modules/gc-sha1:
74029         * modules/gc-md4:
74030         * modules/gc-hmac-sha1:
74031         * modules/gc-hmac-md5:
74032         * modules/gc-des:
74033         * modules/gc-arcfour: Distribute more files.
74034
74035 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74036
74037         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
74038         (gl_linked_iterator_from_to): Initialize struct completely.
74039         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
74040         (gl_tree_iterator_from_to): Likewise
74041         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
74042         * lib/gl_array_list.c [lint] (gl_array_iterator)
74043         (gl_array_iterator_from_to): Likewise.
74044         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
74045         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
74046         (gl_carray_iterator_from_to): Likewise.
74047
74048         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
74049         * lib/md4.c (md4_process_block): Remove unused variable.
74050         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
74051         parentheses for clarity.
74052
74053 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74054
74055         * modules/bison-i18n (Depends-on): Add gettext.
74056
74057 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74058
74059         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
74060         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
74061         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
74062         also add missing comma that caused broken test.
74063         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
74064         stdlib.h, for `abort'.
74065         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
74066         variables.
74067         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
74068         include unistd.h if present, for `rmdir'.
74069         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
74070         variables.
74071         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
74072         in the process include standard headers for prototypes.
74073         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
74074         gets declared on GNU/Linux.
74075         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
74076         unistd.h, for `rmdir'.
74077         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
74078
74079         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
74080         always true.
74081         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
74082
74083         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
74084
74085 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74086
74087         * gnulib-tool (func_version): Create output all at once.  This
74088         may help avoid triggering unnecessary SIGPIPEs, and at any
74089         rate it doesn't hurt.
74090
74091 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74092             Bruno Haible  <bruno@clisp.org>
74093
74094         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
74095         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
74096         * m4/signed.m4 (bh_C_SIGNED): Likewise.
74097
74098         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
74099         (gl_FUNC_VASPRINTF): Invoke it.
74100
74101 2006-09-22  Bruno Haible  <bruno@clisp.org>
74102
74103         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
74104         getloadavg.c as first argument.
74105
74106 2006-09-22  Bruno Haible  <bruno@clisp.org>
74107
74108         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
74109         at the beginning of the gl_INIT macro.
74110         * modules/getloadavg (configure.ac): Pass $gl_source_base to
74111         gl_GETLOADAVG.
74112
74113 2006-09-22  Bruno Haible  <bruno@clisp.org>
74114
74115         * gnulib-tool (func_create_megatestdir): Don't include the config-h
74116         module.
74117         Suggested by Ralf Wildenhues.
74118
74119 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
74120
74121         Import this patch from libc:
74122
74123         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
74124
74125         * lib/regex_internal.c (re_string_reconstruct): Handle
74126         offset < pstr->valid_raw_len && pstr->offsets_needed case.
74127         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
74128         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
74129         re_string_context_at.
74130
74131         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
74132         now requires it.
74133         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
74134         gl_REGEX now does it for us.
74135         (gl_REGEX): Add test taken from
74136         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
74137
74138         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
74139         Check that large offsets work.  Modernize Autoconf usages.
74140         Prefer "yes" to mean a good thing rather than a bad.
74141         Don't put "#define mkstemp" in config.h, as this might interfere
74142         with standard system headers that "#define mkstemp mkstemp64".
74143
74144         * modules/mkstemp (Depends-on): Add extensions, so that
74145         mkstemp is visible on some platforms.
74146         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
74147         (Include): Change to "mkstemp.h" from <stdlib.h>.
74148         (Files): Add mkstemp.h.
74149
74150         * lib/mkstemp.h: New file, since some standard headers
74151         #define mkstemp.
74152         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
74153         Include "mkstemp.h".
74154         Make the _LIBC code resemble glibc original more,
74155         e.g., use K&R style.
74156         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
74157         (mkstemp): Remove, since mkstemp.h does this for us.
74158         * lib/stdlib--.h: Include mkstemp.h.
74159
74160         Import this patch from libc:
74161
74162         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
74163
74164         * lib/tempname.c (__gen_tempname): Change attempts_min
74165         into a macro.  Use preprocessor to decide how to initialize
74166         attempts [Coverity CID 67].
74167
74168 2006-09-20  Bruno Haible  <bruno@clisp.org>
74169
74170         * lib/mkdtemp.c: Import from libc.
74171         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
74172                 * sysdeps/posix/tempname.c (__gen_tempname): Change
74173                 attempts_min into a macro.  Use preprocessor to decide how to
74174                 initialize attempts [Coverity CID 67].
74175         2001-11-27  Paul Eggert  <eggert@twinsun.com>
74176                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
74177                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
74178
74179 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74180
74181         * gnulib-tool (func_exit): New function, to allow to pass the
74182         exit status portably through the trap.  Use everywhere.
74183         (--help, --version): Signal a write error.
74184         (trap): catch SIGPIPE, for write errors.
74185         Exit at the end of the trap, with the correct exit status.
74186
74187 2006-09-19  Karl Berry  <karl@gnu.org>
74188
74189         * doc/gnulib.texi: note about the license texinfo files.
74190
74191 2006-09-19  Eric Blake  <ebb9@byu.net>
74192
74193         * gnulib-tool: Avoid space-tab.
74194
74195 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
74196
74197         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
74198         that prevented coreutils 6.1 from building.  Problem reported
74199         by Petter Reinholdtsen.
74200
74201 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
74202
74203         * gnulib-tool (avoidlist): Fix typo that broke options like
74204         --avoid=lock that are used by coreutils bootstrap.
74205
74206 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
74207
74208         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
74209         more systematically.
74210
74211 2006-09-18  Jim Meyering  <jim@meyering.net>
74212
74213         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
74214
74215 2006-09-18  Bruno Haible  <bruno@clisp.org>
74216
74217         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
74218
74219 2006-09-18  Bruno Haible  <bruno@clisp.org>
74220
74221         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
74222         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
74223         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
74224         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
74225         * m4/gettext.m4: Require autoconf >= 2.52.
74226         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
74227         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
74228         of gl_cv_header_inttypes_h.
74229
74230 2006-09-18  Bruno Haible  <bruno@clisp.org>
74231
74232         * lib/javaversion.c: Include configmake.h.
74233
74234 2006-09-18  Bruno Haible  <bruno@clisp.org>
74235
74236         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
74237         avoid that the while loops be executed in a subshell.
74238
74239 2006-09-18  Bruno Haible  <bruno@clisp.org>
74240
74241         * MODULES.html.sh (func_module): Break long lines.
74242         Suggested by Bruce Korb <bkorb@gnu.org>.
74243
74244 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74245
74246         Speed up by a factor of 1.12.
74247         * gnulib-tool (nl): New variable.
74248         (func_import): Rewrite include directive extraction to only read each
74249         directive once.
74250
74251 2006-09-17  Bruno Haible  <bruno@clisp.org>
74252
74253         * modules/javaversion (Makefile.am): Remove DEFS setting.
74254         (Depends-on): Add configmake, for PKGDATADIR definition.
74255
74256 2006-09-17  Bruno Haible  <bruno@clisp.org>
74257
74258         * gnulib-tool (func_create_testdir): Rewrite all files at once.
74259
74260 2006-09-17  Bruno Haible  <bruno@clisp.org>
74261
74262         * gnulib-tool (func_append): New function, stolen from libtool.m4.
74263         (func_modules_transitive_closure, func_modules_add_dummy,
74264         func_modules_to_filelist, func_import, func_create_testdir,
74265         func_create_megatestdir, ...): Use it wherever possible.
74266         Suggested by Ralf Wildenhues.
74267
74268 2006-09-16  Karl Berry  <karl@gnu.org>
74269
74270         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
74271         to avoid sectioning errors.
74272         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
74273         [ifinfo]: blank line after @center-ed titles.
74274         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
74275         Spell FSF address consistently with others.
74276         (These changes approved by rms.)
74277
74278 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74279
74280         Speed up by a factor of 1.61.
74281         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
74282         already checked module names again.
74283
74284 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74285
74286         Speed up by a factor of 1.13.
74287         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
74288         for new_files, and the input to func_add_or_update.
74289
74290 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74291
74292         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
74293         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
74294
74295 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
74296
74297         * modules/mkancesdirs (Depends-on): Add fcntl.
74298         * modules/savewd: New file.
74299         * MODULES.html.sh (File system functions): Add savewd.
74300
74301         * modules/configmake (Makefile.am): Add support for the
74302         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
74303
74304 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
74305
74306         * m4/savewd.m4: New file.
74307
74308 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
74309
74310         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
74311         (dirchownmod): New arg FD.  All callers changed.
74312         Use FD rather than opening the directory ourself, as opening is
74313         now the caller's responsibility.
74314         * lib/dirchownmod.h: Likewise.
74315         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
74316         hosts that require <sys/types.h> before <sys/stat.h>.  Include
74317         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
74318         (test_dir): Remove.
74319         (mkancesdirs): Return length of prefix of FILE that has already
74320         been made, or -2 if there is a child doing the work.  Redo
74321         algorithm so that it is O(N) rather than O(N**2).  Optimize away
74322         ".", and treat ".." specially since it might stray back into
74323         already-created areas.  Use a subprocess if necessary.  New arg
74324         WD; all users changed.  MAKE_DIR function should now return 1
74325         if it creates a directory that is not readable.  Return -2 if
74326         a child process is spun off.
74327         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
74328         Adjust signature to match code.
74329         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
74330         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
74331         all users changed.
74332         * lib/savewd.c, lib/savewd.h: New files.
74333
74334 2006-09-15  Jim Meyering  <jim@meyering.net>
74335
74336         * modules/rename-dest-slash: New module.
74337         * MODULES.html.sh (posix_compat): Add it here.
74338
74339         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
74340
74341 2006-09-15  Jim Meyering  <jim@meyering.net>
74342
74343         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
74344         file.
74345
74346         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
74347
74348 2006-09-15  Jim Meyering  <jim@meyering.net>
74349
74350         * lib/rename-dest-slash.c (has_trailing_slash): Use
74351         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
74352         (rpl_rename_dest_slash): Perform the cheaper trailing slash
74353         test before testing whether SRC is a directory.
74354         Suggestions from Bruno Haible.
74355
74356         Avoid a warning about an unused variable.
74357         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
74358         into the #ifdef block where it's used.
74359
74360         * lib/rename-dest-slash.c: New file.
74361
74362 2006-09-14  Bruno Haible  <bruno@clisp.org>
74363
74364         * lib/allocsa.c: Include <config.h> unconditionally.
74365         * lib/asnprintf.c: Likewise.
74366         * lib/asprintf.c: Likewise.
74367         * lib/c-strcasecmp.c: Likewise.
74368         * lib/c-strcasestr.c: Likewise.
74369         * lib/c-strncasecmp.c: Likewise.
74370         * lib/c-strstr.c: Likewise.
74371         * lib/classpath.c: Likewise.
74372         * lib/clean-temp.c: Likewise.
74373         * lib/concatpath.c: Likewise.
74374         * lib/copy-file.c: Likewise.
74375         * lib/csharpcomp.c: Likewise.
74376         * lib/csharpexec.c: Likewise.
74377         * lib/execute.c: Likewise.
74378         * lib/fatal-signal.c: Likewise.
74379         * lib/findprog.c: Likewise.
74380         * lib/fwriteerror.c: Likewise.
74381         * lib/gl_array_list.c: Likewise.
74382         * lib/gl_array_oset.c: Likewise.
74383         * lib/gl_avltree_list.c: Likewise.
74384         * lib/gl_avltree_oset.c: Likewise.
74385         * lib/gl_avltreehash_list.c: Likewise.
74386         * lib/gl_carray_list.c: Likewise.
74387         * lib/gl_linked_list.c: Likewise.
74388         * lib/gl_linkedhash_list.c: Likewise.
74389         * lib/gl_list.c: Likewise.
74390         * lib/gl_oset.c: Likewise.
74391         * lib/gl_rbtree_list.c: Likewise.
74392         * lib/gl_rbtree_oset.c: Likewise.
74393         * lib/gl_rbtreehash_list.c: Likewise.
74394         * lib/imaxabs.c: Likewise.
74395         * lib/imaxdiv.c: Likewise.
74396         * lib/javacomp.c: Likewise.
74397         * lib/javaexec.c: Likewise.
74398         * lib/javaversion.c: Likewise.
74399         * lib/linebreak.c: Likewise.
74400         * lib/localcharset.c: Likewise.
74401         * lib/lock.c: Likewise.
74402         * lib/mbchar.c: Likewise.
74403         * lib/mbswidth.c: Likewise.
74404         * lib/mkdtemp.c: Likewise.
74405         * lib/pipe.c: Likewise.
74406         * lib/printf-args.c: Likewise.
74407         * lib/printf-parse.c: Likewise.
74408         * lib/progname.c: Likewise.
74409         * lib/progreloc.c: Likewise.
74410         * lib/readlink.c: Likewise.
74411         * lib/sh-quote.c: Likewise.
74412         * lib/stpcpy.c: Likewise.
74413         * lib/stpncpy.c: Likewise.
74414         * lib/strcasecmp.c: Likewise.
74415         * lib/strcasestr.c: Likewise.
74416         * lib/strcspn.c: Likewise.
74417         * lib/striconv.c: Likewise.
74418         * lib/strncasecmp.c: Likewise.
74419         * lib/strnlen1.c: Likewise.
74420         * lib/strstr.c: Likewise.
74421         * lib/strtok_r.c: Likewise.
74422         * lib/tls.c: Likewise.
74423         * lib/tmpdir.c: Likewise.
74424         * lib/unicodeio.c: Likewise.
74425         * lib/unsetenv.c: Likewise.
74426         * lib/vasnprintf.c: Likewise.
74427         * lib/vasprintf.c: Likewise.
74428         * lib/wait-process.c: Likewise.
74429         * lib/xallocsa.c: Likewise.
74430         * lib/xsetenv.c: Likewise.
74431         * lib/xstriconv.c: Likewise.
74432
74433 2006-09-13  Simon Josefsson  <jas@extundo.com>
74434
74435         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
74436         that internally, suggested by Ralf Wildenhues
74437         <Ralf.Wildenhues@gmx.de>.
74438
74439 2006-09-13  Simon Josefsson  <jas@extundo.com>
74440
74441         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
74442         @LIBOBJS@.
74443         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74444
74445 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
74446
74447         * lib/_fpending.c: Include <config.h> unconditionally, since we no
74448         longer worry about uses that don't define HAVE_CONFIG_H.
74449         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
74450         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
74451         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
74452         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
74453         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
74454         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
74455         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
74456         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
74457         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
74458         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
74459         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
74460         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
74461         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
74462         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
74463         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
74464         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
74465         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
74466         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
74467         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
74468         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
74469         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
74470         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
74471         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
74472         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
74473         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
74474         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
74475         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
74476         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
74477         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
74478         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
74479         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
74480         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
74481         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
74482         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
74483         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
74484         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
74485         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
74486         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
74487         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
74488         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
74489         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
74490         Likewise.
74491
74492 2006-09-13  Eric Blake  <ebb9@byu.net>
74493
74494         * lib/getopt.c: Fix typo in last commit.
74495
74496 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
74497
74498         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
74499         dgettext.
74500
74501 2006-09-12  Jim Meyering  <jim@meyering.net>
74502
74503         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
74504         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
74505         Reported by Nelson H. F. Beebe.
74506
74507 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
74508
74509         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
74510         program_invocation_name and program_invocation_short_name are
74511         initialized.
74512         * lib/argp-namefrob.h: Move declarations of program_invocation_name
74513         and program_invocation_short_name to argp.h, so they are visible
74514         to user programs.
74515         * lib/argp.h: Likewise
74516
74517 2006-09-10  Bruno Haible  <bruno@clisp.org>
74518
74519         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
74520         m4/inttypes_h.m4, m4/uintmax_t.m4.
74521
74522 2006-09-10  Bruno Haible  <bruno@clisp.org>
74523
74524         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
74525         gl_AC_TYPE_UINTMAX_T.
74526
74527 2006-09-10  Bruno Haible  <bruno@clisp.org>
74528
74529         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
74530
74531 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
74532
74533         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
74534         convention.  Text proposed by Bruno Haible.
74535         (struct argp_option): Document the use of N_() wrappers.
74536
74537         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
74538         '\v', and translate the two parts separately, instead of feeding
74539         the whole string to gettext.  This allows to exclude
74540         '\v' from the strings visible to the translator by writing doc
74541         strings as N_("..") "\v" N_("..").
74542
74543 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
74544
74545         * config/srclist.txt: Undo latest change; the bug was fixed.
74546
74547 2006-09-09  Bruno Haible  <bruno@clisp.org>
74548
74549         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
74550         assignments if building a library without libtool.
74551         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
74552         in func_emit_lib_Makefile_am.
74553         (func_import): When building a static library libfoo.a, arrange to
74554         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
74555         (func_create_testdir): Likewise.
74556         * modules/gc (configure.ac, Makefile.am): If building statically,
74557         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
74558         * modules/iconvme (configure.ac, Makefile.am): Likewise.
74559         * modules/striconv (configure.ac, Makefile.am): Likewise.
74560         Based on a suggestion by Ralf Wildenhues.
74561
74562 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74563
74564         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
74565         Check for unistd.h too, since Autoconf doesn't assume POSIX.
74566         Also:
74567
74568         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74569         Add year_2050_test to catch glibc bug 2821
74570         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
74571
74572         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
74573         Prefer #ifdef to #if.
74574
74575         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
74576         Return from 'main' instead of calling 'exit'.
74577
74578 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74579
74580         * lib/mktime.c (guess_time_tm): Fix bug where mktime
74581         returned the maximum time_t value rather than (time_t) -1.
74582         Problem originally reported by William Bardwell
74583         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
74584
74585         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
74586         Moved to here ...
74587         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
74588         ... from here.
74589
74590 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74591
74592         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
74593         2821 is fixed.
74594
74595 2006-09-08  Jim Meyering  <jim@meyering.net>
74596
74597         Don't make generated files read-only.  That would bother too many
74598         people.  However, do retain the ability to work when targets are
74599         read-only: remove the destination and temporary files before writing
74600         them (when generated via sed or echo), or by using the -f option for
74601         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
74602         * modules/alloca-opt, modules/argz, modules/arpa_inet:
74603         * modules/byteswap, modules/configmake, modules/fcntl:
74604         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
74605         * modules/localcharset, modules/netinet_in, modules/poll:
74606         * modules/stdbool, modules/stdint, modules/sys_select:
74607         * modules/sys_socket, modules/sys_stat, modules/sysexits:
74608
74609 2006-09-08  Jim Meyering  <jim@meyering.net>
74610
74611         Avoid new build failure on FreeBSD 6.0.
74612         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
74613         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
74614         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
74615
74616 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74617
74618         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
74619
74620 2006-09-07  Jim Meyering  <jim@meyering.net>
74621
74622         Fix global typo in last change: use chmod u-w, not chmod u-x.
74623         Spotted by Paul Eggert and Bruce Korb.
74624         * modules/alloca-opt, modules/argz, modules/arpa_inet:
74625         * modules/byteswap, modules/configmake, modules/fcntl:
74626         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
74627         * modules/localcharset, modules/netinet_in, modules/poll:
74628         * modules/stdbool, modules/stdint, modules/sys_select:
74629         * modules/sys_socket, modules/sys_stat, modules/sysexits:
74630
74631 2006-09-06  Jim Meyering  <jim@meyering.net>
74632
74633         Make generated files be read-only.
74634         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
74635         Ensure that each generated file is now read-only.
74636         * modules/argz: Likewise.
74637         * modules/arpa_inet: Likewise.
74638         * modules/byteswap: Likewise.
74639         * modules/configmake: Likewise.
74640         * modules/fcntl: Likewise.
74641         * modules/fnmatch: Likewise.
74642         * modules/getopt: Likewise.
74643         * modules/glob: Likewise.
74644         * modules/inttypes: Likewise.
74645         * modules/netinet_in: Likewise.
74646         * modules/poll: Likewise.
74647         * modules/stdbool: Likewise.
74648         * modules/stdint: Likewise.
74649         * modules/sys_select: Likewise.
74650         * modules/sys_socket: Likewise.
74651         * modules/sys_stat: Likewise.
74652         * modules/sysexits: Likewise.
74653         * modules/localcharset: Same as above, but continue using temporary
74654         file named "t-$@" (why different?) rather than the "$@-t" used
74655         everywhere else.
74656
74657         * modules/sysexits (Makefile.am): Replace literal occurrences
74658         of "sysexit.h" more readable, and more consistent, "$@".
74659
74660 2006-09-06  Bruno Haible  <bruno@clisp.org>
74661
74662         * modules/striconv: New file.
74663         * modules/xstriconv: New file.
74664         * MODULES.html.sh (Internationalization functions): Add striconv,
74665         xstriconv.
74666
74667 2006-09-06  Bruno Haible  <bruno@clisp.org>
74668
74669         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
74670         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
74671         not using libtool correctly.
74672
74673 2006-09-06  Bruno Haible  <bruno@clisp.org>
74674
74675         * lib/striconv.h: New file.
74676         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
74677         iconvstring.c.
74678         * lib/xstriconv.h: New file.
74679         * lib/xstriconv.c: New file.
74680
74681 2006-09-06  Bruno Haible  <bruno@clisp.org>
74682
74683         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
74684         lib_..._LDFLAGS.
74685
74686 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74687
74688         * lib/argz_.h: Sync from Libtool.
74689
74690         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
74691                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
74692
74693         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
74694
74695 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
74696
74697         * modules/trim: New file.
74698
74699 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
74700
74701         * lib/trim.h: New file.
74702         * lib/trim.c: New file.
74703
74704 2006-09-05  Bruno Haible  <bruno@clisp.org>
74705
74706         * MODULES.html.sh (String handling): Add trim.
74707
74708 2006-09-04  Karl Berry  <karl@gnu.org>
74709
74710         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
74711         until next release.
74712
74713 2006-09-03  Bruno Haible  <bruno@clisp.org>
74714
74715         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
74716         correctly.
74717
74718 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
74719
74720         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
74721         not gl_GETLOADAVG.  Omit unneeded semicolons.
74722         Problems reported by Ralf Wildenhues in
74723         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
74724         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
74725         at the end, which is the usual gnulib style.
74726
74727         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
74728         of doing all the work ourselves.
74729         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
74730         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
74731
74732 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
74733
74734         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
74735         Problem reported by Ralf Wildenhues in
74736         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
74737
74738         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
74739         HAVE_STRUCT_STATFS_F_FSTYPENAME.
74740
74741 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
74742
74743         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
74744         yesterday's patch by changing test -n to test -z.
74745
74746 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
74747
74748         * modules/getloadavg (Files): Add m4/getloadavg.m4.
74749         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
74750         the former is now obsolescent.
74751
74752         * modules/chdir-long (Depends-on): Add fcntl.
74753
74754 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
74755
74756         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
74757         obsolescent, and programs should use gnulib instead.
74758         * m4/getloadavg.m4: New file, with contents taken from Autoconf
74759         but with prefixes changed.
74760
74761 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
74762
74763         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
74764         or stdbool.h, because they might not exist while configuring.
74765
74766         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
74767         Don't include unistd.h or limits.h; not needed, since chdir-long.h
74768         does that for us.
74769         (O_DIRECTORY): Remove.
74770
74771 2006-08-31  Eric Blake  <ebb9@byu.net>
74772
74773         * gnulib-tool: Don't let emacs change spaces to TAB.
74774
74775 2006-08-31  Bruno Haible  <bruno@clisp.org>
74776
74777         * gnulib-tool: When calling func_import more than once, do it in a
74778         subshell.
74779         Reported by Eric Blake <ebb9@byu.net>.
74780
74781 2006-08-31  Bruno Haible  <bruno@clisp.org>
74782
74783         * gnulib-tool (nl): Remove variable.
74784         (sed_transform_lib_file): Use more robust test for config-h module.
74785         (func_import): Fix typo in 2006-08-25 patch.
74786
74787 2006-08-31  Bruno Haible  <bruno@clisp.org>
74788
74789         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
74790         specified, augment Makefile.am variables instead of assigning them.
74791
74792 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
74793
74794         Work around a bug in both the Linux and SunOS 64-bit kernels:
74795         nanosleep mishandles sleeps for longer than 2**31 seconds.
74796         Problem reported by Frank v Waveren in
74797         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
74798         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
74799         Check for nanosleep bug.
74800         (LIB_NANOSLEEP): Append clock_gettime library if needed.
74801
74802 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
74803
74804         Work around a bug in both the Linux and SunOS 64-bit kernels:
74805         nanosleep mishandles sleeps for longer than 2**31 seconds.
74806         Problem reported by Frank v Waveren in
74807         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
74808         * lib/nanosleep.c (BILLION): New constant.
74809         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
74810         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
74811         implementation.
74812
74813 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
74814
74815         * modules/nanosleep (Depends-on): Add gettime.
74816
74817 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
74818         and Simon Josefsson  <jas@extundo.com>
74819         and Oskar Liljeblad  <oskar@osk.mine.nu>
74820
74821         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
74822         * gnulib-tool (func_import): New license type 'unmodifiable license
74823         text'.
74824         * modules/fdl: Use it.  Longer description.
74825         * module/gpl, module/lgpl: New files.
74826
74827 2006-08-30  Jim Meyering  <jim@meyering.net>
74828
74829         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
74830         shadowing the parameter.
74831
74832 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74833
74834         Sync from Libtool:
74835
74836         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74837
74838         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
74839         sharing with gnulib.  Report by Eric Blake.
74840
74841 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
74842
74843         * modules/isapipe: New file.
74844         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
74845
74846 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
74847
74848         * modules/configmake (Makefile.am): Add a comment, and omit
74849         the CONFIGMAKE_ prefix from generated macro names.  Suggested
74850         by Bruno Haible.
74851
74852 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
74853
74854         * m4/isapipe.m4: New file.
74855
74856 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
74857
74858         * lib/isapipe.c, lib/isapipe.h: New files.
74859
74860 2006-08-29  Jim Meyering  <jim@meyering.net>
74861
74862         * modules/configmake (Makefile.am): Make configmake.h depend on
74863         Makefile.  Otherwise, a stale configmake.h could hang around.
74864
74865 2006-08-29  Eric Blake  <ebb9@byu.net>
74866
74867         * lib/error.c (error_at_line, print_errno_message): Match libc, after
74868         resolution of upstream bug 3044.
74869
74870 2006-08-29  Bruno Haible  <bruno@clisp.org>
74871
74872         * modules/localcharset (Depends-on): Add configmake.
74873         (Makefile.am): Remove setting of LIBDIR through DEFS.
74874
74875 2006-08-29  Bruno Haible  <bruno@clisp.org>
74876
74877         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
74878         defined.
74879
74880 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
74881
74882         * modules/fcntl: New file.
74883         * modules/chdir-safer (Depends-on): Add fcntl.
74884         * modules/fts: Likewise.
74885         * modules/mkdir-p: Likewise.
74886
74887         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
74888         This undoes the most recent change, since we're now addressing the
74889         problem in a different way.
74890
74891         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
74892         into output, since the output might be called Makefile.am even
74893         if $makefile_name is something different.
74894         (func_import): Use $makefile_am rather than
74895         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
74896         empty.
74897
74898         * modules/inttypes (Files): Add m4/inttypes-h.m4.
74899
74900 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
74901
74902         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
74903         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
74904         recent change to stdint.m4, since we're now addressing the problem in a
74905         different way.
74906
74907 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
74908
74909         * m4/fcntl_h.m4: New file.
74910
74911 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
74912
74913         * lib/fcntl_.h: New file.
74914         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
74915         the fcntl module.
74916         * lib/dirchownmod.c: Likewise.
74917         * lib/fts.c: Likewise.
74918
74919         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
74920         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
74921         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
74922         just before including <inttypes.h>, to avoid circular inclusion.
74923
74924 2006-08-28  Jim Meyering  <jim@meyering.net>
74925
74926         * doc/visibility.texi: Actually read and correct the grammar of the
74927         sentence affected by yesterday's change.
74928
74929 2006-08-28  Eric Blake  <ebb9@byu.net>
74930
74931         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
74932         needs wrapper.
74933
74934 2006-08-28  Eric Blake  <ebb9@byu.net>
74935
74936         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
74937
74938 2006-08-28  Eric Blake  <ebb9@byu.net>
74939
74940         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
74941
74942 2006-08-28  Bruno Haible  <bruno@clisp.org>
74943
74944         * modules/c-strstr: New file, from GNU gettext.
74945         * MODULES.html.sh (String handling): Add c-strstr.
74946
74947 2006-08-28  Bruno Haible  <bruno@clisp.org>
74948
74949         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
74950         macros.
74951         Reported by Eric Blake.
74952
74953 2006-08-28  Bruno Haible  <bruno@clisp.org>
74954
74955         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
74956         (VASNPRINTF): Return a string of length > INT_MAX without failing.
74957         * lib/vasprintf.c: Include errno.h, limits.h.
74958         (EOVERFLOW): New fallback definition.
74959         (vasprintf): Test here whether the string length is > INT_MAX.
74960         * lib/vsnprintf.c: Include errno.h, limits.h.
74961         (EOVERFLOW): New fallback definition.
74962         (vsnprintf): Fix bug when generated string was too long for the buffer.
74963         Test here whether the string length is > INT_MAX.
74964
74965 2006-08-28  Bruno Haible  <bruno@clisp.org>
74966
74967         * lib/inttypes_.h (SCNX*): Remove definitions.
74968         Reported by Eric Blake.
74969
74970 2006-08-28  Bruno Haible  <bruno@clisp.org>
74971
74972         * lib/c-strstr.h: New file, from GNU gettext.
74973         * lib/c-strstr.c: New file, from GNU gettext.
74974
74975 2006-08-28  Bruno Haible  <bruno@clisp.org>
74976
74977         * gnulib-tool: Reorder some statements.
74978
74979 2006-08-28  Bruno Haible  <bruno@clisp.org>
74980
74981         * gnulib-tool: New option --makefile-name.
74982         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
74983         $makefile_name.
74984         (func_import): Write $makefile_name to the cache file, and read it from
74985         there unless explicitly specified. Use $makefile_name as file name
74986         instead of Makefile.am. Adjust the recommendations accordingly.
74987
74988 2006-08-28  Bruno Haible  <bruno@clisp.org>
74989
74990         * gnulib-tool (func_verify_module): Check against misapplying patch.
74991
74992 2006-08-28  Bruno Haible  <bruno@clisp.org>
74993
74994         * gnulib-tool (func_relativize, func_relconcat): New functions.
74995         Give an error if --local-dir is given with --update.
74996         Remove trailing slashes from $local_gnulib_dir.
74997         (func_import): Store the relativized $local_gnulib_dir in
74998         gnulib-cache.m4, and read it from there if not specified explicitly.
74999
75000 2006-08-28  Bruno Haible  <bruno@clisp.org>
75001
75002         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
75003         is the current directory. Respect also $local_gnulib_dir.
75004
75005 2006-08-28  Bruno Haible  <bruno@clisp.org>
75006             Simon Josefsson  <jas@extundo.com>
75007
75008         BeOS portability.
75009         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
75010
75011 2006-08-27  Jim Meyering  <jim@meyering.net>
75012
75013         * doc/visibility.texi: Remove duplicate word: "pointer".
75014
75015 2006-08-26  Bruno Haible  <bruno@clisp.org>
75016
75017         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
75018         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
75019         (Makefile.am): Create inttypes.h from inttypes_.h.
75020         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
75021
75022         * modules/imaxabs: New file.
75023
75024         * modules/imaxdiv: New file.
75025
75026 2006-08-26  Bruno Haible  <bruno@clisp.org>
75027
75028         * m4/inttypes.m4: New file.
75029         * m4/_inttypes_h.m4: Remove file.
75030         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
75031         PRI_MACROS_BROKEN.
75032         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
75033
75034         * m4/imaxabs.m4: New file.
75035
75036         * m4/imaxdiv.m4: New file.
75037
75038 2006-08-26  Bruno Haible  <bruno@clisp.org>
75039
75040         * lib/inttypes_.h: New file.
75041         * lib/inttypes.h: Remove file.
75042         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
75043
75044         * lib/imaxabs.c: New file.
75045
75046         * lib/imaxdiv.c: New file.
75047
75048 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75049
75050         New config-h module, so that "make" output needn't be cluttered
75051         by -DHAVE_CONFIG_H.
75052         * MODULES.html.sh (Support for building libraries and executables):
75053         Add config-h.
75054         * modules/config-h: New file.
75055         * gnulib-tool (nl, sed_transform_lib_file): New vars.
75056         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
75057         the config-h module is used.
75058
75059         New configmake module, so that "make" output needn't be cluttered
75060         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
75061         * MODULES.html.sh (Support for building libraries and executables):
75062         Add configmake.
75063         * modules/configmake: New file.
75064
75065 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75066
75067         * m4/config-h.m4: New file.
75068
75069 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
75070
75071         * config/srclist.txt: Add elisp-comp.
75072
75073 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
75074
75075         * MODULES.html.sh (Support for building libraries and executables):
75076         Add elisp-comp.
75077         * build-aux/elisp-comp: New file.
75078         * modules/elisp-comp: New file.
75079
75080 2006-08-24  Bruno Haible  <bruno@clisp.org>
75081
75082         * gnulib-tool (func_create_testdir): Use non-default values of
75083         sourcebase and m4base.
75084
75085 2006-08-24  Bruno Haible  <bruno@clisp.org>
75086
75087         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
75088         HTML structure.
75089
75090 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
75091
75092         * modules/openat (Depends-on): Add lchown.
75093
75094 2006-08-23  Bruno Haible  <bruno@clisp.org>
75095
75096         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
75097         of gl_LOCK_EARLY instead of gl_LOCK.
75098
75099 2006-08-23  Bruno Haible  <bruno@clisp.org>
75100
75101         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
75102         on OSF/1 to no.
75103         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
75104
75105 2006-08-23  Bruno Haible  <bruno@clisp.org>
75106
75107         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
75108         as unusable.
75109
75110         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
75111         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
75112         (gl_LOCK): New macro.
75113
75114 2006-08-22  Simon Josefsson  <jas@extundo.com>
75115
75116         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
75117         to md5 module.
75118
75119 2006-08-22  Simon Josefsson  <jas@extundo.com>
75120
75121         * MODULES.html.sh: Add "Support for maintaining and release
75122         projects".
75123
75124         * build-aux/gnupload: New file, from coreutils.
75125
75126 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
75127
75128         Avoid the need for AC_LIBSOURCES in m4 macros.
75129         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
75130         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
75131         * modules/check-version (EXTRA_DIST): Add check-version.h.
75132         * modules/crc (EXTRA_DIST): Add crc.h.
75133         * modules/des (EXTRA_DIST): Add des.h.
75134         * modules/gc (EXTRA_DIST): Add gc.h.
75135         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
75136         * modules/getline (EXTRA_DIST): Add getline.h.
75137         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
75138         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
75139         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
75140         * modules/md2 (EXTRA_DIST): Add md2.h.
75141         * modules/md4 (EXTRA_DIST): Add md4.h.
75142         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
75143         * modules/read-file (EXTRA_DIST): Add read-file.h.
75144         * modules/readline (EXTRA_DIST): Add readline.h.
75145         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
75146         rijndael-api-fst.h.
75147
75148 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
75149
75150         * m4/rijndael.m4 (gl_ARCFOUR):
75151         * m4/arctwo.m4 (gl_ARCTWO):
75152         * m4/check-version.m4 (gl_CHECK_VERSION):
75153         * m4/crc.m4 (gl_CRC):
75154         * m4/des.m4 (gl_DES):
75155         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
75156         * m4/gc.m4 (gl_GC):
75157         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
75158         * m4/getline.m4 (gl_FUNC_GETLINE):
75159         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
75160         * m4/hmac-md5.m4 (gl_HMAC_MD5):
75161         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
75162         * m4/md2.m4 (gl_MD2):
75163         * m4/md4.m4 (gl_MD4):
75164         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
75165         * m4/read-file.m4 (gl_FUNC_READ_FILE):
75166         * m4/readline.m4 (gl_FUNC_READLINE):
75167         * m4/rijndael.m4 (gl_RIJNDAEL):
75168         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
75169         to get the necessary .h files and whatnot.
75170
75171 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
75172
75173         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
75174         gnulib rather than the other way around.
75175         * config/srclistvars.sh (COREUTILS): Remove.
75176
75177 2006-08-22  Jim Meyering  <jim@meyering.net>
75178
75179         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
75180
75181         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
75182
75183 2006-08-22  Eric Blake  <ebb9@byu.net>
75184
75185         * modules/regexprops-generic: New file.
75186         * MODULES.html.sh (Support for building documentation): List it.
75187
75188 2006-08-22  Eric Blake  <ebb9@byu.net>
75189
75190         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
75191         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
75192         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
75193         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
75194
75195 2006-08-22  Bruno Haible  <bruno@clisp.org>
75196
75197         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
75198         and lib_LTLIBRARIES like the other lib_* variables.
75199
75200 2006-08-22  Bruno Haible  <bruno@clisp.org>
75201
75202         * build-aux/x-to-1.in: New file, from GNU gettext.
75203
75204 2006-08-22  Bruno Haible  <bruno@clisp.org>
75205
75206         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
75207         <utmpx.h> exists.
75208
75209 2006-08-22  Bruno Haible  <bruno@clisp.org>
75210
75211         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
75212         <utmpx.h> exists.
75213
75214 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
75215
75216         BeOS portability.
75217         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
75218         exist.
75219         Problem reported by Bruno Haible.
75220
75221 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
75222
75223         Avoid the need for AC_LIBSOURCES in m4 macros.
75224         * modules/acl (EXTRA_DIST): Add acl.h.
75225         * modules/argmatch (Files): Add m4/argmatch.m4.
75226         (configure.ac): Add gl_ARGMATCH.
75227         (EXTRA_DIST): Renamed from lib_SOURCES, for
75228         consistency with the other modules.  Remove argmatch.c.
75229         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
75230         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
75231         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
75232         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
75233         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
75234         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
75235         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
75236         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
75237         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
75238         * modules/closeout (EXTRA_DIST): Add closeout.h.
75239         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
75240         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
75241         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
75242         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
75243         dirname.h; remove basename.c and stripslash.c.
75244         * modules/exclude (EXTRA_DIST): Add exclude.h.
75245         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
75246         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
75247         * modules/file-type (EXTRA_DIST): Add file-type.h.
75248         * modules/filemode (EXTRA_DIST): Add filemode.h.
75249         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
75250         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
75251         * modules/fpending (EXTRA_DIST): Add __fpending.h.
75252         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
75253         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
75254         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
75255         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
75256         * modules/getdate (EXTRA_DIST): Add getdate.c.
75257         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
75258         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
75259         * modules/getpass (EXTRA_DIST): Add getpass.h.
75260         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
75261         * modules/group-member (EXTRA_DIST): Add group-member.h.
75262         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
75263         * modules/hash (EXTRA_DIST): Add hash.h.
75264         * modules/human (EXTRA_DIST): Add human.h.
75265         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
75266         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
75267         * modules/lchown (EXTRA_DIST): Add lchown.h.
75268         * modules/long-options (EXTRA_DIST): Add long-options.h.
75269         * modules/lstat (EXTRA_DIST): Add lstat.h.
75270         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
75271         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
75272         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
75273         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
75274         * modules/memxor (EXTRA_DIST): Add memxor.h.
75275         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
75276         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
75277         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
75278         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
75279         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
75280         * modules/physmem (EXTRA_DIST): Add physmem.h.
75281         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
75282         * modules/posixver (EXTRA_DIST): Add posixver.h.
75283         * modules/quote (EXTRA_DIST): Add quote.h.
75284         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
75285         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
75286         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
75287         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
75288         regex_internal.h regexec.c.
75289         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
75290         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
75291         * modules/same (EXTRA_DIST): Add same.h.
75292         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
75293         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
75294         * modules/savedir (EXTRA_DIST): Add savedir.h.
75295         * modules/sha1 (EXTRA_DIST): Add sha1.h.
75296         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
75297         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
75298         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
75299         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
75300         * modules/strdup (EXTRA_DIST): Add strdup.h.
75301         * modules/strftime (EXTRA_DIST): Add strftime.h.
75302         * modules/strndup (EXTRA_DIST): Add strndup.h.
75303         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
75304         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
75305         * modules/time_r (EXTRA_DIST): Add time_r.h.
75306         * modules/timespec (EXTRA_DIST): Add timespec.h.
75307         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
75308         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
75309         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
75310         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
75311         * modules/userspec (EXTRA_DIST): Add userspec.h.
75312         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
75313         * modules/utimens (EXTRA_DIST): Add utimens.h.
75314         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
75315         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
75316         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
75317         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
75318         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
75319         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
75320         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
75321         * modules/yesno (EXTRA_DIST): Add yesno.h.
75322
75323 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
75324
75325         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
75326
75327         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
75328         * m4/dev-ino.m4, same-inode.m4: Remove.
75329
75330         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
75331         * m4/acl.m4 (AC_FUNC_ACL):
75332         * m4/backupfile.m4 (gl_BACKUPFILE):
75333         * m4/c-strtod.m4 (gl_C99_STRTOLD):
75334         * m4/canon-host.m4 (gl_CANON_HOST):
75335         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
75336         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
75337         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
75338         * m4/cloexec.m4 (gl_CLOEXEC):
75339         * m4/close-stream.m4 (gl_CLOSE_STREAM):
75340         * m4/closeout.m4 (gl_CLOSEOUT):
75341         * m4/dirfd.m4 (gl_FUNC_DIRFD):
75342         * m4/dirname.m4 (gl_DIRNAME):
75343         * m4/exclude.m4 (gl_EXCLUDE):
75344         * m4/exitfail.m4 (gl_EXITFAIL):
75345         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
75346         * m4/file-type.m4 (gl_FILE_TYPE):
75347         * m4/filemode.m4 (gl_FILEMODE):
75348         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
75349         * m4/fpending.m4 (gl_FUNC_FPENDING):
75350         * m4/fprintftime.m4 (gl_FPRINTFTIME):
75351         * m4/fts.m4 (gl_FUNC_FTS):
75352         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
75353         * m4/getdate.m4 (gl_GETDATE):
75354         * m4/gethrxtime.m4 (gl_GETHRXTIME):
75355         * m4/getpagesize.m4 (gl_GETPAGESIZE):
75356         * m4/getpass.m4 (gl_FUNC_GETPASS):
75357         * m4/gettime.m4 (gl_GETTIME):
75358         * m4/getugroups.m4 (gl_GETUGROUPS):
75359         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
75360         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
75361         * m4/hard-locale.m4 (gl_HARD_LOCALE):
75362         * m4/hash.m4 (gl_HASH):
75363         * m4/idcache.m4 (gl_IDCACHE):
75364         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
75365         * m4/lchown.m4 (gl_FUNC_LCHOWN):
75366         * m4/long-options.m4 (gl_LONG_OPTIONS):
75367         * m4/lstat.m4 (gl_FUNC_LSTAT):
75368         * m4/md5.m4 (gl_MD5):
75369         * m4/memcasecmp.m4 (gl_MEMCASECMP):
75370         * m4/memcoll.m4 (gl_MEMCOLL):
75371         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
75372         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
75373         * m4/memxor.m4 (gl_MEMXOR):
75374         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
75375         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
75376         * m4/modechange.m4 (gl_MODECHANGE):
75377         * m4/mountlist.m4 (gl_MOUNTLIST):
75378         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
75379         * m4/openat.m4 (gl_FUNC_OPENAT):
75380         * m4/pathmax.m4 (gl_PATHMAX):
75381         * m4/physmem.m4 (gl_PHYSMEM):
75382         * m4/posixtm.m4 (gl_POSIXTM):
75383         * m4/posixver.m4 (gl_POSIXVER):
75384         * m4/quote.m4 (gl_QUOTE):
75385         * m4/quotearg.m4 (gl_QUOTEARG):
75386         * m4/readtokens.m4 (gl_READTOKENS):
75387         * m4/readutmp.m4 (gl_READUTMP):
75388         * m4/regex.m4 (gl_REGEX):
75389         * m4/safe-read.m4 (gl_SAFE_READ):
75390         * m4/safe-write.m4 (gl_SAFE_WRITE):
75391         * m4/same.m4 (gl_SAME):
75392         * m4/save-cwd.m4 (gl_SAVE_CWD):
75393         * m4/savedir.m4 (gl_SAVEDIR):
75394         * m4/settime.m4 (gl_SETTIME):
75395         * m4/sha1.m4 (gl_SHA1):
75396         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
75397         * m4/stat-macros.m4 (gl_STAT_MACROS):
75398         * m4/stat-time.m4 (gl_STAT_TIME):
75399         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
75400         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
75401         * m4/strdup.m4 (gl_FUNC_STRDUP):
75402         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
75403         * m4/strndup.m4 (gl_FUNC_STRNDUP):
75404         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
75405         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
75406         * m4/time_r.m4 (gl_TIME_R):
75407         * m4/timespec.m4 (gl_TIMESPEC):
75408         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
75409         * m4/unlinkdir.m4 (gl_UNLINKDIR):
75410         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
75411         * m4/userspec.m4 (gl_USERSPEC):
75412         * m4/utimecmp.m4 (gl_UTIMECMP):
75413         * m4/utimens.m4 (gl_UTIMENS):
75414         * m4/xalloc.m4 (gl_XALLOC):
75415         * m4/xgetcwd.m4 (gl_XGETCWD):
75416         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
75417         * m4/xreadlink.m4 (gl_XREADLINK):
75418         * m4/xstrtod.m4 (gl_XSTRTOD):
75419         * m4/yesno.m4 (gl_YESNO):
75420         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
75421         to get the necessary .h files and whatnot.
75422
75423 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
75424             Bruno Haible  <bruno@clisp.org>
75425
75426         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
75427         /bin/sh understanding of '!' conditional negation.
75428
75429 2006-08-21  Jim Meyering  <jim@meyering.net>
75430
75431         * modules/openat (Depends-on): Really alphabetize.
75432
75433         * modules/acl (Depends-on): Add error and quote.
75434
75435         * check-module (find_included_lib_files): Add at-func.c to the
75436         ok-to-include-more-than-once white list.
75437
75438         * modules/openat (Depends-on): Add lstat.  Alphabetize.
75439
75440 2006-08-21  Bruno Haible  <bruno@clisp.org>
75441
75442         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75443         Emit a pkgdata_DATA variable only if some snippets add contents to it.
75444         Reported by Martin Lambers <marlam@marlam.de>.
75445
75446 2006-08-21  Bruno Haible  <bruno@clisp.org>
75447
75448         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
75449         specify an installation location, don't emit a noinst_LIBRARIES or
75450         noinst_LTLIBRARIES assignment.
75451
75452 2006-08-21  Bruno Haible  <bruno@clisp.org>
75453
75454         BeOS portability.
75455         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
75456         BeOS has mbrtowc() but no <wctype.h>.
75457
75458 2006-08-21  Bruno Haible  <bruno@clisp.org>
75459
75460         BeOS portability.
75461         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
75462         exist.
75463
75464 2006-08-21  Bruno Haible  <bruno@clisp.org>
75465
75466         BeOS portability.
75467         * lib/mbchar.h: Include <wctype.h> only if it exists.
75468
75469 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75470
75471         Remove files that are no longer needed by their respective modules.
75472         * m4/obstack.m4: Remove.
75473         * m4/strerror_r.m4: Remove.
75474         * m4/uint32_t.m4: Remove.
75475         * m4/uintptr_t.m4: Remove.
75476         * m4/ullong_max.m4: Remove.
75477         * m4/xstrtoimax.m4: Remove.
75478         * m4/xstrtoumax.m4: Remove.
75479
75480         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
75481         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
75482         dependencies now capture this.
75483
75484         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
75485         Do not use AC_LIBSOURCES, since gnulib modules now do this.
75486         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
75487         * m4/human.m4 (gl_HUMAN): Likewise.
75488         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
75489         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
75490
75491         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
75492
75493         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
75494         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
75495         stdint.
75496         * m4/human.m4 (gl_HUMAN): Likewise.
75497         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
75498         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
75499         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
75500         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
75501         * m4/xstrtol (gl_XSTRTOL): Likewise.
75502
75503         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
75504         AC_TYPE_LONG_LONG_INT.
75505         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
75506         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
75507         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
75508         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
75509
75510         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
75511         on stdbool.
75512
75513         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
75514         (gl_PREREQ_XSTRTOUL): Remove.
75515
75516         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
75517
75518         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
75519         mode.
75520
75521 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75522
75523         Add and change modules to make it easier for coreutils to use
75524         gnulib-tool.
75525         * modules/backupfile (Files): Remove m4/d-ino.m4.
75526         (Depends-on): Add d-ino.
75527         * modules/cycle-check (Depends-on): Add stdint.
75528         (lib_SOURCES): Add cycle-check.h.
75529         * modules/d-ino: New module.
75530         * modules/d-type: New module.
75531         * modules/error (Files): Remove m4/strerror_r.m4.
75532         * modules/filemode (Files): Add m4/st_dm_mode.m4.
75533         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
75534         m4/inttypes_h.m4, m4/uintmax_t.m4.
75535         (Depends-on): Add stdint.
75536         (lib_SOURCES): Add fsusage.h.
75537         * modules/getcwd (Files): Remove d-ino.m4.
75538         (Depends-on): Add d-ino.
75539         * modules/getndelim2 (Depends-on): Add stdint.
75540         * modules/glob (Files): Remove m4/d-type.m4.
75541         (Depends-on): Add d-type.
75542         * modules/host-os: New module.
75543         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
75544         m4/inttypes_h.m4, m4/uintmax_t.m4.
75545         * Depends-on: Add stdint.
75546         (lib_SOURCES): Add human.h.
75547         * modules/inttostr (Files): Remove m4/intmax_t.m4,
75548         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
75549         m4/uintmax_t.m4, m4/ulonglong.m4.
75550         (Depends-on): Add stdint.
75551         (EXTRA_DIST): Add inttostr.h.
75552         * modules/lchmod: New module.
75553         * modules/link-follow: New module.
75554         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
75555         (Depends-on): Add lchmod.
75556         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
75557         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
75558         (Depends-on): Add stdint.
75559         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
75560         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
75561         (Depends-on): Add stdint.
75562         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
75563         * modules/perl: New module.
75564         * modules/regex (Depends-on): Add stdint.
75565         * modules/rmdir-errno: New module.
75566         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
75567         m4/intmax_t.m4.
75568         (Depends-on): Add stdint.
75569         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
75570         m4/uintmax_t.m4.
75571         (Depends-on): Add stdint.
75572         * modules/unlink-busy: New module.
75573         * modules/utimecmp (Depends-on): Add stdint.
75574         * modules/uptime: New module.
75575         * modules/winsz-ioctl: New module.
75576         * modules/winsz-termios: New module.
75577         * modules/xnanosleep (Depends-on): Add nanosleep.
75578         * modules/ullong_max: Remove.
75579         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
75580         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
75581         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
75582         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
75583         (Depends-on): Add inttypes.
75584         (lib_SOURCES): Add xstrtol.h.
75585         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
75586         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
75587         * MODULES.html.sh: Move 'assert' into the assert section.
75588         Move 'dummy' into the linking section.
75589         Remove ullong_max.
75590         Add section for compatibility checks for POSIX:2001 functions,
75591         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
75592         winsz-ioctl, and winsz-termios into it.
75593         Add lchmod.
75594         Add top-level Misc section and put host-os, perl, and uptime
75595         into it.
75596
75597 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75598
75599         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
75600         now assume the stdint module.  Do not include inttypes.h.
75601         * lib/fsusage.h: Likewise.
75602         * lib/getndelim2.c: Likewise.
75603         * lib/human.h: Likewise.
75604         * lib/inttostr.h: Likewise.
75605         * lib/obstack.c: Likewise.
75606         * lib/regex_internal.h: Likewise.
75607         * lib/tempname.c: Likewise.
75608         * lib/utimecmp.c: Likewise.
75609         * lib/xstrtol.h: Likewise.
75610
75611         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
75612
75613         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
75614         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
75615         * lib/xtime.h: Likewise.
75616
75617 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75618
75619         * modules/openat (Files): Add lib/fchmodat.c.
75620         Fixes problem reported by Jay Youngman.
75621
75622 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75623
75624         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
75625         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
75626
75627 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
75628             Bruno Haible  <bruno@clisp.org>
75629
75630         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
75631         and is a script that invokes bison. Tighten the code. Add comments.
75632
75633 2006-08-18  Jim Meyering  <jim@meyering.net>
75634
75635         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
75636         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
75637         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
75638         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
75639
75640 2006-08-18  Bruno Haible  <bruno@clisp.org>
75641
75642         * modules/bison-i18n: New file.
75643         * MODULES.html.sh (Internationalization functions): Add it.
75644
75645 2006-08-18  Bruno Haible  <bruno@clisp.org>
75646
75647         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
75648         sys/statvfs.h. When getmntinfo was found, check its declaration and
75649         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
75650
75651 2006-08-18  Bruno Haible  <bruno@clisp.org>
75652
75653         * m4/bison-i18n.m4: New file, from bison.
75654
75655 2006-08-18  Bruno Haible  <bruno@clisp.org>
75656
75657         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
75658         (ME_DUMMY): Treat "kernfs" as a dummy.
75659         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
75660
75661 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
75662
75663         Update from coreutils.
75664
75665         2006-08-15  Jim Meyering  <jim@meyering.net>
75666
75667         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
75668
75669         2006-01-17  Jim Meyering  <jim@meyering.net>
75670
75671         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
75672
75673         2006-01-11  Jim Meyering  <jim@meyering.net>
75674
75675         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
75676         Check for the lchmod function.
75677
75678 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
75679
75680         Update from coreutils.
75681
75682         * lib/__fpending.h: Add copyright notice.
75683         * lib/fprintftime.h: Likewise.
75684         * lib/savedir.c: Use (C) in copyright notice.
75685         * lib/savedir.h: Likewise.
75686
75687         2006-08-15  Jim Meyering  <jim@meyering.net>
75688
75689         * lib/at-func.c: New file, with the logic of all emulated at-functions.
75690         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
75691         in support of the EXPECTED_ERRNO macro.
75692         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
75693         definitions.  Instead, define the appropriate symbols and include
75694         "at-func.c".
75695         * lib/mkdirat.c (mkdirat): Likewise.
75696         * lib/fchmodat.c (fchmodat): Likewise.
75697         (ENOSYS): Remove definition.
75698         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
75699         it.  Don't include "unistd--.h" -- it wasn't ever used.
75700
75701         2006-01-17  Jim Meyering  <jim@meyering.net>
75702
75703         Rewrite fts.c not to change the current working directory,
75704         by using openat, fstatat, fdopendir, etc..
75705
75706         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
75707         (HAVE_OPENAT_SUPPORT): Define.
75708         [_LIBC] (fchdir): Don't undef or define; no longer used.
75709         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
75710         Now, this `function' always succeeds, and consumes its file descriptor
75711         parameter -- so callers must not close such FDs.  Update callers.
75712         (diropen_fd, opendirat, cwd_advance_fd): New functions.
75713         (diropen): Add parameter, SP.  Adjust all callers.
75714         Implement using diropen_fd, rather than open.
75715         (fts_open): Initialize new member, fts_cwd_fd.
75716         Remove fts_rft-setting code.
75717         (fts_close): Close fts_cwd_fd, if necessary.
75718         (__opendir2): Define in terms of opendir or opendirat,
75719         depending on whether the FST_NOCHDIR flag is set.
75720         (fts_build): Since fts_safe_changedir consumes its FD, and since
75721         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
75722         and close the dup'd file descriptor upon failure.
75723         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
75724         (fts_safe_changedir): Tweak semantics to reflect that this function
75725         now calls cwd_advance_fd and hence consumes its FD argument.
75726         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
75727         [struct FTS] (fts_rft): Remove now-unused member.
75728         [struct FTS] (fts_cycle.state): Improve comment.
75729
75730         * lib/openat.c (openat_needs_fchdir): New function.
75731         * lib/openat.h (openat_needs_fchdir): Declare it.
75732
75733 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
75734
75735         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
75736         Problem and fix reported by Pádraig Brady in
75737         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
75738
75739 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
75740
75741         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
75742
75743 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
75744
75745         * lib/memcoll.c (memcoll): Optimize for the common case where the
75746         arguments are bytewise equal.
75747
75748 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
75749
75750         * doc/regexprops-generic.texi: Add a copyright notice.
75751
75752 2006-08-15  Bruno Haible  <bruno@clisp.org>
75753
75754         * modules/tmpdir (License): Change to LGPL.
75755
75756 2006-08-15  Bruno Haible  <bruno@clisp.org>
75757
75758         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
75759         module.
75760
75761 2006-08-14  Simon Josefsson  <jas@extundo.com>
75762
75763         * config/srclist.txt: Add gnupload.
75764
75765 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
75766
75767         Change copyright notice from LGPL 2 to GPL 2, since that's the
75768         standard form used in the gnulib repository.
75769         * tests/test-lock.c: Likewise.
75770         * tests/test-stdint.c: Likewise.
75771         * tests/test-tls.c: Likewise.
75772
75773         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
75774         prelude-manager.  User shorter URLs for GNU projects, without '?'.
75775         Add copyright notice.
75776
75777         * check-module: Add copyright notice.  Output a copyright
75778         notice if "--version" is specified.
75779         * modules/COPYING: New file.
75780         * tests/test-getaddrinfo.c: Add copyright notice.
75781         * tests/test-verify.c: Likewise.
75782
75783 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
75784
75785         Change copyright notice from LGPL 2 to GPL 2, since that's the
75786         standard form used in the gnulib repository.
75787         * lib/lock.c: LGPL -> GPL.
75788         * lib/lock.h: Likewise.
75789         * lib/strnlen1.c: Likewise.
75790         * lib/strnlen1.h: Likewise.
75791         * lib/tls.c: Likewise.
75792         * lib/tls.h: Likewise.
75793         * lib/tmpdir.c: Likewise.
75794
75795         * lib/TODO: Remove; this belongs only in coreutils.
75796
75797 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
75798
75799         Add copyright notices to long-enough files that lack them, since
75800         otherwise the files aren't clearly free.  Use the same notice that
75801         getdate.texi already uses.
75802         * doc/alloca-opt.texi: Add copyright notice.
75803         * doc/alloca.texi: Likewise.
75804         * doc/ctime.texi: Likewise.
75805         * doc/functions.texi: Likewise.
75806         * doc/gcd.texi: Likewise.
75807         * doc/gnulib-tool.texi: Likewise.
75808         * doc/inet_ntoa.texi: Likewise.
75809         * doc/visibility.texi: Likewise.
75810
75811         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
75812         * doc/quote.texi: Add copyright notice.
75813
75814         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
75815         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
75816         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
75817         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
75818         is now obsolete, and give a pointer to the Sun list.
75819         Add copyright notice.
75820
75821 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
75822
75823         * config/srclistvars.sh: Add copyright notice.
75824
75825 2006-08-14  Eric Blake  <ebb9@byu.net>
75826
75827         Import the following change from libc:
75828
75829         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
75830
75831         Upstream bug 2997.
75832         * lib/misc/error.c: Add space between program name and message if file
75833         name is missing.
75834
75835 2006-08-12  Karl Berry  <karl@gnu.org>
75836
75837         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
75838         remove, these originate in gnulib now.
75839
75840 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75841
75842         * doc/Makefile (standards.info standards.html standards.dvi):
75843         Also depend on make-stds.texi.
75844
75845 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
75846
75847         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
75848         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
75849
75850         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
75851         in wchar_t.  Problem reported by Eric Blake.
75852
75853         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
75854         LEN is smaller than SIZE.  Suggested by Bruno Haible.
75855         Also, help the compiler to keep LEN in a register.
75856
75857 2006-08-11  Eric Blake  <ebb9@byu.net>
75858
75859         * users.txt: Sort.  Add tar.
75860
75861 2006-08-11  Bruno Haible  <bruno@clisp.org>
75862
75863         * users.txt: New file.
75864
75865 2006-08-11  Bruno Haible  <bruno@clisp.org>
75866
75867         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
75868         before <wchar.h>. Needed for OSF/1 and BSD/OS.
75869
75870 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
75871
75872         * modules/snprintf (Depends-on): Remove minmax.
75873         (Maintainer): Add self and Bruno.
75874
75875 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
75876
75877         * lib/.cppi-disable: Add snprintf.h, socket_.h.
75878         * lib/snprintf.c: Include <errno.h> and <limits.h>.
75879         (EOVERFLOW): Define if the system does not.
75880         Do not include "minmax.h"; it wasn't used.
75881         (snprintf): Don't assume size_t promotes to an unsigned type.
75882         Fix bug when generated string was too long for the buffer: the
75883         buffer's contents are supposed to be the initial prefix of the
75884         output.  Don't assume vasnprintf returns EOVERFLOW if the size
75885         exceeds INT_MAX; do the check ourselves.
75886
75887         Import the following changes from libc:
75888
75889         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
75890
75891         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
75892         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
75893         set wc to the byte which couldn't be converted.
75894         (re_string_reconstruct): Don't clear valid_raw_len before calling
75895         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
75896         tip_context using re_string_context_at.
75897
75898         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
75899
75900         * lib/posix/regex.h: g++ still cannot handled [restrict].
75901
75902         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
75903
75904         * lib/posix/regex.h: Remove special handling for VMS.
75905
75906 2006-08-10  Jim Meyering  <jim@meyering.net>
75907
75908         * modules/same-inode: New module.
75909         * modules/dev-ino: New module.
75910         * modules/cycle-check: Depend on these modules, rather than simply
75911         including their .h files.
75912         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
75913         required via m4/cycle-check.m4.
75914         * modules/same: Depend on new same-inode module, rather than
75915         including same-inode.h.
75916         * modules/chdir-safer: New file.
75917
75918         * modules/chown (Depends-on): Add stat-macros.
75919
75920 2006-08-10  Jim Meyering  <jim@meyering.net>
75921
75922         * m4/cycle-check.m4: New file.
75923         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
75924         * m4/dev-ino.m4, m4/same-inode.m4: New files.
75925
75926 2006-08-10  Eric Blake  <ebb9@byu.net>
75927
75928         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
75929         in from original proposal.
75930
75931 2006-08-10  Eric Blake  <ebb9@byu.net>
75932         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
75933
75934         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
75935         namespace.
75936
75937 2006-08-10  Bruno Haible  <bruno@clisp.org>
75938
75939         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
75940         as well.
75941
75942 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75943
75944         Sync from coreutils.
75945
75946         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
75947
75948         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
75949         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
75950
75951 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75952
75953         * modules/restrict: Remove; no longer needed now that we assume
75954         Autoconf 2.59 or later.
75955         * MODULES.html.sh: Remove 'restrict'.
75956         * modules/argp (Depends-on): Remove 'restrict'.
75957         * modules/base64 (Depends-on): Likewise.
75958         * modules/gc (Depends-on): Likewise.
75959         * modules/getaddrinfo (Depends-on): Likewise.
75960         * modules/glob (Depends-on): Likewise.
75961         * modules/inet_ntop (Depends-on): Likewise.
75962         * modules/inet_pton (Depends-on): Likewise.
75963         * modules/memxor (Depends-on): Likewise.
75964         * modules/regex (Depends-on): Likewise.
75965         * modules/strtok_r (Depends-on): Likewise.
75966         * modules/time_r (Depends-on): Likewise.
75967
75968 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75969
75970         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
75971         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
75972         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
75973         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
75974         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
75975         * m4/memxor.m4 (gl_MEMXOR): Likewise.
75976         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
75977         gl_C_RESTRICT replaced by AC_C_RESTRICT.
75978
75979         Merge from coreutils.
75980         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
75981         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
75982         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
75983         * m4/time_r.m4 (gl_TIME_R): Likewise.
75984
75985 2006-08-09  Karl Berry  <karl@gnu.org>
75986
75987         * config/srclist.txt: no more gettext-tools, per Bruno.
75988
75989 2006-08-08  Eric Blake  <ebb9@byu.net>
75990
75991         * modules/verror: New module.
75992         * MODULES.html.sh: Document it.
75993
75994 2006-08-08  Eric Blake  <ebb9@byu.net>
75995
75996         * lib/verror.h, lib/verror.c: New files.
75997
75998 2006-08-08  Eric Blake  <ebb9@byu.net>
75999
76000         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
76001         verror_at_line output complies with GNU Coding Standards even when
76002         file is NULL.
76003
76004 2006-08-07  Bruno Haible  <bruno@clisp.org>
76005
76006         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
76007         versions of AIX.
76008         Reported by Ralf Wildenhues.
76009
76010 2006-08-07  Bruno Haible  <bruno@clisp.org>
76011
76012         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
76013         in an AC_DEFUN. Needed so that the autoconf snippets can use
76014         AC_REQUIRE.
76015
76016 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76017
76018         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
76019         Initialize pkgdata_DATA.
76020         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
76021         overriding it.
76022
76023 2006-08-06  Eric Blake  <ebb9@byu.net>
76024
76025         * lib/error.h: Fold in some upstream changes from glibc.
76026         * lib/error.c: Likewise.
76027
76028 2006-08-04  Bruno Haible  <bruno@clisp.org>
76029
76030         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
76031         Make the mostlyclean-local rule depend on mostlyclean-generic.
76032         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
76033
76034 2006-07-31  Bruno Haible  <bruno@clisp.org>
76035
76036         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
76037         <stdlib.h>, <string.h>.
76038
76039 2006-07-30  Bruno Haible  <bruno@clisp.org>
76040
76041         * modules/readlink (License): Change to LGPL.
76042
76043 2006-07-30  Bruno Haible  <bruno@clisp.org>
76044
76045         * modules/javaversion (Makefile.am): Distribute javaversion.java and
76046         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
76047         set PKGDATADIR to point to it.
76048
76049 2006-07-30  Bruno Haible  <bruno@clisp.org>
76050
76051         * modules/csharpexec (configure.ac): Comment out macro invocation.
76052         * modules/javaexec (configure.ac): Likewise.
76053         * modules/javacomp-script (configure.ac): Likewise.
76054
76055         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
76056
76057 2006-07-30  Bruno Haible  <bruno@clisp.org>
76058
76059         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
76060         linked-list.
76061
76062 2006-07-30  Bruno Haible  <bruno@clisp.org>
76063
76064         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
76065
76066 2006-07-30  Bruno Haible  <bruno@clisp.org>
76067
76068         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
76069         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
76070         get removed.
76071
76072 2006-07-29  Bruno Haible  <bruno@clisp.org>
76073
76074         Make it possible for gnulib-tool to work with locally modified or
76075         augmented gnulib repositories.
76076         * gnulib-tool (func_usage): Document --local-dir option.
76077         (local_gnulib_dir): New variable.
76078         Handle --local-dir option.
76079         (func_lookup_file): New function.
76080         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
76081         (func_get_description, func_get_filelist, func_get_description,
76082         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
76083         func_get_automake_snippet, func_get_include_directive,
76084         func_get_license, func_get_maintainer): Use func_lookup_file.
76085         (func_import, func_create_testdir): Use func_lookup_file.
76086
76087 2006-07-29  Bruno Haible  <bruno@clisp.org>
76088
76089         * modules/setenv (Depends-on): Add unistd.
76090
76091 2006-07-29  Bruno Haible  <bruno@clisp.org>
76092
76093         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
76094
76095 2006-07-29  Bruno Haible  <bruno@clisp.org>
76096
76097         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
76098
76099 2006-07-29  Bruno Haible  <bruno@clisp.org>
76100
76101         * gnulib-tool (import, update): If there is no Makefile.am, look at
76102         aclocal.m4, instead of bailing out.
76103
76104 2006-07-29  Bruno Haible  <bruno@clisp.org>
76105
76106         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
76107         Categorize the options by when they are useful.
76108
76109 2006-07-29  Bruno Haible  <bruno@clisp.org>
76110
76111         * gnulib-tool (func_usage): Document option --no-libtool.
76112         Handle option --no-libtool.
76113         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
76114         for changed semantics of $libtool variable.
76115         (func_import): Likewise. If libtool is not used, show this through
76116         an option --no-libtool.
76117         (func_create_testdir): Update.
76118
76119 2006-07-29  Bruno Haible  <bruno@clisp.org>
76120
76121         * gnulib-tool (func_import): Extend error message about missing
76122         --doc-base.
76123
76124 2006-07-29  Bruno Haible  <bruno@clisp.org>
76125
76126         * gnulib-tool (func_import): Don't create the $docbase directory if
76127         there is no file to store there.
76128
76129 2006-07-29  Bruno Haible  <bruno@clisp.org>
76130
76131         * gnulib-tool (autoconf_minversion): If a --dir option is given and
76132         relevant, look for configure.ac there, not in the current directory.
76133         Also use a simple search for AC_PREREQ, not "autoconf --trace".
76134
76135 2006-07-29  Bruno Haible  <bruno@clisp.org>
76136
76137         * gnulib-tool (SORT): New variable.
76138         (func_usage): Undocument --assume-autoconf option.
76139         Remove --assume-autoconf option handling.
76140         (autoconf_minversion): Determine from the contents of configure.ac.
76141         (func_import): Remove autoconf_minversion handling.
76142         Suggested by Eric Blake.
76143
76144 2006-07-29  Bruno Haible  <bruno@clisp.org>
76145
76146         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
76147
76148 2006-07-29  Bruno Haible  <bruno@clisp.org>
76149
76150         * config/srclist.txt (*setenv.[ch]): Remove rules.
76151
76152 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76153
76154         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
76155
76156 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76157
76158         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
76159         arpa/inet.h.
76160
76161 2006-07-28  Simon Josefsson  <jas@extundo.com>
76162
76163         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
76164         * modules/inet_pton (Depends-on): Likewise.
76165
76166 2006-07-28  Simon Josefsson  <jas@extundo.com>
76167
76168         * m4/netinet_in_h.m4: New file.
76169
76170 2006-07-28  Simon Josefsson  <jas@extundo.com>
76171
76172         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
76173         #include's.
76174
76175 2006-07-28  Simon Josefsson  <jas@extundo.com>
76176
76177         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
76178         #include's.
76179
76180 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
76181
76182         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
76183         setgid on directories only if they set these bits.
76184         * lib/modechange.h: Remove obsolete comment about masks.
76185
76186 2006-07-28  Eric Blake  <ebb9@byu.net>
76187
76188         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
76189         macro expansion.
76190
76191 2006-07-28  Bruno Haible  <bruno@clisp.org>
76192
76193         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
76194
76195 2006-07-28  Bruno Haible  <bruno@clisp.org>
76196
76197         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
76198
76199 2006-07-28  Bruno Haible  <bruno@clisp.org>
76200
76201         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
76202         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
76203         Define fallbacks.
76204         Avoids link error on FreeBSD 4.x.
76205         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
76206
76207         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
76208         encoding.
76209         * lib/mbswidth.c (iswcntrl): Likewise.
76210
76211 2006-07-27  Bruno Haible  <bruno@clisp.org>
76212
76213         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
76214         test.
76215
76216 2006-07-27  Bruno Haible  <bruno@clisp.org>
76217
76218         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
76219         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
76220         defined.
76221
76222 2006-07-26  Eric Blake  <ebb9@byu.net>
76223
76224         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
76225
76226 2006-07-26  Eric Blake  <ebb9@byu.net>
76227
76228         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
76229         like mingw that lack mkstemp.
76230         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
76231         avoid compilation warning on mingw.
76232
76233 2006-07-26  Bruno Haible  <bruno@clisp.org>
76234
76235         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
76236         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
76237         INT_FAST*_MIN, INTPTR_MIN.
76238
76239 2006-07-25  Bruno Haible  <bruno@clisp.org>
76240
76241         * modules/version-etc (Depends-on): Add stdarg.
76242
76243 2006-07-25  Bruno Haible  <bruno@clisp.org>
76244
76245         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
76246         complex commands.
76247
76248 2006-07-25  Bruno Haible  <bruno@clisp.org>
76249
76250         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
76251         defined in <stdarg.h> or config.h.
76252
76253 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
76254
76255         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
76256         (gl_STDIO_SAFER): Remove.
76257
76258 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
76259
76260         * MODULES.html.sh (File stream based Input/Output):
76261         Add fopen-safer, tmpfile-safer; remove stdio-safer.
76262         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
76263         * modules/fopen-safer, modules/tmpfile-safer: New files.
76264         * modules/stdio-safer: Remove.
76265
76266 2006-07-24  Bruno Haible  <bruno@clisp.org>
76267
76268         * modules/tmpdir: New file.
76269         * MODULES.html.sh (File system functions): Add it.
76270
76271 2006-07-24  Bruno Haible  <bruno@clisp.org>
76272
76273         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
76274         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
76275
76276 2006-07-24  Bruno Haible  <bruno@clisp.org>
76277
76278         * modules/clean-temp: New file.
76279
76280 2006-07-24  Bruno Haible  <bruno@clisp.org>
76281
76282         * m4/tmpdir.m4: New file, from GNU gettext.
76283
76284 2006-07-24  Bruno Haible  <bruno@clisp.org>
76285
76286         * lib/tmpdir.h: New file, from GNU gettext.
76287         * lib/tmpdir.c: New file, from GNU gettext.
76288
76289 2006-07-24  Bruno Haible  <bruno@clisp.org>
76290
76291         * lib/clean-temp.h: New file, from GNU gettext.
76292         * lib/clean-temp.c: New file, from GNU gettext.
76293
76294 2006-07-23  Eric Blake  <ebb9@byu.net>
76295
76296         * modules/stdio-safer (Files): Add tmpfile-safer.c.
76297         (Depends-on): Add binary-io.
76298
76299 2006-07-23  Eric Blake  <ebb9@byu.net>
76300
76301         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
76302
76303 2006-07-23  Eric Blake  <ebb9@byu.net>
76304
76305         * lib/tmpfile-safer.c: New file.
76306         * lib/stdio-safer.h (fopen_safer): Add prototype.
76307         * lib/stdio--.h (tmpfile): Make safer.
76308
76309 2006-07-23  Bruno Haible  <bruno@clisp.org>
76310
76311         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
76312         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
76313         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
76314         gl_linked_remove_at): Use it.
76315
76316 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76317         and Simon Josefsson <jas@extundo.com>
76318
76319         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
76320
76321         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
76322
76323 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
76324
76325         * modules/close-stream: New file.
76326         * modules/closeout (Description): Make it clear that it exits
76327         with a diagnostic on error.
76328         (Depends-on): Add close-stream.  Remove fpending, stdbool.
76329         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
76330
76331 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
76332
76333         * m4/close-stream.m4: New file.
76334
76335 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
76336
76337         * lib/close-stream.c, lib/close-stream.h: New files.
76338
76339 2006-07-22  Bruno Haible  <bruno@clisp.org>
76340
76341         Merge from GNU gettext 0.15.
76342
76343         2006-05-01  Bruno Haible  <bruno@clisp.org>
76344
76345                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
76346
76347         2006-07-22  Bruno Haible  <bruno@clisp.org>
76348
76349                 * modules/javaversion: New file.
76350                 * MODULES.html.sh (Java): Add javaversion.
76351
76352         2006-03-12  Bruno Haible  <bruno@clisp.org>
76353
76354                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
76355
76356         2005-12-04  Bruno Haible  <bruno@clisp.org>
76357
76358                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
76359                 (untested).
76360
76361         2006-06-21  Bruno Haible  <bruno@clisp.org>
76362
76363                 Avoid warnings from recent versions of mcs.
76364                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
76365                 -o, -L, -r any more. Use options documented since mcs-1.0
76366                 instead. Similarly for -g.
76367
76368         2005-12-04  Bruno Haible  <bruno@clisp.org>
76369
76370                 * build-aux/csharpcomp.sh.in: Suffix for resources is
76371                 .resources, not .resource.
76372
76373         2005-07-09  Bruno Haible  <bruno@clisp.org>
76374
76375                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
76376                 add a .dll suffix.
76377                 Reported by Mark Junker <mjscod@gmx.de>.
76378
76379         2006-07-22  Bruno Haible  <bruno@clisp.org>
76380
76381                 * modules/gettext: Upgrade to gettext-0.15.
76382                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
76383                 m4/visibility.m4.
76384                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
76385
76386 2006-07-22  Bruno Haible  <bruno@clisp.org>
76387
76388         Merge from GNU gettext 0.15.
76389
76390         2006-03-25  Bruno Haible  <bruno@clisp.org>
76391
76392                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
76393
76394         2006-07-21  Bruno Haible  <bruno@clisp.org>
76395
76396                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
76397                 "1.1".
76398
76399         2006-05-09  Bruno Haible  <bruno@clisp.org>
76400
76401                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
76402                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
76403                 for the conftestver execution.
76404
76405         2006-05-01  Bruno Haible  <bruno@clisp.org>
76406
76407                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
76408                 optional target-version argument. Verify that the compiler
76409                 groks source of the specified source-version, or add -source
76410                 option as necessary. Verify that the compiler produces
76411                 bytecode in the specified target-version, or add -target and
76412                 -source options as necessary. Make the result of the test
76413                 available as variable CONF_JAVAC. Also log error output in
76414                 config.log.
76415
76416         2006-03-11  Bruno Haible  <bruno@clisp.org>
76417
76418                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
76419
76420         2006-05-09  Bruno Haible  <bruno@clisp.org>
76421
76422                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
76423                 CLASSPATH_SEPARATOR to a semicolon.
76424
76425         2006-03-12  Bruno Haible  <bruno@clisp.org>
76426
76427                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
76428                 available as variable CONF_JAVA, for subsequent autoconf
76429                 tests. Also log error output in config.log.
76430
76431         2006-07-19  Bruno Haible  <bruno@clisp.org>
76432
76433                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
76434                 that getline works on glibc2 systems. Needed to avoid trouble
76435                 in relocatable.c.
76436                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
76437
76438         2005-12-04  Bruno Haible  <bruno@clisp.org>
76439
76440                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
76441                 launcher (untested).
76442
76443         2005-12-04  Bruno Haible  <bruno@clisp.org>
76444
76445                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
76446
76447         2006-07-22  Bruno Haible  <bruno@clisp.org>
76448
76449                 * gettext.m4: Update from GNU gettext-0.15.
76450                 * nls.m4: Likewise.
76451                 * po.m4: Likewise.
76452                 * inttypes-pri.m4: Likewise.
76453                 * inttypes-h.m4: Renamed from inttypes.m4.
76454                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
76455
76456 2006-07-22  Bruno Haible  <bruno@clisp.org>
76457
76458         Merge from GNU gettext 0.15.
76459
76460         2005-07-05  Bruno Haible  <bruno@clisp.org>
76461
76462                 * printf-args.c (printf_fetchargs): Work around broken
76463                 definition of wint_t on mingw.
76464
76465         2005-02-12  Bruno Haible  <bruno@clisp.org>
76466
76467                 * xallocsa.h: Add extern "C" for C++.
76468
76469         2006-05-17  Bruno Haible  <bruno@clisp.org>
76470
76471                 Cygwin portability.
76472                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
76473
76474         2006-04-30  Bruno Haible  <bruno@clisp.org>
76475
76476                 * progreloc.c: Include <mach-o/dyld.h> if available.
76477                 (find_executable): Use _NSGetExecutablePath when possible.
76478
76479         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
76480
76481                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
76482                 function.
76483
76484         2005-12-29  Bruno Haible  <bruno@clisp.org>
76485
76486                 * progreloc.c (set_program_name_and_installdir): Fix
76487                 compilation error.
76488
76489         2005-12-04  Bruno Haible  <bruno@clisp.org>
76490
76491                 Cygwin portability.
76492                 * progreloc.c: Include <windows.h> also on Cygwin.
76493                 (find_executable): Add support for Cygwin.
76494                 (set_program_name_and_installdir): Handle also platforms with
76495                 nonempty EXEEXT.
76496
76497         2006-07-11  Bruno Haible  <bruno@clisp.org>
76498
76499                 * javacomp.c: Fix a comment.
76500                 Reported by Jim Meyering.
76501
76502         2006-04-30  Bruno Haible  <bruno@clisp.org>
76503
76504                 * javacomp.h (compile_java_class): Add source_version,
76505                 target_version arguments.
76506                 * javacomp.c: Rewritten to choose only a compiler that
76507                 respects the specified source_version and target_version.
76508
76509         2006-06-27  Bruno Haible  <bruno@clisp.org>
76510
76511                 Assume correct S_ISDIR macro.
76512                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
76513
76514         2006-07-22  Bruno Haible  <bruno@clisp.org>
76515
76516                 * javaversion.h: New file, from GNU gettext.
76517                 * javaversion.c: New file, from GNU gettext.
76518                 * javaversion.java: New file, from GNU gettext.
76519                 * javaversion.class: New file, from GNU gettext.
76520
76521         2006-05-17  Bruno Haible  <bruno@clisp.org>
76522
76523                 Cygwin portability.
76524                 * javaexec.c (execute_java_class): Test for jview program
76525                 also on Cygwin.
76526
76527         2006-04-09  Bruno Haible  <bruno@clisp.org>
76528
76529                 * fatal-signal.c: Don't include string.h.
76530                 (at_fatal_signal): Use a copying loop instead of memcpy.
76531
76532         2005-12-04  Bruno Haible  <bruno@clisp.org>
76533
76534                 * csharpexec.c: Add support for 'clix' launcher (untested).
76535                 (execute_csharp_using_sscli): New function.
76536                 (execute_csharp_program): Call it.
76537
76538         2006-06-21  Bruno Haible  <bruno@clisp.org>
76539
76540                 Avoid warnings from recent versions of mcs.
76541                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
76542                 -o, -L, -r any more. Use options documented since mcs-1.0
76543                 instead. Similarly for -g.
76544
76545         2005-07-09  Bruno Haible  <bruno@clisp.org>
76546
76547                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
76548                 add a .dll suffix.
76549                 Reported by Mark Junker <mjscod@gmx.de>.
76550
76551         2006-06-17  Bruno Haible  <bruno@clisp.org>
76552
76553                 * config.charset: Update for NetBSD 3.0.
76554
76555         2006-05-17  Bruno Haible  <bruno@clisp.org>
76556
76557                 Cygwin portability.
76558                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
76559
76560         2006-05-16  Bruno Haible  <bruno@clisp.org>
76561
76562                 * localcharset.c [CYGWIN]: Include <windows.h>.
76563                 (get_charset_aliases): For Cygwin, return the same CPxxx
76564                 aliases list as under WIN32.
76565                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
76566                 the environment variables. Fall back to GetACP().
76567
76568         2006-04-05  Bruno Haible  <bruno@clisp.org>
76569
76570                 * config.charset: Update Juan Manuel Guerrero's address.
76571
76572         2005-02-12  Bruno Haible  <bruno@clisp.org>
76573
76574                 * allocsa.h: Add extern "C" for C++.
76575
76576         2005-02-10  Bruno Haible  <bruno@clisp.org>
76577
76578                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
76579                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
76580
76581         2006-07-22  Bruno Haible  <bruno@clisp.org>
76582
76583                 * gettext.h: Update to GNU gettext-0.15.
76584
76585 2006-07-22  Bruno Haible  <bruno@clisp.org>
76586
76587         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
76588         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
76589         lib-prefix.m4, longdouble.m4, ssize_t.m4.
76590
76591 2006-07-21  Eric Blake  <ebb9@byu.net>
76592
76593         * modules/stdlib-safer: New file.
76594         * MODULES.html.sh (File stream based Input/Output): Add
76595         stdlib-safer.
76596
76597 2006-07-21  Eric Blake  <ebb9@byu.net>
76598
76599         * lib/stdlib-safer.h: New file from coreutils, required by
76600         stdlib--.h.
76601
76602 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
76603
76604         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
76605
76606 2006-07-20  Bruno Haible  <bruno@clisp.org>
76607
76608         * gnulib-tool: Recognize new option --assume-autoconf.
76609         (autoconf_minversion): New variable.
76610         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
76611
76612 2006-07-20  Bruno Haible  <bruno@clisp.org>
76613
76614         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
76615
76616 2006-07-19  Derek R. Price  <derek@ximbiot.com>
76617
76618         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
76619         Reindent and repaginate.
76620
76621 2006-07-19  Derek Price  <derek@ximbiot.com>
76622
76623         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
76624         Correct grammar.
76625
76626 2006-07-17  Bruno Haible  <bruno@clisp.org>
76627
76628         * modules/list: New file.
76629         * modules/array-list: New file.
76630         * modules/carray-list, modules/carray-list-tests: New files.
76631         * modules/linked-list, modules/linked-list-tests: New files.
76632         * modules/avltree-list, modules/avltree-list-tests: New files.
76633         * modules/rbtree-list, modules/rbtree-list-tests: New files.
76634         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
76635         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
76636         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
76637         * modules/oset: New file.
76638         * modules/array-oset: New file.
76639         * modules/avltree-oset, modules/avltree-oset-tests: New files.
76640         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
76641         * tests/test-carray_list.c: New file.
76642         * tests/test-linked_list.c: New file.
76643         * tests/test-avltree_list.c: New file.
76644         * tests/test-rbtree_list.c: New file.
76645         * tests/test-linkedhash_list.c: New file.
76646         * tests/test-avltreehash_list.c: New file.
76647         * tests/test-rbtreehash_list.c: New file.
76648         * tests/test-avltree_oset.c: New file.
76649         * tests/test-rbtree_oset.c: New file.
76650         * MODULES.html.sh (Container data structures): New section.
76651
76652 2006-07-17  Bruno Haible  <bruno@clisp.org>
76653
76654         * m4/gl_list.m4: New file.
76655
76656 2006-07-17  Bruno Haible  <bruno@clisp.org>
76657
76658         * lib/gl_list.h: New file.
76659         * lib/gl_list.c: New file.
76660         * lib/gl_array_list.h: New file.
76661         * lib/gl_array_list.c: New file.
76662         * lib/gl_carray_list.h: New file.
76663         * lib/gl_carray_list.c: New file.
76664         * lib/gl_linked_list.h: New file.
76665         * lib/gl_linked_list.c: New file.
76666         * lib/gl_anylinked_list1.h: New file.
76667         * lib/gl_anylinked_list2.h: New file.
76668         * lib/gl_avltree_list.h: New file.
76669         * lib/gl_avltree_list.c: New file.
76670         * lib/gl_anyavltree_list1.h: New file.
76671         * lib/gl_anyavltree_list2.h: New file.
76672         * lib/gl_rbtree_list.h: New file.
76673         * lib/gl_rbtree_list.c: New file.
76674         * lib/gl_anyrbtree_list1.h: New file.
76675         * lib/gl_anyrbtree_list2.h: New file.
76676         * lib/gl_anytree_list1.h: New file.
76677         * lib/gl_anytree_list2.h: New file.
76678         * lib/gl_linkedhash_list.h: New file.
76679         * lib/gl_linkedhash_list.c: New file.
76680         * lib/gl_anyhash_list1.h: New file.
76681         * lib/gl_anyhash_list2.h: New file.
76682         * lib/gl_avltreehash_list.h: New file.
76683         * lib/gl_avltreehash_list.c: New file.
76684         * lib/gl_rbtreehash_list.h: New file.
76685         * lib/gl_rbtreehash_list.c: New file.
76686         * lib/gl_anytreehash_list1.h: New file.
76687         * lib/gl_anytreehash_list2.h: New file.
76688
76689         * lib/gl_oset.h: New file.
76690         * lib/gl_oset.c: New file.
76691         * lib/gl_array_oset.h: New file.
76692         * lib/gl_array_oset.c: New file.
76693         * lib/gl_avltree_oset.h: New file.
76694         * lib/gl_avltree_oset.c: New file.
76695         * lib/gl_rbtree_oset.h: New file.
76696         * lib/gl_rbtree_oset.c: New file.
76697         * lib/gl_anytree_oset.h: New file.
76698
76699 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
76700
76701         * m4/mkancesdirs.m4: New file.
76702         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
76703         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
76704         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
76705         it.
76706
76707 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
76708
76709         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
76710         * lib/mkancesdirs.h: New files.
76711         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
76712         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
76713         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
76714         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
76715         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
76716         callers changed.  Revamp internals significantly, by not
76717         attempting to create directories that are temporarily more
76718         permissive than the final results.  Do not attempt to use
76719         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
76720         This removes some race conditions, fixes some bugs, and simplifies
76721         things.  Use new dirchownmod function to do owner and mode changes.
76722         * lib/mkdir-p.h: Likewise.
76723         * lib/modechange.c (octal_to_mode): New function.
76724         (struct mode_change): New member mentioned.
76725         (make_node_op_equals): New arg mentioned.  All callers changed.
76726         (mode_compile): Keep track of which mode bits the user has explicitly
76727         mentioned.
76728         (mode_adjust): New arg DIR, so that we implement the X op correctly.
76729         New arg PMODE_BITS, to keep track of which mode bits the user
76730         mentioned; it treats S_ISUID and S_ISGID speciall.
76731         All callers changed.
76732         * lib/modechange.h: Likewise.
76733
76734 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
76735
76736         * MODULES.html.sh: Add mkancestors.
76737         * modules/mkancesdirs: New module.
76738         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
76739         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
76740         The chdir-safer and afs files are now orphans; I'll remove them
76741         unless someone speaks up.
76742         Add lib/dirchownmod.c, lib/dirchownmod.h.
76743         (Depends-on): Remove alloca, chown, save-cwd, dirname.
76744         Add lchown, mkancesdirs.
76745         (Maintainer): Add self.
76746
76747 2006-07-15  Karl Berry  <karl@gnu.org>
76748
76749         * gnulib-tool: help message wording/arrangement.
76750
76751 2006-07-14  Simon Josefsson  <jas@extundo.com>
76752
76753         * doc/gnulib.texi (Libtool and Windows): New section.
76754
76755 2006-07-12  Simon Josefsson  <jas@extundo.com>
76756
76757         * modules/gendocs (License): Fix license, approved by Karl.
76758
76759 2006-07-12  Eric Blake  <ebb9@byu.net>
76760
76761         * MODULES.html.sh: Add gendocs.
76762
76763 2006-07-11  Eric Blake  <ebb9@byu.net>
76764
76765         * modules/fdl: New module, to install doc/fdl.texi.
76766         * MODULES.html.sh: Add new section for documentation modules.
76767         * gnulib-tool: Avoid space-tab.
76768         (--doc-base): New option, to manage files from doc.
76769
76770 2006-07-11  Eric Blake  <ebb9@byu.net>
76771
76772         * m4/absolute-header.m4: Fix comments to match recent change.
76773
76774 2006-07-11  Eric Blake  <ebb9@byu.net>
76775
76776         * gnulib-tool: List --doc-base before --tests-base.
76777
76778 2006-07-11  Derek R. Price  <derek@ximbiot.com>
76779
76780         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
76781
76782 2006-07-11  Bruno Haible  <bruno@clisp.org>
76783
76784         * README: Mention where to put documentation.
76785
76786 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76787
76788         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
76789
76790 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
76791
76792         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
76793         to stdint.m4.
76794
76795 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
76796
76797         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
76798         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
76799         "no/such/file/stdint.h" when there is no such file, so that
76800         the resulting C code can be parsed by dodgy compilers.
76801         Problems reported by Bob Proulx.
76802
76803 2006-07-10  Derek R. Price  <derek@ximbiot.com>
76804
76805         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
76806         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
76807         macros into the GNU _D_EXACT_NAMLEN.
76808         * lib/savedir.c:  Likewise.
76809         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
76810
76811 2006-07-10  Derek R. Price  <derek@ximbiot.com>
76812         and Paul Eggert  <eggert@cs.ucla.edu>
76813
76814         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
76815         * m4/savedir.m4:
76816         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
76817         macros into the GNU _D_EXACT_NAMLEN.
76818
76819 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
76820
76821         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
76822         around the absolute name, to work around a problem with the HP-UX
76823         11.23 native C compiler, reported by Bob Proulx.
76824
76825 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
76826
76827         * doc/maintain.texi, make-stds.texi: Sync from
76828         <http://savannah.gnu.org/projects/gnustandards>.
76829
76830 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
76831
76832         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
76833
76834 2006-07-09  Jim Meyering  <jim@meyering.net>
76835
76836         * m4/glob.m4: Remove a doubled word in a comment.
76837
76838 2006-07-09  Jim Meyering  <jim@meyering.net>
76839
76840         * lib/argp-pv.c: Remove a doubled word in a comment.
76841         * lib/check-version.c (check_version): Likewise.
76842         * lib/javacomp.c (compile_java_class): Likewise.
76843
76844 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
76845
76846         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
76847         for the benefit of people using Autoconf 2.60.  If you want to
76848         support older Autoconf versions you can copy m4/onceonly_2_57.m4
76849         (or m4/onceonly.m4, if pre-2.57) manually.
76850
76851 2006-07-08  Jim Meyering  <jim@meyering.net>
76852
76853         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
76854         comment.
76855         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
76856         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
76857         comment.
76858
76859 2006-07-08  Jim Meyering  <jim@meyering.net>
76860
76861         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
76862
76863 2006-07-07  Simon Josefsson  <jas@extundo.com>
76864
76865         * tests/test-crc.c: Change expected crc value, the test vector
76866         were probably computed using the old broken crc.c?
76867
76868 2006-07-06  Simon Josefsson  <jas@extundo.com>
76869
76870         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
76871         now the canonical place for the M4 file).
76872
76873         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
76874         from the sys_socket dependency now.
76875
76876         * modules/inet_pton (Files): Ditto.
76877
76878         * modules/inet_ntop (Files): Ditto.
76879
76880 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
76881
76882         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
76883         not gl_PREREQ_GETUSERSHELL.
76884
76885 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76886
76887         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
76888         with only one argument, for Autoconf 2.60.
76889         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
76890         expand to nothing, so add a shell command to avoid syntax error.
76891         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
76892
76893 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76894
76895         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
76896
76897 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
76898
76899         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
76900         no longer needed.  Check for isblank decl.
76901         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
76902         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
76903         of existence.
76904
76905 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
76906
76907         * lib/getloadavg.c: Use __VMS, not VMS.
76908         * lib/getopt.c: Likewise.
76909         * lib/getpagesize.h: Likewise.
76910         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
76911         and probably does not work.
76912
76913 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
76914
76915         * lib/.cppi-disable: Add wcwidth.
76916         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
76917         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
76918         (ISGRAPH): Remove.  All uses changed to isgraph.
76919         (FOLD) [!defined _LIBC]: Remove special case.
76920         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
76921         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
76922         HAVE_ISBLANK.
76923         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
76924         case.
76925
76926 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
76927
76928         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
76929         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
76930         brackets.  Other minor changes to suppress some compiler
76931         warnings.
76932
76933 2006-07-06  Derek R. Price  <derek@ximbiot.com>
76934         and Paul Eggert  <eggert@cs.ucla.edu>
76935
76936         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
76937         of invoking obsolescent AC_HEADER_DIRENT macro.
76938         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
76939         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
76940         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
76941         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
76942         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
76943         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
76944         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
76945         * m4/readdir.m4: Remove; no longer needed.
76946
76947 2006-07-06  Derek R. Price  <derek@ximbiot.com>
76948         and Paul Eggert  <eggert@cs.ucla.edu>
76949
76950         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
76951         Don't worry about this obsolete case any more.
76952         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
76953         directories.
76954         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
76955         worry about this obsolete case any more.
76956         * lib/fts.c: Likewise.
76957         * lib/getcwd.c: Likewise.
76958         * lib/glob.h: Likewise.
76959         * lib/savedir.c: Likewise.
76960
76961 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
76962
76963         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
76964         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
76965         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
76966         needed.
76967         All uses removed.
76968         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
76969         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
76970         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
76971         needed.
76972         * m4/getdate.m4 (gl_GETDATE): Likewise.
76973         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
76974         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
76975         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
76976         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
76977         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
76978         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
76979         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
76980         needed.
76981
76982 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
76983
76984         * lib/memcasecmp.c: Include <limits.h>.
76985         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
76986         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
76987         Don't assume isdigit succeeds only on '0' through '9'.
76988
76989 2006-07-05  Eric Blake  <ebb9@byu.net>
76990
76991         * modules/getaddrinfo (Depends-on): Add snprintf.
76992
76993 2006-07-05  Eric Blake  <ebb9@byu.net>
76994
76995         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
76996         to avoid 'header present but could not be compiled' on cygwin.
76997
76998 2006-07-05  Eric Blake  <ebb9@byu.net>
76999
77000         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
77001         missing from netdb.h.
77002         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
77003
77004 2006-07-05  Derek R. Price  <derek@ximbiot.com>
77005
77006         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
77007         no longer needed.
77008         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
77009         * m4/getdate.m4 (gl_GETDATE): Likewise.
77010         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
77011         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
77012         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
77013         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
77014         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
77015
77016 2006-07-05  Derek R. Price  <derek@ximbiot.com>
77017
77018         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
77019         All uses of is_space replaced by isspace.
77020         * lib/exit.h: Don't talk about STDC_HEADERS.
77021         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
77022         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
77023         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
77024         replaced by isprint etc.
77025         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
77026         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
77027         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
77028         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
77029         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
77030         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
77031
77032 2006-07-05  Bruno Haible  <bruno@clisp.org>
77033
77034         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
77035         the function exists, before testing against AIX.
77036         Reported by Martin Lambers <marlam@marlam.de>.
77037
77038 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
77039
77040         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
77041         From Mark D. Baushke.
77042
77043 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
77044
77045         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
77046         to the absolute name, not just one, to bypass Sun C 5.8's
77047         "warning: #include of /usr/include/... may be non-portable".
77048
77049 2006-07-04  Eric Blake  <ebb9@byu.net>
77050
77051         * modules/dirname-tests: New test module.
77052         * tests/test-dirname.c: New file, replacing dirname.c
77053         TEST_DIRNAME section that was recently deleted.
77054
77055 2006-07-04  Bruno Haible  <bruno@clisp.org>
77056
77057         Assume ANSI C header files and <ctype.h> functions.
77058         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
77059         (mbsnwidth): Use isprint, iscntrl instead.
77060
77061 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
77062
77063         Merge from coreutils.
77064         * MODULES.html.sh: Add xstrtold.
77065         * modules/xstrtold: New file.
77066         * modules/cycle-check (Files): Add lib/same-inode.h.
77067         * modules/dirname (Files): Add m4/double-slash-root.m4.
77068         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
77069         * modules/mkdir-p (Files): Add lib/same-inode.h.
77070         * modules/same (Files): Add lib/same-inode.h.
77071
77072 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
77073
77074         * m4/absolute-header.m4: Renamed from full-header-path.m4.
77075         This is to keep the terminology clean; POSIX talks about
77076         "absolute pathnames", not "full pathnames", but the GNU
77077         Coding Standards say to use "path" for something else;
77078         so use "absolute" to keep both sides happy.
77079         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
77080         Set gl_absolute_header, not gl_full_header_path.
77081         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
77082         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
77083         All uses changed.
77084
77085         Merge from coreutils.
77086
77087         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
77088
77089         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
77090         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
77091         want to require the building of c-strtod.o.
77092         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
77093         needs -lm directly.
77094         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
77095
77096         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
77097
77098         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
77099         --as-needed option if available.  Problem reported by Albert Chin in
77100         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
77101         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
77102         cc merely issues a bunch of annoying warnings for --as-needed
77103         (this problem was reported by Bob Proulx).  Also, try linking with
77104         -lm to detect a bug in binutils 2.16 (this problem was reported
77105         by Ralf Wildenhues).
77106
77107         2006-06-18  Jim Meyering  <jim@meyering.net>
77108
77109         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
77110         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
77111         macro.
77112         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
77113         also check for glibc-2.4's abort-inducing bug.
77114
77115         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
77116         Low-probability clean-up should be to use rmdir to get rid of
77117         the just-created directory, not unlink.
77118
77119         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
77120         configure fail, and request a bug report to inform us about it.
77121         Add a comment that, barring reports to the contrary, in 2007 we'll
77122         assume ftruncate is universally available.
77123
77124         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
77125
77126         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
77127
77128         2006-03-12  Jim Meyering  <jim@meyering.net>
77129
77130         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
77131         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
77132         * m4/same.m4 (gl_SAME): Likewise.
77133         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
77134
77135         2006-03-11  Eric Blake  <ebb9@byu.net>
77136
77137         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
77138         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
77139         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
77140         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
77141
77142 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
77143
77144         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
77145         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
77146         reported by Mark D. Baushke, one in
77147         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
77148
77149         Merge from coreutils.
77150
77151         * lib/.cppi-disable: Add stdint_.h.
77152         * lib/.cvsignore: Add stdint.h.
77153
77154         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
77155
77156         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
77157         both double and long double versions.
77158         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
77159         * lib/xstrtold.c: New file.
77160         * lib/xstrtod.h (xstrtold): New decl.
77161
77162         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
77163
77164         * lib/filemode.c (setst): Remove.
77165         (strmode): Rewrite to avoid setst.  This makes the code shorter,
77166         (arguably) clearer, and the generated code is a bit smaller on my
77167         Debian GNU/Linux stable x86 host.
77168
77169         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
77170
77171         * lib/filemode.c: Include "filemode.h" first, to test the interface.
77172         Assume that filemode.h includes sys/types.h and sys/stat.h.
77173         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
77174         (ftypelet): Reorder to put common cases first, for efficiency.
77175         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
77176         to do 'M'.
77177         (strmode): Renamed from mode_string, and now stores 12 bytes instead
77178         of 10, for compatibility with FreeBSD.  All callers changed.
77179         (filemodestring): Now stores 12 bytes instead of 10, and sets file
77180         types that can't be deduced solely from st_mode.  First arg is now a
77181         const pointer.
77182         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
77183         (strmode): Renamed from mode_string.
77184         (filemodestring): New decl.
77185         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
77186         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
77187         needed.
77188         (S_ISPORT, S_ISWHT): New macros, if not already defined.
77189
77190         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
77191
77192         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
77193         fsusage.h now does that.  Include fsusage.h first, to test interface.
77194         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
77195         at most one method (the old code could have generated decls that
77196         didn't conform to C89, not that this was ever exercised).
77197         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
77198
77199         2006-03-19  Jim Meyering  <jim@meyering.net>
77200
77201         Work even in a chroot where d_ino values for entries in "/"
77202         don't match the stat.st_ino values for the same names.
77203         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
77204         number, iterate through all entries again, using lstat instead.
77205         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
77206         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
77207
77208         * lib/getcwd.c (__getcwd): Clarify a comment.
77209         Use memcpy in place of a call to strcpy.
77210
77211         2006-03-12  Jim Meyering  <jim@meyering.net>
77212
77213         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
77214         matches that of the current directory (which we're about to chdir ".."
77215         out of), then save the dev-ino of the parent, instead.
77216
77217         * lib/same-inode.h (SAME_INODE): New file/macro.
77218         * lib/chdir-safer.c (SAME_INODE): Remove definition.
77219         Include "same-inode.h", instead.
77220         * lib/same.c: Likewise.
77221         * lib/cycle-check.h: Include "same-inode.h".
77222         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
77223         * lib/cycle-check.c (SAME_INODE): Remove definition.
77224         * lib/root-dev-ino.h: Include "same-inode.h".
77225
77226         2006-03-11  Eric Blake  <ebb9@byu.net>
77227
77228         * lib/same.c (same_name): s/base_name/last_component/
77229         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
77230         * lib/filenamecat.c (file_name_concat): Likewise.
77231
77232         2006-03-11  Eric Blake  <ebb9@byu.net>,
77233                     Paul Eggert  <eggert@cs.ucla.edu>
77234
77235         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
77236         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
77237         drive prefix.
77238         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
77239         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
77240         (last_component): New method.
77241         * lib/dirname.c (dir_len): Determine when drive letters need a
77242         subsequent slash.  Preserve // when it is special.
77243         (dir_name): Don't append dot when drive letter is absolute.
77244         [TEST_DIRNAME]: Move into a full-blown gnulib test.
77245         * lib/basename.c (base_name): New semantics - malloc the result.
77246         Preserve // when it is special.  Preserve relative files that look
77247         like drive letters.
77248         (base_len): Preserve // when it is special.
77249         (last_component): New method, similar to old base_name semantics.
77250         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
77251         base_name.  Strip redundant slashes from ///.
77252
77253 2006-07-03  Jim Meyering  <jim@meyering.net>
77254
77255         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
77256         macro is used before the first cycle_check call.
77257
77258 2006-07-03  Eric Blake  <ebb9@byu.net>
77259
77260         * modules/dirname (Depends-on): Add xstrndup.
77261
77262 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
77263
77264         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
77265         test cases, so that config.log is a bit easier to follow.
77266
77267 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
77268
77269         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
77270         both are 64 bits, since this seems to be the tradition, and this
77271         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
77272         we ever run into a host that prefers long long to long in this
77273         case, we'll need another configure-time test.  Problem reported by
77274         Jim Meyering.
77275
77276 2006-07-02  Eric Blake  <ebb9@byu.net>
77277
77278         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
77279
77280 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
77281
77282         * modules/inttypes (Depends-on): No longer depends on stdint.
77283         * modules/stdint (Description): Say more about assumptions.
77284         Say that the fast types might differ.  Say macros are used.
77285         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
77286         (Makefile.am): Revise list of substituted symbols to match
77287         new stdint.m4.
77288         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
77289         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
77290         * tests/test-stdint.c (verify_same_types)
77291         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
77292         the code conforms to C99/C89.
77293         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
77294         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
77295
77296 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
77297
77298         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
77299         but fix a bug, by requiring at least 64 bits.
77300         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
77301         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
77302         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
77303         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
77304
77305         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
77306         changes.  Make 2.59 a prerequisite.  Check and substitute for
77307         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
77308         inttypes.h.  Do not use special include files; just use the
77309         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
77310         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
77311         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
77312         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
77313         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
77314         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
77315         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
77316         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
77317         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
77318         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
77319         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
77320         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
77321         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
77322         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
77323         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
77324         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
77325         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
77326         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
77327         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
77328         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
77329         WINT_MAX.  Check for C99 conformance more strictly, by detecting
77330         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
77331         not check for things that C99 does not require, e.g., int8_t.  If
77332         a test isn't needed unless <stdint.h> isn't working, and is
77333         unlikely to be needed for any other reason, then don't do it
77334         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
77335         size_t, since we assume C89 freestanding at least.  Do not check
77336         for sig_atomic_t, wchar_t, or wint_t, since the code now does
77337         the right thing even if the types are not defined.  Instead use:
77338         (gl_STDINT_TYPE_PROPERTIES): New macro.
77339         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
77340         testing whether <sys/types.h> clashes, as Autoconf does this for
77341         us now.  All uses removed.
77342         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
77343         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
77344         (gl_CHECK_TYPE_SAME):
77345         Remove; no longer needed.
77346         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
77347         exists, since we'll return 0 anyway in that case.
77348         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
77349
77350 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
77351
77352         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
77353         possible collision with system files.
77354         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
77355         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
77356         WCHAR_MIN and WCHAR_MAX in this case.
77357         (<stddef.h>): Do not include; no longer needed.
77358         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
77359         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
77360         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
77361         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
77362         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
77363         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
77364         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
77365         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
77366         !defined(__c99))]: Include in this case too, since it's harmless
77367         now.
77368         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
77369         dangerous to do so.
77370         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
77371         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
77372         (_STDINT_MIN, _STDINT_MAX): New macros.
77373         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
77374         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
77375         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
77376         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
77377         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
77378         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
77379         macros, not typedefs; this simplifies things quite a bit.
77380         Use long int for all types narrower than int64_t.
77381         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
77382         Define in terms of long long int or int64_t or long int,
77383         not int64_t or int32_t.  This saves some compile-time testing.
77384         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
77385         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
77386         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
77387         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
77388         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
77389         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
77390         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
77391         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
77392         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
77393         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
77394         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
77395         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
77396         undef any previous version and define our own version, for
77397         simplicity and consistency with the new macros for types.
77398         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
77399         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
77400         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
77401         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
77402         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
77403         @WINT_T_SUFFIX@ to keep things simple here.
77404         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
77405         Simplify by assuming typical 8/16/32/64 host, since we're
77406         already doing that elsewhere anyway.
77407         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
77408         and assume long long int is 64 bits if available.  This
77409         speeds up 'configure'.
77410
77411 2006-07-01  Eric Blake  <ebb9@byu.net>
77412
77413         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
77414         Reported by Andreas Buening.
77415
77416 2006-07-01  Eric Blake  <ebb9@byu.net>
77417
77418         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
77419
77420 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
77421
77422         * lib/getaddrinfo.c: fixed typo
77423
77424 2006-06-29  Jim Meyering  <jim@meyering.net>
77425
77426         * modules/strftime (Maintainer): Add my name, since with the
77427         FPRINTFTIME changes strftime.c has forked from glibc.
77428
77429 2006-06-29  Eric Blake  <ebb9@byu.net>
77430
77431         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
77432
77433 2006-06-29  Eric Blake  <ebb9@byu.net>
77434
77435         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
77436
77437 2006-06-29  Eric Blake  <ebb9@byu.net>
77438
77439         * lib/stat_.h: New file.
77440
77441 2006-06-29  Eric Blake  <ebb9@byu.net>
77442
77443         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
77444         unused static function.
77445
77446 2006-06-29  Eric Blake  <ebb9@byu.net>
77447
77448         * doc/functions.texi (Function Portability): Document missing lstat
77449         on mingw.
77450
77451 2006-06-29  Eric Blake  <ebb9@byu.net>
77452
77453         * MODULES.html.sh: Add sys_stat.
77454         * modules/sys_stat: New module.
77455         * modules/mkstemp (Depends-on): Add sys_stat.
77456
77457 2006-06-29  Derek R. Price  <derek@ximbiot.com>
77458
77459         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
77460
77461 2006-06-29  Derek R. Price  <derek@ximbiot.com>
77462
77463         * m4/c-bs-a.m4: Removed.
77464
77465 2006-06-29  Derek R. Price  <derek@ximbiot.com>
77466
77467         * lib/strftime.c: Assume strftime() exists.
77468
77469 2006-06-29  Derek Price  <derek@ximbiot.com>
77470
77471         * modules/c-bs-a: Removed - \a is C89.
77472         * MODULES.html.sh: Remove c-bs-a.
77473
77474 2006-06-29  Bruno Haible  <bruno@clisp.org>
77475
77476         * modules/wcwidth (License): Change to LGPL.
77477
77478 2006-06-28  Simon Josefsson  <jas@extundo.com>
77479
77480         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
77481         on _WIN32.
77482
77483         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
77484         getnameinfo.
77485
77486 2006-06-28  Simon Josefsson  <jas@extundo.com>
77487
77488         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
77489
77490 2006-06-28  Simon Josefsson  <jas@extundo.com>
77491
77492         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
77493         functions there.  It will succeed on Windows XP, but on Windows
77494         2000 and (presumably) earlier, it will fail, and use the internal
77495         re-implementation.
77496         (use_win32_p): New function.
77497         (getaddrinfo): Use strtoul on servname, to support numeric ports.
77498         Support AI_NUMERICSERV to disable getservbyname.
77499         (getnameinfo): New function, only supports
77500         NI_NUMERICHOST|NI_NUMERICSERV for now.
77501
77502         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
77503         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
77504         getnameinfo.
77505
77506 2006-06-28  Eric Blake  <ebb9@byu.net>
77507
77508         * modules/wcwidth: New file.
77509         * modules/mbchar (Depends-on): Add wcwidth.
77510         * modules/mbswidth (Depends-on): Add wcwidth.
77511         * MODULES.html.sh: Add wcwidth.
77512
77513 2006-06-28  Eric Blake  <ebb9@byu.net>
77514
77515         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
77516         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
77517
77518 2006-06-28  Eric Blake  <ebb9@byu.net>
77519
77520         * lib/xvasprintf.h: Fix comments.
77521
77522 2006-06-28  Eric Blake  <ebb9@byu.net>
77523
77524         * lib/mbchar.h (wcwidth): Include wcwidth.h.
77525         * lib/mbswidth.c (wcwidth): Move from here...
77526         * lib/wcwidth.h: ...to this new file.
77527
77528 2006-06-28  Derek R. Price  <derek@ximbiot.com>
77529
77530         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
77531
77532         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
77533         it's obsolete.
77534         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
77535
77536 2006-06-28  Derek R. Price  <derek@ximbiot.com>
77537
77538         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
77539         Autoconf 2.60 says this stuff was obsolete.
77540
77541 2006-06-28  Bruno Haible  <bruno@clisp.org>
77542
77543         * modules/wcwidth (Files): Add m4/wchar_t.m4.
77544
77545 2006-06-28  Bruno Haible  <bruno@clisp.org>
77546
77547         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
77548         gt_TYPE_WCHAR_T.
77549
77550 2006-06-28  Bruno Haible  <bruno@clisp.org>
77551
77552         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
77553         declaration for wcwidth.
77554         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
77555
77556 2006-06-28  Bruno Haible  <bruno@clisp.org>
77557
77558         * lib/mkdtemp.c [MINGW]: Include <io.h>.
77559         (mkdir): Define using _mkdir.
77560
77561 2006-06-28  Bruno Haible  <bruno@clisp.org>
77562
77563         * lib/getaddrinfo.h: Fix POSIX URL.
77564         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
77565         _WIN32.
77566         (use_win32_p): Make static.
77567         (getaddrinfo): Reject service name if it is empty or does not consist
77568         solely of decimal digits, or if its value is > 65535.
77569         (getnameinfo): Remove useless casts.
77570
77571 2006-06-27  Simon Josefsson  <jas@extundo.com>
77572
77573         * modules/sys_select: New file, suggested by Bruno Haible, Paul
77574         Eggert and Martin Lambers.
77575
77576 2006-06-27  Simon Josefsson  <jas@extundo.com>
77577
77578         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
77579         Eggert and Martin Lambers.
77580
77581 2006-06-27  Bruno Haible  <bruno@clisp.org>
77582
77583         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
77584         result to 0, not to empty.
77585         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
77586
77587 2006-06-27  Bruno Haible  <bruno@clisp.org>
77588
77589         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
77590
77591 2006-06-26  Simon Josefsson  <jas@extundo.com>
77592
77593         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
77594         present.
77595
77596 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
77597
77598         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
77599         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
77600         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
77601
77602 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
77603
77604         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
77605
77606 2006-06-26  Bruno Haible  <bruno@clisp.org>
77607
77608         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
77609
77610 2006-06-26  Bruno Haible  <bruno@clisp.org>
77611
77612         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
77613
77614 2006-06-26  Bruno Haible  <bruno@clisp.org>
77615
77616         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
77617         SGI C compiler in pre-C99 mode.
77618         Suggested by Mark D. Baushke and Larry Jones.
77619
77620 2006-06-26  Bruno Haible  <bruno@clisp.org>
77621
77622         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
77623         WCHAR_MAX.
77624         Reported by Mark D. Baushke and Larry Jones.
77625
77626 2006-06-26  Bruno Haible  <bruno@clisp.org>
77627
77628         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
77629         in pre-C99 mode.
77630         Suggested by Mark D. Baushke and Larry Jones.
77631
77632 2006-06-23  Simon Josefsson  <jas@extundo.com>
77633             Bruno Haible  <bruno@clisp.org>
77634
77635         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
77636         Emit mostlyclean-local rule.
77637         (func_emit_tests_Makefile_am): Likewise.
77638         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
77639
77640 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
77641
77642         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
77643
77644 2006-06-23  Bruno Haible  <bruno@clisp.org>
77645
77646         * tests/test-stdint.c: Update to match ISO C 99 Technical
77647         Corrigendum 1.
77648
77649 2006-06-23  Bruno Haible  <bruno@clisp.org>
77650
77651         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
77652
77653 2006-06-23  Bruno Haible  <bruno@clisp.org>
77654
77655         * lib/stdint_.h: Treat IRIX like OpenBSD.
77656
77657 2006-06-23  Bruno Haible  <bruno@clisp.org>
77658
77659         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
77660         ISO C 99 Technical Corrigendum 1.
77661
77662 2006-06-22  Simon Josefsson  <jas@extundo.com>
77663
77664         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
77665         MinGW.
77666
77667 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
77668
77669         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
77670         needed.  Some compiler complained about some of them.  Problem reported
77671         by Larry Jones in
77672         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
77673
77674 2006-06-21  Simon Josefsson  <jas@extundo.com>
77675
77676         * tests/test-getaddrinfo.c: New file.
77677
77678         * modules/getaddrinfo-tests: New file.
77679
77680         * MODULES.html.sh: Add inet_pton.
77681
77682         * modules/inet_pton: New file.
77683
77684 2006-06-21  Simon Josefsson  <jas@extundo.com>
77685
77686         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
77687         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
77688         of using the (limited) gnulib implementation on Windows XP.
77689
77690         * m4/inet_pton.m4: New file.
77691
77692 2006-06-21  Simon Josefsson  <jas@extundo.com>
77693
77694         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
77695         variable.
77696
77697         * lib/socket_.h: Don't define WINVER.
77698
77699         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
77700         slightly modified to work in gnulib.
77701
77702 2006-06-21  Simon Josefsson  <jas@extundo.com>
77703
77704         * doc/gnulib.texi (Windows sockets): Add.
77705
77706 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
77707
77708         * lib/read-file.c (fread_file): Start with buffer allocation of
77709         0 bytes rather than 1 byte; this simplifies the code.
77710         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
77711         code to free buffer and save/restore errno.
77712         (internal_read_file): Remove unused local.
77713
77714 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
77715
77716         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
77717         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
77718         Problem reported by Denis Excoffier in
77719         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
77720
77721 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77722
77723         * modules/sys_socket, modules/socklen: Include sys/types since
77724         FreeBSD 4.x's sys/socket.h needs it.
77725
77726 2006-06-19  Simon Josefsson  <jas@extundo.com>
77727
77728         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
77729
77730 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
77731
77732         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
77733
77734 2006-06-19  Bruno Haible  <bruno@clisp.org>
77735
77736         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
77737         and FULL_PATH_INTTYPES_H in angle brackets.
77738         Reported by Mark D. Baushke <mdb@gnu.org>.
77739
77740 2006-06-17  Eric Blake  <ebb9@byu.net>
77741
77742         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
77743         errno.
77744
77745 2006-06-17  Bruno Haible  <bruno@clisp.org>
77746
77747         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
77748         <sys/inttypes.h>.
77749
77750 2006-06-17  Bruno Haible  <bruno@clisp.org>
77751
77752         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
77753         whether errno is declared. Assume <errno.h> declares errno.
77754
77755 2006-06-17  Bruno Haible  <bruno@clisp.org>
77756
77757         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
77758
77759 2006-06-17  Bruno Haible  <bruno@clisp.org>
77760
77761         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
77762         problem on Solaris 2.5.1.
77763
77764 2006-06-16  Eric Blake  <ebb9@byu.net>
77765
77766         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
77767         * lib/unicodeio.c [!defined errno]: Likewise.
77768         * lib/strtol.c [!defined errno]: Likewise.
77769         * lib/strtod.c [!defined errno]: Likewise.
77770
77771 2006-06-15  Eric Blake  <ebb9@byu.net>
77772
77773         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
77774
77775 2006-06-15  Eric Blake  <ebb9@byu.net>
77776
77777         * config/srclist.txt (ssize_t.m4): Lose sync.
77778
77779 2006-06-15  Bruno Haible  <bruno@clisp.org>
77780
77781         * modules/stdint (Files): Include m4/full-header-path.m4,
77782         m4/size_max.m4, m4/wchar_t.m4.
77783         (Makefile.am): Many more substitutions.
77784         * modules/stdint-tests: New file.
77785         * tests/test-stdint.c: New file.
77786
77787 2006-06-15  Bruno Haible  <bruno@clisp.org>
77788
77789         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
77790         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
77791         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
77792         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
77793         gl_CHECK_TYPE_SAME): New macros.
77794
77795 2006-06-15  Bruno Haible  <bruno@clisp.org>
77796
77797         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
77798
77799 2006-06-15  Bruno Haible  <bruno@clisp.org>
77800
77801         * lib/stdint_.h: Rewritten to be fully auto-configured.
77802         Fixes bug on HP-UX/IA64.
77803
77804 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
77805
77806         * lib/getdate.y (__attribute__): Don't define if already defined.
77807         Problem reported by Larry Jones.
77808         * lib/utimens.c (__attribute__): Likewise.
77809
77810 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
77811
77812         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
77813         reported by Andreas Schwab.
77814
77815 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77816             Bruno Haible  <bruno@clisp.org>
77817
77818         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
77819         check for the declaration of strnlen and a run test that exposes the
77820         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
77821         rpl_strndup.
77822
77823 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77824             Bruno Haible  <bruno@clisp.org>
77825
77826         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
77827
77828 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77829
77830         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
77831         compile test, for Tru64 4.0D.
77832
77833 2006-05-28  Karl Berry  <karl@gnu.org>
77834
77835         * config/srclist.txt (printf-args.c): lose sync.
77836
77837 2006-05-26  Martin Lambers  <marlam@marlam.de>
77838
77839         * lib/getpass.c: Updates the test for the native W32 API, and adds
77840         missing includes, thus fixing compilation warnings.
77841
77842 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
77843
77844         * lib/exclude.c (exclude_fnmatch): New function.
77845         (excluded_file_name): Call exclude_fnmatch.
77846         * lib/exclude.h (excluded_file_name): New prototype
77847
77848 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
77849
77850         * lib/tempname.c (small_open, large_open): New macros.
77851         (__open, __open64) [!_LIBC]: Remove.
77852         (__gen_tempname): Use small_open and large_open instead of __open
77853         and __open64.  This fixes a portability bug on HP-UX 11.11i
77854         reported by Simon Wing-Tang in
77855         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
77856
77857 2006-05-24  Bruno Haible  <bruno@clisp.org>
77858
77859         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
77860         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
77861         Reported by Thorsten Maerz <torte@netztorte.de> via
77862         Aaron Stone <aaron@serendipity.cx>.
77863
77864 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
77865
77866         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
77867         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
77868         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
77869         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
77870         not really conditional on the cache.
77871         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
77872
77873 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
77874
77875         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
77876         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
77877         (my_usleep): Don't mishandle maximum value.
77878
77879 2006-05-19  Jim Meyering  <jim@meyering.net>
77880
77881         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
77882
77883 2006-05-17  Bruno Haible  <bruno@clisp.org>
77884
77885         Cygwin portability.
77886         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
77887
77888 2006-05-17  Bruno Haible  <bruno@clisp.org>
77889
77890         * lib/stdint_.h: Fix recognition of Cygwin.
77891
77892 2006-05-15  Bruno Haible  <bruno@clisp.org>
77893
77894         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
77895         on libtool patch by Ralf Wildenhues.
77896
77897 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
77898
77899         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
77900         test for C99 conformance; (bool) 0.5 is an integer constant
77901         expression, but (bool) -0.5 is not.  Problem reported by Fedor
77902         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
77903
77904 2006-05-11  Simon Josefsson  <jas@extundo.com>
77905
77906         * m4/xvasprintf.m4: Fix obvious typo.
77907
77908 2006-05-11  Jim Meyering  <jim@meyering.net>
77909
77910         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
77911         James Lemley.
77912
77913 2006-05-10  Simon Josefsson  <jas@extundo.com>
77914
77915         * lib/md4.c: Typo fix, update copyright years.
77916         (K1, K2): Don't use L because it turn computations into 64-bit on
77917         64-bit platforms.
77918
77919 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
77920
77921         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
77922         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
77923         unwanted sign propagation, e.g., on hosts with 64-bit int.
77924         There still are some problems with reeelly weird theoretical hosts
77925         (e.g., 33-bit int) but it's not worth worrying about now.
77926         * lib/sha1.c (rol): Likewise.
77927         (K1, K2, K3, K4): Remove unnecessary L suffix.
77928
77929 2006-05-10  Bruno Haible  <bruno@clisp.org>
77930
77931         * lib/des.c: Cast to avoid warnings.
77932
77933 2006-05-09  Bruno Haible  <bruno@clisp.org>
77934
77935         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
77936         (Depends-on): Depend also on xsize, stdarg.
77937         (configure.ac): Add gl_XVASPRINTF.
77938
77939 2006-05-09  Bruno Haible  <bruno@clisp.org>
77940
77941         * m4/xvasprintf.m4: New file.
77942
77943 2006-05-09  Bruno Haible  <bruno@clisp.org>
77944
77945         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
77946         (EOVERFLOW): Define fallback value.
77947         (xstrcat): New function.
77948         (xvasprintf): Recognize the special case of a string concatenation.
77949
77950 2006-05-08  Eric Blake  <ebb9@byu.net>
77951
77952         * gnulib-tool (func_version): Base copyright year on CVS date.
77953         (func_emit_copyright_notice): New function.
77954         (func_emit_lib_Makefile_am): Use it.
77955         (func_emit_tests_Makefile_am): Likewise.
77956         (func_import): Likewise.
77957
77958 2006-05-08  Bruno Haible  <bruno@clisp.org>
77959
77960         * modules/stdarg: New file.
77961         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
77962
77963 2006-05-08  Bruno Haible  <bruno@clisp.org>
77964
77965         * m4/stdarg.m4: New file, from GNU gettext.
77966
77967 2006-05-08  Bruno Haible  <bruno@clisp.org>
77968
77969         * config/srclist.txt (build-aux/config.rpath): different from latest
77970         release.
77971
77972 2006-05-08  Bruno Haible  <bruno@clisp.org>
77973
77974         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
77975
77976 2006-05-05  Jim Meyering  <jim@meyering.net>
77977
77978         * m4/warning.m4: New file, derived from bison's file by the same name.
77979
77980 2006-05-03  Bruno Haible  <bruno@clisp.org>
77981
77982         * lib/stdint_.h: Shorter URL.
77983         * lib/inttypes.h: Likewise.
77984
77985 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
77986
77987         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
77988
77989 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
77990
77991         * lib/verify.h: Document the internals better.  Most of this change
77992         was written by Bruno Haible.
77993
77994 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
77995
77996         * doc/verify.texi: New file, partly based on a proposal by
77997         Bruno Haible.
77998
77999 2006-05-02  Bruno Haible  <bruno@clisp.org>
78000
78001         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
78002         test from here...
78003         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
78004
78005 2006-04-29  Bruno Haible  <bruno@clisp.org>
78006
78007         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
78008         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
78009
78010 2006-04-29  Bruno Haible  <bruno@clisp.org>
78011
78012         * gnulib-tool: Make --update option actually work.
78013
78014 2006-04-29  Bruno Haible  <bruno@clisp.org>
78015
78016         * doc/gcd.texi: New file.
78017         * doc/gnulib.texi: Include it.
78018
78019 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
78020
78021         * lib/getdate.y (get_date): When adding relative date, start with the
78022         initial time, not with the result of the first mktime call.
78023
78024 2006-04-25  Bruno Haible  <bruno@clisp.org>
78025
78026         * gnulib-tool (func_import): Output the include directives in three
78027         blocks, sorted separately.
78028         Reported by Ben Pfaff <blp@cs.stanford.edu>.
78029
78030 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
78031
78032         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
78033         to define main with arguments, for C++.  Reported by Eric Blake.
78034         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
78035         Prefer 'int main ()' to 'int main (void)', for C++.
78036         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
78037         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
78038         for 'main', for C99 and C++.
78039
78040 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
78041
78042         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
78043         Don't assume that exit status -1 is valid.
78044         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
78045         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
78046         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
78047         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
78048         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
78049         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
78050         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
78051         functions can be used without declaring them, or that you can
78052         exit with status -1.
78053         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
78054
78055 2006-04-24  Karl Berry  <karl@gnu.org>
78056
78057         * config/srclist.txt (longdouble.m4): sync lost.
78058
78059 2006-04-24  Eric Blake  <ebb9@byu.net>
78060
78061         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
78062
78063 2006-04-24  Bruno Haible  <bruno@clisp.org>
78064
78065         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
78066         poll() implementation in AIX.
78067         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78068
78069 2006-04-24  Bruno Haible  <bruno@clisp.org>
78070
78071         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
78072         assigned exactly once.
78073
78074 2006-04-23  Claudio Fontana  <claudio@gnu.org>
78075             Bruno Haible  <bruno@clisp.org>
78076
78077         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
78078         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
78079         for AM_CPPFLAGS.
78080
78081 2006-04-23  Bruno Haible  <bruno@clisp.org>
78082
78083         * modules/copy-file: Depend on unistd.
78084         * modules/execute: Likewise.
78085         * modules/fatal-signal: Likewise.
78086         * modules/findprog: Likewise.
78087         * modules/mkdtemp : Likewise.
78088         * modules/pipe: Likewise.
78089         * modules/wait-process: Likewise.
78090
78091 2006-04-23  Bruno Haible  <bruno@clisp.org>
78092
78093         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
78094         condition was already detected.
78095         Reported by Ben Pfaff <blp@cs.stanford.edu>.
78096
78097 2006-04-23  Bruno Haible  <bruno@clisp.org>
78098
78099         * lib/copy-file.c: Include <unistd.h> unconditionally.
78100         * lib/execute.c: Likewise.
78101         * lib/fatal-signal.c: Likewise.
78102         * lib/findprog.c: Likewise.
78103         * lib/mkdtemp.c: Likewise.
78104         * lib/pipe.h: Likewise.
78105         * lib/pipe.c: Likewise.
78106         * lib/wait-process.h: Likewise.
78107
78108 2006-04-23  Bruno Haible  <bruno@clisp.org>
78109
78110         * gnulib-tool (func_usage): Fix --import description. Document
78111         --update.
78112         (func_import): Create temporary file in a temporary directory, if
78113         --dry-run is specified. Silence errors from 'grep' when there are no
78114         m4 files in $m4dir.
78115         (func_create_testdir): Silence errors from 'grep' when there are no
78116         m4 files in $m4dir.
78117         Reported by Karl Berry <karl@freefriends.org>.
78118
78119 2006-04-20  Bruno Haible  <bruno@clisp.org>
78120
78121         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
78122         one argument, so that the code will be portable to Autoconf 2.60.
78123         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
78124         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
78125         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
78126
78127 2006-04-19  Derek Price  <derek@ximbiot.com>
78128             Eric Blake  <ebb9@byu.net>
78129
78130         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
78131         rather than "/full/path.h".  Update comment to match.  Shorten &
78132         generalize m4_translit call via AS_TR_CPP.
78133
78134 2006-04-19  Derek Price  <derek@ximbiot.com>
78135             Eric Blake  <ebb9@byu.net>
78136
78137         * lib/inttypes.h: Correct grammar in comment.
78138
78139 2006-04-18  Derek Price  <derek@ximbiot.com>
78140             Paul Eggert  <eggert@cs.ucla.edu>
78141
78142         * modules/inttypes: New file.
78143         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
78144
78145 2006-04-18  Derek Price  <derek@ximbiot.com>
78146             Paul Eggert  <eggert@cs.ucla.edu>
78147
78148         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
78149         New files.
78150
78151 2006-04-18  Derek Price  <derek@ximbiot.com>
78152             Paul Eggert  <eggert@cs.ucla.edu>
78153
78154         * lib/inttypes.h: New file.
78155         * lib/strtoimax.c: Assume <inttypes.h>.
78156
78157 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
78158
78159         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
78160         isn't mounted.  Problem reported by Kir Kolyshkin.
78161
78162 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
78163
78164         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
78165         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
78166         Derek R. Price.
78167         * lib/regex.h (RE_DUP_MAX): Update comment to match current
78168         implementation.
78169
78170 2006-04-12  Eric Blake  <ebb9@byu.net>
78171
78172         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
78173         is now done automatically by the corresponding Autoconf macro.
78174
78175 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
78176
78177         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
78178         time_r.h.
78179
78180 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
78181
78182         Merge regex changes from libc, removing some of our
78183         POSIX-conformance changes that were rejected and redoing them in a
78184         less-intrusive way.
78185
78186         * lib/regcomp.c (re_compile_internal, init_dfa):
78187         Length arg is now size_t, not Idx.  All uses changed.
78188         (peek_token): Forward decl now says internal_function.
78189         (__re_error_msgid, __re_error_msgid_idx):
78190         Now static rather than extern with attribute_hidden.
78191         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
78192         For some reason libc prefers K&R style defns for external functions.
78193         (regerror) [!defined _LIBC]: Likewise.
78194         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
78195         (seek_collating_symbol_entry, lookup_collation_sequence_value):
78196         (build_range_exp, build_collating_symbol):
78197         Use K&R-style defn.
78198         (re_compile_fastmap): Use '\0' to memset, not 0.
78199         (utf8_sb_map): Make the calculations more obvious.
78200         (init_dfa, parse_bracket_exp, build_charclass_op):
78201         Call calloc and cast result, as glibc does.
78202         (init_word_char, fetch_token, peek_token, peek_token_bracket):
78203         (build_range_exp, build_collating_symbol):
78204         Now internal functions.
78205
78206         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
78207
78208         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
78209         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
78210         Don't depend on VMS; depend on __VMS instead, for POSIX
78211         namespace cleanness.
78212         (regoff_t): Define to ssize_t, not long int.
78213
78214         Remove the REG_ macros named below.  Instead, make the old names
78215         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
78216         __USE_GNU_REGEX.
78217         (REG_BACKSLASH_ESCAPE_IN_LISTS):
78218         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
78219         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
78220         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
78221         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
78222         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
78223         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
78224         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
78225         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
78226         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
78227         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
78228         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
78229         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
78230         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
78231         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
78232         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
78233         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
78234         (REG_NREGS):
78235         Remove.  All uses replaced by the old RE_* names.
78236         (RE_BACKSLASH_ESCAPE_IN_LISTS):
78237         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
78238         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
78239         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
78240         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
78241         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
78242         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
78243         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
78244         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
78245         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
78246         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
78247         Don't bother having these macros be independent of each others'
78248         values, since they no longer exist in the POSIX name space.
78249
78250         Rename the following member names back to their old names,
78251         unless !__USE_GNU_REGEX.  All uses changed back.
78252         (buffer): Renamed from re_buffer.
78253         (allocated): Renamed from re_allocated.
78254         (used): Renamed from re_used.
78255         (syntax): Renamed from re_syntax.
78256         (fastmap): Renamed from re_fastmap.
78257         (translate): Renamed from re_translate.
78258         (can_be_null): Renamed from re_can_be_null.
78259         (regs_allocated): Renamed from re_regs_allocated.
78260         (fastmap_accurate): Renamed from re_fastmap_accurate.
78261         (no_sub): Renamed from re_no_sub.
78262         (not_bol): Renamed from re_not_bol.
78263         (not_eol): Renamed from re_not_eol.
78264         (newline_anchor): Renamed from re_newline_anchor.
78265         (num_regs): Renamed from rm_num_regs.
78266         (start): Renamed from rm_start.
78267         (end): Renamed from rm_end.
78268
78269         (free_state): Move up a bit.
78270
78271         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
78272         #define to be empty.
78273         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
78274         when that is what is intended.
78275         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
78276         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
78277         (MAX): New macro.
78278         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
78279         All uses changed back to re_malloc, etc.  It's now the caller's
78280         responsibility to check for overflow; all callers changed.
78281         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
78282         (re_x2nrealloc): Remove.
78283         (free_state): Remove decl.
78284
78285         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
78286         (re_set_registers, re_exec):
78287         Use K&R-style defn.
78288
78289         2006-01-31  Roland McGrath  <roland@redhat.com>
78290
78291         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
78292         Reported by Mike Frysinger <vapier@gentoo.org>.
78293
78294         2006-01-15  Andreas Jaeger  <aj@suse.de>
78295
78296         [BZ #1950]
78297         * lib/regex_internal.c (re_string_reconstruct): Adjust for
78298         build_wcs_upper_buffer change.
78299         (build_wcs_upper_buffer): Change return type.
78300
78301         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
78302
78303         * lib/regex_internal.h: Include <stdint.h> if available.
78304
78305         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
78306
78307         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
78308
78309         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
78310
78311         * lib/regcomp.c: Adjust for changed secondary hash function.
78312
78313         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
78314
78315         * lib/regex.h: Pretty printing.
78316         Clean up namespace a bit.
78317
78318         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
78319
78320         * lib/regexec.c (update_cur_sifted_state, check_arrival,
78321         check_arrival_add_next_nodes): Avoid using uninitialized variable.
78322
78323         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
78324                     Ulrich Drepper  <drepper@redhat.com>
78325
78326         [BZ #1302]
78327         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
78328         changed.
78329         (bitset_word_t): Renamed from bitset_word.  All uses changed.
78330
78331         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
78332
78333         [BZ #281]
78334         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
78335         * lib/regcomp.c: Remove unnecessary uses of
78336         unsigned RE_TRANSLATE_TYPE.
78337         * lib/regex_internal.h: Likewise.
78338         * lib/regex_internal.c: Likewise.
78339         * lib/regexec.c: Likewise.
78340         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
78341
78342         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
78343
78344         * lib/regexec.c (find_recover_state): Remove unnecessary
78345         initialization.
78346         (transit_state_bkref): Make DFA a const pointer.
78347         (get_subexp): Likewise.
78348         (check_arrival): Likewise.
78349         (update_cur_sifted_state): Likewise.
78350         (re_search_internal): Likewise.
78351         (prune_impossible_nodes): Likewise.
78352         (acquire_init_state_context): Likewise.
78353         (proceed_next_node): Likewise.
78354         (set_regs): Likewise.
78355         (free_fail_stack_return): Likewise.
78356         (check_arrival_expand_ecl): Mark DFA parameter as const.
78357         (check_arrival_expand_ecl_sub): Likewise.
78358         (check_subexp_limits): Likewise.
78359         (sub_epsilon_src_nodes):  Likewise.
78360         (add_epsilon_src_nodes):  Likewise.
78361         (merge_state_array): Likewise.
78362         (update_regs): Likewise.
78363         (build_trtable): Likewise.
78364         (sift_states_backward): Mark MCTX parameter as const.
78365         (build_sifted_states): Likewise.
78366         (update_cur_sifted_state): Likewise.
78367         (sift_states_mkref): Likewise.
78368         (check_arrival_expand_ecl): Mark eclosure as const.
78369         (check_dst_limits_calc_pos_1): Likewise.
78370         * lib/regex_internal.h (re_match_context_t): Make dfa a const
78371         pointer.
78372
78373         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
78374
78375         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
78376         (transit_state_sb): Likewise.
78377         (transit_state_mb): Likewise.
78378         (sift_states_iter_mb): Likewise.
78379         (check_arrival_add_next_nodes): Likewise.
78380         (check_node_accept_bytes): Change first parameter to pointer-to-const.
78381         [_LIBC] (re_search_2_stub): Use mempcpy.
78382
78383         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
78384         mbrtowc for very simple UTF-8 case.
78385
78386         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
78387         a pointer-to-const.
78388         (re_acquire_state_context): Likewise.
78389         * lib/regex_internal.h: Adjust prototypes.
78390
78391         * lib/regex.c: Prevent using C++ compilers.
78392
78393         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
78394         (re_acquire_state_context): Likewise.
78395
78396 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
78397
78398         * modules/regex (Depends-on): Add ssize_t.
78399
78400 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
78401
78402         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
78403         translation table.
78404
78405 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
78406
78407         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
78408
78409 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
78410             Bruno Haible  <bruno@clisp.org>
78411
78412         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
78413         <sys/types.h> and <inttypes.h>.
78414
78415 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78416
78417         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
78418         `__error_t_defined', so argp.h will not typedef the former.
78419
78420 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
78421
78422         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
78423         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
78424         glibc names.  Even if glibc is changed to conform to POSIX, the
78425         traditional names will be available anyway, since regex depends on
78426         the extensions module.  Also, fix a longstanding typo in the
78427         implementation of Spencer ERE test #75 from grep 2.3.  Problems
78428         reported by Emanuele Giaquinta.  Also, change sense of cached
78429         variable, so that the message makes sense.
78430
78431 2006-03-24  Simon Josefsson  <jas@extundo.com>
78432
78433         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
78434         including some doc fixes.
78435         (base64_encode_alloc): Fix +1 bug on allocation failures.
78436
78437 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78438
78439         * lib/base64.c (base64_encode): Do not read past end of array with
78440         unsanitized input on systems with CHAR_BIT > 8.
78441
78442 2006-03-24  Eric Blake  <ebb9@byu.net>
78443
78444         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
78445
78446 2006-03-22  Karl Berry  <karl@gnu.org>
78447
78448         * config/srclist.txt (*setenv.[ch]): get from coreutils.
78449         * config/srclistvars.sh (COREUTILS): new var.
78450
78451 2006-03-17  Jim Meyering  <jim@meyering.net>
78452
78453         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
78454         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
78455
78456 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
78457
78458         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
78459         no longer needs it.  Instead, check that regoff_t is as least
78460         as wide as ptrdiff_t.
78461
78462         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
78463         so that our regex.h stays compatible with the installed regex.
78464         This is helpful for installers who configure --without-included-regex.
78465         Problem reported by Emanuele Giaquinta.
78466
78467 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
78468
78469         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
78470         Typedef to long int, not to off_, as POSIX will likely change
78471         in that direction.
78472
78473 2006-03-15  Eric Blake  <ebb9@byu.net>
78474
78475         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
78476
78477 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
78478
78479         * lib/argp-help.c (validate_uparams): Fix typo
78480         * lib/argp-parse.c (argp_default_options): Consistently begin help
78481         messages with a lowercase letter.
78482
78483 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
78484
78485         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
78486         overrun buffers and shouldn't be used (much as gets shouldn't be
78487         used).
78488         * lib/time_r.c (asctime_r, ctime_r): Likewise.
78489
78490 2006-03-08  Simon Josefsson  <jas@extundo.com>
78491
78492         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
78493         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78494
78495 2006-03-08  Simon Josefsson  <jas@extundo.com>
78496
78497         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
78498         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78499
78500 2006-03-08  Simon Josefsson  <jas@extundo.com>
78501
78502         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
78503         signal that configure disabled the device.
78504
78505 2006-03-08  Simon Josefsson  <jas@extundo.com>
78506
78507         * build-aux/maint.mk: Fix refresh-po, to handle no translated
78508         languages.
78509
78510 2006-03-07  Simon Josefsson  <jas@extundo.com>
78511
78512         * modules/getopt (Depends-on): Add unistd.
78513
78514         * modules/unistd: New file.
78515
78516 2006-03-07  Simon Josefsson  <jas@extundo.com>
78517
78518         * modules/gc-random: New file.
78519
78520 2006-03-07  Simon Josefsson  <jas@extundo.com>
78521
78522         * m4/unistd_h.m4: New file.
78523
78524 2006-03-07  Simon Josefsson  <jas@extundo.com>
78525
78526         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
78527         test to be side-effect free by storing the result in the cache
78528         variable gl_cv_lib_readline, and moving the assignment of
78529         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
78530         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78531
78532 2006-03-07  Simon Josefsson  <jas@extundo.com>
78533
78534         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
78535         error on missing devices (the functions will return an error).
78536
78537         * m4/gc.m4: Move random stuff to gc-random.m4
78538
78539 2006-03-07  Simon Josefsson  <jas@extundo.com>
78540
78541         * lib/unistd_.h: New file.
78542
78543 2006-03-07  Simon Josefsson  <jas@extundo.com>
78544
78545         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
78546
78547 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
78548
78549         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
78550         Problem reported by Juan Manuel Guerrero.
78551
78552 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
78553
78554         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
78555         the unistd module.
78556         * lib/getlogin_r.c: Likewise.
78557         * lib/getlogin_r.h: Likewise.
78558         * lib/glob.c: Likewise.
78559         * lib/pagealign_alloc.c: Likewise.
78560         * lib/unistd_.h: Remove; no longer needed.
78561
78562 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
78563
78564         * MODULES.html.sh (Support for systems lacking POSIX:2001):
78565         Add unistd.
78566         * modules/c-stack (Depends-on): Add unistd.
78567         * modules/getlogin_r: Likewise.
78568         * modules/glob: Likewise.
78569         * modules/pagealign_alloc: Likewise.
78570         * modules/unistd (Files): Remove lib/unistd_.h.
78571         (EXTRA_DIST): Remove.
78572         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
78573         need unistd_.h.
78574         (MOSTLYCLEANFILES): Remove unistd.h-t.
78575
78576 2006-03-03  Simon Josefsson  <jas@extundo.com>
78577
78578         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
78579
78580 2006-03-03  Simon Josefsson  <jas@extundo.com>
78581
78582         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
78583         libidn and bison.
78584
78585 2006-03-03  Simon Josefsson  <jas@extundo.com>
78586
78587         * build-aux/maint.mk: Add indent target.
78588
78589 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
78590
78591         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
78592         our replacement poll.h in any case, to avoid a differing
78593         declaration from a system header.  Seen on AIX.
78594
78595 2006-03-01  Simon Josefsson  <jas@extundo.com>
78596
78597         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
78598         <kasal@ucw.cz>.
78599
78600 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
78601
78602         * modules/gettime (Depends-on): Add extensions module.
78603         * modules/nanosleep (Depends-on): Likewise.
78604         * modules/settime (Depends-on): Likewise.
78605
78606 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
78607
78608         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
78609         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
78610         pedantically.
78611         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
78612         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
78613
78614         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
78615         not "==".  Reported by Ralf Wildenhues.
78616
78617 2006-03-01  Karl Berry  <karl@gnu.org>
78618
78619         * doc/Copyright/request-*: new files, synced from gnuorg.
78620
78621 2006-03-01  Karl Berry  <karl@gnu.org>
78622
78623         * config/srclist.txt (Copyright/*): new entries.
78624
78625 2006-02-28  Simon Josefsson  <jas@extundo.com>
78626
78627         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
78628
78629 2006-02-27  Simon Josefsson  <jas@extundo.com>
78630
78631         * lib/base64.h: Indent #define's.  From Jim Meyering
78632         <jim@meyering.net>.
78633
78634 2006-02-27  Jim Meyering  <jim@meyering.net>
78635
78636         Revert the change of 2006-02-24, so these files can continue
78637         to be sync'd from gettext.
78638         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
78639         of `config.h'.
78640
78641 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
78642
78643         * modules/intprops: New file.
78644         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
78645         Add intprops.
78646         * modules/getloadavg (Files): Remove lib/intprops.h.
78647         (Depends-on): Add intprops.
78648         * modules/human: Likewise.
78649         * modules/inttostr: Likewise.
78650         * modules/openat: Likewise.
78651         * modules/sig2str: Likewise.
78652         * modules/userspec: Likewise.
78653         * modules/utimecmp: Likewise.
78654         * modules/xnanosleep: Likewise.
78655         * modules/xstrtol: Likewise.
78656
78657 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
78658
78659         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
78660         * modules/lock-tests (TESTS): Use $(EXEEXT).
78661         * modules/tls-tests: Likewise.
78662         * modules/argp-tests: Likewise.
78663         (check_PROGRAMS): New var, replacing...
78664         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
78665
78666 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78667
78668         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
78669         `config.h'.
78670
78671 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
78672
78673         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
78674
78675 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78676
78677         Sync from coreutils.
78678         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
78679         gl_CHDIR_SAFER.
78680
78681 2006-02-22  Jim Meyering  <jim@meyering.net>
78682
78683         Sync from coreutils.
78684         * m4/chdir-safer.m4: New file.
78685
78686 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
78687
78688         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
78689         AT_FDCWD exceeds INT_MAX.
78690         * lib/openat.h (AT_FDCWD): Likewise.
78691
78692 2006-02-17  Eric Blake  <address@hidden>
78693
78694         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
78695
78696 2006-02-16  Simon Josefsson  <jas@extundo.com>
78697
78698         * modules/getaddrinfo (Depends-on): Add sys_socket.
78699
78700 2006-02-15  Simon Josefsson  <jas@extundo.com>
78701
78702         * build-aux/maint.mk: Add dsyntax-check rule.
78703
78704 2006-02-15  Eric Blake  <ebb9@byu.net>
78705
78706         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
78707         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
78708         'present but cannot compile' warnings on cygwin.
78709         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
78710         use ws2tcpip.h if sys/socket.h works.
78711         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
78712         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
78713
78714 2006-02-14  Simon Josefsson  <jas@extundo.com>
78715
78716         * modules/maintainer-makefile (Files): Rename.
78717
78718         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
78719         and (the local) Makefile.cfg to maint-cfg.mk.
78720
78721         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
78722         to the latter.
78723
78724         * modules/maintainer-makefile: New module.
78725
78726         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
78727         severaly stripped to make it possible to build it up from scratch
78728         with reliable tests.
78729
78730         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
78731         fixes to permit overriding the default actions when configure and
78732         makefile are not available.
78733
78734 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
78735
78736         Sync from coreutils.
78737         * modules/lstat (Depends-on): Don't depend on xalloc.
78738         (License): Change from GPL to LGPL, since this is now simply a
78739         replacement for a libc function.
78740
78741 2006-02-14  Jim Meyering  <jim@meyering.net>
78742
78743         Sync from coreutils.
78744
78745         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
78746         failure on deficient systems, and simplify gnulib lgpl dependencies.
78747         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
78748         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
78749
78750         * lib/xalloc-die.c: Remove unused definition of N_.
78751
78752 2006-02-14  Jim Meyering  <jim@meyering.net>
78753
78754         Sync from coreutils.
78755         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
78756         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
78757         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
78758         double-quote uses of that variable, to accommodate the rare case in
78759         which getmntent is available in none of the libraries checked.  This
78760         happens at least on FreeBSD 5.0.
78761
78762 2006-02-13  Simon Josefsson  <jas@extundo.com>
78763
78764         * gnulib-tool (Usage): Fix --import, from
78765         karl@freefriends.org (Karl Berry).
78766
78767 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
78768
78769         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
78770
78771 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
78772
78773         * lib/argp-namefrob.h: Restore changes accidentally lost during the
78774         "autoupdate" on 2005-12-12.
78775
78776 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
78777
78778         * modules/closeout (Depends-on): Remove atexit.
78779
78780 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
78781
78782         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
78783         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
78784
78785 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
78786
78787         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
78788         __EXTENSIONS__ if this causes compilation to fail.  Problem
78789         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
78790         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
78791
78792 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
78793
78794         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
78795         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
78796         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
78797         All uses changed.
78798
78799 2006-01-26  Simon Josefsson  <jas@extundo.com>
78800
78801         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
78802         prototype is visible on mingw32.
78803
78804         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
78805         for mingw32.
78806
78807         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
78808         mingw32).
78809
78810 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
78811
78812         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
78813         attempt to open for write; this always fails, at least on POSIX
78814         hosts.  This reinstates the 2006-01-09 change, which was
78815         inadvertently removed.
78816
78817 2006-01-26  Bruno Haible  <bruno@clisp.org>
78818
78819         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
78820         Reported by Paul Eggert.
78821
78822 2006-01-26  Bruno Haible  <bruno@clisp.org>
78823             Paul Eggert  <eggert@cs.ucla.edu>
78824
78825         * lib/stdbool_.h (_Bool)
78826         [(! (defined __cplusplus || defined __BEOS__)
78827           && !defined __GNUC__
78828           && !(defined __HP_cc || defined __xlc__
78829                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
78830                || defined __sgi))]:
78831         #define to signed char in these cases too; this simplifies
78832         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
78833         etc., separately) and makes it more conservative.
78834
78835 2006-01-25  Simon Josefsson  <jas@extundo.com>
78836
78837         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
78838         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
78839         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
78840
78841 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
78842
78843         * lib/argp-namefrob.h: Bugfix. Remove stray #
78844
78845 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
78846
78847         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
78848         so that we test the test.
78849         Check for yet another HP-UX cc bug involving *bool |= bool.
78850
78851 2006-01-25  Karl Berry  <karl@gnu.org>
78852
78853         * config/srclist.txt (vasnprintf.c): sync lost.
78854
78855 2006-01-25  Jim Meyering  <jim@meyering.net>
78856
78857         Sync from the stable (b5) branch of coreutils:
78858
78859         * lib/fts.c (fts_children): Don't let close() clobber errno from
78860         failed fchdir().
78861
78862         * lib/fts.c (fts_stat): When following a symlink-to-directory,
78863         don't necessarily interpret stat-fails+lstat-succeeds as indicating
78864         a dangling symlink.  That can also happen at least for ELOOP.
78865         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
78866         FYI, this bug predates the inclusion of fts.c in coreutils.
78867
78868         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
78869         in their own block, so pre-c99 compilers don't object.
78870
78871         Avoid the double-free (first in fts_read, second in fts_close) that
78872         would occur when an `active' directory is made inaccessible (e.g.,
78873         via chmod a-x) during a traversal.
78874         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
78875         before returning.  Reproduce this failure by
78876         mkdir -p a/b; cd a; chmod a-x . b
78877         Reported by Stavros Passas.
78878
78879 2006-01-25  Jim Meyering  <jim@meyering.net>
78880
78881         * lib/fileblocks.c: Remove more useless parentheses.
78882         * lib/readutmp.h: Likewise.
78883
78884 2006-01-25  Bruno Haible  <bruno@clisp.org>
78885
78886         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
78887         warnings.
78888         Reported by Paul Eggert.
78889
78890 2006-01-25  Bruno Haible  <bruno@clisp.org>
78891
78892         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
78893         rid of a trap command. For Solaris sh.
78894         Reported by Mark D. Baushke <mdb@gnu.org>.
78895
78896 2006-01-24  Simon Josefsson  <jas@extundo.com>
78897
78898         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
78899         Bruno.
78900
78901 2006-01-24  Karl Berry  <karl@gnu.org>
78902
78903         * config/srclist.txt (argp-namefrob.h): sync lost.
78904
78905 2006-01-24  Jim Meyering  <jim@meyering.net>
78906
78907         * modules/openat (Files): Add lib/intprops.h.
78908         From Mark D. Baushke.
78909
78910 2006-01-24  Jim Meyering  <jim@meyering.net>
78911
78912         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
78913         Reported by Mark D. Baushke.
78914
78915 2006-01-24  Jim Meyering  <jim@meyering.net>
78916
78917         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
78918
78919 2006-01-24  Bruno Haible  <bruno@clisp.org>
78920
78921         * modules/strnlen (Maintainer): Change from glibc to all.
78922
78923 2006-01-24  Bruno Haible  <bruno@clisp.org>
78924
78925         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
78926         Patch by Paul Eggert.
78927
78928 2006-01-24  Bruno Haible  <bruno@clisp.org>
78929
78930         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
78931         already has it.
78932         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
78933         2005-11-26.
78934
78935         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
78936         'signed char' to avoid problems with the built-in _Bool type.
78937         Reported by Paul Eggert on 2005-11-26.
78938
78939 2006-01-24  Bruno Haible  <bruno@clisp.org>
78940
78941         * gnulib-tool (func_import): Avoid constructing complicated sed
78942         expressions inside backquote.
78943         Report and solution by Mark D. Baushke <mdb@gnu.org>.
78944
78945 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
78946
78947         These changes imported from libc.
78948         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
78949         test and two separate function calls.
78950         * lib/strndup.c (__strndup): Add libc_hidden_def.
78951
78952 2006-01-23  Simon Josefsson  <jas@extundo.com>
78953
78954         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
78955         Remove the test_*_SOURCES variable: automake infers it by default.
78956         * modules/tls-tests: Likewise.
78957
78958 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
78959
78960         Work around porting bugs reported by Dieter in
78961         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
78962         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
78963         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
78964         Include "getopt.h" first, to check interface.
78965         (getenv): Declare only if defined HAVE_DECL_GETENV &&
78966         !HAVE_DECL_GETENV.
78967         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
78968         (__strndup): Revert to K&R-style function dfns, the glibc style.
78969         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
78970         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
78971         Include strnlen.h first, to get prototype properly.
78972         (strnlen): Renamed from __strnlen.
78973         Remove weak alias.
78974
78975 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
78976
78977         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
78978
78979 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
78980
78981         * config/srclist.txt: Adjust to reflect glibc reorganization.
78982         This affects only comments.
78983
78984 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
78985
78986          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
78987          Reported by Bruce Korb <bkorb@gnu.org>.
78988
78989 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
78990
78991         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
78992         to pacify gcc -Wswitch-default.
78993
78994 2006-01-22  Bruno Haible  <bruno@clisp.org>
78995
78996         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
78997         temporary buffer for sprintf, take into account the precision also
78998         for 'd', 'i', 'u', 'o', 'x', 'X'.
78999
79000 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
79001
79002         * modules/argp-tests: New module
79003         * tests/test-argp.c: New file
79004         * tests/test-argp-2.sh: New file
79005
79006 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
79007
79008         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
79009         (__argp_base_name): Removed
79010         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
79011         typo.
79012         (__argp_base_name): Provide macro definition or extern declaration
79013         depending on the configuration
79014
79015 2006-01-20  Simon Josefsson  <jas@extundo.com>
79016
79017         * modules/inet_ntop (Depends-on): Depend on sys_socket.
79018
79019 2006-01-20  Simon Josefsson  <jas@extundo.com>
79020
79021         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
79022
79023 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
79024
79025         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
79026         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
79027         Suggested by Bruno Haible.
79028
79029 2006-01-20  Karl Berry  <karl@gnu.org>
79030
79031         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
79032         until changes propagate, I guess.
79033
79034 2006-01-19  Simon Josefsson  <jas@extundo.com>
79035
79036         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
79037
79038 2006-01-19  Simon Josefsson  <jas@extundo.com>
79039
79040         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
79041
79042 2006-01-19  Simon Josefsson  <jas@extundo.com>
79043
79044         * gnulib-tool: Set check_PROGRAMS.
79045
79046         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
79047         modules/des-tests, modules/gc-arcfour-tests,
79048         modules/gc-arctwo-tests, modules/gc-des-tests,
79049         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
79050         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
79051         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
79052         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
79053         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
79054         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
79055         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
79056         test_*_SOURCES.
79057
79058 2006-01-18  Simon Josefsson  <jas@extundo.com>
79059
79060         * modules/socklen (Depends-on): Depend on sys_socket.
79061
79062 2006-01-18  Simon Josefsson  <jas@extundo.com>
79063
79064         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
79065         modules/des-tests, modules/gc-arcfour-tests,
79066         modules/gc-arctwo-tests, modules/gc-des-tests,
79067         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
79068         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
79069         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
79070         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
79071         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
79072         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
79073         $(EXEEXT) to automake TESTS variable, for mingw32.
79074
79075 2006-01-17  Simon Josefsson  <jas@extundo.com>
79076
79077         * modules/socklen (Include): Need sys/socket.h.
79078
79079 2006-01-17  Bruno Haible  <bruno@clisp.org>
79080
79081         * modules/ssize_t (Include): Add <sys/types.h>.
79082
79083 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
79084
79085         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
79086         it's not portable and it doesn't work with cross-compiles.
79087         Problem reported by Bruno Haible.  Fix missing-$ typo in
79088         'test "gl_cv_ignore_unused_libraries" ...' that prevented
79089         -zignore from being used with Sun's C compiler.
79090
79091 2006-01-12  Simon Josefsson  <jas@extundo.com>
79092
79093         * lib/base64.c: Fix warning, reported by Bruno Haible
79094         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
79095
79096 2006-01-12  Bruno Haible  <bruno@clisp.org>
79097
79098         * modules/ldd: New file.
79099         * build-aux/ldd.sh.in: New file.
79100         * MODULES.html.sh (Support for building libraries and executables): Add
79101         ldd.
79102
79103 2006-01-12  Bruno Haible  <bruno@clisp.org>
79104
79105         * m4/ldd.m4: New file.
79106
79107 2006-01-12  Bruno Haible  <bruno@clisp.org>
79108
79109         * gnulib-tool (func_import, func_create_testdir): Don't go into an
79110         endless loop while replacing $auxdir with build-aux.
79111
79112 2006-01-11  Simon Josefsson  <jas@extundo.com>
79113
79114         * lib/stdint_.h (SIZE_MAX): Add missing (.
79115
79116 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
79117
79118         Sync from coreutils.
79119         * lib/md5.c: Fix commentary typos.
79120         (alignof, UNALIGNED_P): No need for a GCC-specific version.
79121         * lib/md5.h (__attribute__): Remove; unused.
79122         * lib/sha1.c: Fix commentary to match md5 better.
79123         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
79124         so that we don't need to worry about alignment.  All uses changed.
79125         This merges the 2005-10-28 md5 change into sha1.
79126
79127 2006-01-11  Jim Meyering  <jim@meyering.net>
79128
79129         Sync from coreutils.
79130         * lib/md5.c (OP): Fix spacing.
79131
79132 2006-01-11  Bruno Haible  <bruno@clisp.org>
79133
79134         Ensure automatic ordering between gl_LOCK and gl_ARGP.
79135         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
79136         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
79137
79138 2006-01-11  Bruno Haible  <bruno@clisp.org>
79139
79140         Ensure automatic ordering between gl_LOCK and gl_ARGP.
79141         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
79142         the "early" section as well.
79143
79144 2006-01-11  Bruno Haible  <bruno@clisp.org>
79145
79146         Avoid "ar: no archive members specified" error on MacOS X.
79147         * gnulib-tool (func_modules_add_dummy): New function.
79148         (func_import, func_create_testdir): Invoke it.
79149
79150 2006-01-11  Bruno Haible  <bruno@clisp.org>
79151
79152         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
79153         with $auxdir in AC_CONFIG_FILES statements.
79154
79155 2006-01-11  Bruno Haible  <bruno@clisp.org>
79156
79157         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
79158         Initialize also noinst_HEADERS to empty.
79159
79160 2006-01-11  Bruno Haible  <bruno@clisp.org>
79161
79162         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
79163         variables.
79164         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
79165         autoreconf.
79166
79167 2006-01-11  Bruno Haible  <bruno@clisp.org>
79168
79169         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
79170         overridable by the user.
79171         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
79172
79173 2006-01-10  Simon Josefsson  <jas@extundo.com>
79174
79175         * modules/sys_socket: New file.
79176
79177 2006-01-10  Simon Josefsson  <jas@extundo.com>
79178
79179         * m4/sys_socket_h.m4: New file.
79180
79181 2006-01-10  Simon Josefsson  <jas@extundo.com>
79182
79183         * lib/socket_.h: New file.
79184
79185 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
79186
79187         * modules/readutmp (Maintainer): Add myself.
79188
79189 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
79190
79191         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
79192         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
79193         People who are still concerned with buggy memcmp implementations
79194         can invoke gl_FUNC_MEMCMP themselves.
79195
79196 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
79197
79198         * lib/regex_internal.h (BITSET_WORD_BITS):
79199         Work around a bug in 64-bit PGC (before version 6.1-2), where the
79200         preprocessor mishandles large unsigned values as if they were signed.
79201         Problem reported by Claudio Fontana in
79202         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
79203
79204 2006-01-10  Jim Meyering  <jim@meyering.net>
79205
79206         Avoid the double-free (first in fts_read, second in fts_close) that
79207         would occur when an `active' directory is made inaccessible (e.g.,
79208         via chmod a-x) during a traversal.
79209         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
79210         before returning.  Reproduce this failure by
79211         mkdir -p a/b; cd a; chmod a-x . b
79212         Reported by Stavros Passas.
79213
79214         Sync from coreutils.
79215         * lib/sha1.c: Tweak grammar in a comment.
79216
79217 2006-01-10  Jim Meyering  <jim@meyering.net>
79218
79219         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
79220         Patch by Joerg Sonnenberger.
79221
79222 2006-01-10  Bruno Haible  <bruno@clisp.org>
79223
79224         * modules/readutmp: Depend on module free.
79225         * modules/strtok_r: Depend on module restrict.
79226
79227 2006-01-10  Bruno Haible  <bruno@clisp.org>
79228
79229         * modules/gettext (configure.ac): Add an invocation of
79230         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
79231
79232 2006-01-10  Bruno Haible  <bruno@clisp.org>
79233
79234         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
79235         Reported by Werner Lemberg <wl@gnu.org>.
79236
79237 2006-01-10  Bruno Haible  <bruno@clisp.org>
79238
79239         * lib/localcharset.c: Update from GNU gettext.
79240
79241 2006-01-10  Bruno Haible  <bruno@clisp.org>
79242
79243         * lib/argp.h (__const): Remove macro. Use const instead.
79244         * lib/argp-fmtstream.h (__const): Likewise.
79245         * lib/glob_.h (__const): Remove macro.
79246         * lib/glob-libc.h: Use const instead of __const.
79247
79248 2006-01-10  Bruno Haible  <bruno@clisp.org>
79249
79250         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
79251         variable.
79252         Needed to avoid an automake error regarding the 'gettext' module.
79253
79254 2006-01-09  Simon Josefsson  <jas@extundo.com>
79255
79256         * modules/inet_ntop (Depends-on): Add restrict.
79257
79258 2006-01-09  Simon Josefsson  <jas@extundo.com>
79259
79260         * modules/gc-rijndael-tests (License): Put under LGPL.
79261
79262         * modules/gc-des-tests (License): Likewise.
79263
79264         * modules/gc-arcfour-tests (License): Likewise.
79265
79266         * modules/gc-arctwo-tests (License): Likewise.
79267
79268         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
79269
79270         * modules/gc-hmac-sha1-tests (Files): Likewise.
79271
79272         * modules/gc-hmac-md5-tests (License): Likewise.
79273
79274         * modules/gc-sha1-tests (License): Likewise.
79275
79276         * modules/gc-md5-tests (License): Likewise.
79277
79278         * modules/gc-md4-tests (License): Likewise.
79279
79280         * modules/gc-md2-tests (License): Likewise.
79281
79282         * modules/gc-tests (License): Likewise.
79283
79284         * modules/des-tests (License): Likewise.
79285
79286         * modules/md4-tests (License): Likewise.
79287
79288         * modules/md2-tests (License): Likewise.
79289
79290 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
79291
79292         Sync from coreutils:
79293
79294         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
79295         * modules/lib-ignore: New file.
79296         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
79297         chdir-safer.m4, lchmod.m4.
79298         * modules/openat: Add mkdirat.c, openat-priv.h.
79299
79300 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
79301
79302         Sync from coreutils.
79303         * m4/lib-ignore.m4: New file.
79304         * m4/lchmod.m4: New file.
79305
79306 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
79307
79308         Sync from coreutils.
79309         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
79310         for write access: POSIX says that must fail.
79311         * lib/fts.c (diropen): Likewise.
79312         * lib/save-cwd.c (save_cwd): Likewise.
79313         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
79314         well, for minor improvements on hosts that lack O_DIRECTORY.
79315         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
79316         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
79317         Fall back on chown if open failed with EACCES.
79318
79319         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
79320         Report an error at compile-time if only a 1-second nominal clock
79321         resolution is found.
79322
79323         * lib/lchmod.h: New file.
79324         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
79325         (make_dir_parents): Use lchown rather than chown, and
79326         lchmod rather than chmod.
79327
79328         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
79329         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
79330         "proc" reported by n0dalus.
79331
79332         * lib/mountlist.c: Include <limits.h>.
79333         (dev_from_mount_options)
79334         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
79335         New function.  It no longer assumes "dev=" has the System V meaning
79336         on Linux (since it doesn't).  It also parses "dev=" more carefully.
79337         (read_file_system_list)
79338         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
79339         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
79340         dev= in that case.
79341
79342         * lib/posixtm.h (PDS_PRE_2000): New macro.
79343         * lib/posixtm.c (year): Arg is now syntax_bits rather than
79344         allow_century.  All usages changed.  Reject dates outside the range
79345         1969-1999 if PDS_PRE_2000 is used.
79346
79347 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
79348
79349         Sync from coreutils.
79350         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
79351         (Time of day items): Mention the possibility of leap seconds.
79352         Problem reported by Dr. David Alan Gilbert.
79353
79354 2006-01-09  Jim Meyering  <jim@meyering.net>
79355
79356         Sync from coreutils.
79357
79358         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
79359
79360         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
79361
79362         * lib/modechange.c (mode_compile): Reject an invalid mode string
79363         that starts with an octal digit.  From Andreas Gruenbacher.
79364
79365         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
79366         and dup to open_safer and dup_safer, respectively.
79367         (openat_permissive): Fix typo in comment.
79368
79369         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
79370         "gettext.h"; either no longer needed or are guaranteed by openat.h.
79371         (_): Remove; no longer needed.
79372         (openat): Renamed from rpl_openat; no need for rpl_openat
79373         since openat.h renames openat for us.
79374         Replace most of the body with a call to openat_permissive,
79375         to avoid duplicate code.
79376         Port to (probably hypothetical) environments were mode_t is
79377         wider than int.
79378         (openat_permissive): Require mode arg, so that we can check
79379         types better.  Put it just after flags.  Change cwd failure
79380         indicator from pointer-to-bool to pointer-to-errno-value.
79381         All callers changed.
79382         Invoke openat_save_fail and/or openat_restore_fail if
79383         cwd_errno is null, so that openat can call us.
79384         (openat_permissive, fdopendir, fstatat, unlinkat):
79385         Simplify errno handling to avoid some duplicate code,
79386         as it's OK to set errno on success.
79387         * lib/openat.h: Revamp code so that function macros depend on
79388         __OPENAT_PREFIX only, not also on AT_FDCWD.
79389         (openat_ro): Remove.  Caller changed to use openat_permissive.
79390         (openat_permissive): Now a macro, if not a function.
79391         (openat_restore_fail, openat_save_fail): Now always functions,
79392         since mkdirat needs them even if __OPENAT_PREFIX is defined.
79393
79394         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
79395         and openat.c.
79396         * lib/mkdirat.c: Include openat-priv.h.
79397         Remove definitions of macros defined therein.
79398         * lib/openat.c: Likewise.
79399
79400         * lib/mkdirat.c (mkdirat): New file and function.
79401         * lib/openat.h (mkdirat): Declare.
79402
79403         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
79404
79405         * lib/openat.h (openat_permissive): Declare.
79406         (openat_ro): Define.
79407
79408         * lib/openat.c (EXPECTED_ERRNO): New macro.
79409         (openat_permissive): New function -- used in remove.c rewrite.
79410         (all functions): Set errno just before returning, only if there
79411         was an actual failure.
79412         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
79413
79414         Emulate openat-family functions using Linux's procfs, if possible.
79415         Idea and some code based on Ulrich Drepper's glibc changes.
79416
79417         * lib/openat.c: (BUILD_PROC_NAME): New macro.
79418         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
79419         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
79420         before falling back on save_cwd and restore_cwd.
79421         (fdopendir, fstatat, unlinkat): Likewise.
79422
79423         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
79424         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
79425
79426         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
79427         as second argument to va_arg.  Otherwise, some versions of gcc
79428         warn that `if this code is reached, the program will abort'.
79429
79430 2006-01-09  Jim Meyering  <jim@meyering.net>
79431
79432         Sync from coreutils.
79433         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
79434         Require openat-priv.h.
79435
79436 2006-01-09  Bruno Haible  <bruno@clisp.org>
79437
79438         * modules/strnlen (Include): Use strnlen.h.
79439
79440 2006-01-09  Bruno Haible  <bruno@clisp.org>
79441
79442         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
79443
79444 2006-01-09  Bruno Haible  <bruno@clisp.org>
79445
79446         * lib/sysexit_.h (EX_OK): New macro.
79447         Suggested by Martin Lambers <marlam@marlam.de>.
79448
79449 2006-01-09  Bruno Haible  <bruno@clisp.org>
79450
79451         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
79452         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
79453
79454 2006-01-09  Bruno Haible  <bruno@clisp.org>
79455
79456         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
79457         numbers.
79458
79459 2006-01-09  Bruno Haible  <bruno@clisp.org>
79460
79461         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
79462         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
79463         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
79464         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
79465
79466 2006-01-09  Bruno Haible  <bruno@clisp.org>
79467
79468         * build-aux/javacomp.sh.in: New file, moved from lib/.
79469         * modules/javacomp-script (Files): Update.
79470         (configure.ac): Add AC_CONFIG_FILES invocation.
79471         (EXTRA_DIST): Remove variable.
79472
79473         * build-aux/javaexec.sh.in: New file, moved from lib/.
79474         * modules/javaexec (Files): Update.
79475         (configure.ac): Add AC_CONFIG_FILES invocation.
79476         (EXTRA_DIST): Remove javaexec.sh.in.
79477
79478         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
79479         * modules/csharpcomp-script (Files): Update.
79480         (configure.ac): Add AC_CONFIG_FILES invocation.
79481         (EXTRA_DIST): Remove variable.
79482
79483         * build-aux/csharpexec.sh.in: New file, moved from lib/.
79484         * modules/csharpexec (Files): Update.
79485         (configure.ac): Add AC_CONFIG_FILES invocation.
79486         (EXTRA_DIST): Remove csharpexec.sh.in.
79487
79488 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
79489
79490         Sync from coreutils.
79491
79492         Add POSIX ACL support
79493         * lib/acl.h (copy_acl, set_acl): Add declarations.
79494         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
79495         systems other than Linux.
79496         (chmod_or_fchmod): New function: use fchmod when possible,
79497         and chmod otherwise.
79498         (file_has_acl): Add a POSIX ACL implementation, with a
79499         Linux-specific subcase.
79500         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
79501         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
79502         acls are unsupported.
79503         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
79504         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
79505         are unsupported.
79506
79507 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
79508
79509         Sync from coreutils.
79510         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
79511
79512 2006-01-07  Bruno Haible  <bruno@clisp.org>
79513
79514         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
79515         gl_EARLY.
79516
79517 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
79518
79519         * lib/strftime.c (tzname): Don't declare if it is already #defined.
79520         Problem reported for Mingw by Mark Junker.
79521
79522 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
79523
79524         * README: Gnulib normally doesn't generate a tarball.
79525
79526 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
79527
79528         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
79529         long int, not int, for nanosecond counts, so that people who are
79530         used to POSIX struct timespec won't be surprised.  Reported by Jim
79531         Meyering.
79532
79533 2005-12-28  Bruno Haible  <bruno@clisp.org>
79534
79535         * build-aux/config.rpath: Update from GNU gettext.
79536
79537 2005-12-16  Jim Meyering  <jim@meyering.net>
79538
79539         * modules/fprintftime: New module.
79540         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
79541
79542 2005-12-16  Jim Meyering  <jim@meyering.net>
79543
79544         * m4/fprintftime.m4: New file.
79545
79546 2005-12-16  Jim Meyering  <jim@meyering.net>
79547
79548         * lib/fprintftime.c, lib/fprintftime.h: New files.
79549
79550 2005-12-15  Simon Josefsson  <jas@extundo.com>
79551
79552         * modules/socklen (configure.ac): Fix M4 macro name, to align with
79553         new m4/socklen.m4.
79554
79555 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
79556
79557         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
79558         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
79559
79560 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
79561
79562         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
79563         * lib/argp-help.c (fill_in_uparams): Check if the constructed
79564         struct uparams is valid. Fall back to the default values if it is
79565         not.
79566
79567 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
79568
79569         * modules/argp (Files): Add argp-pin.c
79570         (Depends-on): dirname
79571         (lib_SOURCES): Add argp-pin.c
79572
79573 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
79574
79575         * m4/argp.m4:  Check if program_invocation_name and
79576         program_invocation_short_name are declared and define appropriate
79577         macros if they are not.
79578
79579 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
79580
79581         * lib/argp-help.c (__argp_base_name): New function
79582         (__argp_short_program_name): Rewrite using __argp_base_name
79583         * lib/argp-namefrob.h: Define program_invocation_name and
79584         program_invocation_short_name if requested
79585         (__argp_base_name): Add prototype
79586         * lib/argp-parse.c (argp_def): Use gettext wrappers
79587         (argp_default_parser): Use __argp_base_name
79588         * lib/argp-pin.c: New file. Defines program_invocation_name and
79589         program_invocation_short_name on systems that lack them.
79590
79591 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
79592
79593         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
79594         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
79595         porting problem reported by Georg Schwarz in
79596         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
79597
79598 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
79599
79600         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): 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-05  Bruno Haible  <bruno@clisp.org>
79606
79607         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
79608         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
79609         Reported by Mark Junker <mjscod@gmx.de>.
79610
79611 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
79612
79613         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
79614         Use implementation from Albert Chin, with some
79615         comments/corrections by Stepan Kasal and myself.
79616
79617 2005-12-02  Bruno Haible  <bruno@clisp.org>
79618
79619         * gnulib-tool (func_import): Accept GPLed build tool modules when
79620         --lgpl is given.
79621         * modules/csharpcomp-script: New file.
79622         * modules/csharpcomp: Depend on it.
79623         * modules/javacomp-script: New file.
79624         * modules/javacomp: Depend on it.
79625         Suggested by Simon Josefsson.
79626
79627 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
79628
79629         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
79630         statement, to work around an HP-UX 10.20 compiler bug reported by
79631         Peter O'Gorman.
79632
79633 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
79634
79635         * modules/savedir (Depends-on): Add openat.
79636
79637 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
79638
79639         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
79640         (uintmax_t) [defined uintmax_t]: Do not declare.
79641         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
79642         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
79643         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
79644         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
79645         sake of portability to weird hosts that C allows (though we don't
79646         know of any practical examples).
79647
79648         * lib/savedir.h (fdsavedir): New decl.
79649         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
79650         contains most of the former guts of savedir.
79651         (savedir): Use savedirstream.
79652         Include "openat.h".
79653
79654 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
79655
79656         * modules/obstack (Files): Add m4/ulonglong.m4.
79657         Problem reported by Davide Angelocola.
79658
79659 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
79660
79661         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
79662         coreutils no longer futzes with rounding modes.
79663
79664 2005-11-14  Jim Meyering  <jim@meyering.net>
79665
79666         * lib/mkstemp-safer.c: Include <config.h>, required for possible
79667         replacement of mkstemp.
79668
79669 2005-11-10  Simon Josefsson  <jas@extundo.com>
79670
79671         * lib/readline.c: Remove EOL.
79672
79673 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
79674
79675         * modules/gethrxtime (Depends-on): Add gettime.
79676
79677 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
79678
79679         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
79680         or gettimeofday; no longer needed.
79681
79682 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
79683
79684         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
79685         time business.
79686         (gethrxtime) [! (HAVE_NANOUPTIME
79687         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
79688         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
79689         our own approximation.
79690
79691 2005-11-08  Eric Blake  <ebb9@byu.net>
79692
79693         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
79694
79695 2005-11-08  Eric Blake  <ebb9@byu.net>
79696
79697         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
79698
79699 2005-11-04  Bruno Haible  <bruno@clisp.org>
79700
79701         * gnulib-tool: Implement --update mode.
79702
79703 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
79704
79705         Fix porting problem reported by Theodoros V. Kalamatianos.
79706         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
79707         Don't assume that futimes failing means we must fail.
79708
79709 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
79710
79711         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
79712         variables to suggest the intended function of the PATH_MAX check.
79713
79714 2005-10-30  Kean Johnston  <jkj@sco.com>
79715
79716         Trivial changes to support SCO systems.
79717         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
79718         as PATH_MAX.
79719         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
79720         where __ptr is null when no I/O is pending.
79721
79722 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
79723
79724         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
79725         leave errno alone.  Problem reported by Dmitry V. Levin.
79726
79727 2005-10-28  Simon Josefsson  <jas@extundo.com>
79728
79729         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
79730         Test more.
79731
79732         * tests/test-gc-md2.c, tests/test-md2.c: New files.
79733
79734         * modules/md2, modules/md2-tests: New files.
79735
79736 2005-10-28  Simon Josefsson  <jas@extundo.com>
79737
79738         * m4/inet_ntop.m4: More tests.
79739
79740         * m4/gc-md2.m4, md2.m4: New file.
79741
79742 2005-10-28  Simon Josefsson  <jas@extundo.com>
79743
79744         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
79745         "restrict" keywords, as per POSIX.  Protect the function
79746         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
79747         Don't use K&R prototypes.  Check the sprintf return values.
79748         Re-define EAFNOSUPPORT if not present.  Indent.
79749
79750         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
79751         suggested by Bruno Haible <bruno@clisp.org>.
79752
79753         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
79754
79755         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
79756
79757         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
79758         libgcrypt).
79759
79760         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
79761
79762         * lib/md2.h, lib/md2.c: New files.
79763
79764 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
79765
79766         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
79767         errno alone.  Problem reported by Frederic Jolliton.
79768
79769 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
79770
79771         * modules/verify (License): Change from GPL to LGPL.  This is a
79772         tiny module and there are apparently near-equivalents that are
79773         under the BSD license.
79774
79775 2005-10-24  Simon Josefsson  <jas@extundo.com>
79776
79777         * modules/sha1: Relicense to LGPL.
79778
79779 2005-10-24  Simon Josefsson  <jas@extundo.com>
79780
79781         * lib/md4.h: Shrink buffer size, now that we changed the type.
79782
79783 2005-10-23  Simon Josefsson  <jas@extundo.com>
79784
79785         * gnulib-tool (func_import): Fix --tests-base.
79786
79787 2005-10-22  Simon Josefsson  <jas@extundo.com>
79788
79789         * modules/arcfour (Depends-on): Need stdint.
79790
79791 2005-10-22  Simon Josefsson  <jas@extundo.com>
79792
79793         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
79794         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
79795
79796 2005-10-22  Simon Josefsson  <jas@extundo.com>
79797
79798         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
79799         suggested by Bruno Haible <bruno@clisp.org>.
79800
79801 2005-10-22  Simon Josefsson  <jas@extundo.com>
79802
79803         * lib/crc.h: Include stddef.h, for size_t.
79804
79805 2005-10-22  Simon Josefsson  <jas@extundo.com>
79806
79807         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
79808         arcfour_context struct (simplify test vector testing in GNU
79809         Shishi).
79810
79811 2005-10-21  Simon Josefsson  <jas@extundo.com>
79812
79813         * modules/des, modules/des-tests: New files.
79814
79815         * modules/gc-des, modules/gc-des-tests: New files.
79816
79817         * tests/test-des.c, tests/test-gc-des.c: New file.
79818
79819 2005-10-21  Simon Josefsson  <jas@extundo.com>
79820
79821         * modules/arctwo, modules/arctwo-tests: New files.
79822
79823         * tests/test-arctwo.c: New file.
79824
79825         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
79826
79827         * tests/test-gc-arctwo.c: New file.
79828
79829 2005-10-21  Simon Josefsson  <jas@extundo.com>
79830
79831         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
79832         Bruno Haible <bruno@clisp.org>.
79833
79834         * m4/gc-des.m4: New file.
79835
79836 2005-10-21  Simon Josefsson  <jas@extundo.com>
79837
79838         * m4/arctwo.m4: New file.
79839
79840         * m4/gc-arctwo.m4: New file.
79841
79842 2005-10-21  Simon Josefsson  <jas@extundo.com>
79843
79844         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
79845         block.
79846
79847 2005-10-21  Simon Josefsson  <jas@extundo.com>
79848
79849         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
79850         <bruno@clisp.org>.
79851
79852         * lib/hmac-sha1.c (hmac_sha1): Likewise.
79853
79854         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
79855         Bruno Haible <bruno@clisp.org>.
79856
79857         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
79858         <bruno@clisp.org>.
79859
79860 2005-10-21  Simon Josefsson  <jas@extundo.com>
79861
79862         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
79863
79864 2005-10-21  Simon Josefsson  <jas@extundo.com>
79865
79866         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
79867
79868 2005-10-21  Simon Josefsson  <jas@extundo.com>
79869
79870         * lib/des.h, lib/des.c: New files.
79871
79872         * lib/gc-gnulib.c: Support DES.c
79873
79874 2005-10-21  Simon Josefsson  <jas@extundo.com>
79875
79876         * lib/arctwo.h, lib/arctwo.c: New files.
79877
79878         * lib/gc-gnulib.c: Support ARCTWO.
79879
79880 2005-10-21  Simon Josefsson  <jas@extundo.com>
79881
79882         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
79883         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
79884
79885 2005-10-21  Simon Josefsson  <jas@extundo.com>
79886
79887         * gnulib-tool (func_import, func_create_testdir): Define automake
79888         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
79889         Makefile.am snippet),
79890         suggested by Bruno Haible <bruno@clisp.org>.
79891
79892         * modules/gc (Makefile.am): Use it.
79893
79894 2005-10-21  Bruno Haible  <bruno@clisp.org>
79895
79896         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
79897         patch.
79898
79899 2005-10-19  Simon Josefsson  <jas@extundo.com>
79900
79901         * tests/test-gc-rijndael.c: New file.
79902
79903         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
79904
79905 2005-10-19  Simon Josefsson  <jas@extundo.com>
79906
79907         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
79908         interface too.
79909
79910 2005-10-19  Simon Josefsson  <jas@extundo.com>
79911
79912         * tests/test-gc-arcfour.c: New file.
79913
79914         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
79915
79916 2005-10-19  Simon Josefsson  <jas@extundo.com>
79917
79918         * modules/gc-md4, modules/gc-md4-tests: New file.
79919
79920         * tests/test-gc-md4.c: New file.
79921
79922 2005-10-19  Simon Josefsson  <jas@extundo.com>
79923
79924         * m4/gc-md4.m4: New file.
79925
79926 2005-10-19  Simon Josefsson  <jas@extundo.com>
79927
79928         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
79929         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
79930         <kasal@ucw.cz>.
79931
79932 2005-10-19  Simon Josefsson  <jas@extundo.com>
79933
79934         * m4/gc-arcfour.m4: New file.
79935
79936         * m4/gc-rijndael.m4: New file.
79937
79938 2005-10-19  Simon Josefsson  <jas@extundo.com>
79939
79940         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
79941
79942 2005-10-19  Simon Josefsson  <jas@extundo.com>
79943
79944         * lib/gc-gnulib.c: Support ARCFOUR.
79945
79946 2005-10-19  Simon Josefsson  <jas@extundo.com>
79947
79948         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
79949         support.
79950
79951         * lib/gc.h: Add ECB enum type.
79952
79953         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
79954
79955 2005-10-18  Simon Josefsson  <jas@extundo.com>
79956
79957         * tests/test-md5.c: New file.
79958
79959         * modules/md5-tests: New file.
79960
79961 2005-10-18  Simon Josefsson  <jas@extundo.com>
79962
79963         * tests/test-md4.c: New file.
79964
79965         * modules/md4, modules/md4-tests: New files.
79966
79967 2005-10-18  Simon Josefsson  <jas@extundo.com>
79968
79969         * m4/md4.m4: New file.
79970
79971 2005-10-18  Simon Josefsson  <jas@extundo.com>
79972
79973         * lib/md4.h, lib/md4.c: New files, based on md5.?.
79974
79975 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
79976
79977         * gnulib-tool (func_create_testdir): Omit the second check whether
79978         BUILT_SOURCES in nonempty.
79979
79980 2005-10-17  Simon Josefsson  <jas@extundo.com>
79981
79982         * tests/test-rijndael.c: New file.
79983
79984 2005-10-17  Simon Josefsson  <jas@extundo.com>
79985
79986         * modules/sha1: Depend on stdint instead of md5.
79987
79988         * modules/md5: Depend on stdint, remove uint32_t.
79989
79990 2005-10-17  Simon Josefsson  <jas@extundo.com>
79991
79992         * modules/gc-sha1-tests: New file.
79993
79994         * tests/test-gc-sha1.c: New file.
79995
79996 2005-10-17  Simon Josefsson  <jas@extundo.com>
79997
79998         * m4/md5.m4: Remove call to uint32_t.m4.
79999
80000 2005-10-17  Simon Josefsson  <jas@extundo.com>
80001
80002         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
80003
80004         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
80005         md5.h.
80006
80007         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
80008
80009         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
80010
80011 2005-10-17  Simon Josefsson  <jas@extundo.com>
80012
80013         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
80014
80015 2005-10-17  Simon Josefsson  <jas@extundo.com>
80016
80017         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
80018
80019 2005-10-17  Simon Josefsson  <jas@extundo.com>
80020
80021         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
80022
80023         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
80024
80025 2005-10-17  Bruno Haible  <bruno@clisp.org>
80026
80027         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
80028         that it can also be used in a test.
80029
80030 2005-10-16  Bruno Haible  <bruno@clisp.org>
80031
80032         * gnulib-tool (func_emit_tests_Makefile_am): Also define
80033         TESTS_ENVIRONMENT, so that individual tests can augment it.
80034
80035         * gnulib-tool (func_create_testdir): Use an intermediate target for
80036         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
80037         macros, like $(ALLOCA_H), which cannot be passed through the command
80038         line.
80039
80040 2005-10-15  Simon Josefsson  <jas@extundo.com>
80041
80042         * modules/rijndael-tests: New file.
80043
80044         * modules/rijndael: New file.
80045
80046 2005-10-15  Simon Josefsson  <jas@extundo.com>
80047
80048         * m4/rijndael.m4: New file.
80049
80050 2005-10-15  Simon Josefsson  <jas@extundo.com>
80051
80052         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
80053
80054         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
80055
80056 2005-10-14  Simon Josefsson  <jas@extundo.com>
80057
80058         * tests/test-arcfour.c: New file.
80059
80060         * modules/arcfour, modules/arcfour-tests: New files.
80061
80062 2005-10-14  Simon Josefsson  <jas@extundo.com>
80063
80064         * m4/arcfour.m4: New file.
80065
80066 2005-10-14  Simon Josefsson  <jas@extundo.com>
80067
80068         * lib/arcfour.h, lib/arcfour.c: New files.
80069
80070 2005-10-14  Roland McGrath  <roland@redhat.com>
80071
80072         Import from libc.  [BZ #1331]
80073         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
80074         macro argument.
80075         Reported by Matej Vela <vela@debian.org>.
80076
80077 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
80078
80079         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
80080         include <wchar.h>; no longer needed.
80081
80082 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
80083
80084         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
80085
80086 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
80087         and  Ulrich Drepper  <drepper@redhat.com>
80088
80089         Import from libc.
80090         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
80091         instead of inline stream orientation test and two separate
80092         function calls.  Pay no attention to USE_IN_LIBIO.
80093
80094 2005-10-13  Simon Josefsson  <jas@extundo.com>
80095
80096         * modules/gc-hmac-md5-tests: New file.
80097
80098         * tests/test-gc-hmac-sha1.c: New file.
80099
80100         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
80101
80102         * modules/gc-hmac-md5-tests: New file.
80103
80104         * tests/test-gc-md5.c: New file.
80105
80106         * modules/gc-md5-tests: New file.
80107
80108 2005-10-13  Simon Josefsson  <jas@extundo.com>
80109
80110         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
80111         Move memory allocation outside of loop.
80112
80113 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
80114
80115         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
80116         intermediate directory is in a read-only file system.  Problem
80117         reported by Eric Blake.
80118
80119 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
80120
80121         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
80122
80123 2005-10-12  Simon Josefsson  <jas@extundo.com>
80124
80125         * tests/test-hmac-sha1.c: New file.
80126
80127         * modules/hmac-sha1-tests: New file.
80128
80129         * modules/hmac-sha1: New file.
80130
80131 2005-10-12  Simon Josefsson  <jas@extundo.com>
80132
80133         * modules/gc-sha1: New file.
80134
80135 2005-10-12  Simon Josefsson  <jas@extundo.com>
80136
80137         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
80138
80139         * tests/test-gc-pbkdf2-sha1.c: New file.
80140
80141 2005-10-12  Simon Josefsson  <jas@extundo.com>
80142
80143         * modules/gc-md5, modules/gc-hmac-md5: New files.
80144
80145         * modules/gc (Files): Remove md5, memxor and hmac files.
80146
80147 2005-10-12  Simon Josefsson  <jas@extundo.com>
80148
80149         * m4/gc-pbkdf2-sha1.m4: New file.
80150
80151         * m4/gc-hmac-sha1.m4: New file.
80152
80153         * m4/gc-sha1: New file.
80154
80155         * m4/hmac-sha1.m4: New file.
80156
80157 2005-10-12  Simon Josefsson  <jas@extundo.com>
80158
80159         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
80160
80161         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
80162
80163 2005-10-12  Simon Josefsson  <jas@extundo.com>
80164
80165         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
80166         suggested by Bruno Haible <bruno@clisp.org>.
80167
80168 2005-10-12  Simon Josefsson  <jas@extundo.com>
80169
80170         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
80171
80172 2005-10-12  Simon Josefsson  <jas@extundo.com>
80173
80174         * lib/gc-pbkdf2-sha1.c: New file.
80175
80176         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
80177
80178 2005-10-12  Simon Josefsson  <jas@extundo.com>
80179
80180         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
80181
80182         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
80183
80184 2005-10-12  Simon Josefsson  <jas@extundo.com>
80185
80186         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
80187         GC_USE_HMAC_MD5, respectively.
80188
80189         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
80190         (gc_md5): Fix typo.
80191
80192         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
80193
80194         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
80195
80196         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
80197
80198 2005-10-12  Bruno Haible  <bruno@clisp.org>
80199
80200         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
80201         Reported by Stepan Kasal <kasal@ucw.cz>.
80202
80203 2005-10-11  Simon Josefsson  <jas@extundo.com>
80204
80205         * tests/test-crc.c: New file.
80206
80207         * modules/crc, modules/crc-tests: New files.
80208
80209 2005-10-11  Simon Josefsson  <jas@extundo.com>
80210
80211         * m4/crc.m4: New file.
80212
80213 2005-10-11  Simon Josefsson  <jas@extundo.com>
80214
80215         * lib/gc.h: Add gc_hash and gc_hash_buffer.
80216
80217         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
80218
80219         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
80220
80221 2005-10-11  Simon Josefsson  <jas@extundo.com>
80222
80223         * lib/crc.h, lib/crc.c: New files.
80224
80225         * lib/gc.h (gc_hash_buffer): Add doc.
80226
80227 2005-10-11  Bruno Haible  <bruno@clisp.org>
80228
80229         * modules/c-strcasestr: New file.
80230         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
80231
80232 2005-10-11  Bruno Haible  <bruno@clisp.org>
80233
80234         * modules/c-strcase: New file.
80235         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
80236
80237 2005-10-11  Bruno Haible  <bruno@clisp.org>
80238
80239         * lib/strcasecmp.c: Include limits.h.
80240         (strcasecmp): Avoid integer overflow on exotic platforms.
80241         * lib/strncasecmp.c: Include limits.h.
80242         (strncasecmp): Avoid integer overflow on exotic platforms.
80243         Reported by Paul Eggert.
80244
80245 2005-10-11  Bruno Haible  <bruno@clisp.org>
80246
80247         * lib/c-strcasestr.h: New file, from GNU gettext.
80248         * lib/c-strcasestr.c: New file, from GNU gettext.
80249
80250 2005-10-11  Bruno Haible  <bruno@clisp.org>
80251
80252         * lib/c-strcase.h: New file, from GNU gettext.
80253         * lib/c-strcasecmp.c: New file, from GNU gettext.
80254         * lib/c-strncasecmp.c: New file, from GNU gettext.
80255
80256 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
80257
80258         * modules/mempcpy (License): GPL -> LGPL.
80259         * modules/strchrnul (License): Likewise.
80260         * modules/sysexits (License): Likewise.
80261
80262 2005-10-08  Simon Josefsson  <jas@extundo.com>
80263
80264         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
80265
80266 2005-10-07  Simon Josefsson  <jas@extundo.com>
80267
80268         * m4/memxor.m4: Remove gl_C_RESTRICT call.
80269
80270 2005-10-06  Simon Josefsson  <jas@extundo.com>
80271
80272         * tests/test-hmac-md5.c: New file.
80273
80274         * modules/hmac-md5-tests: New file.
80275
80276         * modules/hmac-md5: New file.
80277
80278 2005-10-06  Simon Josefsson  <jas@extundo.com>
80279
80280         * m4/hmac-md5.m4: New file.
80281
80282         * m4/memxor.m4: Require gl_C_RESTRICT.
80283
80284 2005-10-06  Simon Josefsson  <jas@extundo.com>
80285
80286         * lib/memxor.c (memxor): Avoid casts and warnings.
80287
80288 2005-10-06  Simon Josefsson  <jas@extundo.com>
80289
80290         * lib/hmac-md5.c: New file.
80291
80292         * lib/hmac.h: New file.
80293
80294 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
80295
80296         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
80297         promotes to int, not unsigned int, to catch the AIX 5.3
80298         compiler bug.
80299
80300 2005-10-05  Simon Josefsson  <jas@extundo.com>
80301
80302         * modules/memxor: New file.
80303
80304         * modules/iconv (Files): Move config.rpath to havelib, it is used
80305         there.
80306
80307         * modules/havelib (Files): Add config.rpath.
80308
80309 2005-10-05  Simon Josefsson  <jas@extundo.com>
80310
80311         * m4/memxor.m4: New file.
80312
80313 2005-10-05  Simon Josefsson  <jas@extundo.com>
80314
80315         * lib/memxor.c (memxor): Fix compiler error.
80316
80317         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
80318         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
80319
80320         * lib/memxor.h, lib/memxor.c: New files.
80321
80322         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
80323         we assume all systems have it, suggested by Jim Meyering
80324         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
80325         any systems lack sys/socket.h; mingw32 is known to lack it, but we
80326         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
80327         same reasons.
80328
80329 2005-10-05  Simon Josefsson  <jas@extundo.com>
80330
80331         * config/srclist.txt: Add glibc bug 1423 for md5.h.
80332
80333 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
80334
80335         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
80336         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
80337         needed, since the source code now assumes these .h files.
80338
80339 2005-10-05  Derek Price  <derek@ximbiot.com>
80340
80341         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
80342
80343 2005-10-05  Bruno Haible  <bruno@clisp.org>
80344
80345         * modules/stdint (License): Change to LGPL.
80346
80347 2005-10-04  Simon Josefsson  <jas@extundo.com>
80348
80349         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
80350         D. Baushke" <mdb@gnu.org>.
80351
80352 2005-10-04  Bruno Haible  <bruno@clisp.org>
80353
80354         * lib/verify.h (verify_true): Provide alternative definition for C++.
80355
80356 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
80357
80358         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
80359         (SSIZE_MAX): New macro, if not already defined.
80360         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
80361         than 2 GiB.
80362
80363 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
80364
80365         Sync from coreutils.
80366         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
80367         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
80368         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
80369         ULLONG_MAX doesn't work with 2.7.2.1.
80370
80371 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
80372
80373         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
80374         From Ben Pfaff.
80375
80376         * modules/exclude (Depends-on): Depend on verify.
80377         * modules/strtoimax (Depends-on): Likewise.
80378         * modules/utimecmp (Depends-on): Likewise.
80379
80380 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
80381
80382         * lib/exclude.c: Include verify.h.
80383         (verify): Remove.  All callers changed to use verify.h's version.
80384         * lib/strtoimax.c: Likewise.
80385         * lib/utimecmp.c: Likewis.e
80386
80387         Sync from coreutils.
80388         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
80389         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
80390         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
80391         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
80392         bother returning ENOSYS if settimeofday or stime fails; just let
80393         them return whatever errno they want to return.
80394         * lib/utimens.c: Include unistd.h, for dup2.
80395         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
80396         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
80397
80398 2005-10-02  Jim Meyering  <jim@meyering.net>
80399
80400         Sync from coreutils.
80401         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
80402         from glibc-2.2.5 that fails for read-only files.
80403
80404 2005-10-02  Jim Meyering  <jim@meyering.net>
80405
80406         Sync from coreutils.
80407         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
80408         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
80409         `#if HAVE_CONFIG_H'.
80410         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
80411         Remove AT_FDCWD test.
80412         Do not consume the fd unless successful.
80413         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
80414         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
80415         block, so that we don't even try to compile it if settimeofday is
80416         available.  This works around a compilation failure on OSF1 V5.1,
80417         due to stime requiring a `long int*' while tv_sec is `int'.
80418
80419 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
80420
80421         Sync from coreutils.
80422         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
80423         against `yes', rather than just testing for nonempty.
80424
80425 2005-10-01  Simon Josefsson  <jas@extundo.com>
80426
80427         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
80428         and Darwin.
80429
80430         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
80431         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
80432         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
80433         freeaddrinfo and gai_strerror are declared by the POSIX headers.
80434         Check if struct addrinfo is declared.
80435
80436 2005-10-01  Simon Josefsson  <jas@extundo.com>
80437
80438         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
80439         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
80440         AI_* and EAI_* definitions.  Protect function declarations.
80441
80442 2005-10-01  Jim Meyering  <jim@meyering.net>
80443
80444         Sync from coreutils.
80445
80446         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
80447         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
80448         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
80449         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
80450         in the inet and nsl libraries.  Required on Solaris 5.7.
80451
80452 2005-10-01  Jim Meyering  <jim@meyering.net>
80453
80454         Sync from coreutils.
80455         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
80456         in the inet and nsl libraries.  Required on Solaris 5.7.
80457
80458 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
80459
80460         * lib/getdelim.c (getdelim): Remove unused variables.
80461
80462 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
80463
80464         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
80465         so that the code works even with ancient cpp.  Portability problem
80466         with GCC 2.7.2.1 reported by Thomas M.Ott.
80467
80468 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
80469
80470         * modules/regex (Depends-on): Add strcase.
80471
80472         * modules/gethostname (Licence): Change from GPL to LGPL, since
80473         gethostname.c is a trivial implementation of a standard library
80474         function.
80475         * modules/poll (License): Change from GPL to LGPL, since it's
80476         derived from LGPL code.
80477
80478 2005-09-27  Jim Meyering  <jim@meyering.net>
80479
80480         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
80481         HAVE_CONFIG_H.
80482
80483         * lib/intprops.h (signed_type_or_expr__): Define.
80484         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
80485         for unsigned types.
80486
80487 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
80488
80489         * lib/verify.h (verify_expr): Remove, replacing with:
80490         (verify_true): New macro that returns true instead of void.
80491         (verify_type__): Remove.
80492         (verify): Use verify_true rather than verify_type__.
80493
80494 2005-09-26  Bruno Haible  <bruno@clisp.org>
80495
80496         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
80497         is necessary.
80498         (lib_SOURCES): Remove mbchar.c.
80499         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
80500         (Files): Add m4/mbrtowc.m4.
80501         * modules/mbiter: Likewise.
80502         * modules/mbuiter: Likewise.
80503
80504 2005-09-26  Bruno Haible  <bruno@clisp.org>
80505
80506         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
80507         compile mbchar.c if they are not both present.
80508         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
80509         * m4/mbiter.m4 (gl_MBITER): Likewise.
80510         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
80511         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
80512         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
80513
80514 2005-09-25  Jim Meyering  <jim@meyering.net>
80515
80516         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
80517         also uses socklen_t.
80518
80519 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
80520
80521         * lib/utimens.c (ENOSYS): Define if not already defined.
80522         (futimens): Support having a null PATH if the file descriptor
80523         is nonnegative.
80524
80525         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
80526         Remove.
80527         (__attribute): Define to empty unless GCC 3.1 or later.
80528         This works around a core dump on OpenBSD 3.4, which has GCC
80529         2.95.3, which dumps core when given __attribute__(()).  It also
80530         simplifies other tests, since we really don't want to bother with
80531         worrying about which ancient version of GCC supported what.
80532         Original problem reported by Yoann Vandoorselaere, with part of
80533         the fix suggested by Derek Price.
80534
80535 2005-09-24  Jim Meyering  <jim@meyering.net>
80536
80537         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
80538         so we can once again use a positive bitfield width of 1 -- now we
80539         don't have to explain why we were using a bitfield width of 2.
80540
80541 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
80542
80543         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
80544         and similarly for the other external symbols.  Problem reported
80545         by James Gallager.
80546
80547         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
80548         bug reported by Jim Meyering.
80549
80550         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
80551         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
80552         not needed, since socklen is a prerequisite module.
80553
80554 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
80555
80556         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
80557         Problem reported by Eric Blake.
80558         (getaddrinfo): Initialize se so that it's not garbage.
80559         Redo internal storage allocation so that it doesn't make unportable
80560         assumptions about alignment.
80561         Fix a memory leak.
80562
80563         * lib/utimens.c (futimens): Use futimesat if available.
80564         Prefer it to futimes since it doesn't have the futimes bug.
80565
80566         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
80567         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
80568         Instead, declare a function that returns a pointer to an array,
80569         and use verify_type__ to declare the size of the array.
80570         Problem and germ of a solution reported by Bruno Haible.
80571         (verify_type__): Use 2, not 1, for bitfield size, to avoid
80572         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
80573
80574 2005-09-23  Jim Meyering  <jim@meyering.net>
80575
80576         Sync from coreutils.
80577         Correct build failure (socklen_t not defined) on at least
80578         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
80579         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
80580
80581 2005-09-23  Jim Meyering  <jim@meyering.net>
80582
80583         * modules/getaddrinfo (Depends-on): Add socklen.
80584
80585 2005-09-23  Bruno Haible  <bruno@clisp.org>
80586
80587         * tests/test-verify.c: New file.
80588
80589 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
80590
80591         Sync from coreutils.
80592
80593         * modules/argmatch (Depends-on): Add verify.
80594         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
80595         unistd-safer.
80596         * modules/save-cwd (Depends-on): Likewise.
80597
80598         * modules/openat (Files): Add lib/openat-die.c.
80599         (Depends-on): Remove error, exitfail.
80600         Add dirname.
80601
80602         * modules/verify: New file.
80603         * MODULES.html.sh (Diagnostics <assert.h>): New section,
80604         with "verify" module.
80605
80606 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
80607
80608         Sync from coreutils.
80609
80610         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
80611         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
80612         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
80613         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
80614         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
80615         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
80616         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
80617         Don't bother checking for string.h, stdlib.h, unistd.h.
80618         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
80619         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
80620         module's job.
80621         * m4/jm-macros.m4 (gl_MACROS): Likewise.
80622         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
80623
80624         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
80625         (gl_GETDATE): Use it.
80626
80627         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
80628
80629 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
80630
80631         Sync from coreutils.
80632
80633         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
80634         stat-time.h.
80635         * lib/argmatch.h: Include verify.h
80636         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
80637         (ARGMATCH_ASSERT): Remove; unused.
80638         * lib/canonicalize.c: Assume STDC_HEADERS.
80639         * lib/exclude.c: Include "strcase.h".
80640         * lib/regex_internal.h [!defined _LIBC]: Likewise.
80641         * lib/getusershell.c: Include stdio--.h rather than stdio.h
80642         and stdio-safer.h.
80643         (getusershell): Call fopen, not fopen_safer.
80644         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
80645         Do not include unistd-safer.h.
80646         (save_cwd): Don't call fd_safer; no longer needed
80647         now that we include fcntl--.h.
80648
80649         * lib/getdate.y (relative_time): New type.
80650         (RELATIVE_TIME_0): New constant.
80651         (parser_control): Use relative_time instead of doing it ourselves.
80652         (%union): Add new relative_time rel member.
80653         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
80654         Now typeless.
80655         (relunit, relunit_snumber): Now of type rel.
80656         (zone, rel, relunit, get_date): Adjust to above changes.
80657
80658         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
80659         Do not include unistd-safer.h.
80660         (getloadavg): Don't call fd_safer; no longer needed
80661         now that we include fcntl--.h.
80662
80663         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
80664         (make_dir_parents): Treat ENOSYS like EEXIST.
80665
80666         Improve quality of diagnostics on restore_cwd failure.
80667         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
80668         (make_dir_parents): Last arg is now int * (for errno), not bool *.
80669         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
80670         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
80671         each time through the loop.  Do not diagnose restore_cwd failure;
80672         that is the caller's job (and perhaps the caller does not care).
80673
80674         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
80675         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
80676         If the file already exists but is not a directory, don't bother
80677         to try to make its parents.
80678         Close potential file descriptor leak if we can't chdir("/") (!).
80679         Don't always return true if chdir($PWD) fails; return true only
80680         if the requested action was done successfully (except for the
80681         chdir($PWD)).
80682         Don't log final directory unless we actually made it.
80683         Refactor to avoid duplicate code to fix up permissions.
80684         Don't attempt to fix up parent permissions if chdir($PWD) fails.
80685
80686         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
80687         to make it a bit faster and (I hope) clearer.
80688         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
80689         Fix bug in formats like %2N.
80690
80691         * lib/verify.h: New file.
80692
80693 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
80694
80695         Sync from coreutils.
80696         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
80697
80698 2005-09-22  Jim Meyering  <jim@meyering.net>
80699
80700         Sync from coreutils.
80701
80702         * m4/lstat.m4 (gl_FUNC_LSTAT):
80703         Use AC_LIBSOURCES to require lstat.c and lstat.h.
80704         Remove obsolete comment.
80705         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
80706         * m4/xstrtod.m4: Likewise.
80707
80708         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
80709
80710 2005-09-22  Jim Meyering  <jim@meyering.net>
80711
80712         Sync from coreutils.
80713
80714         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
80715
80716         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
80717         the .tm_year member, since otherwise gcc-4.0 would now warn about
80718         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
80719
80720         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
80721         order to avoid an unsuppressible warning from gcc on 64-bit systems.
80722
80723         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
80724         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
80725         when run in a time zone for which daylight savings time is in effect
80726         for the starting date.
80727
80728         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
80729         stop us from restricting permissions of just-created absolute-named
80730         directories.
80731         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
80732         to restore initial working directory.
80733         * lib/mkdir-p.c (make_dir_parents): New parameter:
80734         different_working_dir, to tell caller if/when we change the working
80735         directory and are unable to return to the initial one.
80736         * lib/mkdir-p.h (make_dir_parents): Update prototype.
80737         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
80738         `return false'.  This fixes a bug introduced on 2004-07-30.
80739
80740         * lib/openat.c (fdopendir): Be sure to close the supplied
80741         file descriptor before returning.  This makes our replacement
80742         implementation a little closer to Solaris's, where fdopendir
80743         ties the file descriptor to the returned DIR* pointer.
80744         * lib/openat.c (unlinkat): New function.
80745         * lib/openat.h (unlinkat): Add prototype.
80746         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
80747         (openat_restore_fail): Rename from openat_restore_die.
80748         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
80749
80750         Provide an alternative to exiting immediately upon save_cwd or
80751         restore_cwd failure.  Now, an application can arrange e.g.,
80752         to perform a longjump in that case.
80753         * lib/openat.c: Include dirname.h.
80754         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
80755         (rpl_openat, fdopendir, fstatat): Call openat_save_die
80756         and openat_restore_die rather than calling error directly.
80757         Don't include "error.h" or "exitfail.h"; they're no longer needed.
80758
80759         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
80760         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
80761         define.
80762
80763         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
80764         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
80765                             int utc, int nanoseconds);
80766         Background:
80767         date should not have to allocate a megabyte of virtual memory to
80768         handle a format argument like +%1048575T.  When implemented with
80769         strftime, it must allocate such a buffer, use strftime to fill it
80770         in, print it, then free it.
80771         With fprintftime, it simply prints everything and exits.
80772         With no need for memory allocation, that's one fewer way to fail.
80773         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
80774         optional field width, not before, so we accept %9:z, not %:9z.
80775         (my_strftime): Be sure to use L_('x') for literals.
80776
80777         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
80778         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
80779         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
80780         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
80781         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
80782         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
80783         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
80784         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
80785         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
80786         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
80787         * lib/xgethostname.c, lib/xreadlink.c:
80788         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
80789
80790         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
80791         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
80792         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
80793         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
80794         and don't include <sys/file.h>).
80795
80796 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
80797
80798         Sync from coreutils.
80799
80800         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
80801         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
80802         [!LDAV_DONE]: Avoid unused variable warning.
80803
80804 2005-09-21  Bruno Haible  <bruno@clisp.org>
80805
80806         * lib/unicodeio.h (unicode_to_mb): New declaration.
80807
80808 2005-09-20  Derek Price  <derek@ximbiot.com>
80809
80810         * lib/getaddrinfo.c: Don't include <netdb.h> included from
80811         getaddrinfo.h.
80812
80813 2005-09-20  Bruno Haible  <bruno@clisp.org>
80814
80815         * gnulib-tool: Remove trailing slashes from the values specified for
80816         --source-base, --m4-base, --tests-base, --aux-dir.
80817         Suggested by Simon Josefsson <jas@extundo.com>.
80818
80819 2005-09-20  Bruno Haible  <bruno@clisp.org>
80820
80821         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
80822         func_modules_to_filelist, func_import, func_create_testdir): Make all
80823         sorting results locale-independent, so that gnulib-cache.m4 doesn't
80824         change when gnulib-tool is invoked in a different locale.
80825
80826 2005-09-19  Simon Josefsson  <jas@extundo.com>
80827
80828         * m4/socklen.m4: Fix typo.
80829
80830 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80831
80832         Use a consistent style for including <config.h>.
80833         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
80834         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
80835         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
80836         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
80837         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
80838         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
80839         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
80840         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
80841         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
80842         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
80843         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
80844         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
80845         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
80846         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
80847         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
80848         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
80849         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
80850         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
80851         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
80852         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
80853         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
80854         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
80855         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
80856         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
80857         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
80858         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
80859         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
80860         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
80861         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
80862         lib/xstrtoumax.c, lib/yesno.c:
80863         Standardize inclusion of config.h.
80864         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
80865         lib/inttostr.h:  Removed inclusion of config.h from header files.
80866         * lib/inttostr.c:  Adjusted in-tree users.
80867         * lib/timespec.h: Remove superfluous warning to include config.h.
80868         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
80869         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
80870         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
80871         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
80872         config.h with HAVE_CONFIG_H.
80873
80874 2005-09-19  Jim Meyering  <jim@meyering.net>
80875
80876         * modules/pathmax (License): Change to LGPL.
80877
80878 2005-09-19  Derek Price  <derek@ximbiot.com>
80879
80880         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
80881
80882 2005-09-19  Bruno Haible  <bruno@clisp.org>
80883
80884         * gnulib-tool (import): Provide default for --tests-base.
80885
80886 2005-09-19  Bruno Haible  <bruno@clisp.org>
80887
80888         * doc/quote.texi: New file, extracted from gnulib.texi.
80889         * doc/ctime.texi: New file, extracted from gnulib.texi.
80890         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
80891         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
80892         * doc/gnulib.texi: Include them.
80893
80894 2005-09-18  Bruno Haible  <bruno@clisp.org>
80895
80896         Portability fix.
80897         * gnulib-tool (func_readlink): New function.
80898         (func_ln_if_changed): Use it.
80899
80900 2005-09-18  Bruno Haible  <bruno@clisp.org>
80901
80902         * gnulib-tool: Support --with-tests also with --import.
80903         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
80904         (func_import): Use variables $testsbase and $inctests. Emit a
80905         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
80906         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
80907         SUBDIRS += $testsdir.
80908         (func_create_testdir): Update.
80909
80910 2005-09-18  Bruno Haible  <bruno@clisp.org>
80911
80912         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
80913         instead of $dry_run.
80914         (func_cp_if_changed, func_mv_if_changed): Remove functions.
80915         (func_ln_if_changed): Don't handle dry-run here.
80916         (func_import): In dry-run mode, detect more precisely which actions
80917         would be performed, and don't use "...ing" verbs.
80918
80919 2005-09-18  Bruno Haible  <bruno@clisp.org>
80920
80921         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
80922         (func_import): Use join on two temporary files instead of three nested
80923         loops, in order to determine which files are new or old.
80924
80925 2005-09-18  Bruno Haible  <bruno@clisp.org>
80926
80927         * gnulib-tool (func_import): Comment out code that spits out the
80928         new files with --dry-run.
80929
80930 2005-09-18  Bruno Haible  <bruno@clisp.org>
80931
80932         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
80933
80934 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
80935
80936         * lib/stat-time.h: New file.
80937         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
80938         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
80939         in a different way.
80940         (timespec_cmp): New function.
80941         * lib/utimecmp.c: Include stat-time.h.
80942         (SYSCALL_RESOLUTION): Depend on whether various struct stat
80943         members exist, not on the obsolescent ST_MTIM_NSEC.
80944         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
80945
80946 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
80947
80948         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
80949
80950 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
80951
80952         * MODULES.html.sh (File system functions): Add stat-time.
80953         * modules/stat-time: New file.
80954         * modules/timespec (Files): Remove m4/st_mtim.m4; this
80955         is now done in a different way, by the stat-time module.
80956         * modules/utimecmp (Depends-on): Add stat-time.
80957
80958 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
80959
80960         * m4/st_mtim.m4: Remove.  Superseded by...
80961         * m4/stat-time.m4: New file.
80962         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
80963         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
80964
80965 2005-09-15  Derek Price  <derek@ximbiot.com>
80966
80967         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
80968
80969 2005-09-15  Derek Price  <derek@ximbiot.com>
80970
80971         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
80972         * lib/regex_internal.c: Ditto, using this...
80973         (__GNUC_PREREQ): ...new macro.
80974         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
80975         using...
80976         (__GNUC_PREREQ): ...this new macro.
80977
80978         * lib/strstr.h: Include string.h. Define strstr as a macro here.
80979
80980 2005-09-15  Derek Price  <derek@ximbiot.com>
80981             Paul Eggert  <eggert@cs.ucla.edu>
80982
80983         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
80984         changes, consolidating in...
80985         * lib/regex_internal.h: ...this file.
80986
80987 2005-09-13  Jim Meyering  <jim@meyering.net>
80988
80989         * lib/canon-host.c: Filter through gnu indent and reword comments
80990         slightly.
80991         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
80992
80993 2005-09-13  Derek Price  <derek@ximbiot.com>
80994
80995         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
80996         failure.
80997         Reported by Jim Meyering  <jim@meyering.net>.
80998
80999 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
81000
81001         * lib/base64.c: Typo.
81002         (base64_encode): Put b64str in initialized data section.
81003
81004 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
81005
81006         Merge glibc and coreutils changes into gnulib, plus a few
81007         extra fixes.
81008         * lib/md5.c: Use #error rather than a string.
81009         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
81010         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
81011         (__attribute__): Define to empty for non recent-GCC.
81012         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
81013         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
81014         Renamed from their non-__ counterparts, with new macros replacing
81015         them if not _LIBC.  Add __THROW attribute.
81016         (rol): Remove.
81017         (struct md5_ctx): Align buffer if using GCC.
81018         * lib/sha1.h (struct sha1_ctx): Likewise.
81019         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
81020         The old name was backwards.
81021         (NOTSWAP): Remove; not used.
81022         (rol): New macro, moved here from md5.h.
81023         (sha1_process_block): Remove a FIXME that doesn't make sense.
81024
81025 2005-09-12  Derek Price  <derek@ximbiot.com>
81026
81027         Return usable errors from canon-host.
81028         * lib/canon-host.h: New file.
81029         * lib/canon-host.c (canon_host): Wrap...
81030         (canon_host_r): ...this new function, which now relies exclusively on
81031         getaddrinfo.
81032         (ch_strerror): New function.
81033         (last_cherror): New global.
81034         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
81035         interface.
81036         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
81037         void *.
81038         (freeaddrinfo): Free ai->ai_canonname when set.
81039
81040 2005-09-12  Derek Price  <derek@ximbiot.com>
81041
81042         Make canon-host require getaddrinfo.
81043         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
81044         AC_LIBSOURCE canon-host.h.  Call...
81045         (gl_PREREQ_CANON_HOST): ...this new function, which requires
81046         gl_GETADDRINFO.
81047         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
81048
81049 2005-09-12  Derek Price  <derek@ximbiot.com>
81050
81051         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
81052         LGPL.
81053         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
81054
81055 2005-09-12  Derek Price  <derek@ximbiot.com>
81056
81057         * lib/gai_strerror.c: Include config.h when available.  Include
81058         getaddrinfo.h before other headers to test interface.
81059         Reported by Larry Jones <lawrence.jones@ugs.com>.
81060
81061 2005-09-12  Derek Price  <derek@ximbiot.com>
81062             Paul Eggert  <eggert@cs.ucla.edu>
81063
81064         * modules/glob (Files): Add glob-libc.h.
81065
81066 2005-09-12  Derek Price  <derek@ximbiot.com>
81067             Paul Eggert  <eggert@cs.ucla.edu>
81068
81069         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
81070         glob_.h, glob-libc.h.
81071         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
81072
81073 2005-09-12  Derek Price  <derek@ximbiot.com>
81074             Paul Eggert  <eggert@cs.ucla.edu>
81075
81076         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
81077         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
81078         protecting things that should be done only in gnulib contexts.
81079         * lib/glob_.h: New file, containing only the glob things needed for
81080         gnulib.
81081         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
81082         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
81083         (glob, globfree, glob_pattern_p): Now defined simply in terms of
81084         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
81085         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
81086         and to respect the namespace rules better.
81087
81088 2005-09-08  Simon Josefsson  <jas@extundo.com>
81089
81090         * modules/socklen: New file.
81091
81092 2005-09-08  Simon Josefsson  <jas@extundo.com>
81093
81094         * m4/socklen.m4: New file.
81095
81096 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
81097
81098         * modules/utimens (Files): Add m4/utimbuf.m4, since
81099         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
81100         Reported by Sergey Poznyakoff.
81101
81102 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
81103
81104         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
81105         definitions, since that's the preferred style in glibc.
81106         Fix a minor spacing issue, and update copyright notice to match
81107         glibc's.
81108
81109 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
81110
81111         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
81112
81113 2005-09-06  Simon Josefsson  <jas@extundo.com>
81114
81115         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
81116         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
81117
81118 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
81119
81120         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
81121         warning.
81122
81123 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
81124
81125         * config/srclist.txt: Add glibc bug 1302.
81126
81127 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
81128
81129         Change bitset word type from unsigned int to unsigned long int,
81130         as this has better performance on typical 64-bit hosts.
81131         Port bitset code to hosts with unusual word sizes.
81132         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
81133         (build_collating_symbol):
81134         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
81135         argument is a bitset.  This is merely a style issue, but it makes
81136         it clearer that an entire array is expected.
81137         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
81138         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
81139         Port to the case where bitset_word is not the same as unsigned int.
81140         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
81141         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
81142         Likewise.
81143         * lib/regexec.c (check_dst_limits_calc_pos_1,
81144         check_subexp_matching_top):
81145         (build_trtable, group_nodes_into_DFAstates):
81146         Likewise.
81147         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
81148         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
81149         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
81150         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
81151         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
81152         * lib/regcomp.c (optimize_subexps, lower_subexp):
81153         Work even if bitset_word has holes in its bitwise representation.
81154         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
81155         * lib/regexec.c (check_dst_limits_calc_pos_1,
81156         check_subexp_matching_top):
81157         Likewise.
81158         * lib/regex_internal.c (re_string_reconstruct):
81159         Don't assume UCHAR_MAX == 255.
81160         * lib/regex_internal.h (bitset_set_all): Likewise.
81161         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
81162         All uses changed.
81163         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
81164         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
81165         All uses changed.
81166         (BITSET_WORD_MAX): New macro.
81167         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
81168         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
81169         (bitset_empty, bitset_copy):
81170         Prefer sizeof (bitset) to multiplying it out ourselves.
81171         (bitset_not_merge): Remove; unused.
81172         (bitset_contain): Return bool, not unsigned int with one bit on.
81173         All callers changed.
81174         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
81175         alignment than re_node_set; do this by defining a new internal
81176         type struct dests_alloc and using it to allocate memory.
81177
81178 2005-09-05  Bruno Haible  <bruno@clisp.org>
81179
81180         * gnulib-tool (func_import): Fix comparison in handling of symbolic
81181         links.
81182
81183 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
81184
81185         * modules/size_max (Makefile.am): Add size_max.h
81186
81187 2005-09-04  Derek Price  <derek@ximbiot.com>
81188
81189         * gnulib-tool (func_import): Fix reversed $symbolic logic.
81190
81191 2005-09-03  Simon Josefsson  <jas@extundo.com>
81192
81193         * gnulib-tool: Fix typo.
81194
81195 2005-09-03  Simon Josefsson  <jas@extundo.com>
81196
81197         * config/srclist.txt: Add glibc bug 1293.
81198
81199 2005-09-03  Derek Price  <derek@ximbiot.com>
81200
81201         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
81202         From Larry Jones <lawrence.jones@ugs.com>.
81203
81204 2005-09-02  Simon Josefsson  <jas@extundo.com>
81205
81206         * modules/socklen: New file.
81207
81208 2005-09-02  Simon Josefsson  <jas@extundo.com>
81209
81210         * modules/havelib: New module.
81211
81212         * modules/gettext, modules/iconv, modules/lock, modules/readline:
81213         Use havelib.
81214
81215 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
81216
81217         Check for arithmetic overflow when calculating sizes, to prevent
81218         some buffer-overflow issues.  These patches are conservative, in the
81219         sense that when I couldn't determine whether an overflow was possible,
81220         I inserted a run-time check.
81221         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
81222         macros.
81223         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
81224         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
81225         (re_xnrealloc, re_x2nrealloc): New inline functions.
81226         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
81227         parse_bracket_exp):
81228         (build_equiv_class, build_charclass): Check for arithmetic overflow
81229         in size expression calculations.
81230         * lib/regex_internal.c (re_string_realloc_buffers):
81231         (build_wcs_upper_buffer, re_node_set_add_intersect):
81232         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
81233         (re_dfa_add_node, register_state): Likewise.
81234         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
81235         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
81236         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
81237         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
81238
81239 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
81240
81241         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
81242         m4/ulonglong.m4.  Problem reported by Martin Lambers.
81243
81244 2005-09-02  Bruno Haible  <bruno@clisp.org>
81245
81246         Support for lib vs. lib64 distinction on biarch platforms.
81247         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
81248         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
81249         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
81250
81251 2005-09-02  Bruno Haible  <bruno@clisp.org>
81252
81253         * gnulib-tool (import): In the other first-use case, provide defaults
81254         as well.
81255
81256 2005-09-02  Bruno Haible  <bruno@clisp.org>
81257
81258         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
81259         patches not yet found in the latest gettext release.
81260
81261 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
81262
81263         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
81264         to avoid a collision with bits/local_lim.h in glibc.
81265         All uses changed.  Problem reported by Dmitry V. Levin in
81266         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
81267
81268         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
81269         bugs in int versus size_t comparisons.
81270         (re_string_context_at): Fix bug where the code assumed that
81271         Idx is signed.
81272
81273         Use bool where appropriate.
81274         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
81275         All callers changed.
81276         (calc_eclosure_iter): Likewise, for ROOT arg.
81277         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
81278         (build_charclass_op): Likewise, for NON_MATCH arg.
81279         * lib/regex_internal.c (re_string_allocate, re_string_construct):
81280         (re_string_construct_common): Likewise, for ICASE arg.
81281         * lib/regexec.c (re_search_2_stub, re_search_stub):
81282         Likewise, for RET_LEN arg.
81283         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
81284         (set_regs): Likewise, for FL_BACKTRACK arg.
81285         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
81286         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
81287         (calc_eclosure_iter, parse_bracket_exp):
81288         Use bool for internal variables that are booleans.
81289         * lib/regexec.c (re_search_internal, check_matching,
81290         proceed_next_node):
81291         (set_regs, build_sifted_states, sift_states_bkref):
81292         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
81293         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
81294         (find_collation_sequence_value):
81295         Likewise.
81296         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
81297         (re_node_set_compare):
81298         Return bool, not int. All callers changed.
81299         * lib/regexec.c (check_halt_node_context, check_dst_limits):
81300         (build_trtable, check_node_accept): Likewise.
81301         * lib/regex_internal.h: Include stdbool.h.
81302
81303         Fix bugs uncovered when converting to bool.
81304         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
81305         failure instead of charging ahead blindly.
81306         * lib/regex_internal.c (register_state): Likewise.
81307         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
81308         for freeing internal storage.
81309         (group_nodes_into_DFA_states): Use unsigned int, not int, for
81310         bitset pieces used as boolean, to avoid undefined behavior
81311         on hosts that do int overflow checking.
81312
81313 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
81314
81315         * config/srclist.txt: Add glibc bugs 1285-1287.
81316
81317 2005-09-01  Jim Meyering  <jim@meyering.net>
81318
81319         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
81320         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
81321         Require gl_STAT_MACROS, too.
81322
81323 2005-09-01  Bruno Haible  <bruno@clisp.org>
81324
81325         * gnulib-tool (import): In the first-use case, provide defaults.
81326
81327 2005-09-01  Bruno Haible  <bruno@clisp.org>
81328
81329         * gnulib-tool (func_import): Remove the .tmp files.
81330
81331 2005-09-01  Bruno Haible  <bruno@clisp.org>
81332
81333         * gnulib-tool (func_import): Fix handling of symbolic links.
81334
81335 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
81336
81337         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
81338         old glibc regex code mishandles strings longer than 2**31 bytes.
81339         This patch fixes this when the regex code is used in gnulib
81340         (i.e., outside glibc).
81341
81342         This patch should not affect the use of the regex code inside
81343         glibc.  No doubt this problem also needs to be handled for glibc
81344         as well, but the result will be an incompatible change to the
81345         glibc ABI, and the old ABI will have to be supported too.  That
81346         can be the the subject for another patch.
81347
81348         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
81349         governing whether the rest of this patch is active.  By default,
81350         the macro is disabled and the patch has no effect.
81351         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
81352         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
81353         (struct re_pattern_buffer, re_search, re_search_2, re_match):
81354         (re_match_2, re_set_registers): Use the new types.
81355         * lib/regex_internal.h (Idx, re_hashval_t): New types.
81356         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
81357         New macros.
81358         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
81359         (re_string_context_at, bin_tree_t, re_dfastate_t):
81360         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
81361         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
81362         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
81363         (re_string_char_size_at, re_string_wchar_at):
81364         (re_string_elem_size_at):
81365         Use the new types and macros to port to 64-bit hosts.
81366         Use unsigned types for internal values, so that the code
81367         mostly works even for arrays larger than SSIZE_MAX.
81368         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
81369         (search_duplicated_node, calc_eclosure_iter, fetch_number):
81370         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
81371         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
81372         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
81373         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
81374         (calc_inveclosure, parse_dup_op, build_range_exp):
81375         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
81376         (fetch_number, create_token_tree, mark_opt_subexp):
81377         Likewise.
81378         * lib/regex_internal.c (re_string_construct_common,
81379         create_ci_newstate):
81380         (create_cd_newstate, re_string_allocate, re_string_construct):
81381         (re_string_realloc_buffers, build_wcs_upper_buffer):
81382         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
81383         (re_string_reconstruct, re_string_peek_byte_case):
81384         (re_string_fetch_byte_case, re_string_context_at):
81385         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
81386         (re_node_set_init_copy, re_node_set_add_intersect):
81387         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
81388         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
81389         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
81390         (re_acquire_state, re_acquire_state_context, register_state):
81391         Likewise.
81392         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
81393         search_cur_bkref_entry):
81394         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
81395         (re_search_internal, re_search_2_stub, re_search_stub)
81396         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
81397         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
81398         (update_cur_sifted_state, check_dst_limits):
81399         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
81400         (check_subexp_limits, sift_states_bkref, merge_state_array):
81401         (check_subexp_matching_top, get_subexp, get_subexp_sub):
81402         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
81403         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
81404         (expand_bkref_cache, check_node_accept_bytes):
81405         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
81406         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
81407         (acquire_init_state_context, check_halt_node_context):
81408         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
81409         (sift_states_backward, clean_state_log_if_needed):
81410         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
81411         (find_recover_state, transit_state_sb, transit_state_mb):
81412         (transit_state_bkref, build_trtable, match_ctx_clean):
81413         Likewise.
81414         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
81415         to work around an assumption that REG_MISSING is negative.
81416
81417         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
81418         (seek_collating_symbol_entry) [defined _LIBC]:
81419         (lookup_collation_sequence_value) [defined _LIBC]:
81420         (build_range_exp, build_collating_symbol) [defined _LIBC]:
81421         Use prototypes rather than old-style function definitions.
81422         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
81423         (transit_state_sb) [0]:
81424         (find_collation_sequence_value) [defined _LIBC]: Likewise.
81425
81426         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
81427         rm_eo.
81428
81429         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
81430         (optimize_subexps, lower_subexp):
81431         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
81432         since the signed shift might overflow.  Use 1u<<31 instead.
81433         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
81434         Likewise.
81435         * lib/regexec.c (check_dst_limits_calc_pos_1,
81436         check_subexp_matching_top): Likewise.
81437
81438         * lib/regcomp.c (optimize_subexps, lower_subexp):
81439         Use CHAR_BIT rather than 8, for clarity.
81440         * lib/regexec.c (check_dst_limits_calc_pos_1):
81441         (check_subexp_matching_top): Likewise.
81442         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
81443         have to worry about portability issues when shifting it left.
81444         Remove no-longer-needed test for table_size > 0.
81445         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
81446         in a word, as the resulting behavior is undefined.
81447         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
81448         in one case, a <= should have been an <, and in another case the
81449         whole test was missing.
81450         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
81451         the standard name CHAR_BIT.
81452         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
81453         this is not true on one's complement and signed-magnitude hosts.
81454
81455         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
81456         next_last_offset.
81457         (struct re_dfa_t): Remove unused member states_alloc.
81458         * lib/regcomp.c (init_dfa): Don't initialize unused members.
81459
81460 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
81461
81462         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
81463         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
81464         and large-file glibc and in 32-bit large-file Solaris.
81465
81466 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
81467
81468         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
81469         lengths fit in regoff_t; this isn't true if regoff_t is the same
81470         width as size_t.
81471         * lib/regex.c (re_search_internal): 5th arg is LAST_START
81472         (= START + RANGE) instead of RANGE.  This avoids overflow
81473         problems when regoff_t is the same width as size_t.
81474         All callers changed.
81475         (re_search_2_stub): Check for overflow when adding the
81476         sizes of the two strings.
81477         (re_search_stub): Check for overflow when adding START
81478         to RANGE; if it occurs, substitute the extreme value.
81479
81480 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
81481
81482         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
81483
81484 2005-08-31  Jim Meyering  <jim@meyering.net>
81485
81486         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
81487         a pointer-to-const.
81488         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
81489         (register_state): Likewise.
81490         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
81491         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
81492         (group_nodes_into_DFAstates): Likewise.
81493
81494 2005-08-31  Jim Meyering  <jim@meyering.net>
81495
81496         * check-module: Add a FIXME comment.
81497
81498 2005-08-31  Eric Blake  <ebb9@byu.net>
81499
81500         * modules/unistd-safer (Files): Add unistd--.h.
81501         * modules/stdio-safer (Files): Add stdio--.h.
81502
81503 2005-08-31  Derek Price  <derek@ximbiot.com>
81504
81505         * lib/getdelim.c (getdelim): Return EOF on EOF.
81506         Reported by Larry Jones <lawrence.jones@ugs.com>.
81507
81508 2005-08-31  Bruno Haible  <bruno@clisp.org>
81509
81510         Avoid unnecessary diffs in the generated lib/Makefile.am.
81511         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
81512         the generated files.
81513         (func_import): Don't set cmd.
81514
81515 2005-08-31  Bruno Haible  <bruno@clisp.org>
81516
81517         * lib/strstr.c: Include <stddef.h>, for NULL.
81518         * lib/strcasestr.c: Likewise.
81519         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
81520
81521 2005-08-31  Bruno Haible  <bruno@clisp.org>
81522
81523         * gnulib-tool: New option --macro-prefix.
81524         (func_import): Use macro_prefix.
81525         (import): Handle option --macro-prefix.
81526
81527 2005-08-31  Bruno Haible  <bruno@clisp.org>
81528
81529         * gnulib-tool (import): Rename most ac_* variables to cached_*.
81530         Also use new variables cached_lgpl, cached_libtool.
81531
81532 2005-08-31  Bruno Haible  <bruno@clisp.org>
81533
81534         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
81535         always instantiating them.
81536
81537 2005-08-31  Bruno Haible  <bruno@clisp.org>
81538
81539         * gnulib-tool (func_import): Read the previous cached settings
81540         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
81541         earlier added by gnulib but are now dropped. Warn when a gnulib file
81542         overwrites a non-gnulib file.
81543
81544 2005-08-31  Bruno Haible  <bruno@clisp.org>
81545
81546         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
81547         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
81548         projects that don't keep autogenerated files in CVS. Put into
81549         actioncmd only the specified modules, not the transitive closure.
81550
81551 2005-08-31  Bruno Haible  <bruno@clisp.org>
81552
81553         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
81554         Create directories that shall be filled.
81555         (import): Don't look for gl_* macros in configure.ac. Recurse across
81556         all directories containing a gnulib-cache.m4 files, if meaningful.
81557
81558 2005-08-31  Bruno Haible  <bruno@clisp.org>
81559
81560         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
81561         (import): Set seen_libtool when we see gl_LIBTOOL.
81562
81563 2005-08-31  Bruno Haible  <bruno@clisp.org>
81564
81565         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
81566         declaration macro definitions from generated gnulib.m4.
81567
81568 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
81569
81570         * lib/iconvme.h: Add prototype for iconv_alloc.
81571
81572 2005-08-29  Simon Josefsson  <jas@extundo.com>
81573
81574         * lib/iconvme.c: Fix errno.
81575
81576 2005-08-29  Bruno Haible  <bruno@clisp.org>
81577
81578         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
81579         that it works when the directory contains spaces.
81580
81581 2005-08-29  Bruno Haible  <bruno@clisp.org>
81582
81583         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
81584
81585 2005-08-29  Bruno Haible  <bruno@clisp.org>
81586
81587         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
81588         Emit more advice.
81589
81590 2005-08-29  Bruno Haible  <bruno@clisp.org>
81591         and Stepan Kasal  <kasal@ucw.cz>
81592
81593         * check-module: If more parameters are given, check each of them
81594         separately; add more exceptions, as noted by Jim Meyering.
81595         (check_module): New procedure.
81596         (%exempt_header): Now contains all exceptions.
81597
81598 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
81599
81600         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
81601
81602 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
81603
81604         * lib/iconvme.c: Split iconv_string into iconv_alloc.
81605
81606 2005-08-28  Bruno Haible  <bruno@clisp.org>
81607
81608         * m4/gnulib-tool.m4: New file.
81609
81610 2005-08-27  Jim Meyering  <jim@meyering.net>
81611
81612         * modules/unistd-safer (Files): Add pipe-safer.c.
81613         * modules/fcntl-safer (Files): Add creat-safer.c.
81614
81615 2005-08-27  Jim Meyering  <jim@meyering.net>
81616
81617         * m4/stdlib-safer.m4: New file.  From coreutils.
81618         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
81619         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
81620         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
81621         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
81622         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
81623
81624 2005-08-27  Jim Meyering  <jim@meyering.net>
81625
81626         * lib/fopen-safer.c: Merge minor changes from coreutils.
81627         * lib/dup-safer.c: Likewise.
81628         * lib/fd-safer.c: Likewise.
81629
81630         Merge from coreutils.
81631         * lib/stdio--.h: New file.
81632         * lib/stdlib--.h: New file.
81633         * lib/mkstemp-safer.c: New file.
81634
81635         GNU tar needs these.
81636         * lib/pipe-safer.c: New file.
81637         * lib/creat-safer.c: New file.
81638         * lib/fcntl--.h (creat): Define to creat_safer.
81639         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
81640         * lib/unistd--.h (pipe): Define to pipe_safer.
81641         * lib/unistd-safer.h: Declare pipe_safer.
81642
81643 2005-08-26  Simon Josefsson  <jas@extundo.com>
81644
81645         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
81646         Haible <bruno@clisp.org>.
81647
81648 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
81649
81650         * lib/regex_internal.h: Remove all references to
81651         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
81652         or better.
81653         (bitset_not, bitset_merge, bitset_not_merge):
81654         (bitset_mask, re_string_allocate, re_string_construct):
81655         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
81656         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
81657         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
81658         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
81659         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
81660         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
81661         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
81662         (re_acquire_state_context):
81663         Remove unnecessary forward decls.
81664         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
81665         Put __attribute at function definition,
81666         now that the function decl has been removed.
81667         * lib/regex_internal.c (re_string_peek_byte_case):
81668         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
81669         Likewise.
81670
81671 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
81672
81673         * m4/regex.m4: Add AC_PREREQ(2.50).
81674         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
81675
81676 2005-08-25  Simon Josefsson  <jas@extundo.com>
81677
81678         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
81679         __fsetlocking.
81680
81681 2005-08-25  Simon Josefsson  <jas@extundo.com>
81682
81683         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
81684         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
81685         GLIBC specific code.
81686
81687 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
81688
81689         Make regex safe for g++.  This fixes one real bug (an "err"
81690         that should have been "*err").  g++ problem reported by
81691         Sam Steingold.
81692         * lib/regex_internal.h (re_calloc): New macro, consistent with
81693         re_malloc etc.  All callers of calloc changed to use re_calloc.
81694         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
81695         not int.  All callers changed.
81696         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
81697         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
81698         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
81699         (find_recover_state): Change "err" to "*err"; this fixes what
81700         appears to be a real bug.
81701         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
81702         versus int.
81703
81704 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
81705
81706         * modules/regex (Depends-on): Add malloc, since the code
81707         assumes that !malloc(0) means failure.
81708
81709 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
81710
81711         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
81712
81713         alloca modernization/simplification for regex.
81714         * lib/regex.c: Remove portability cruft for alloca.  This no longer
81715         needs to be at the start of the file, and can be moved into
81716         regex_internal.h and simplified.
81717         * lib/regex_internal.h: Include <alloca.h>.
81718         (__libc_use_alloca) [!defined _LIBC]: New macro.
81719         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
81720         now works outside glibc.
81721
81722 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
81723
81724         * config/srclist.txt: Add glibc bugs 1241, 1245.
81725
81726 2005-08-25  Jim Meyering  <jim@meyering.net>
81727
81728         * lib/open-safer.c: Include <config.h>.
81729         Otherwise, we'd lose LARGEFILE support in any file using
81730         e.g. "fcntl--.h"
81731
81732 2005-08-25  Bruno Haible  <bruno@clisp.org>
81733
81734         * m4/minmax.m4: Require autoconf 2.52.
81735         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
81736         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
81737         alternatives of translit over the alphabet.
81738         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
81739
81740 2005-08-24  Simon Josefsson  <jas@extundo.com>
81741
81742         * tests/test-getpass.c: New file.
81743
81744 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
81745
81746         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
81747         for GNU regex features.
81748
81749 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
81750
81751         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
81752         * lib/regex.h (regerror): Likewise.
81753
81754         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
81755         requires this.  (The code never needed it.)
81756
81757         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
81758         All uses of recently-renamed identifiers changed to use the new,
81759         POSIX-compliant names.  The code will build and run just fine
81760         without these changes, but it's better to eat our own dog food
81761         and use the standard-conforming names.
81762
81763         * lib/regex.h: Fix a multitude of POSIX name space violations.
81764         These changes have an effect only for programs that define
81765         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
81766         do not change anything for programs compiled in the normal way.
81767         Also, there is no effect on the ABI.
81768
81769         (_REGEX_SOURCE): New macro.
81770         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
81771         defined and _GNU_SOURCE is not; this fixes a name space violation.
81772
81773         Rename the following macros to obey POSIX requirements.
81774         The old names are still visible as macros if _REGEX_SOURCE is defined.
81775         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
81776         RE_BACKSLASH_ESCAPE_IN_LISTS.
81777         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
81778         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
81779         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
81780         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
81781         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
81782         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
81783         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
81784         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
81785         (REG_INTERVALS): renamed from RE_INTERVALS.
81786         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
81787         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
81788         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
81789         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
81790         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
81791         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
81792         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
81793         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
81794         RE_UNMATCHED_RIGHT_PAREN_ORD.
81795         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
81796         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
81797         (REG_DEBUG): renamed from RE_DEBUG.
81798         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
81799         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
81800         unusual, since we can't clash with the POSIX REG_ICASE.
81801         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
81802         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
81803         (REG_NO_SUB): renamed from RE_NO_SUB.
81804         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
81805         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
81806         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
81807         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
81808         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
81809         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
81810         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
81811         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
81812         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
81813         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
81814         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
81815         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
81816         RE_SYNTAX_POSIX_MINIMAL_BASIC.
81817         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
81818         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
81819         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
81820         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
81821         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
81822         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
81823         (REG_FIXED): Renamed from REGS_FIXED.
81824         (REG_NREGS): Renamed from RE_NREGS.
81825
81826         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
81827         of other REG_* macros, since POSIX says the user is allowed to
81828         #undef these macros selectively.
81829
81830         (reg_errcode_t): Update comment stating what other tables need
81831         to be consistent.
81832
81833         Rename the following enum values to obey POSIX requirements.
81834         The old names are still visible as macros.
81835         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
81836         is not defined, since GNU is supposed to be a superset of POSIX as
81837         much as possible, and since we want reg_errcode_t to be a signed
81838         type for implementation consistency.
81839         (_REG_NOERROR): Renamed from REG_NOERROR.
81840         (_REG_NOMATCH): Renamed from REG_NOMATCH.
81841         (_REG_BADPAT): Renamed from REG_BADPAT.
81842         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
81843         (_REG_ECTYPE): Renamed from REG_ECTYPE.
81844         (_REG_EESCAPE): Renamed from REG_EESCAPE.
81845         (_REG_ESUBREG): Renamed from REG_ESUBREG.
81846         (_REG_EBRACK): Renamed from REG_EBRACK.
81847         (_REG_EPAREN): Renamed from REG_EPAREN.
81848         (_REG_EBRACE): Renamed from REG_EBRACE.
81849         (_REG_BADBR): Renamed from REG_BADBR.
81850         (_REG_ERANGE): Renamed from REG_ERANGE.
81851         (_REG_ESPACE): Renamed from REG_ESPACE.
81852         (_REG_BADRPT): Renamed from REG_BADRPT.
81853         (_REG_EEND): Renamed from REG_EEND.
81854         (_REG_ESIZE): Renamed from REG_ESIZE.
81855         (_REG_ERPAREN): Renamed from REG_ERPAREN.
81856         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
81857         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
81858         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
81859         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
81860
81861         (_REG_RE_NAME, _REG_RM_NAME): New macros.
81862         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
81863         changed.  But support the old name if the new one is not defined
81864         and if _REGEX_SOURCE.
81865
81866         Change the following member names in struct re_pattern_buffer.
81867         The old names are still supported if !_REGEX_SOURCE.
81868         The new names are always supported, regardless of _REGEX_SOURCE.
81869         (re_buffer): Renamed from buffer.
81870         (re_allocated): Renamed from allocated.
81871         (re_used): Renamed from used.
81872         (re_syntax): Renamed from syntax.
81873         (re_fastmap): Renamed from fastmap.
81874         (re_translate): Renamed from translate.
81875         (re_can_be_null): Renamed from can_be_null.
81876         (re_regs_allocated): Renamed from regs_allocated.
81877         (re_fastmap_accurate): Renamed from fastmap_accurate.
81878         (re_no_sub): Renamed from no_sub.
81879         (re_not_bol): Renamed from not_bol.
81880         (re_not_eol): Renamed from not_eol.
81881         (re_newline_anchor): Renamed from newline_anchor.
81882
81883         Change the following member names in struct re_registers.
81884         The old names are still supported if !_REGEX_SOURCE.
81885         The new names are always supported, regardless of _REGEX_SOURCE.
81886         (rm_num_regs): Renamed from num_regs.
81887         (rm_start): Renamed from start.
81888         (rm_end): Renamed from end.
81889
81890         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
81891         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
81892         Prepend __ to parameter names.
81893
81894         Undo yesterday's changes.
81895
81896 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
81897
81898         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
81899         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
81900         lib/regex.c.
81901
81902 2005-08-24  Jim Meyering  <jim@meyering.net>
81903
81904         Sync from coreutils.
81905         * m4/fcntl-safer.m4: New file.
81906
81907         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
81908         and object files for this module.
81909
81910 2005-08-24  Jim Meyering  <jim@meyering.net>
81911
81912         Sync from coreutils.
81913         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
81914
81915 2005-08-24  Jim Meyering  <jim@meyering.net>
81916
81917         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
81918         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
81919
81920 2005-08-24  Jim Meyering  <jim@meyering.net>
81921
81922         * modules/fcntl-safer: New module.
81923         * modules/fts (Depends-on): Add fcntl-safer.
81924         * MODULES.html.sh (File descriptor based Input/Output):
81925         Add fcntl-safer.
81926
81927 2005-08-24  Bruno Haible  <bruno@clisp.org>
81928
81929         Support for unit test modules.
81930         * modules/README: Mention tests modules.
81931         * modules/TEMPLATE-TESTS: New file.
81932         * gnulib-tool: New options --extract-tests-module, --with-tests and
81933         --tests-base (unused for the moment).
81934         (testsbase, inctests): New variables.
81935         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
81936         (func_verify_module): Exclude TEMPLATE-TESTS.
81937         (func_verify_nontests_module, func_verify_tests_module): New functions.
81938         (func_get_dependencies): Add implicit dependency for tests modules.
81939         (func_get_tests_module): New function.
81940         (func_modules_transitive_closure): When --with-tests was specified,
81941         include the unit tests as well, unless explicitly avoided.
81942         (func_emit_lib_Makefile_am): Ignore the tests modules here.
81943         (func_emit_tests_Makefile_am): New function.
81944         (func_create_testdir): When --with-tests was specified, emit a
81945         tests/ directory.
81946         * MODULES.html.sh (Future developments): Update.
81947
81948 2005-08-24  Bruno Haible  <bruno@clisp.org>
81949
81950         * modules/tls-tests: New file.
81951         * tests/test-tls.c: New file, from GNU gettext.
81952
81953 2005-08-24  Bruno Haible  <bruno@clisp.org>
81954
81955         * modules/lock-tests: New file.
81956         * tests/test-lock.c: New file, from GNU gettext.
81957
81958 2005-08-24  Bruno Haible  <bruno@clisp.org>
81959
81960         * lib/lock.h: Add multiple inclusion guard.
81961         * lib/tls.h: Add multiple inclusion guard.
81962
81963 2005-08-24  Bruno Haible  <bruno@clisp.org>
81964
81965         * gnulib-tool: Add support for the --aux-dir option to
81966         --create-testdir, --create-megatestdir, --test, --megatest.
81967         (func_create_testdir, func_create_megatestdir): Optionally emit a
81968         AC_CONFIG_AUX_DIR directive.
81969         (create-testdir, create-megatestdir, test, megatest): Provide a
81970         default value for $auxdir.
81971
81972 2005-08-24  Bruno Haible  <bruno@clisp.org>
81973
81974         * gnulib-tool (import): Use compound statement instead of subshell
81975         where possible.
81976
81977 2005-08-24  Bruno Haible  <bruno@clisp.org>
81978
81979         * gnulib-tool (import): Change --aux-dir default to "build-aux".
81980
81981 2005-08-24  Bruno Haible  <bruno@clisp.org>
81982
81983         * gnulib-tool (func_version): Update.
81984
81985 2005-08-24  Bruno Haible  <bruno@clisp.org>
81986
81987         * gnulib-tool (func_import, func_create_testdir,
81988         func_create_megatestdir): Quote all autoconf macro arguments.
81989
81990 2005-08-24  Bruno Haible  <bruno@clisp.org>
81991
81992         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
81993         option --force, because --force causes the aclocal.m4 of each
81994         subdirectory to be newer than the corresponding config.h.in.
81995
81996 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
81997
81998         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
81999         All contents moved to gl_REGEX.
82000         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
82001         assume that it does.
82002
82003 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
82004
82005         * lib/regex.h (REG_NOSYS)
82006         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
82007         Define, since POSIX requires it as of 2001.
82008         (_REG_ENOSYS)
82009         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
82010         New private symbol, used to keep the enum signed in all cases.
82011         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
82012         Youngman in
82013         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
82014
82015         * lib/regex_internal.c (re_string_skip_chars, register_state):
82016         (calc_state_hash):
82017         Remove forward decls; no longer needed now that we use prototypes.
82018         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
82019         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
82020         (clean_state_log_if_needed): Likewise.
82021
82022 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
82023
82024         * config/srclist.txt: Add glibc bugs 1231-1233.
82025
82026 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
82027
82028         Fix problems reported by Sam Steingold in
82029         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
82030         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
82031         assumed that reg_errcode_t is a signed type, which is not
82032         necessarily true if _XOPEN_SOURCE is not defined.
82033         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
82034         since some compilers warn about it otherwise.
82035
82036 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
82037
82038         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
82039         (init_word_char, create_initial_state, duplicate_node_closure):
82040         (fetch_token, peek_token_bracket, build_range_exp):
82041         (build_collating_symbol): Remove forward decls; no longer needed
82042         now that we use prototypes.
82043
82044         * lib/regcomp.c:
82045         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
82046         (re_compile_fastmap_iter, regcomp, regerror, regfree):
82047         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
82048         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
82049         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
82050         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
82051         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
82052         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
82053         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
82054         (build_range_exp, build_collating_symbol, parse_bracket_exp):
82055         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
82056         (build_charclass, build_charclass_op, fetch_number, create_tree):
82057         (create_token_tree, mark_opt_subexp, duplicate_tree):
82058         Use prototypes rather than old-style definitions.
82059
82060         * lib/regex_internal.c:
82061         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
82062         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
82063         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
82064         (re_string_reconstruct, re_string_peek_byte_case):
82065         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
82066         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
82067         (re_node_set_init_copy, re_node_set_add_intersect):
82068         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
82069         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
82070         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
82071         (re_acquire_state, re_acquire_state_context, register_state):
82072         (create_ci_newstate, create_cd_newstate, free_state):
82073         Likewise.
82074         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
82075         re_search_2):
82076         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
82077         (re_search_internal, prune_impossible_nodes):
82078         (acquire_init_state_context, check_matching, static):
82079         (check_halt_node_context, check_halt_state_context, proceed_next_node):
82080         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
82081         (update_regs, sift_states_backward, build_sifted_states):
82082         (clean_state_log_if_needed, merge_state_array):
82083         (update_cur_sifted_state, add_epsilon_src_nodes):
82084         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
82085         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
82086         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
82087         (find_recover_state, check_subexp_matching_top, transit_state_mb):
82088         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
82089         (check_arrival, check_arrival_add_next_nodes):
82090         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
82091         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
82092         (check_node_accept_bytes, check_node_accept, extend_buffers):
82093         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
82094         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
82095         (sift_ctx_init):
82096         Likewise.
82097
82098         * lib/regex_internal.h:
82099         (re_string_allocate, re_string_construct, re_string_reconstruct):
82100         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
82101         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
82102         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
82103         (re_string_context_at, re_string_peek_byte_case):
82104         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
82105         is defined, since we now use prototypes always.
82106
82107         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
82108         C89 or better.  All uses removed.
82109
82110 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
82111
82112         * config/srclist.txt: Add glibc bugs 1220-1227.
82113
82114 2005-08-20  Jim Meyering  <jim@meyering.net>
82115
82116         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
82117         of unused local, dfa.
82118
82119 2005-08-20  Bruno Haible  <bruno@clisp.org>
82120
82121         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
82122
82123 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
82124
82125         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
82126         (re_node_set_insert_last, re_dfa_add_node):
82127         Rename local variables to avoid GCC shadowing warnings.
82128
82129 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
82130
82131         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
82132         [defined lint]: Suppress bogus uninitialized-variable warnings.
82133
82134         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
82135         and let the caller return REG_ESPACE if out of space.  This
82136         removes an uninitialied-variable warning with GCC 4.0.1, and also
82137         avoids taking the address of a local variable.  All callers
82138         changed.
82139
82140 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
82141
82142         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
82143         $LIBCSRC/posix/regexec.c.
82144         Add glibc bug 1217 for regcomp.c.
82145
82146 2005-08-19  Jim Meyering  <jim@meyering.net>
82147
82148         * lib/regexec.c (proceed_next_node): Redo local variables to
82149         avoid GCC shadowing warnings.
82150
82151 2005-08-18  Bruno Haible  <bruno@clisp.org>
82152
82153         * lib/strstr.c (strstr): Fix return value in multibyte case.
82154         * lib/strcasestr.c (strcasestr): Likewise.
82155
82156 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
82157
82158         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
82159
82160 2005-08-17  Jim Meyering  <jim@meyering.net>
82161
82162         Make the %s format (seconds since the epoch) work for a negative
82163         number and when used with a zero-padded field width, e.g. %015s.
82164
82165         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
82166         label so that it precedes the code to set `digits'.  Otherwise,
82167         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
82168         print `00-22'.  Now, it prints `-0022', as it should.
82169
82170 2005-08-17  Bruno Haible  <bruno@clisp.org>
82171
82172         * modules/strstr (Files): Add m4/mbrtowc.m4.
82173         (Depends-on): Add mbuiter.
82174
82175 2005-08-17  Bruno Haible  <bruno@clisp.org>
82176
82177         * modules/strcasestr: New file.
82178         * MODULES.html.sh (String handling, based on ANSI C 89): Add
82179         strcasestr.
82180
82181 2005-08-17  Bruno Haible  <bruno@clisp.org>
82182
82183         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
82184
82185 2005-08-17  Bruno Haible  <bruno@clisp.org>
82186
82187         * modules/mbuiter: New file.
82188         * MODULES.html.sh (Extended multibyte and wide character utilities):
82189         Add mbuiter.
82190
82191 2005-08-17  Bruno Haible  <bruno@clisp.org>
82192
82193         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
82194         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
82195
82196 2005-08-17  Bruno Haible  <bruno@clisp.org>
82197
82198         * m4/strcasestr.m4: New file.
82199
82200 2005-08-17  Bruno Haible  <bruno@clisp.org>
82201
82202         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
82203         * lib/strstr.c: Completely rewritten, with multibyte locale support.
82204
82205 2005-08-17  Bruno Haible  <bruno@clisp.org>
82206
82207         * lib/strcasestr.h: New file.
82208         * lib/strcasestr.c: New file.
82209
82210 2005-08-17  Bruno Haible  <bruno@clisp.org>
82211
82212         * lib/strcasecmp.c: Use mbuiter.h.
82213
82214 2005-08-17  Bruno Haible  <bruno@clisp.org>
82215
82216         * lib/mbuiter.h: New file.
82217
82218 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
82219
82220         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
82221         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
82222         and gl_GETOPT are both invoked via different paths (as happens
82223         with GNU tar CVS because it uses both argp and getopt), the former
82224         wins.
82225
82226 2005-08-16  Bruno Haible  <bruno@clisp.org>
82227
82228         * modules/tls: New file.
82229         * MODULES.html.sh (Multithreading): Add tls.
82230
82231 2005-08-16  Bruno Haible  <bruno@clisp.org>
82232
82233         * modules/strnlen1: New file.
82234         * MODULES.html.sh (String handling): Add strnlen1.
82235
82236 2005-08-16  Bruno Haible  <bruno@clisp.org>
82237
82238         * modules/strcase (Files): Add m4/mbrtowc.m4.
82239         (Depends-on): Add strnlen1, mbchar.
82240
82241 2005-08-16  Bruno Haible  <bruno@clisp.org>
82242
82243         * modules/mbiter: New file.
82244         * MODULES.html.sh (Extended multibyte and wide character utilities):
82245         Add mbiter.
82246
82247 2005-08-16  Bruno Haible  <bruno@clisp.org>
82248
82249         * modules/mbfile: New file.
82250         * MODULES.html.sh (Extended multibyte and wide character utilities):
82251         Add mbfile.
82252
82253 2005-08-16  Bruno Haible  <bruno@clisp.org>
82254
82255         * modules/mbchar: New file.
82256         * MODULES.html.sh (Extended multibyte and wide character utilities):
82257         New section.
82258
82259 2005-08-16  Bruno Haible  <bruno@clisp.org>
82260
82261         * m4/tls.m4: New file, from GNU gettext.
82262
82263 2005-08-16  Bruno Haible  <bruno@clisp.org>
82264
82265         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
82266         always.
82267         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
82268
82269 2005-08-16  Bruno Haible  <bruno@clisp.org>
82270
82271         * m4/mbiter.m4: New file.
82272
82273 2005-08-16  Bruno Haible  <bruno@clisp.org>
82274
82275         * m4/mbfile.m4: New file.
82276
82277 2005-08-16  Bruno Haible  <bruno@clisp.org>
82278
82279         * m4/mbchar.m4: New file.
82280
82281 2005-08-16  Bruno Haible  <bruno@clisp.org>
82282
82283         * lib/tls.h: New file, from GNU gettext.
82284         * lib/tls.c: New file, from GNU gettext.
82285
82286 2005-08-16  Bruno Haible  <bruno@clisp.org>
82287
82288         * lib/strnlen1.h: New file.
82289         * lib/strnlen1.c: New file.
82290
82291 2005-08-16  Bruno Haible  <bruno@clisp.org>
82292
82293         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
82294         (mbi_init): Update.
82295         (mbi_avail, mbi_advance): Let the iteration end before the terminating
82296         NUL byte, not after it.
82297
82298 2005-08-16  Bruno Haible  <bruno@clisp.org>
82299
82300         * lib/strcase.h (strcasecmp): Add note in comments.
82301         * lib/strncasecmp.c: Use code from strcasecmp.c.
82302         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
82303         (strcasecmp): Work correctly in multibyte locales.
82304
82305 2005-08-16  Bruno Haible  <bruno@clisp.org>
82306
82307         * lib/mbiter.h: New file.
82308
82309 2005-08-16  Bruno Haible  <bruno@clisp.org>
82310
82311         * lib/mbfile.h: New file.
82312
82313 2005-08-16  Bruno Haible  <bruno@clisp.org>
82314
82315         * lib/mbchar.h: New file.
82316         * lib/mbchar.c: New file.
82317
82318 2005-08-16  Bruno Haible  <bruno@clisp.org>
82319
82320         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
82321         the valid ones. Makes the comparison operations transitive:
82322         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
82323         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
82324
82325 2005-08-15  Simon Josefsson  <jas@extundo.com>
82326
82327         * modules/ssize_t (License): Change to 'unlimited'.
82328
82329         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
82330
82331 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
82332
82333         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
82334         Add comments for each pending glibc patch.
82335
82336 2005-08-15  Bruno Haible  <bruno@clisp.org>
82337
82338         * lib/regex.h (__restrict_arr): Don't define to __restrict if
82339         __cplusplus is defined.
82340
82341 2005-08-14  Jim Meyering  <jim@meyering.net>
82342
82343         Sync from coreutils.
82344
82345         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
82346         Use the hash-table-based cycle-detection code not just when
82347         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
82348         Reported by James Youngman in
82349         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
82350         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
82351         FTS_TIGHT_CYCLE_CHECK.
82352         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
82353         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
82354         once again.
82355         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
82356         * lib/fts.c (fd_safer): Remove decl.
82357         Include fcntl--.h rather than unistd-safer.h
82358         (fts_safe_changedir): Don't call fd_safer; no longer needed
82359         now that we include fcntl--.h.
82360
82361 2005-08-12  Simon Josefsson  <jas@extundo.com>
82362
82363         * modules/getndelim2: Use ssize_t module.
82364         * modules/getnline: Likewise.
82365         * modules/safe-read: Likewise.
82366         * modules/xreadlink: Likewise.
82367
82368         * modules/ssize_t: New file.
82369
82370 2005-08-12  Simon Josefsson  <jas@extundo.com>
82371
82372         * m4/readline.m4: Look for termcap, curses or ncurses if required.
82373
82374 2005-08-12  Simon Josefsson  <jas@extundo.com>
82375
82376         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
82377         ssize_t.
82378
82379 2005-08-12  Simon Josefsson  <jas@extundo.com>
82380
82381         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
82382         readline, getdelim and check_version.
82383         (Support for systems lacking ISO C 99: Sizes of integer types):
82384         Add size_max.
82385
82386 2005-08-12  Bruno Haible  <bruno@clisp.org>
82387
82388         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
82389
82390 2005-08-11  Simon Josefsson  <jas@extundo.com>
82391
82392         * modules/readline: New file.
82393
82394         * modules/strnlen (Files): Add strnlen.h.
82395
82396 2005-08-11  Simon Josefsson  <jas@extundo.com>
82397
82398         * m4/readline.m4: New file.
82399
82400 2005-08-11  Simon Josefsson  <jas@extundo.com>
82401
82402         * lib/readline.h, readline.c: New file.
82403
82404 2005-08-11  Simon Josefsson  <jas@extundo.com>
82405
82406         * doc/gnulib.texi (Initial import, Finishing touches): Mention
82407         gl_AVOID.
82408
82409 2005-08-11  Bruno Haible  <bruno@clisp.org>
82410
82411         * lib/strnlen.h (strnlen): Change parameter name to match comment.
82412
82413 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
82414
82415         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
82416
82417 2005-08-10  Simon Josefsson  <jas@extundo.com>
82418
82419         * tests/test-iconvme.c: New file.
82420
82421 2005-08-10  Simon Josefsson  <jas@extundo.com>
82422
82423         * m4/strnlen.m4: New file.
82424
82425         * m4/strndup.m4: Don't check for strnlen declaration, done in
82426         strnlen.m4.
82427
82428 2005-08-10  Simon Josefsson  <jas@extundo.com>
82429
82430         * lib/strndup.c: Use strnlen.h.
82431
82432         * lib/strnlen.h: New file.
82433
82434 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
82435
82436         * README: Typos.
82437
82438 2005-08-02  Simon Josefsson  <jas@extundo.com>
82439
82440         * modules/readline: New file.
82441
82442 2005-08-02  Simon Josefsson  <jas@extundo.com>
82443
82444         * modules/getdelim: New file.
82445
82446         * modules/getline: Rewrite, don't use getndelim2.
82447
82448 2005-08-02  Simon Josefsson  <jas@extundo.com>
82449
82450         * m4/getline.m4: Separate out getdelim stuff into separate module.
82451
82452         * m4/getdelim.m4: New file.
82453
82454 2005-08-02  Simon Josefsson  <jas@extundo.com>
82455
82456         * lib/getline.h, getline.c: Rewrite.
82457
82458         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
82459
82460 2005-07-31  Bruno Haible  <bruno@clisp.org>
82461
82462         * lib/lock.h (gl_lock_initializer): New macro.
82463         (gl_lock_define_initialized): Use it.
82464         (gl_rwlock_initializer): New macro.
82465         (gl_rwlock_define_initialized): Use it.
82466         (gl_recursive_lock_initializer): New macro.
82467         (gl_recursive_lock_define_initialized): Use it.
82468
82469 2005-07-30  Karl Berry  <karl@gnu.org>
82470
82471         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
82472         Report from Ben Pfaff, regarding getopt.
82473
82474 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
82475
82476         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
82477         normal way.
82478         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
82479         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
82480         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
82481         (gl_GETOPT): Use the new macros.  Most of the implementation
82482         is moved to the new macros.  This is for programs like Emacs
82483         that don't want all the functionality of gl_GETOPT.
82484
82485 2005-07-26  Bruno Haible  <bruno@clisp.org>
82486
82487         * m4/lock.m4: Update from GNU gettext.
82488
82489 2005-07-26  Bruno Haible  <bruno@clisp.org>
82490
82491         * lib/lock.h: Update from GNU gettext.
82492         * lib/lock.c: Update from GNU gettext.
82493
82494 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
82495
82496         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
82497         obsolescent AC_TRY_RUN.  Include the default includes files, for
82498         'exit'.
82499
82500 2005-07-24  Bruno Haible  <bruno@clisp.org>
82501
82502         * modules/visibility: New file.
82503         * MODULES.html.sh (Misc): Add visibility.
82504
82505 2005-07-24  Bruno Haible  <bruno@clisp.org>
82506
82507         * m4/visibility.m4: New file.
82508
82509 2005-07-24  Bruno Haible  <bruno@clisp.org>
82510
82511         * doc/visibility.texi: New file.
82512
82513 2005-07-22  Bruno Haible  <bruno@clisp.org>
82514
82515         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
82516         $(ALLOCA_H), redundant through BUILT_SOURCES.
82517         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
82518         redundant through BUILT_SOURCES.
82519         * modules/byteswap (Makefile.am): Remove explicit dependency on
82520         $(BYTESWAP_H), redundant through BUILT_SOURCES.
82521         * modules/fnmatch (Makefile.am): Remove explicit dependency on
82522         $(FNMATCH_H), redundant through BUILT_SOURCES.
82523         * modules/getopt (Makefile.am): Remove explicit dependency on
82524         $(GETOPT_H), redundant through BUILT_SOURCES.
82525         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
82526         redundant through BUILT_SOURCES.
82527         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
82528         redundant through BUILT_SOURCES.
82529         * modules/stdbool (Makefile.am): Remove explicit dependency on
82530         $(STDBOOL_H), redundant through BUILT_SOURCES.
82531         * modules/stdint (Makefile.am): Remove explicit dependency on
82532         $(STDINT_H), redundant through BUILT_SOURCES.
82533         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
82534         Remove explicit dependency on $(SYSEXITS_H).
82535         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
82536
82537 2005-07-18  Simon Josefsson  <jas@extundo.com>
82538
82539         * lib/check-version.c (check_version): Accept identical versions too.
82540
82541 2005-07-18  Bruno Haible  <bruno@clisp.org>
82542
82543         * modules/lock: New file.
82544         * MODULES.html.sh (Multithreading): New section.
82545
82546 2005-07-18  Bruno Haible  <bruno@clisp.org>
82547
82548         * m4/lock.m4: New file, from GNU gettext.
82549
82550 2005-07-18  Bruno Haible  <bruno@clisp.org>
82551
82552         * lib/lock.h: New file, from GNU gettext.
82553         * lib/lock.c: New file, from GNU gettext.
82554
82555 2005-07-18  Bruno Haible  <bruno@clisp.org>
82556
82557         * lib/lock.h (gl_once_t): New type.
82558         (gl_once_define, gl_once): New macros.
82559         * lib/lock.c (fresh_once): New variable.
82560         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
82561         functions.
82562
82563 2005-07-16  Simon Josefsson  <jas@extundo.com>
82564
82565         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
82566         workaround, suggested by Bruno.
82567
82568 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
82569
82570         * modules/xalloc (Depends-on): Add xalloc-die.
82571         * modules/xvasprintf (Depends-on): Add xalloc-die.
82572
82573 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
82574
82575         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
82576         with a minor change.
82577
82578 2005-07-15  Bruno Haible  <bruno@clisp.org>
82579
82580         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
82581         When using lib/poll.c, define poll as rpl_poll.
82582
82583 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
82584
82585         * modules/argp (Depends-on): Remove unlocked-io.
82586
82587 2005-07-14  Derek Price  <derek@ximbiot.com>
82588
82589         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
82590         for glob symlink bug.
82591
82592 2005-07-14  Bruno Haible  <bruno@clisp.org>
82593
82594         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
82595         Instead, test for *_unlocked function declarations directly.
82596
82597 2005-07-11  Simon Josefsson  <jas@extundo.com>
82598
82599         * modules/size_max: New file.
82600
82601         * modules/xsize: Depend on size_max module for size_max.m4.
82602
82603 2005-07-11  Simon Josefsson  <jas@extundo.com>
82604
82605         * lib/size_max.h: New file.
82606
82607 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
82608
82609         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
82610         copyright symbol and the year.
82611         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
82612         (version_etc_va): Use parameterized copyright notice.
82613         Reword to conform to the current GNU coding standards.
82614
82615 2005-07-11  Karl Berry  <karl@gnu.org>
82616
82617         * doc/gnulib.texi (Quoting): new node.
82618         (Initial import): more info, from Patrice.
82619
82620 2005-07-11  Bruno Haible  <bruno@clisp.org>
82621
82622         * gnulib-tool (func_usage): Document option --avoid.
82623         (Command line options): Handle --avoid.
82624         (func_acceptable): New function.
82625         (func_modules_transitive_closure): Use it.
82626
82627 2005-07-11  Bruno Haible  <bruno@clisp.org>
82628
82629         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
82630         Reported by Jim Meyering.
82631
82632 2005-07-10  Bruno Haible  <bruno@clisp.org>
82633
82634         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
82635         Needed when size_t is smaller than 'unsigned int'.
82636         Reported by Paul Eggert.
82637
82638 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
82639
82640         * modules/argp (Depends-on): Add unlocked-io
82641
82642 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
82643
82644         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
82645         block of defines.
82646
82647 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
82648
82649         * config/srclist.txt: Comment out regcomp.c, since we have a porting
82650         fix now.
82651
82652 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
82653         and Paul Eggert  <eggert@cs.ucla.edu>
82654
82655         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
82656         in wint_t, not wchar_t.  Remove now-unnecessary cast.
82657
82658 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
82659
82660         * modules/regex (Files): Add lib/regex_internal.c,
82661         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
82662         (Depends-on): Add extensions.
82663         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
82664
82665 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
82666
82667         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
82668         pathconf.
82669         * m4/same.m4 (gl_SAME): Likewise.
82670         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
82671
82672         * m4/regex.m4: Adjust to new libc regex implementation.
82673         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
82674         all the .c and .h parts of (the new) regex.
82675         Quote the m4 stuff better.
82676         Check for RE_ICASE bug of old gnulib.
82677         Check for REG_STARTEND of recent libc.
82678         Rename local variables from jm_* to gl_*.
82679         Quote operand of "test -f".
82680         Say "recent enough" version of libc, not "version 2".
82681         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
82682         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
82683         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
82684         Remove check for btowc, isascii.
82685         Require AM_LANGINFO_CODESET.
82686
82687 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
82688
82689         * lib/regex.c, regex.h: Sync from libc.
82690         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
82691         * lib/regexec.c:
82692         New files, synced from libc, except that regex_internal.h
82693         currently has a small porting fix.
82694
82695 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
82696
82697         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
82698         regex_internal.c, regexec.c.
82699         Add regex_internal.h too, but as a comment, since the libc version
82700         is currently broken in gnulib mode.
82701
82702 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
82703
82704         Support programs like Emacs that use gnulib but not gettext.
82705         * MODULES.html.sh (Internationalization functions): Add gettext-h.
82706         * modules/gettext-h: New file.
82707         * modules/gettext (Files): Remove lib/gettext.h.
82708         (Depends-on): Add gettext-h.
82709         (Makefile.am): Remove lib_SOURCES.
82710         * modules/argmatch, modules/c-stack, modules/closeout:
82711         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
82712         * modules/execute, modules/file-type, modules/getaddrinfo:
82713         * modules/getopt, modules/human, modules/javacomp:
82714         * modules/javaexec, modules/mkdir-p, modules/obstack:
82715         * modules/openat, modules/pagealign_alloc, modules/pipe:
82716         * modules/quotearg, modules/regex, modules/rpmatch:
82717         * modules/unicodeio, modules/userspec, modules/version-etc:
82718         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
82719         * modules/xsetenv:
82720         Depend on gettext-h, not gettext.
82721
82722 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
82723
82724         * gnulib-tool (func_import): Add support for 'public domain' license.
82725         * modules/alloca, modules/atexit, modules/memmove:
82726         Now public domain, not GPL.
82727         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
82728         * modules/realloc, modules/strerror, modules/strtod:
82729         Now LGPL, not GPL.
82730
82731 2005-07-05  Bruno Haible  <bruno@clisp.org>
82732
82733         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
82734         autoconf CVS. Needed for mingw.
82735
82736 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
82737
82738         Remove the dependency of the strftime module on the tzset module.
82739         * modules/strftime (Depends-on): Remove dependency on tzset.
82740
82741 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
82742
82743         Remove the dependency of the strftime module on the tzset module.
82744         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
82745         gl_FUNC_TZSET_CLOBBER.
82746
82747 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
82748
82749         Remove the dependency of the strftime module on the tzset module.
82750         * lib/strftime.c (my_strftime)
82751         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
82752         Copy the input structure, to work around some of the bug with
82753         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
82754         Solaris releases, you should also use the tzset module, but we won't
82755         require it as a dependency any more since we don't want LGPLed code
82756         to depend on GPLed code.
82757
82758 2005-07-02  Jim Meyering  <jim@meyering.net>
82759
82760         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
82761         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
82762         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
82763         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
82764
82765 2005-07-02  Jim Meyering  <jim@meyering.net>
82766
82767         * lib/backupfile.c (backup_args): Change a `0' to NULL.
82768
82769 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
82770
82771         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
82772         declares only 'struct timespec;' (!).
82773
82774 2005-07-01  Jim Meyering  <jim@meyering.net>
82775
82776         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
82777         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
82778         * lib/save-cwd.c, tempname.c:
82779         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
82780         and don't include <sys/file.h>).
82781
82782 2005-06-29  Jim Meyering  <jim@meyering.net>
82783
82784         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
82785         type name.  Use the variable name instead.
82786         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
82787         Likewise.
82788
82789 2005-06-28  Simon Josefsson  <jas@extundo.com>
82790
82791         * modules/check-version (Files): Add check-version.m4.
82792
82793 2005-06-28  Simon Josefsson  <jas@extundo.com>
82794
82795         * m4/check-version.m4: New file, suggested by Jim Meyering
82796         <jim@meyering.net>.
82797
82798 2005-06-28  Simon Josefsson  <jas@extundo.com>
82799
82800         * lib/check-version.h, lib/check-version.c: New files.
82801
82802 2005-06-28  Simon Josefsson  <jas@extundo.com>
82803
82804         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
82805         collision with global variable.  Better indentation.  Don't
82806         increment buffer pointer beyond buffer end.  Based on comments
82807         from Paul Eggert <eggert@cs.ucla.edu>.
82808
82809         * lib/base64.h: Indent.
82810
82811 2005-06-28  Simon Josefsson  <jas@extundo.com>
82812
82813         * doc/gnulib.texi (Library version handling): New section.
82814
82815 2005-06-28  Jim Meyering  <jim@meyering.net>
82816
82817         * check-module (find_included_lib_files): Hard-code another
82818         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
82819         but modules/fts-lgpl (correctly) does not list those files.
82820
82821         * modules/canonicalize (Files): Add lib/pathmax.h.
82822
82823 2005-06-25  Simon Josefsson  <jas@extundo.com>
82824
82825         * modules/check-version: New file.
82826
82827 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
82828
82829         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
82830         initializer of struct addrinfo, as an indication that we don't
82831         care how many members the structure has.
82832
82833 2005-06-24  Derek Price  <derek@ximbiot.com>
82834         and Bruno Haible  <bruno@clisp.org>
82835
82836         Remove stat module & update lstat.
82837         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
82838         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
82839         * m4/stat.m4: Remove this file.
82840
82841 2005-06-24  Derek Price  <derek@ximbiot.com>
82842         and Bruno Haible  <bruno@clisp.org>
82843
82844         Remove stat module & update lstat.
82845         * lib/stat.c: Remove this file...
82846         (slash_aware_lstat): ...moving this content and its support...
82847         * lib/lstat.c (rpl_lstat): ...into here.
82848         * lib/lstat.h: New file.
82849
82850 2005-06-24  Derek Price  <derek@ximbiot.com>
82851         and Bruno Haible  <bruno@clisp.org>
82852
82853         Remove stat module & update lstat.
82854         * config/srclist.txt (libc sources): Remove stat.
82855
82856 2005-06-24  Derek Price  <derek@ximbiot.com>
82857         and Bruno Haible  <bruno@clisp.org>
82858
82859         Remove stat module & update lstat.
82860         * MODULES.html.sh (stat): Remove.
82861         * MODULES.html: Regenerated.
82862         * modules/lstat (Description): Correct function name.
82863         (Files): Add "lstat.h".
82864         (Depends-on): Remove stat, add xalloc, stat-macros.
82865         * modules/stat: Remove this file.
82866         (Include): Add "lstat.h", remove <sys/stat.h>.
82867
82868 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
82869
82870         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
82871         (ranged_convert): Don't save conversion in a temporary struct.
82872         This causes a warning with GCC 4.0.0, and anyway in the typical
82873         case it's not worth the extra 100 bytes or so of code.
82874         (ranged_convert, __mktime_internal): When calling a function via a
82875         pointer P, use P () rather than (*P) (), as we now assume C89 or
82876         better.
82877
82878 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
82879
82880         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
82881         "who -r" failed to give output.  Problem reported by Tim Waugh.
82882
82883         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
82884         (xcalloc): Use it to avoid needless tests.
82885         Problem reported by Jim Meyering.
82886
82887 2005-06-20  Derek Price  <derek@ximbiot.com>
82888
82889         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
82890         unnecessary for Autoconfs > 2.59c.
82891
82892 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
82893
82894         * lib/argp.h (__option_is_short): Check upper limit of
82895         __key. Isprint() requires its argument to have the value
82896         of an unsigned char or EOF.
82897
82898 2005-06-16  Jim Meyering  <jim@meyering.net>
82899
82900         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
82901         when either N or S is zero.
82902
82903 2005-06-16  Derek Price  <derek@ximbiot.com>
82904
82905         * m4/bison.m4: Declare YACC & YFLAGS precious.
82906
82907 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
82908
82909         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
82910         multibyte string or pattern, fall back on unibyte matching.
82911         Problem reported by James Youngman.
82912
82913 2005-06-08  Bruno Haible  <bruno@clisp.org>
82914
82915         * modules/csharpcomp: New file.
82916         * MODULES.html.sh (C#): Add csharpcomp.
82917
82918 2005-06-08  Bruno Haible  <bruno@clisp.org>
82919
82920         * m4/csharpcomp.m4: New file, from GNU gettext.
82921
82922 2005-06-08  Bruno Haible  <bruno@clisp.org>
82923
82924         * lib/csharpcomp.h: New file, from GNU gettext.
82925         * lib/csharpcomp.c: New file, from GNU gettext.
82926         * lib/csharpcomp.sh.in: New file, from GNU gettext.
82927
82928 2005-06-08  Bruno Haible  <bruno@clisp.org>
82929
82930         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
82931         warning on mingw.
82932
82933 2005-06-07  Derek Price  <derek@ximbiot.com>
82934
82935         Sync from CVS.
82936         * lib/glob_.h: Indent nested #ifdef.
82937
82938 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
82939
82940         Sync from coreutils.
82941         Use "file name" when talking about file names, instead of "filename"
82942         or "path", as per the GNU coding standards.
82943         * lib/mkdir-p.c: Renamed from makepath.c.
82944         (make_dir_parents): Renamed from make_path.  All callers changed.
82945         * lib/mkdir-p.h: Likewise.  All includers changed.
82946         * lib/filenamecat.c: Renamed from path-concat.c.
82947         (file_name_concat): Renamed from path_concat.  All callers changed.
82948         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
82949         * lib/filenamecat.h: Likewise.  All includers changed.
82950         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
82951         in comments or local variable names.
82952         * lib/basename.c: Likewise.
82953         * lib/canonicalize.c, canonicalize.h: Likewise.
82954         * lib/dirname.c, dirname.h: Likewise.
82955         * lib/euidaccess.c: Likewise.
82956         * lib/exclude.c: Likewise
82957         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
82958         * lib/fsusage.c, fsuage.h: Likewise.
82959         * lib/fts.c, fts_.h: Likewise.
82960         * lib/getcwd.c: Likewise.
82961         * lib/getloadavg.c: Likewise.
82962         * lib/mkstemp.c: Likewise.
82963         * lib/mountlist.c, mountlist.h: Likewise.
82964         * lib/openat.c, openat.h: Likewise.
82965         * lib/readlink-stub.c: Likewise.
82966         * lib/readutmp.c, readutmp.h: Likewise.
82967         * lib/rename.c: Likewise.
82968         * lib/rmdir.c: Likewise.
82969         * lib/same.c: Likewise.
82970         * lib/savedir.c: Likewise.
82971         * lib/stripslash.c: Likewise.
82972         * lib/tempname.c: Likewise.
82973         * lib/xreadlink.c: Likewise.
82974         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
82975         All uses changed.
82976         * lib/exclude.h: Likewise.
82977
82978         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
82979         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
82980         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
82981         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
82982         * lib/pathmax.h: Include <limits.h> unconditionally, since other
82983         files have been getting away with it for years (MORE/BSD 4.3
82984         is extinct now).
82985         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
82986         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
82987
82988         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
82989         Define to 256, not 255, as per modern POSIX.
82990
82991 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
82992
82993         Sync from coreutils.
82994         Use "file name" when talking about file names, instead of "filename"
82995         or "path", as per the GNU coding standards.
82996         * MODULES.html.sh: mkdir-p renamed from makepath.
82997         filenamecat renamed from path-concat.
82998         * modules/filenamecat: Renamed from modules/path-concat.
82999         (Files): filenamecat.h and filenamecat.c renamed from
83000         path-concat.h and path-concat.c.
83001         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
83002         (Include): filenamecat.h, not path-concat.h.
83003         * modules/mkdir-p: Renamed from modules/makepath.
83004         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
83005         makepath.c.
83006         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
83007         (Include): mkdir-p.h, not makepath.h.
83008
83009 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
83010
83011         Sync from coreutils.
83012         * m4/mkdir-p.m4: Renamed from makepath.m4.
83013         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
83014         Rename files from makepath.c to mkdir-p.c, and from
83015         makepath.h to mkdir-p.h.
83016         * m4/filenamecat.m4: Renamed from path-concat.m4.
83017         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
83018         Rename files from path-concat.c to filenamecat.c,
83019         and from path-concat.h to filenamecat.h.
83020         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
83021         "file name" in local variables or comments.
83022         * m4/rename.m4: Likewise.
83023
83024 2005-06-01  Bruno Haible  <bruno@clisp.org>
83025
83026         * modules/csharpexec: New file.
83027         * MODULES.html.sh (C#): New section.
83028
83029 2005-06-01  Bruno Haible  <bruno@clisp.org>
83030
83031         * m4/csharp.m4: New file, from GNU gettext.
83032         * m4/csharpexec.m4: New file, from GNU gettext.
83033
83034 2005-06-01  Bruno Haible  <bruno@clisp.org>
83035
83036         * lib/csharpexec.h: New file, from GNU gettext.
83037         * lib/csharpexec.c: New file, from GNU gettext.
83038         * lib/csharpexec.sh.in: New file, from GNU gettext.
83039
83040 2005-05-31  Derek Price  <derek@ximbiot.com>
83041             Paul Eggert  <eggert@cs.ucla.edu>
83042
83043         Sync from cvs.
83044         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
83045
83046 2005-05-31  Derek Price  <derek@ximbiot.com>
83047             Paul Eggert  <eggert@cs.ucla.edu>
83048
83049         Sync from cvs.
83050         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
83051
83052 2005-05-29  Derek Price  <derek@ximbiot.com>
83053
83054         * config/srclist.txt (glob_.h, glob.c): Add these files.
83055
83056 2005-05-29  Derek Price  <derek@ximbiot.com>
83057
83058         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
83059         * modules/glob: New file.
83060         * modules/getlogin_r: Add link to POSIX spec in description.
83061
83062 2005-05-29  Derek Price  <derek@ximbiot.com>
83063             Paul Eggert  <eggert@cs.ucla.edu>
83064
83065         * m4/glob.m4: New file.
83066
83067 2005-05-29  Derek Price  <derek@ximbiot.com>
83068             Paul Eggert  <eggert@cs.ucla.edu>
83069
83070         * lib/glob_.h, lib/glob.c: New files.
83071
83072 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
83073
83074         * modules/fts (Files): Remove m4/inttypes-pri.m4.
83075         * modules/fts-lgpl (Depends-on): Remove gettext.
83076
83077 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
83078
83079         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
83080         and don't require gt_INTTYPES_PRI.
83081
83082 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
83083
83084         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
83085
83086         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
83087         the configuration hassle isn't worth it.
83088         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
83089         (LONGEST_MODIFIER, PRIuMAX): Remove.
83090
83091 2005-05-27  Bruno Haible  <bruno@clisp.org>
83092
83093         * lib/getlogin_r.h: Remove second include of <stddef.h>.
83094
83095 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
83096
83097         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
83098         _POSIX_PTHREAD_SEMANTICS for Solaris.
83099
83100 2005-05-25  Derek Price  <derek@ximbiot.com>
83101
83102         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
83103
83104 2005-05-25  Derek Price  <derek@ximbiot.com>
83105             Paul Eggert  <eggert@cs.ucla.edu>
83106
83107         * modules/getlogin_r, m4/getlogin_r.m4: New files.
83108         * lib/getlogin_r.c, getlogin_r.h: New files.
83109
83110 2005-05-25  Bruno Haible  <bruno@clisp.org>
83111             Derek Price  <derek@ximbiot.com>
83112
83113         * lib/getlogin_r.h: Simplify API documentation.
83114
83115 2005-05-23  Derek Price  <derek@ximbiot.com>
83116
83117         * modules/minmax (Files): Add m4/minmax.m4.
83118         (configure.ac): Add gl_MINMAX.
83119
83120 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
83121
83122         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
83123         so that unistd-safer.h (GPL'ed code) need not be included.
83124
83125 2005-05-22  Bruno Haible  <bruno@clisp.org>
83126
83127         * m4/minmax.m4: New file.
83128         Based on a patch by Derek Price <derek@ximbiot.com>.
83129
83130 2005-05-22  Bruno Haible  <bruno@clisp.org>
83131
83132         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
83133         (INT64_MIN): Fix definition.
83134         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
83135
83136         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
83137         NEED_SIGNED_INT_TYPES.
83138
83139         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
83140         HAVE_SYSTEM_INTTYPES.
83141
83142 2005-05-22  Bruno Haible  <bruno@clisp.org>
83143
83144         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
83145         Also include <sys/param.h> if it defines MIN, MAX.
83146         Based on a patch by Derek Price <derek@ximbiot.com>.
83147
83148 2005-05-21  Jim Meyering  <jim@meyering.net>
83149
83150         * modules/fts (Files): Add m4/inttypes-pri.m4.
83151         (Depends-on): Add lstat and remove gettext.  Alphabetize.
83152
83153 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
83154
83155         New fts module.
83156         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
83157         (setup_dir, free_dir): New functions.
83158         (enter_dir, leave_dir): Define trivial
83159         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
83160         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
83161         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
83162         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
83163         Move to fts-cycle.c.
83164         (fts_open): Use setup_dir.
83165         (fts_close): Use free_dir.
83166         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
83167         This adds a label and some gotos, but the alternatives were messier.
83168         Check for memory allocation failure when entering a dir.
83169         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
83170         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
83171         (FTS): New member fts_cycle, that is a union that contains the
83172         old active_dir_ht and cycle_state.  All uses changed to mention
83173         fts_cycle.ht and fts_cycle.state.
83174         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
83175         fts.c, with the following changes:
83176         (setup_dir, free_dir): New functions.
83177         (enter_dir): Now returns bool.  Return true if successful, false
83178         if memory exhausted.  All callers changed.
83179         Do not bother partly cleaning up on
83180         memory allocation failure; that is free_dir's job.
83181         However, free ad if hash_insert fails, to avoid memory leak.
83182         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
83183         fts->fts_options to see which union member to use.
83184
83185 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
83186
83187         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
83188         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
83189
83190 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
83191
83192         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
83193
83194 2005-05-20  Jim Meyering  <jim@meyering.net>
83195
83196         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
83197         Now a macro, to pacify GCC.
83198
83199 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
83200
83201         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
83202         of -1.
83203
83204 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
83205
83206         * lib/chown.c (rpl_chown): Return -1 on failure.
83207
83208 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
83209
83210         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
83211         Don't check for stddef.h.
83212         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
83213         don't use its results.
83214         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
83215         since we include them unconditionally.  Don't require
83216         AM_STDBOOL_H, since stdbool is a prerequisite.
83217         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
83218         since we assume C89 or better.
83219         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
83220         as we don't use their results.
83221         Don't check for fchdir, memmove, memset, strrchr, as we use
83222         them unconditionally.
83223         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
83224         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
83225
83226 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
83227
83228         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
83229         Include <stddef.h> unconditionally, since we assume C89 now.
83230         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
83231         * lib/fts.c: Include fts_.h first, to check interface.
83232         Do not include intprops.h; no longer needed.
83233         Include cycle-check.h and hash.h, since fts_.h no longer does.
83234         Remove unnecessary casts of closedir to void.
83235         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
83236         decide whether to decrement nlinks.
83237         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
83238         (FTS): Use struct hash_table * instead of Hash_table, so that
83239         we no longer need to include hash.h here.
83240
83241 2005-05-18  Jim Meyering  <jim@meyering.net>
83242
83243         * modules/dirfd (License): Change to LGPL.  Most of the code
83244         is already in the public domain.
83245
83246 2005-05-18  Jim Meyering  <jim@meyering.net>
83247
83248         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
83249         Reported by Yoann Vandoorselaere.
83250
83251 2005-05-17  Jim Meyering  <jim@meyering.net>
83252
83253         * m4/fts.m4: New file, from coreutils.
83254
83255 2005-05-17  Jim Meyering  <jim@meyering.net>
83256
83257         * lib/fts.c, lib/fts_.h: New files, from coreutils.
83258
83259 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
83260
83261         Sync from coreutils.
83262         * m4/unlinkdir.m4: New file.
83263
83264 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
83265
83266         Sync from coreutils.
83267         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
83268         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
83269         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
83270         White space changes only.
83271         * lib/makepath.c (make_path): Port to hosts where leading "//" is
83272         special.
83273         * lib/yesno.c: Include getline.h, not ctype.h.
83274         (yesno): Don't remove leading white space; POSIX doesn't allow it.
83275         Use getline to remove arbitrary restriction on response length.
83276
83277 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
83278
83279         * config/srclist-update: Spell out "Street" in FSF postal
83280         mail address; this is the style the FSF seems to prefer.
83281
83282         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
83283         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
83284         this updates FSF postal mail address.
83285
83286         Sync from coreutils.
83287         * modules/unlinkdir: New file.
83288         * modules/yesno (Depends-on): Add getline.
83289         * MODULES.html.sh (File system functions): Add unlinkdir.
83290
83291 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
83292
83293         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
83294         lib/strsep.h:
83295         Change the initial comment to refer to GPL, not LGPL.
83296         gnulib-tool will change it to LGPL as needed.
83297
83298         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
83299         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
83300         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
83301         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
83302         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
83303         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
83304         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
83305         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
83306         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
83307         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
83308         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
83309         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
83310         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
83311         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
83312         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
83313         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
83314         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
83315         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
83316         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
83317         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
83318         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
83319         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
83320         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
83321         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
83322         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
83323         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
83324         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
83325         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
83326         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
83327         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
83328         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
83329         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
83330         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
83331         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
83332         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
83333         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
83334         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
83335         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
83336         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
83337         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
83338         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
83339         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
83340         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
83341         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
83342         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
83343         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
83344         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
83345         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
83346         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
83347         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
83348         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
83349         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
83350         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
83351         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
83352         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
83353         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
83354         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
83355         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
83356         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
83357         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
83358         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
83359         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
83360         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
83361         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
83362         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
83363         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
83364         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
83365         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
83366         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
83367         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
83368         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
83369         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
83370         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
83371         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
83372         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
83373         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
83374         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
83375         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
83376         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
83377         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
83378         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
83379         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
83380         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
83381         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
83382         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
83383         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
83384         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
83385         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
83386         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
83387         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
83388         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
83389         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
83390         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
83391         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
83392         lib/yesno.c, lib/yesno.h:
83393         Update FSF postal mail address.
83394
83395 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
83396
83397         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
83398         tests/test-memmem.c, tests/test-stpncpy.c:
83399         Update FSF postal mail address.
83400
83401 2005-05-13  Bruno Haible  <bruno@clisp.org>
83402
83403         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
83404         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
83405         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
83406         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
83407         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
83408         Add support for 64-bit integers in the MSVC compiler.
83409
83410 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83411
83412         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
83413
83414 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
83415
83416         * gnulib-tool (func_import): Sort and uniquify recommended includes.
83417
83418 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
83419
83420         * doc/getdate.texi (General date syntax): Don't say that date
83421         date --iso-8601=ns generates acceptable dates; it doesn't yet.
83422         Problem reported by Nic Ferrier.
83423
83424 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83425
83426         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
83427         specified in ai_socktype. Fix invalid ai_protocol
83428         check. ai_protocol is usually set to 0 or depending on
83429         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
83430         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
83431         ai_socktype / ai_protocol in the returned addrinfo structure.
83432
83433 2005-05-10  Simon Josefsson  <jas@extundo.com>
83434
83435         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
83436         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
83437
83438 2005-05-10  Karl Berry  <karl@gnu.org>
83439
83440         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
83441         (from http://www.gnu.org/licenses).
83442         * doc/COPYING.LIB: also rename to COPYING.LESSER.
83443         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
83444         fdl.texi suffices.
83445
83446 2005-05-10  Karl Berry  <karl@gnu.org>
83447
83448         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
83449         (COPYING.DOC): remove.
83450
83451         * config/srclist-update: new FSF address.
83452
83453 2005-05-10  Derek Price  <derek@ximbiot.com>
83454
83455         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
83456         possible.
83457
83458 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83459             Bruno Haible  <bruno@clisp.org>
83460
83461         * modules/inet_ntop: New file.
83462         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
83463         inet_ntop.
83464
83465 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83466             Bruno Haible  <bruno@clisp.org>
83467
83468         * m4/inet_ntop.m4: New file.
83469
83470 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83471             Bruno Haible  <bruno@clisp.org>
83472
83473         * lib/inet_ntop.h: New file.
83474         * lib/inet_ntop.c: New file, from glibc with modifications.
83475
83476 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
83477
83478         * modules/time_r (License): Change to LGPL.
83479         * modules/extensions (License): Change to LGPL.  Actually,
83480         the license is more permissive than that, but currently gnulib-tool
83481         doesn't know how to handle more-permissive licenses.
83482
83483         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
83484         Problem reported by Dave Love.
83485
83486 2005-05-08  Jim Meyering  <jim@meyering.net>
83487
83488         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
83489         blank.
83490
83491 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
83492
83493         * modules/argmatch (Depends-on): Add stdbool.
83494         * modules/backupfile (Depends-on): Likewise.
83495         * modules/chdir-long (Depends-on): Likewise.
83496         * modules/closeout (Depends-on): Likewise.
83497         * modules/cycle-check (Depends-on): Likewise.
83498         * modules/dirname (Depends-on): Likewise.
83499         * modules/fnmatch (Depends-on): Likewise.
83500         * modules/fsusage (Depends-on): Likewise.
83501         * modules/fwriteerror (Depends-on): Likewise.
83502         * modules/getcwd (Depends-on): Likewise.
83503         * modules/getloadavg (Depends-on): Likewise.
83504         * modules/hard-locale (Depends-on): Likewise.
83505         * modules/makepath (Depends-on): Likewise.
83506         * modules/mountlist (Depends-on): Likewise.
83507         * modules/nanosleep (Depends-on): Likewise.
83508         * modules/posixtm (Depends-on): Likewise.
83509         * modules/quotearg (Depends-on): Likewise.
83510         * modules/readtokens (Depends-on): Likewise.
83511         * modules/readtokens0 (Depends-on): Likewise.
83512         * modules/readutmp (Depends-on): Likewise.
83513         * modules/save-cwd (Depends-on): Likewise.
83514         * modules/strftime (Depends-on): Likewise.
83515         * modules/userspec (Depends-on): Likewise.
83516         * modules/utimecmp (Depends-on): Likewise.
83517         * modules/xgetcwd (Depends-on): Likewise.
83518         * modules/xnanosleep (Depends-on): Likewise.
83519         * modules/xstrtod (Depends-on): Likewise.
83520         * modules/yesno (Depends-on): Likewise.
83521
83522 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
83523
83524         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
83525         needless checks.
83526
83527 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
83528
83529         Merge from coreutils.  Among other things,
83530         add bulletproofing for cases where stdin, stdout, or stderr are closed.
83531         * lib/fd-safer.c: New file.
83532         * lib/fcntl-safer.h, open-safer.c: Remove.
83533         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
83534         * lib/dup-safer.c: Include unistd-safer.h first.
83535         Don't include errno.h.
83536         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
83537         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
83538         * lib/file-type.c: Rely on file-type.h change.
83539         * lib/getloadavg.c: Include unistd-safer.h.
83540         (getloadavg): Use safer open.
83541         * lib/getusershell.c: Include "stdio-safer.h".
83542         (getusershell): Use safer fopen.
83543         * lib/long-options.c (long_options): Use NULL rather than 0.
83544         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
83545         'free'.
83546         * lib/modechange.c: Likewise.
83547         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
83548         (MODE_DONE): New constant.
83549         (struct mode_change): Remove 'next' member.
83550         (make_node_op_equals): New function; like the old one of the
83551         same name, except it allocates an array.
83552         (mode_compile, mode_create_from_ref): Use it.
83553         (mode_compile): Allocate result as an array, not a linked list.
83554         Parse octal string ourself, so that we catch mistakes like "+0".
83555         (mode_adjust): Arg is an array, not a linked list.
83556         * lib/modechange.c: Include stat-macros.h, xalloc.h.
83557         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
83558         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
83559         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
83560         Remove.  This is now stat-macros.h's job.
83561         (talloc): Remove.  All callers replaced by xalloc, so that
83562         our invokers don't have to worry about reporting memory failures.
83563         (make_node_op_equals): Remove.
83564         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
83565         New constants.
83566         (struct mode_change): Moved here from modechange.h.
83567         (mode_append_entry): Remove.
83568         (mode_compile): Remove MASKED_OPS arg, since it encouraged
83569         apps to have incorrect behavior.  Use simpler algorithm for head
83570         and tail.  Don't futz with umask; that's now the job of mode_adjust.
83571         Detect more invalid usages rather than having somewhat-random behavior.
83572         Don't insert an "a=" action, as that leads to incorrect behavior.
83573         (mode_compile, mode_create_from_ref): Return NULL on error instead
83574         of an enum, since now there's only one way to have an error.  All
83575         callers changed.
83576         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
83577         at the correct time.  Simplify calculation of "+u" and its ilk.
83578         Don't mishandle "+X".
83579         (mode_free): Remove "register" and localize decls.
83580         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
83581         (struct mode_change): Move to modechange.c; callers don't
83582         need to see this stuff.
83583         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
83584         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
83585         (mode_change, mode_adjust): Reflect the new signatures noted above.
83586         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
83587         that might redefine system include files.
83588         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
83589         (my_usleep): Use NULL rather than (void *) 0.
83590         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
83591         Use siginterrupt to specify that system calls should be interrupted.
83592         (rpl_nanosleep): Move initialization of suspended closer to call of
83593         my_usleep.
83594         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
83595         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
83596         (desirable_utmp_entry): New function.
83597         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
83598         using x2nrealloc, to simplify logic.
83599         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
83600         size calculation.  Do not assume utmp file is a regular file.
83601         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
83602         (READ_UTMP_CHECK_PIDS): New constant.
83603         * lib/save-cwd.c: Include unistd-safer.h.
83604         (save_cwd): Use fd_safer.
83605         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
83606         [!_LIBC] Include "stat-macros.h" instead.
83607         * lib/unistd-safer.h (fd_safer): New decl.
83608
83609 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
83610
83611         * modules/getloadavg (Depends-on): Add unistd-safer.
83612         * modules/getusershell (Depends-on): Add stdio-safer.
83613         * modules/lstat (Depends-on): Remove xalloc.
83614         * modules/mkstemp (Depends-on): Add stat-macros.
83615         * modules/modechange (Depends-on): Remove xstrtol.
83616         Add stat-macros, xalloc.
83617         * modules/save-cwd (Depends-on): Add unistd-safer.
83618         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
83619         * modules/unistd-safer (Files): Add lib/fd-safer.c
83620         (Makefile.am): Remove lib_SOURCES.
83621
83622         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
83623         Remove fcntl-safer; unistd-safer supersedes it.
83624
83625 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
83626
83627         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
83628         AC_HEADER_STAT.
83629         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
83630         (gl_PREREQ_CHOWN): Remove.
83631         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
83632         it.  Don't require AC_HEADER_STAT.
83633         (gl_PREREQ_LSTAT): Remove.
83634         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
83635         Don't require AC_HEADER_STAT.
83636         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
83637         (gl_PREREQ_RMDIR): Remove.
83638         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
83639         mention stat-macros.h or AC_HEADER_STAT, since we'll make
83640         the stat-macros module a prerequisite.
83641         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
83642         * m4/filemode.m4 (gl_FILEMODE): Likewise.
83643         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
83644         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
83645         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
83646         variable names.
83647         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
83648         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
83649         variable prefixes.
83650         * m4/fcntl-safer.m4: Remove.
83651         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
83652         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
83653         Invoke gl_PREREQ_FD_SAFER.
83654         (gl_PREREQ_FD_SAFER): New macro.
83655         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
83656         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
83657         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
83658         Remove duplicate call to AC_LIBOBJ(readutmp).
83659         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
83660
83661         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
83662         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
83663
83664 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
83665
83666         * MODULES.html.sh (Misc): Add byteswap.
83667
83668 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
83669
83670         * modules/getcwd (Depends-on): Add extensions.
83671         * modules/openat (Depends-on): Likewise.
83672
83673 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
83674
83675         * modules/byteswap: New file.
83676
83677 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
83678
83679         * m4/byteswap.m4: New file.
83680
83681 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
83682
83683         * lib/byteswap_.h: New file.
83684
83685 2005-04-25  Karl Berry  <karl@gnu.org>
83686
83687         * m4/gettext.m4: Update from GNU gettext 0.14.4.
83688
83689 2005-04-25  Albert Chin  <china@thewrittenword.com>
83690
83691         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
83692         Toolkit C bug.
83693
83694 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
83695
83696         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
83697         (func_ln_if_changed): Remove forcibly for no error message
83698         in case file does not exist.
83699
83700 2005-04-19  Simon Josefsson  <jas@extundo.com>
83701
83702         * gnulib-tool (Options): Make --symlink mean --symbolic.
83703
83704 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
83705
83706         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
83707
83708 2005-04-16  Simon Josefsson  <jas@extundo.com>
83709
83710         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
83711
83712 2005-04-15  Simon Josefsson  <jas@extundo.com>
83713
83714         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
83715
83716 2005-04-15  Simon Josefsson  <jas@extundo.com>
83717
83718         * gnulib-tool: Rename --symlink to --symbolic.
83719
83720 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
83721
83722         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
83723         symbolic links to files instead of copying/moving.  Add --aux-dir,
83724         specifying directory relative --dir where auxiliary build tools
83725         are placed.
83726
83727 2005-04-14  Bruno Haible  <bruno@clisp.org>
83728
83729         * modules/allocsa (License): Change to LGPL.
83730         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
83731
83732 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
83733
83734         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
83735         that "UTC +1 second" continues to work.  Problem reported
83736         by Dmitry V. Levin.
83737         (relunit_snumber): New rule.
83738         (relunit): Use it.
83739
83740 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
83741
83742         * lib/getdate.y (universal_time_zone_table): New constant.
83743         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
83744         universal_time_zone_table.
83745         (lookup_zone): Prefer universal_time_zone_table to
83746         local_time_zone_table, so that "GMT" time stamps are allowed in
83747         London during the summer.  Problem reported by Ian Abbott.
83748
83749 2005-04-12  Jim Meyering  <jim@meyering.net>
83750
83751         * lib/human.c (humblock): Set *options even when returning due to
83752         xstrtoumax conversion failure.  Thanks to a used-uninitialized
83753         warning from gcc-4.
83754
83755 2005-04-09  Jim Meyering  <jim@meyering.net>
83756
83757         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
83758         -Wuninitialized: initialize tm0.tm_year.
83759
83760 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
83761
83762         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
83763         count, since there's no maximum.  All uses changed.
83764         Add member dsts_seen.
83765         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
83766         not being INT_MAX.
83767         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
83768         Use pc_rels_seen to decide whether a date is absolute.
83769
83770         * lib/getdate.y (number): Don't overwrite year.
83771         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
83772         check.
83773
83774 2005-04-02  Simon Josefsson  <jas@extundo.com>
83775
83776         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
83777         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
83778
83779 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
83780
83781         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
83782         where no absolute path name can be longer than PATH_MAX.
83783
83784 2005-03-27  Jim Meyering  <jim@meyering.net>
83785
83786         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
83787
83788 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
83789
83790         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
83791         "one's complement" -> "ones' complement" in comment, as per Knuth.
83792         "value of type" -> "type or expression" in comment.
83793         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
83794
83795 2005-03-26  Jim Meyering  <jim@meyering.net>
83796
83797         Comment nits.
83798         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
83799         Correct typos: s/or/of/.
83800
83801 2005-03-26  Jim Meyering  <jim@meyering.net>
83802
83803         * modules/check-include-files: Move to ../ and rename to...
83804         * check-module: ...this.
83805
83806 2005-03-25  Jim Meyering  <jim@meyering.net>
83807
83808         * modules/xvasprintf (Files): Add xalloc.h.
83809
83810 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
83811
83812         * modules/gettext (Files): config/config.rpath ->
83813         build-aux/config.rpath
83814         * modules/iconv (Files): Likewise.
83815         Problem reported by Oskar Liljeblad.
83816
83817 2005-03-23  Jim Meyering  <jim@meyering.net>
83818
83819         * modules/check-include-files: New script to check for
83820         missing dependencies, multiple includes, etc.
83821
83822         * modules/c-strtold (Depends-on): Add xalloc.
83823         * modules/c-strtod (Depends-on): Add xalloc.
83824         * modules/hash (Depends-on): Add xalloc.
83825         (Files): Remove lib/xalloc.h.
83826
83827         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
83828         * modules/userspec (Files): Add lib/inttostr.h.
83829
83830 2005-03-23  Jim Meyering  <jim@meyering.net>
83831
83832         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
83833
83834 2005-03-22  Jim Meyering  <jim@meyering.net>
83835
83836         * modules/stat-macros: New module.
83837         * modules/canonicalize, modules/euidaccess, modules/file-type,
83838         * modules/filemode, modules/lchown, modules/makepath,
83839         * modules/rmdir, modules/stat: Depend on new stat-macros module
83840         rather than listing lib/stat-macros.h manually.
83841         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
83842
83843 2005-03-22  Jim Meyering  <jim@meyering.net>
83844
83845         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
83846
83847 2005-03-22  Bruno Haible  <bruno@clisp.org>
83848
83849         * config/srclist.txt: Replace target directory 'config' with
83850         'build-aux'.
83851         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
83852         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
83853         ../build-aux/.
83854
83855 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
83856
83857         * modules/chdir-long (Depends-on): Add mempcpy.
83858
83859         * modules/acl, modules/backupfile, modules/c-strtod,
83860         modules/c-strtold, modules/canon-host, modules/canonicalize,
83861         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
83862         modules/exclude, modules/exitfail, modules/file-type,
83863         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
83864         modules/getdate, modules/getline, modules/getpagesize,
83865         modules/getpass, modules/getugroups, modules/group-member,
83866         modules/hard-locale, modules/hash, modules/human, modules/idcache,
83867         modules/inttostr, modules/long-options, modules/makepath,
83868         modules/md5, modules/memcasecmp, modules/memcoll,
83869         modules/modechange, modules/mountlist, modules/path-concat,
83870         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
83871         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
83872         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
83873         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
83874         modules/strftime, modules/strndup, modules/strverscmp,
83875         modules/timespec, modules/unlocked-io, modules/userspec,
83876         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
83877         modules/yesno:
83878         Remove lib_SOURCES line from Makefile.am section, as this is now
83879         done automatically by the corresponding Autoconf macro.
83880
83881 2005-03-21  Jim Meyering  <jim@meyering.net>
83882
83883         Changes imported from coreutils.
83884
83885         * lib/cycle-check.c: Don't include xalloc.h.
83886
83887         * lib/path-concat.c: Don't include assert.h.
83888         (path_concat): Remove assertion that would have triggered
83889         for ABASE starting with more than one slash.
83890         Reported by Andreas Schwab.
83891
83892         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
83893         properly when ABASE is an absolute file name.
83894         Correct the description of this function.
83895         Include <assert.h>.
83896         Add an assertion and a test driver.
83897         This fixes a bug introduced on 2004-07-02.
83898         Andreas Schwab reported the resulting failure of cp --parents:
83899         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
83900
83901 2005-03-21  Jim Meyering  <jim@meyering.net>
83902
83903         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
83904         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
83905
83906 2005-03-21  Jim Meyering  <jim@meyering.net>
83907         and  Paul Eggert  <eggert@cs.ucla.edu>
83908
83909         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
83910         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
83911         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
83912         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
83913         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
83914         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
83915         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
83916         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
83917         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
83918         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
83919         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
83920         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
83921         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
83922         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
83923         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
83924         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
83925         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
83926         for these modules.
83927
83928 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
83929
83930         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
83931         (which shouldn't happen), generate nothing instead of returning 0
83932         immediately, so that nstrftime (NULL, ...) doesn't return 0.
83933
83934 2005-03-16  Bruno Haible  <bruno@clisp.org>
83935
83936         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
83937         HAVE_LONGLONG_64BIT.
83938
83939 2005-03-16  Bruno Haible  <bruno@clisp.org>
83940
83941         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
83942         HAVE_LONGLONG_64BIT.
83943
83944 2005-03-16  Bruno Haible  <bruno@clisp.org>
83945
83946         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
83947         HAVE_LONGLONG_64BIT.
83948
83949 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
83950
83951         * lib/strftime.c (my_strftime): Prepend space to format so that we can
83952         reliably distinguish strftime failure from empty output on POSIX
83953         hosts.
83954
83955 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
83956
83957         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
83958         (iconv_string): Don't guess a size-zero buffer, as that might cause
83959         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
83960         result would be 'too large', where 'too large' is (heuristically)
83961         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
83962         overflow concerns.  This will prevent some unwanted malloc failures
83963         when the inputs are very large.
83964
83965 2005-03-15  Karl Berry  <karl@gnu.org>
83966
83967         * config/srclist.txt (config.rpath): from gettext.
83968         * config/config.rpath: update.
83969
83970 2005-03-15  Bruno Haible  <bruno@clisp.org>
83971
83972         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
83973         to 'negate'.
83974
83975         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
83976         variable.
83977
83978         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
83979         results.
83980
83981 2005-03-14  Simon Josefsson  <jas@extundo.com>
83982
83983         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
83984         <fx@gnu.org>.
83985
83986 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
83987
83988         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
83989         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
83990         intprops.h.
83991         * lib/strtol.c: Likewise.
83992
83993 2005-03-14  Jim Meyering  <jim@meyering.net>
83994
83995         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
83996         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
83997         to be nonzero so that we (and caller) can detect the difference
83998         between a valid zero-length expansion and an error return, even
83999         when the underlying strftime fails before writing anything into
84000         that location.
84001
84002 2005-03-14  Bruno Haible  <bruno@clisp.org>
84003
84004         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
84005         Update from GNU gettext 0.14.3.
84006
84007 2005-03-10  Jim Meyering  <jim@meyering.net>
84008
84009         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
84010
84011 2005-03-10  Jim Meyering  <jim@meyering.net>
84012
84013         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
84014         so that this module works on systems without fchdir.
84015
84016 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
84017
84018         Factor int-properties macros into a single file, except for
84019         glibc-related files.
84020         * lib/intprops.h: New file.
84021         * lib/getloadavg.c: Include it instead of limits.h.
84022         (INT_STRLEN_BOUND): Remove.
84023         * lib/human.c: Include intprops.h.
84024         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
84025         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
84026         302/1000.
84027         * lib/inttostr.h: Include intprops.h instead of limits.h.
84028         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
84029         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
84030         for consistency with intprops.h.
84031         (time_t_is_integer, twos_complement_arithmetic): Use them.
84032         * lib/sig2str.h: Include <signal.h>, intprops.h.
84033         (INT_STRLEN_BOUND): Remove.
84034         * lib/strftime.c (TYPE_SIGNED): Remove.
84035         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
84036         * lib/strtol.c: Adjust comments to match intprops.h.
84037         * lib/userspec.c: Include intprops.h.
84038         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
84039         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
84040         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
84041         instead of rolling our own expressions.
84042         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
84043
84044         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
84045         instead of int.
84046         (my_strftime): Do not mishandle years close to INT_MAX, by doing
84047         the right thing even if adding 1900 would overflow.  Similarly
84048         for tm_mon + 1 and tm_yday + 1.
84049         Make %Y always equivalent to %C%y, and similarly for %G and %g.
84050         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
84051         (DO_SIGNED_NUMBER): New macro.
84052         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
84053
84054 2005-03-07  Bruno Haible  <bruno@clisp.org>
84055
84056         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
84057
84058 2005-03-07  Bruno Haible  <bruno@clisp.org>
84059
84060         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
84061
84062 2005-03-04  Derek R. Price  <derek@ximbiot.com>
84063
84064         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
84065         (func_import): Only replace files via --import when they have actually
84066         changed.
84067
84068 2005-03-03  Derek R. Price  <derek@ximbiot.com>
84069
84070         * m4/mmap-anon.m4: New file.
84071         * m4/pagealign_alloc.m4: New file.
84072
84073 2005-03-03  Derek R. Price  <derek@ximbiot.com>
84074             Bruno Haible  <bruno@clisp.org>
84075
84076         * modules/pagealign_alloc: New file.
84077         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
84078
84079 2005-03-03  Derek R. Price  <derek@ximbiot.com>
84080             Bruno Haible  <bruno@clisp.org>
84081
84082         * lib/pagealign_alloc.h: New file.
84083         * lib/pagealign_alloc.c: New file.
84084
84085 2005-03-03  Bruno Haible  <bruno@clisp.org>
84086
84087         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
84088         Use an all-permissive copyright notice, recommended by RMS.
84089
84090 2005-03-02  Bruno Haible  <bruno@clisp.org>
84091
84092         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
84093         of AIX, the replacement has to be done only after <string.h> is
84094         included, therefore not in config.h. stpncpy.h does the replacement,
84095         and stpncpy.c uses it.
84096
84097 2005-03-02  Bruno Haible  <bruno@clisp.org>
84098
84099         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
84100         stpncpy.c uses it.
84101
84102 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
84103
84104         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
84105         The workaround isn't strictly needed for POSIX conformance, and
84106         it's too much of a pain to configure and maintain.  We'll ask
84107         people to fix their kernels instead.
84108         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
84109         (NANOSLEEP_BUG_WORKAROUND): Remove.
84110         (xnanosleep): Remove the workaround.
84111
84112 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
84113
84114         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
84115         Reported by Derek Price.
84116         (Include): Add "timespec.h".
84117
84118         * modules/xnanosleep (Depends-on): Remove gethrxtime.
84119
84120 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
84121
84122         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
84123         to detect nanosleep bug.
84124
84125 2005-03-01  Bruno Haible  <bruno@clisp.org>
84126
84127         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
84128
84129 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
84130
84131         * modules/gethrxtime: New file.
84132         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
84133         (Depends-on): Add gethrxtime.
84134         (configure.ac): Add gl_XNANOSLEEP.
84135         (Makefile.am): Remove lib_SOURCES line.
84136
84137 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
84138
84139         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
84140         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
84141
84142 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
84143
84144         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
84145         * lib/timespec.h (gettime): Return void, since it always
84146         succeeds now.  All uses changed.
84147         * lib/gettime.c (gettime): Likewise.
84148         [HAVE_NANOTIME]: Prefer nanotime.
84149         Assume gettimeofday succeeds, as POSIX requires.
84150         Assime time () succeeds, since other code already does.
84151         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
84152         (timespec_subtract): Remove.
84153         (NANOSLEEP_BUG_WORKAROUND): New constant.
84154         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
84155         things considerably.  Use it only on GNU/Linux hosts, since the
84156         workaround shouldn't be needed elsewhere.
84157
84158 2005-02-24  Bruno Haible  <bruno@clisp.org>
84159
84160         * modules/gettext (Files): Add m4/glibc2.m4.
84161
84162 2005-02-24  Bruno Haible  <bruno@clisp.org>
84163
84164         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
84165         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
84166         * m4/progtest.m4:
84167         Update from GNU gettext 0.14.2.
84168         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
84169
84170 2005-02-24  Bruno Haible  <bruno@clisp.org>
84171
84172         * lib/localcharset.c: Update from GNU gettext 0.14.2.
84173         * lib/config.charset: Update from GNU gettext 0.14.2.
84174
84175 2005-02-24  Bruno Haible  <bruno@clisp.org>
84176
84177         * lib/gettext.h: Update from GNU gettext 0.14.2.
84178
84179 2005-02-23  Simon Josefsson  <jas@extundo.com>
84180
84181         * m4/iconvme.m4: New file.
84182
84183 2005-02-23  Jim Meyering  <jim@meyering.net>
84184
84185         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
84186         change.
84187         Thanks to Bruno Haible for catching it.
84188
84189 2005-02-22  Simon Josefsson  <jas@extundo.com>
84190
84191         * modules/iconvme: New file.
84192
84193         * MODULES.html.sh: Add iconvme.
84194
84195 2005-02-22  Simon Josefsson  <jas@extundo.com>
84196
84197         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
84198
84199 2005-02-22  Simon Josefsson  <jas@extundo.com>
84200
84201         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
84202
84203 2005-02-22  Jim Meyering  <jim@meyering.net>
84204
84205         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
84206         s/ifndef/ifdef/.
84207
84208 2005-02-20  Neil Conway  <neilc@samurai.com>
84209
84210         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
84211         returned by OSX/Darwin if the specified buffer is not large
84212         enough for the hostname.
84213
84214 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84215
84216         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
84217         pass it to _help, otherwise the latter coredumps trying to
84218         dereference state.root_argp.
84219
84220 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
84221
84222         * modules/chdir-long (Depends-on): Add memrchr.
84223         * modules/memrchr (Files): Add lib/memrchr.h.
84224         (Include): "memrchr.h".
84225
84226 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
84227
84228         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
84229
84230 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
84231
84232         * lib/memrchr.h: New file.
84233         * lib/chdir-long.c: Include it.
84234         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
84235         Don't bother including stddef.h.
84236
84237 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
84238
84239         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
84240         inclusion.
84241         Include <sys/types.h>, for dev_t.
84242         (ME_DUMMY, ME_REMOTE): Move from here....
84243         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
84244         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
84245         Dmitry V. Levin.
84246         Include mountlist.h first, to test the interface.
84247
84248 2005-01-29  Bruno Haible  <bruno@clisp.org>
84249
84250         * lib/progname.c (program_name): Initialize.
84251         Needed when linking statically on MacOS X.
84252
84253 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
84254
84255         Sync from coreutils.
84256         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
84257         (Depends-on): Add c-strtod.
84258         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
84259
84260 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
84261
84262         Sync from coreutils.
84263         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
84264
84265         Remove files that are specific to coreutils.
84266         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
84267
84268 2005-01-28  Bruno Haible  <bruno@clisp.org>
84269
84270         * modules/javacomp: New file.
84271         * MODULES.html.sh (Java): Add javacomp.
84272
84273 2005-01-28  Bruno Haible  <bruno@clisp.org>
84274
84275         * m4/javacomp.m4: New file, from GNU gettext.
84276
84277 2005-01-28  Bruno Haible  <bruno@clisp.org>
84278
84279         * lib/javacomp.sh.in: New file, from GNU gettext.
84280         * lib/javacomp.h: New file, from GNU gettext.
84281         * lib/javacomp.c: New file, from GNU gettext.
84282
84283 2005-01-26  Simon Josefsson  <jas@extundo.com>
84284
84285         * lib/gai_strerror.c: Use GPL in header.
84286
84287 2005-01-26  Bruno Haible  <bruno@clisp.org>
84288
84289         * modules/javaexec: New file.
84290         * MODULES.html.sh (Java): Add javaexec.
84291
84292 2005-01-26  Bruno Haible  <bruno@clisp.org>
84293
84294         * m4/javaexec.m4: New file, from GNU gettext.
84295
84296 2005-01-26  Bruno Haible  <bruno@clisp.org>
84297
84298         * lib/javaexec.sh.in: New file, from GNU gettext.
84299         * lib/javaexec.h: New file, from GNU gettext.
84300         * lib/javaexec.c: New file, from GNU gettext.
84301
84302 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84303
84304         * modules/lchown (Depends-on): Remove lchown.h
84305
84306 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84307
84308         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
84309         must be defined if the header file was not found, in order
84310         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
84311
84312 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84313
84314         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
84315         initializers for struct pentry_state.
84316         (__argp_error): Check return value of __asprintf
84317         (__argp_failure): Translate error message
84318
84319         * lib/argp-parse.c: Removed braces around the expansion of N_()
84320
84321 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
84322
84323         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
84324         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
84325         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
84326         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
84327         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
84328         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
84329         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
84330         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
84331         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
84332         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
84333         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
84334         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
84335         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
84336         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
84337         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
84338         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
84339         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
84340         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
84341         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
84342         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
84343         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
84344         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
84345         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
84346         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
84347         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
84348         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
84349         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
84350         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
84351         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
84352         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
84353         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
84354         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
84355         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
84356         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
84357         xstrtol.m4, xstrtoumax.m4, yesno.m4:
84358         Use an all-permissive copyright notice, recommended by RMS.
84359
84360 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
84361
84362         * modules/chdir-long (Depends-on): Remove mempcpy.
84363
84364 2005-01-21  Jim Meyering  <jim@meyering.net>
84365
84366         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
84367         same value as for Solaris 9.
84368
84369         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
84370         component length.  This included changing the parameter to be
84371         of type `char *' rather than `char const *'.
84372         * lib/chdir-long.h (chdir_long): Update prototype.
84373
84374         * lib/openat.c (fdopendir, fstatat): New functions.
84375         * lib/openat.h: Include headers required for use of DIR and struct
84376         stat.
84377         [AT_SYMLINK_NOFOLLOW]: Define.
84378         (fdopendir, fstatat): Add prototypes.
84379
84380 2005-01-21  Bruno Haible  <bruno@clisp.org>
84381
84382         * modules/classpath: New file.
84383         * MODULES.html.sh (Java): Add classpath.
84384
84385 2005-01-21  Bruno Haible  <bruno@clisp.org>
84386
84387         * lib/classpath.h: New file, from GNU gettext.
84388         * lib/classpath.c: New file, from GNU gettext.
84389
84390 2005-01-20  Simon Josefsson  <jas@extundo.com>
84391
84392         * modules/version-etc-fsf: New file.
84393
84394 2005-01-20  Simon Josefsson  <jas@extundo.com>
84395
84396         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
84397         * lib/version-etc.c: Remove version_etc_copyright.
84398         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
84399         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
84400
84401 2005-01-20  Simon Josefsson  <jas@extundo.com>
84402
84403         * lib/base64.h (isbase64): Add.
84404
84405         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
84406         using a unsigned prototype, don't inline.
84407         (base64_decode): Use it.
84408
84409 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
84410
84411         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
84412         it.
84413
84414 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
84415
84416         * lib/save-cwd.c (save_cwd): Remove code to support the case
84417         where fchdir is missing or flaky.
84418
84419 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
84420
84421         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
84422
84423 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
84424
84425         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
84426         AC_LIBSOURCES now does this.
84427         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
84428         with new ullong_max module.
84429
84430 2005-01-19  Bruno Haible  <bruno@clisp.org>
84431
84432         * modules/sh-quote: New file.
84433         * MODULES.html.sh (Executing programs): Add sh-quote.
84434
84435 2005-01-19  Bruno Haible  <bruno@clisp.org>
84436
84437         * lib/sh-quote.h: New file, from GNU gettext.
84438         * lib/sh-quote.c: New file, from GNU gettext.
84439
84440 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
84441
84442         Merge from coreutils.
84443         * m4/ullong_max.m4: New file.
84444         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
84445         (gl_MACROS): Assume localeconv exists.
84446
84447 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
84448
84449         Merge changes from coreutils, as described below in several
84450         changelogs dated today.
84451
84452         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
84453         (O_DIRECTORY): Remove; not needed here, since "." must be
84454         a directory.  All uses removed.
84455         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
84456         universal on Suns, and we also need to test for IRIX.
84457         Revamp code to use 'if' rather than '#if'.
84458         Avoid unnecessary comparison of cwd->desc to 0.
84459
84460         * lib/utimens.c (futimens): Robustify the previous patch, by checking
84461         for known valid error numbers rather than observed invalid ones.
84462
84463 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
84464
84465         * modules/ullong_max: New file.
84466
84467         * modules/chdir-long, modules/openat: New files.
84468         * modules/save-cwd (Depends-on): Depend on chdir-long.
84469         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
84470
84471 2005-01-18  Jim Meyering  <jim@meyering.net>
84472
84473         Merge from coreutils.
84474         * m4/chdir-long.m4, m4/openat.m4: New files.
84475         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
84476         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
84477         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
84478         is sane and DOES follow symlinks.  Besides, testing 20 different
84479         systems found no broken chown implementations.
84480         Prompted by a change in rsync's copy of this macro.
84481         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
84482
84483         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
84484
84485         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
84486         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
84487         NULL-means-set-to-current-time semantics.
84488         Remove temporary file immediately, rather than waiting
84489         for configure's at-exit trap code to do it.
84490
84491 2005-01-18  Jim Meyering  <jim@meyering.net>
84492
84493         * lib/version-etc.c (version_etc_copyright): Update copyright date.
84494
84495         * lib/utimens.c (futimens): Account for the fact that futimes
84496         can also fail with errno == ENOSYS or errno == ENOENT.
84497         Patch from Dmitry V. Levin.
84498
84499         Change the name of the robust chdir function from chdir to chdir_long.
84500         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
84501         (restore_cwd): Use chdir_long, not chdir.
84502         * lib/chdir-long.c: Renamed from chdir.c.
84503         * lib/chdir-long.h: Renamed from chdir.h.
84504         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
84505         Hurd.
84506
84507 2005-01-18  Bruno Haible  <bruno@clisp.org>
84508
84509         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
84510         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
84511         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
84512         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
84513         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
84514         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
84515         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
84516         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
84517         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
84518         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
84519         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
84520         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
84521         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
84522         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
84523         Use an all-permissive copyright notice, recommended by RMS.
84524
84525 2005-01-18  Bob Proulx  <bob@proulx.com>
84526
84527         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
84528         simplify offsetof() macro construct to avoid compile failure with
84529         native HP-UX 11.0 ANSI C compiler.
84530
84531 2005-01-17  Bruno Haible  <bruno@clisp.org>
84532
84533         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
84534         redundant because stpncpy.m4 takes care of it.
84535
84536 2005-01-17  Bruno Haible  <bruno@clisp.org>
84537
84538         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
84539
84540 2005-01-17  Bruno Haible  <bruno@clisp.org>
84541
84542         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
84543         used.
84544
84545 2005-01-17  Bruno Haible  <bruno@clisp.org>
84546
84547         * lib/fwriteerror.h (fwriteerror): Change specification to include
84548         fclose.
84549         * lib/fwriteerror.c: Include <stdbool.h>.
84550         (fwriteerror): At the end, close the file stream. Record whether
84551         stdout was already closed.
84552
84553 2005-01-17  Bruno Haible  <bruno@clisp.org>
84554
84555         * lib/execute.c (environ): Declare if needed.
84556         * lib/pipe.c (environ): Likewise.
84557         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
84558
84559 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84560
84561         * modules/argp: Depend on vsnprintf
84562
84563 2005-01-10  Jim Meyering  <jim@meyering.net>
84564
84565         * modules/closeout (Depends-on): Add atexit.
84566
84567 2005-01-06  Bruno Haible  <bruno@clisp.org>
84568
84569         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
84570
84571 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
84572
84573         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
84574         definitions to be after all include files, to avoid collisions.
84575         Problem reported by Bob Proulx.
84576
84577 2005-01-04  Jim Meyering  <jim@meyering.net>
84578
84579         Changes imported from coreutils.
84580         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
84581         as the mkstemp template, use a temporary directory and an
84582         8.3-friendly template to avoid trouble on systems like DJGPP.
84583         Reported by Juan M. Guerrero via Stepan Kasal.
84584         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
84585         close. Remove the temporary directory right away, rather than waiting
84586         for configure's at-exit trap code to do it.
84587         Suggestion from Stepan Kasal.
84588
84589 2005-01-01  Simon Josefsson  <jas@extundo.com>
84590
84591         * gnulib-tool: Print #include directives when --import'ing.
84592
84593 2004-12-28  Simon Josefsson  <jas@extundo.com>
84594
84595         * tests/test-base64.c: Include required header files.  Remove
84596         unused variables.
84597
84598 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
84599
84600         * modules/error (Depends-on): Remove gettext.
84601
84602 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
84603
84604         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
84605         not needed.  This removes a dependency on the gettext module.
84606         [defined _LIBC]: Do not include <libintl.h>; not needed.
84607
84608 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
84609
84610         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
84611         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
84612
84613 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
84614
84615         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
84616         HAVE_DECL_STRTOLD.
84617
84618 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
84619
84620         * modules/getdate (Depends-on): Remove alloca-opt.
84621
84622 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
84623
84624         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
84625
84626 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
84627
84628         * lib/argp-parse.c: Include <stddef.h>.
84629         (alignof, alignto): New macros.
84630         (parser_init): Don't assume that void * is aligned sufficiently
84631         for struct option.
84632
84633         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
84634         need to extend the stack.
84635         (YYINITDEPTH): New macro, so that the initial stack isn't overly
84636         large.
84637
84638 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84639
84640         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
84641
84642 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
84643
84644         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
84645         (2004-10-24) change.  Apparently this was a false alarm.
84646
84647         * modules/getdate: Depend on alloca-opt, not alloca.
84648
84649 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
84650
84651         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
84652         Remove now-obsolete comment about AIX.
84653         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
84654         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
84655         (YYMAXDEPTH): New macro.
84656
84657 2004-12-18  Simon Josefsson  <jas@extundo.com>
84658
84659         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
84660
84661 2004-12-18  Bruno Haible  <bruno@clisp.org>
84662
84663         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
84664
84665 2004-12-18  Bruno Haible  <bruno@clisp.org>
84666
84667         * lib/fatal-signal.c (fatal_signals): Make non-const.
84668         (init_fatal_signals): New function.
84669         (uninstall_handlers, install_handlers): Ignore signals that were set to
84670         SIG_IGN.
84671         (at_fatal_signal): Call init_fatal_signals.
84672         (init_fatal_signal_set): Likewise. Ignore signals that were set to
84673         SIG_IGN.
84674         Reported by Paul Eggert.
84675
84676 2004-12-18  Bruno Haible  <bruno@clisp.org>
84677
84678         * doc/alloca.texi: New file.
84679         * doc/alloca-opt.texi: New file.
84680
84681 2004-12-17  Jim Meyering  <jim@meyering.net>
84682
84683         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
84684         Otherwise, install-sh could exit with improper exit status when
84685         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
84686
84687 2004-12-16  Simon Josefsson  <jas@extundo.com>
84688
84689         * tests/test-base64.c: Add license.
84690
84691 2004-12-15  Stepan Kasal  <address@hidden>
84692
84693         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
84694
84695 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
84696
84697         * modules/getcwd (Files): Add m4/d-ino.m4.
84698         Suggested by Mark D. Baushke.
84699
84700 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
84701
84702         * lib/getdate.y (textint): New member "negative".
84703         (time_zone_hhmm): New function.
84704         Expect 14 shift-reduce conflicts, not 13.
84705         (o_colon_minutes): New rule.
84706         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
84707         (yylex): Set the "negative" member of signed numbers.
84708
84709 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
84710
84711         * doc/getdate.texi (Time of day items, Time zone items):
84712         Describe new formats +00:00, UTC+00:00.
84713
84714 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
84715
84716         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
84717         spurious "-l"s.  Problem reported by Stepan Kasal.
84718
84719 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
84720
84721         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
84722         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
84723
84724 2004-12-04  Simon Josefsson  <jas@extundo.com>
84725
84726         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
84727         Vandoorselaere <yoann@prelude-ids.org>.
84728
84729 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
84730
84731         Changes imported from coreutils.
84732         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
84733         exist.
84734         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
84735
84736 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
84737
84738         Changes imported from coreutils.
84739         * lib/hard-locale.c: Assume <locale.h> exists.
84740         Include "strdup.h".
84741         (GLIBC_VERSION): New macro.
84742         (hard_locale): Assume setlocale exists.
84743         Rewrite to avoid #ifdef.
84744         Use strdup rather than malloc + strcpy.
84745         * lib/human.c: Assume <locale.h> exists.
84746         (human_readable): Assume localeconv exists.
84747
84748 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
84749
84750         * modules/hard-locale (Depends-on): Add strdup.
84751
84752 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
84753
84754         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
84755         convert T2, not T.  (Imported from libc.)
84756
84757 2004-11-30  Simon Josefsson  <jas@extundo.com>
84758
84759         * modules/restrict (License): Change to LGPL.
84760
84761 2004-11-30  Simon Josefsson  <jas@extundo.com>
84762
84763         * m4/restrict.m4: Add copyright and copying conditions.
84764
84765 2004-11-30  Simon Josefsson  <jas@extundo.com>
84766
84767         * m4/base64.m4: New file.
84768
84769 2004-11-30  Simon Josefsson  <jas@extundo.com>
84770
84771         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
84772         base64.
84773
84774         * tests/test-base64.c: New file.
84775
84776         * modules/base64: New file.
84777
84778 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
84779
84780         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
84781         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
84782
84783         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
84784
84785 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
84786
84787         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
84788         (__getcwd.c): Don't restore errno; glibc doesn't.
84789         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
84790         first, falling back to our code only if its results look suspicious.
84791         Ensure that the resulting buffer is only as large as necessary.
84792
84793         * lib/readutmp.c: Include readutmp.h first.
84794         Include <errno.h>, since readutmp.h no longer does that.
84795         * lib/readutmp.h: Don't include <errno.h>,
84796         <sys/param.h>, <time.h>; not needed to establish interface.
84797         (errno): Remove decl.
84798         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
84799         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
84800         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
84801
84802 2004-11-28  Simon Josefsson  <jas@extundo.com>
84803
84804         * lib/base64.h, base64.c: New file.
84805
84806 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
84807
84808         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
84809
84810 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
84811
84812         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
84813         (Depends-on): Remove pathmax, same.  Add mempcpy.
84814         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
84815         (Makefile.am): Append getcwd.h to lib_SOURCES.
84816         (Include): Add getcwd.h.
84817         (Maintainer): Change from Jim Meyering to "all, glibc",
84818         since getdate now uses intended-for-glibc code.
84819         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
84820         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
84821
84822 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
84823
84824         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
84825         HP's ANSI C compiler.
84826         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
84827         Declaring int functions causes warnings on some modern systems and
84828         shouldn't be needed to compile on ancient ones.
84829         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
84830         defined.
84831
84832         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
84833         with the following changes.
84834         (__set_errno): Parenthesize properly.
84835         Include <stdbool.h>.
84836         (MIN, MAX, MATCHING_INO): New macros.
84837         (__getcwd): Define with prototype, not K&R form.
84838         Use heuristics to allocate default buffer on stack if possible.
84839         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
84840         behavior, and to avoid the PATH_MAX limit when computing
84841         ../../../../...
84842         Use MATCHING_INO to compare inode number to file.
84843         Check for arithmetic overflow in size calculations.
84844         Fix bug in reallocation of dot array that caused getcwd to fail
84845         on directories nested deeper than 75.
84846         Be more careful about saving errno on error.
84847         Do not use realloc; use only free+malloc, as this is a bit
84848         more flexible and avoids a needless copy operation.
84849         Do not inspect st_dev and st_ino for symbolic links; POSIX
84850         doesn't specify the latter.
84851         Check for closedir errors.
84852         Avoid needless casts.
84853         Use "#ifdef weak_alias" around weak_alias, to be like other
84854         glibc code.
84855         The following changes to getcwd.c have effect only when used in
84856         gnulib; they have no effect inside glibc proper.
84857         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
84858         as alloca isn't used.
84859         (alloca, __alloca): Likewise.
84860         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
84861         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
84862         unconditionally, as gnulib assumes C89 or better.
84863         Do not include <sys/param.h>.
84864         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
84865         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
84866         better.
84867         (NULL) [!defined NULL]: Remove; we assume C89 or better.
84868         Include <dirent.h> in a way that is compatible with modern Autoconf.
84869         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
84870         New macros, if not already defined.
84871         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
84872         Use "_LIBC", not "defined _LIBC", for consistency.
84873         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
84874         a mempcpy module.
84875         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
84876         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
84877         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
84878         credit only to Jim Meyering and adjust the copyright dates.
84879         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
84880         <stdlib.h>, <unistd.h>, "pathmax.h".
84881         Instead, include "xgetcwd.h" (first) and "getcwd.h".
84882         (INITIAL_BUFFER_SIZE): Remove.
84883         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
84884
84885 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
84886
84887         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
84888         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
84889         Use the _ONCE methods, for efficiency.
84890         Check for fcntl.h.  In test program, include <errno.h>
84891         and <fcntl.h> if available.  Remove old K&R cruft from
84892         test program.  Check for common errors in GNU/Linux,
84893         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
84894         don't do AC_LIBOBJ, as that's getcwd.m4's job.
84895         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
84896         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
84897         name accordingly.
84898         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
84899         accommodate new getcwd.c.
84900         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
84901         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
84902         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
84903         that's all we need now.
84904
84905 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84906
84907         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
84908         argp-parse.c depends on getopt internals, that means we should
84909         always use our getopt, to be on the safe side.
84910         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
84911         order not to spoil the result of an eventual previous invocation
84912         of gl_GETOPT_SUBSTITUTE.
84913
84914 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84915
84916         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
84917         redefinition warnings. To avoid them, include the defines
84918         in `#if !defined __need_getopt ... #endif'. The only place
84919         where __getopt_argv_const is used is in definitions
84920         of getopt_long and getopt_long_only below, which are as well
84921         protected by `#ifndef __need_getopt'.
84922         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
84923         __need_getopt after including <stdio.h> and <unistd.h> These
84924         headers might have defined it.
84925
84926 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
84927
84928         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
84929
84930 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
84931
84932         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
84933         (futimens): New function, which uses futimes if available.
84934         (futimens, utimens): Support timespec==NULL, with same semantics
84935         as utime and utimens.
84936         * lib/utimens.h (futimens): New decl.
84937
84938 2004-11-23  Jim Meyering  <jim@meyering.net>
84939
84940         * lib/getopt_.h: Remove trailing blanks.
84941
84942 2004-11-23  Jim Meyering  <jim@meyering.net>
84943
84944         * lib/__fpending.c: Add comment.
84945
84946 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
84947
84948         * modules/canonicalize (Depends-on): Add xreadlink.
84949         Problem reported by James Youngman.
84950
84951 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
84952
84953         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
84954         New macros.
84955         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
84956         optopt): Use them instead of invoking ## directly; otherwise, the
84957         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
84958
84959 2004-11-19  Bruno Haible  <bruno@clisp.org>
84960
84961         * lib/strtok_r.c: Move comments from here...
84962         * lib/strtok_r.h: ... to here.
84963
84964 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
84965
84966         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
84967         implementations that mishandle size_t overflow.
84968
84969 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
84970
84971         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
84972         might fail.  Problem reported by Yoann Vandoorselaere.
84973         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
84974         implementations that mishandle size_t overflow.
84975
84976 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
84977
84978         * modules/canon-host (Depends-on): Add strdup.
84979
84980 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
84981
84982         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
84983
84984 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
84985
84986         * lib/canon-host.c: Include "strdup.h".
84987         (canon_host): Use getaddrinfo if available, so that IPv6 works.
84988         Use strdup instead of malloc/strcpy to duplicate strings.
84989
84990         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
84991         (human_space_before_unit): New constant.
84992         * lib/human.c (human_readable): Support it.
84993
84994         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
84995         (xgetcwd): Set errno correctly when failing.
84996         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
84997         the failure is actually due to a PATH_MAX problem.
84998
84999         Further getopt changes to make it more likely that glibc will
85000         buy the changes back.
85001         * lib/getopt.c (POSIXLY_CORRECT): New constant.
85002         (getopt): Use it, so to preserve glibc semantic
85003         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
85004         when compiling for libc.
85005         * lib/getopt_.h (__getopt_argv_const): Bring it back.
85006         (getopt_long, getopt_long_only): Use it.
85007
85008         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
85009         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
85010         (getopt): Argv is now char * const *, as per standard.
85011         (_getopt_internal_r, _getopt_internal): Argv is now char **,
85012         not char *__getopt_argv_const *.
85013         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
85014         _getopt_long_only_r): Likewise.
85015         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
85016         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
85017         _getopt_long_r, _getopt_long_only_r): Likewise.
85018         * lib/getopt_.h (__getopt_argv_const): Remove.
85019         (getopt): Argv is now char * const *, as per standard.
85020
85021         * lib/getdate.y (tORDINAL): New token.
85022         (day, relunit): Allow it for relative times.
85023         (relative_time_table): Use tORDINAL for ordinals.
85024
85025 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
85026
85027         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
85028         Document that "second" isn't allowed as an ordinal number.
85029
85030 2004-11-16  Jim Meyering  <jim@meyering.net>
85031
85032         * modules/closeout (Depends-on): Add fpending.
85033
85034 2004-11-15  Jim Meyering  <jim@meyering.net>
85035
85036         * lib/closeout.c: Include "__fpending.h" once again.
85037         Include <stdbool.h>.
85038         (close_stdout): Don't fail just because stdout was closed initially,
85039         since some programs don't write to stdout in the normal course of
85040         operation (other than --version and --help), and we don't want this
85041         function to make e.g. `touch file >&-' fail.
85042         But do fail if it was closed and someone has tried to write to it.
85043         E.g., `printf foo >&-' must fail.
85044
85045 2004-11-13  Jim Meyering  <jim@meyering.net>
85046
85047         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
85048
85049 2004-11-12  Simon Josefsson  <jas@extundo.com>
85050
85051         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
85052         small doc fix is still pending.
85053
85054 2004-11-11  Simon Josefsson  <jas@extundo.com>
85055
85056         * modules/strtok_r: New file.
85057
85058         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
85059         strtok_r.
85060
85061 2004-11-11  Simon Josefsson  <jas@extundo.com>
85062
85063         * m4/strtok_r.m4: New file.
85064
85065         * m4/getopt.m4: Replace opterr.
85066
85067 2004-11-11  Simon Josefsson  <jas@extundo.com>
85068
85069         * lib/strtok_r.h, strtok_r.c: New file.
85070
85071 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
85072
85073         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
85074         of replacing opterr, getopt, etc.  This should handle the
85075         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
85076
85077 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
85078
85079         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
85080         we can stop lying to compilers about the constness of argv when we
85081         are compiled outside glibc.
85082         (getopt, getopt_long, getopt_long_only): Use it.
85083         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
85084         _getopt_internal, getopt): Likewise.
85085         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
85086         _getopt_long_only_r): Likewise.
85087         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
85088         _getopt_long_r, _getopt_long_only_r): Likewise.
85089
85090         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
85091         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
85092         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
85093         the other external symbols.
85094         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
85095         declaration, since the above renaming now works around collisions.
85096
85097 2004-11-11  Jim Meyering  <jim@meyering.net>
85098
85099         * lib/linebreak.c: Remove trailing blanks.
85100         * lib/alloca_.h: Likewise.
85101         * lib/acosl.c: Likewise.
85102         * lib/euidaccess.c: Likewise.
85103         * lib/allocsa.h: Likewise.
85104
85105 2004-11-10  Simon Josefsson  <jas@extundo.com>
85106
85107         * m4/getaddrinfo.m4: New file.
85108
85109 2004-11-10  Simon Josefsson  <jas@extundo.com>
85110
85111         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
85112
85113 2004-11-10  Simon Josefsson  <jas@extundo.com>
85114
85115         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
85116         getaddrinfo.
85117
85118         * modules/getaddrinfo: New file.
85119
85120 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
85121
85122         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
85123
85124 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
85125
85126         * lib/mktime.c (SHR): New macro, which is a portable
85127         substitute for >> that should work even on Crays.
85128         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
85129         Problem reported by Mark D. Baushke in
85130         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
85131         * lib/getdate.y (SHR): Likewise.
85132         (tm_diff): Use it.
85133         * lib/strftime.c (SHR): Likewise.
85134         (tm_diff): Use it.
85135         * lib/quotearg.c (struct quoting_options): Use unsigned int for
85136         quote_these_too, so that right shifts are well defined.  All uses
85137         changed.
85138
85139 2004-11-10  Jim Meyering  <jim@meyering.net>
85140
85141         Ensure that no close failure goes unreported.
85142         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
85143         return early when it seems there's nothing to flush.
85144         Don't include __fpending.h.
85145
85146 2004-11-10  Jim Meyering  <jim@meyering.net>
85147
85148         * modules/closeout (Depends-on): Remove fpending.
85149
85150 2004-11-10  Jim Meyering  <jim@meyering.net>
85151
85152         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
85153
85154 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
85155
85156         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
85157         gl_FUNC_STRFTIME.
85158         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
85159         and AC_REQUIRE when possible, to avoid duplicate checks.
85160         Check for <wchar.h>.
85161
85162 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
85163
85164         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
85165
85166 2004-11-09  Bruno Haible  <bruno@clisp.org>
85167
85168         * m4/sockpfaf.m4: New file.
85169
85170 2004-11-05  Bruno Haible  <bruno@clisp.org>
85171
85172         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
85173         Reported by Mark D. Baushke <mdb@cvshome.org>.
85174
85175 2004-11-04  Bruno Haible  <bruno@clisp.org>
85176
85177         2004-09-11  Bruno Haible  <bruno@clisp.org>
85178                 * allocsa.valgrind: New file.
85179         2004-02-06  Bruno Haible  <bruno@clisp.org>
85180                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
85181                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
85182                 Reported by Christopher Seip <chris.seip@hp.com>.
85183
85184 2004-11-04  Bruno Haible  <bruno@clisp.org>
85185
85186         * modules/allocsa (Files): Add lib/allocsa.valgrind.
85187         (Makefile.am): Distribute it.
85188
85189 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
85190
85191         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
85192         with errno == ERANGE if the buffer is too small.
85193         Problem reported by Mark D. Baushke.
85194
85195 2004-11-03  Albert Chin  <china@thewrittenword.com>
85196             Paul Eggert  <eggert@cs.ucla.edu>
85197
85198         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
85199         equivalent, substitute $ac_type for equivalent type rather than
85200         blindly using uint32_t *always* which won't work if uint32_t is not
85201         available.  Define _UINT32_T to work around typedef of uint32_t if
85202         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
85203         2.5.1.
85204
85205 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
85206
85207         * m4/jm-macros.m4: Sync from coreutils.
85208         (gl_MACROS): Check for mbrlen, for pathchk.
85209         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
85210
85211 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
85212
85213         * lib/xreadlink.c (MAXSIZE): New macro.
85214         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
85215         size does not exceed MAXSIZE.  Avoid cast.
85216         As suggested by Mark D. Baushke in
85217         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
85218         if readlink fails with buffer size just under MAXSIZE, try again
85219         with MAXSIZE.
85220
85221 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
85222
85223         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
85224
85225 2004-11-02  Derek R. Price  <derek@ximbiot.com>
85226         and  Paul Eggert  <eggert@cs.ucla.edu>
85227
85228         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
85229         (get_date): Overparenthesize to avoid GCC warning.
85230
85231 2004-11-02  Bruno Haible  <bruno@clisp.org>
85232
85233         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
85234         returns void.
85235
85236 2004-11-02  Bruno Haible  <bruno@clisp.org>
85237
85238         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
85239         function returns void.
85240
85241 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
85242
85243         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
85244         fflush_unlocked, flockfile, funlockfile, funlockfile,
85245         fputs_unlocked, putc_unlocked.
85246
85247 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
85248
85249         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
85250         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
85251         already declared.
85252
85253 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
85254
85255         * modules/getdate (Files): Add doc/getdate.texi.
85256         (Depends-on): Add setenv, xalloc.
85257
85258 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
85259
85260         * lib/getdate.y: Add support for TZ="foo" within a date string.
85261         Fix some bugs near time_t boundaries.  Reject dates with
85262         out-of-range components, e.g., "Sept 31".
85263         Include <stdlib.h>, "setenv.h", "xalloc.h".
85264         (ISDIGIT_LOCALE): Remove; unused.
85265         Note that the TZ and time functions used here are not reentrant.
85266         (mktime_ok, get_tz): New functions.
85267         (TZBUFSIZE): New constant.
85268         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
85269         This requires that we sometimes generate our own TZ="XXX..." setting.
85270
85271 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
85272
85273         * doc/getdate.texi: New file, from coreutils with modifications for
85274         the new TZ parsing.
85275
85276 2004-10-27  Derek R. Price  <derek@ximbiot.com>
85277
85278         * lib/mktime.c (not_equal_tm): Remove redundant check.
85279
85280 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
85281
85282         * modules/regex (lib_SOURCES): Add regex.c.
85283         Reported by James Youngman in
85284         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
85285
85286 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
85287
85288         * lib/getdate.y: Use Bison 1.875 features, and some minor
85289         code cleanups.  This change does not affect semantics.
85290         Don't include <stdlib.h>; no longer needed.
85291         Don't include unlocked-io.h; only the "#if TEST" code uses
85292         stdio, and performance isn't crucial there.
85293         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
85294         Bison 1.875 features as described below.
85295         All uses of "PC." replaced by "pc->".
85296         (YYSTYPE): Add a forward declaration.
85297         (yylex, yyerror): Use full prototypes in forward decls.
85298         Use "%pure-parser" rather than obsolescent "%pure_parser".
85299         Use %parse-param and %lex-param instead of obsolescent
85300         YYPARSE_PARAM and YYLEX_PARAM.
85301         (meridian_table, month_and_day_table, time_units_table,
85302         relative_time_table, time_zone_table, military_table,
85303         lookup_zone, lookup_word, get_date):
85304         Use NULL instead of 0 where appropriate.
85305         (to_hour): Avoid abort (), to avoid a dependency on
85306         stdlib.h.
85307         (yyerror, yylex): Now accepts parser_control * arg.
85308         (main) [TEST]: Use '\0' rather than 0 for char.
85309
85310 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
85311
85312         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
85313
85314 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
85315
85316         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
85317         It's now the caller's responsibility to handle the case where
85318         !HAVE_GETPAGESIZE && !defined getpagesize.
85319
85320         * lib/mktime.c (leapyear): Arg is long int, not int.
85321
85322 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
85323
85324         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
85325
85326 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
85327
85328         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
85329         missing.  Problem reported by James Youngman.
85330
85331 2004-10-16  Simon Josefsson  <jas@extundo.com>
85332
85333         * gnulib-tool: Fix comments.  Fix parse problem.
85334         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
85335
85336 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
85337
85338         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
85339         implementation of getopt_long.  Problem reported by Alexander Taler in:
85340         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
85341
85342 2004-10-15  Bruno Haible  <bruno@clisp.org>
85343
85344         * gnulib-tool: Untabify. Initialize supplied_libname.
85345         (func_usage): More homogenous output.
85346         (func_modules_transitive_closure, func_modules_to_filelist,
85347         func_emit_lib_Makefile_am): New functions.
85348         (func_import): New function, extracted from big case statement. Use
85349         func_get_license, func_modules_transitive_closure,
85350         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
85351         opt_lgpl. Don't use test -a, as it's not portable.
85352         (func_create_testdir): Use func_modules_transitive_closure,
85353         func_modules_to_filelist, func_emit_lib_Makefile_am.
85354
85355 2004-10-15  Bruno Haible  <bruno@clisp.org>
85356
85357         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
85358
85359 2004-10-15  Bruno Haible  <bruno@clisp.org>
85360
85361         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
85362         the portions belonging to each module.
85363         Suggested by Derek Robert Price <derek@ximbiot.com>.
85364
85365 2004-10-12  Simon Josefsson  <jas@extundo.com>
85366
85367         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
85368         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
85369         to real functions.
85370
85371 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85372
85373         * modules/vsnprintf: New file.
85374
85375 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85376
85377         * m4/vsnprintf.m4: New file.
85378
85379 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85380
85381         * lib/vsnprintf.h: New file.
85382         * lib/vsnprintf.c: New file.
85383
85384 2004-10-11  Bruno Haible  <bruno@clisp.org>
85385
85386         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
85387         vsnprintf.
85388
85389 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
85390
85391         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
85392
85393 2004-10-07  Bruno Haible  <bruno@clisp.org>
85394
85395         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
85396         fits into the provided buffer.
85397
85398 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
85399
85400         * lib/diacrit.c, diacrit.h: Add GPL notice.
85401
85402         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
85403         notice.
85404         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
85405         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
85406         This avoids a potential constant-folding bug.
85407
85408 2004-10-05  Bruno Haible  <bruno@clisp.org>
85409
85410         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
85411         for the declaration of strsep.
85412
85413 2004-10-05  Bruno Haible  <bruno@clisp.org>
85414
85415         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
85416
85417 2004-10-04  Simon Josefsson  <jas@extundo.com>
85418
85419         * modules/memmem: New file.
85420         * tests/test-memmem.c: New file.
85421         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
85422
85423 2004-10-04  Simon Josefsson  <jas@extundo.com>
85424
85425         * m4/memmem.m4: New file.
85426
85427 2004-10-04  Simon Josefsson  <jas@extundo.com>
85428
85429         * lib/memmem.h: New file.
85430         * lib/memmem.c: New file, taken from glibc.
85431
85432 2004-10-04  Simon Josefsson  <jas@extundo.com>
85433
85434         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
85435         '#ifdef USE_UNLOCKED_IO'.
85436
85437 2004-10-04  Simon Josefsson  <jas@extundo.com>
85438
85439         * config/srclist.txt: Add memmem from glibc.
85440
85441 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
85442
85443         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
85444
85445         * modules/argmatch, modules/argp, modules/closeout, modules/error,
85446         modules/exclude, modules/getdate, modules/getline,
85447         modules/getndelim2, modules/getpass, modules/getpass-gnu,
85448         modules/getusershell, modules/linebuffer, modules/md5,
85449         modules/mountlist, modules/posixtm, modules/readtokens,
85450         modules/readutmp, modules/regex, modules/sha1,
85451         modules/version-etc, modules/yesno:
85452         Remove dependency on unlocked-io.
85453
85454 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
85455
85456         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
85457
85458         * m4/unlocked-io.m4: Add copyright notice.
85459         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
85460
85461 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
85462
85463         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
85464         * lib/xmalloc.c (xmemdup): Likewise.
85465         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
85466         XFREE): Remove these long-obsolescent macros.
85467         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
85468         * lib/xstrdup.c: Remove.
85469
85470         * lib/regex.c (re_comp): Cast gettext return value to char *,
85471         Problem reported by Martin Neitzel via Mark D. Baushke.
85472
85473 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
85474
85475         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
85476         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
85477         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
85478         regex.c, sha1.c, version-etc.c, yesno.c:
85479         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
85480         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
85481         the includer's responsibility.
85482
85483         Sync from coreutils.
85484
85485         * lib/modechange.c (mode_compile): Don't decrement a pointer that
85486         points to the start of a string, as the C Standard says the
85487         resulting behavior is undefined.
85488
85489         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
85490         simple -> simple_backups, numbered_existing ->
85491         numbered_existing_backups, numbered -> numbered_backups
85492         to avoid shadowing problems.  All uses changed.
85493         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
85494         * lib/backupfile.c (check_extension, numbered_backup):
85495         Rename locals to avoid shadowing 'basename'.
85496         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
85497         once.
85498
85499         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
85500         * lib/.cvsignore: Add getopt.h.
85501
85502 2004-10-04  Bruno Haible  <bruno@clisp.org>
85503
85504         * modules/README: New file.
85505         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
85506         not a module.
85507
85508 2004-10-02  Jim Meyering  <jim@meyering.net>
85509
85510         * lib/dirfd.h, getpagesize.h: Add copyright notice.
85511
85512 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85513
85514         * modules/strsep: New file.
85515
85516 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85517
85518         * m4/strsep.m4: New file.
85519
85520 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85521
85522         * lib/strsep.h: New file.
85523         * lib/strsep.c: New file.
85524
85525 2004-10-01  Simon Josefsson  <jas@extundo.com>
85526
85527         * lib/snprintf.c (snprintf): Handle size==0.
85528
85529 2004-10-01  Simon Josefsson  <jas@extundo.com>
85530             Bruno Haible  <bruno@clisp.org>
85531
85532         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
85533         (snprintf): Declare 'args'.
85534
85535 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
85536
85537         * lib/snprintf.c: Remove comments as to why each header is needed.
85538
85539 2004-10-01  Bruno Haible  <bruno@clisp.org>
85540
85541         * MODULES.html.sh: Add strsep.
85542
85543 2004-09-30  Simon Josefsson  <jas@extundo.com>
85544
85545         * modules/snprintf: New file.
85546
85547 2004-09-30  Simon Josefsson  <jas@extundo.com>
85548
85549         * m4/snprintf.m4: New file.
85550
85551 2004-09-30  Simon Josefsson  <jas@extundo.com>
85552
85553         * lib/snprintf.h, lib/snprintf.c: New files.
85554
85555 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85556
85557         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
85558         (hol_entry_help): Never translate an empty string.
85559         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
85560         * lib/argp.h (OPTION_NO_TRANS): New option.
85561
85562 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
85563
85564         * modules/argp (Maintainer): Replace Simon Josefsson
85565         by Sergey Poznyakoff.
85566
85567 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
85568
85569         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
85570         changes merged back into glibc.
85571
85572 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
85573
85574         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
85575
85576 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
85577
85578         * lib/xvasprintf.c: Include xalloc.h.
85579         (xvasprintf): Use xalloc_die, not xmalloc_die.
85580
85581 2004-09-29  Bruno Haible  <bruno@clisp.org>
85582
85583         * modules/alloca-opt: New file, derived from modules/alloca.
85584         * modules/allocsa: Depend on alloca-opt instead of alloca.
85585         * modules/setenv: Likewise.
85586         * modules/vasnprintf: Likewise.
85587         * MODULES.html.sh: Add alloca-opt.
85588
85589 2004-09-28  Simon Josefsson  <jas@extundo.com>
85590
85591         * gnulib-tool: New parameter --lgpl, to asseert that modules are
85592         LGPL, and to replace license template from GPL to LGPL.
85593
85594 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
85595
85596         * modules/dummy: Change license to LGPL.
85597
85598 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
85599
85600         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
85601
85602 2004-09-24  Simon Josefsson  <jas@extundo.com>
85603
85604         * modules/minmax (License): Change from GPL to LGPL.
85605
85606 2004-09-23  Simon Josefsson  <jas@extundo.com>
85607
85608         * gnulib-tool (--import): Typo.
85609
85610 2004-09-23  Simon Josefsson  <jas@extundo.com>
85611
85612         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
85613
85614 2004-09-22  Bruno Haible  <bruno@clisp.org>
85615
85616         * modules/*: Add 'License' field.
85617         * gnulib-tool: Accept --extract-license option.
85618         (func_get_license): New function.
85619
85620 2004-09-21  Bruno Haible  <bruno@clisp.org>
85621
85622         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
85623         Reported by Simon Josefsson.
85624
85625 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
85626
85627         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
85628         gl_AC_TYPE_LONG_LONG.
85629
85630 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
85631
85632         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
85633
85634 2004-09-18  Simon Josefsson  <jas@extundo.com>
85635         and  Paul Eggert  <eggert@cs.ucla.edu>
85636
85637         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
85638         calls with autoreconf.  Define GL_LIB.
85639
85640 2004-09-14  Karl Berry  <karl@gnu.org>
85641
85642         * config/srclist.txt: unsync setenv.c, sigh.
85643
85644 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
85645
85646         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
85647         Problem reported by Bruno Haible in:
85648         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
85649
85650 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
85651
85652         * config/srclist.txt: Comment out argp-pvh.c.
85653
85654 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
85655
85656         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
85657         in case some system header has #define'd it.  Problem reported by
85658         Soeren D. Schulze in
85659         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
85660
85661 2004-09-09  Karl Berry  <karl@gnu.org>
85662
85663         * regex.[ch]: delete from the root.  These were supposed to be
85664                 synced with emacs cvs, but this has not happened for about
85665                 a year, and anyway nothing else uses emacs regex.[ch].
85666                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
85667                 lib/regex[.ch] is untouched.
85668
85669 2004-09-09  Bruno Haible  <bruno@clisp.org>
85670
85671         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
85672
85673 2004-09-09  Bruno Haible  <bruno@clisp.org>
85674
85675         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
85676         modifications.
85677         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
85678
85679 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
85680
85681         * modules/xvasprintf: New file.
85682         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
85683
85684 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
85685
85686         * lib/xvasprintf.h: New file.
85687         * lib/xvasprintf.c: New file.
85688         * lib/xasprintf.c: New file.
85689
85690 2004-09-08  Bruno Haible  <bruno@clisp.org>
85691
85692         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
85693
85694 2004-09-08  Bruno Haible  <bruno@clisp.org>
85695
85696         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
85697         length is > INT_MAX.
85698         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
85699         more.
85700
85701 2004-09-08  Bruno Haible  <bruno@clisp.org>
85702
85703         * lib/stdint_.h: New file, taken from GNU clisp.
85704
85705 2004-09-08  Bruno Haible  <bruno@clisp.org>
85706             Oskar Liljeblad  <oskar@osk.mine.nu>
85707
85708         * modules/stdint: New file.
85709         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
85710
85711 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
85712
85713         Import from coreutils.
85714         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
85715         strings on unbounded length.  alloca's performance benefits aren't
85716         that important here.
85717         (V_STRDUP): Remove.
85718         (parse_with_separator): New function, with most of the internals
85719         of the old parse_user_spec.  Allow user to omit both user and group,
85720         for compatibility with FreeBSD.
85721         Clone only the user name, not the entire spec.
85722         Do not set *uid, *gid unless entirely successful.
85723         Avoid memory leak in some failing cases.
85724         Fix regression for USER.GROUP reported by Dmitry V. Levin in
85725         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
85726         (parse_user_spec): Rewrite to use parse_with_separator.
85727
85728 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
85729
85730         * modules/userspec: Don't depend on alloca.
85731
85732 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
85733
85734         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
85735
85736 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
85737
85738         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
85739         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
85740         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
85741
85742 2004-08-16  Simon Josefsson  <jas@extundo.com>
85743
85744         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
85745         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
85746         Add --dry-run for --import.
85747         Let user provided command line parameters override configure.ac
85748         settings.
85749
85750 2004-08-12  Simon Josefsson  <jas@extundo.com>
85751
85752         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
85753         as discussed with Paul Eggert in threads rooted at
85754         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
85755         and
85756         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
85757         Before, the test was empty, and relied on ELIDE_CODE in source
85758         code.)
85759         (gl_PREREQ_GETOPT): New macro.
85760         (gl_GETOPT): Use them.
85761
85762 2004-08-12  Simon Josefsson  <jas@extundo.com>
85763
85764         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
85765         * lib/getopt_.h: Renamed from getopt.h.
85766
85767 2004-08-12  Simon Josefsson  <jas@extundo.com>
85768
85769         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
85770         Change default library name from libfoo to libgnu.
85771         Now, if you have a configure.ac that says:
85772                 gl_SOURCE_BASE(gl)
85773                 gl_M4_BASE(gl/m4)
85774                 gl_MODULES(error getopt etcetera)
85775                 gl_INIT
85776         you can import all you need by running:
85777                 ../gnulib/gnulib-tool --import
85778
85779         * modules/getopt (Files): Rename getopt.h to getopt_.h.
85780         (Makefile.am): Rewrite, use logic from argz.
85781         (Include): Use <getopt.h> instead of "getopt.h".
85782
85783 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
85784
85785         * modules/argp (Files): Add m4/unlocked-io.m4.
85786         (Depends-on): Add extensions.
85787
85788 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
85789
85790         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
85791         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
85792         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
85793         Check for program_invocation_name, program_invocation_short_name,
85794         flockfile, funlockfile, features.h, _getopt_long_only_r.
85795
85796 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
85797
85798         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
85799         its complicated substitute.
85800         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
85801         and program_invocation_name.
85802         (__argp_basename) [!_LIBC]: Remove; the only use was
85803         replaced by its body.
85804         (__argp_short_program_name): Change condition from
85805         !defined __argp_short_program_name to
85806         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
85807         to match argp-namefrob.h.
85808         (__argp_failure): Don't assume strerror_r returns char *.
85809         * lib/argp-parse.c (N_): Define unconditionally.
85810         (argp_default_options): Fill out initializers with 0 to avoid
85811         gcc warnings.
85812
85813 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
85814
85815         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
85816         getopt1.c.
85817
85818 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
85819
85820         Merge from coreutils.
85821
85822         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
85823
85824         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
85825         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
85826
85827 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
85828
85829         Merge from coreutils.
85830
85831         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
85832         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
85833         for Reliant Unix 5.43.
85834
85835         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
85836         (union fooround): Use uintmax_t, not long int.
85837         The rest is a merge from libc:
85838         [defined _LIBC]: Include <shlib-compat.h>.
85839         (_obstack) [defined _LIBC]: Remove after 2.3.4.
85840
85841         * lib/settime.c (settime): Recode to avoid warning with
85842         Sun Forte C 6U2.
85843
85844         * lib/strverscmp.c: Convert to UTF-8.
85845
85846 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
85847
85848         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
85849         m4/uintmax_t.m4.
85850
85851 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
85852
85853         * modules/xalloc-die: New file.
85854         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
85855
85856         * modules/md5 (Files): Add m4/uint32_t.m4.
85857         * modules/sha1: Renamed from modules/sha.
85858         (Files):
85859         Rename lib/sha.h to lib/sha1.h.
85860         Rename lib/sha.c to lib/sha1.c.
85861         Rename m4/sha.m4 to m4/sha1.m4.
85862         (lib_SOURCES): Likewise.
85863         (configure.ac): Rename gl_SHA to gl_SHA1.
85864         (Include): sha.h -> sha1.h.
85865
85866 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
85867
85868         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
85869         * m4/sha1.m4: Renamed from sha.m4.
85870         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
85871
85872 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
85873
85874         * lib/obstack.h (obstack_empty_p):
85875         Don't assume that chunk->contents is suitably aligned.
85876         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
85877         Likewise. Problem reported by Benno in
85878         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
85879
85880         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
85881         readable.  This could be improved further but it'd take some work.
85882
85883 2004-08-08  Simon Josefsson  <jas@extundo.com>
85884
85885         * modules/xgethostname (Depends-on): Remove exit and error (not
85886         used).
85887
85888         * modules/getpass-gnu: Add getpass.h.
85889         (Depends-on): Add stdbool.
85890         * modules/getpass: Add getpass.h.
85891
85892 2004-08-08  Simon Josefsson  <jas@extundo.com>
85893
85894         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
85895         Check getpass declaration.
85896
85897 2004-08-08  Simon Josefsson  <jas@extundo.com>
85898
85899         * lib/xgethostname.c: Don't include error.h (not used).
85900
85901         * lib/getpass.h: Add.
85902         * lib/getpass.c: Include getpass.h first.
85903
85904 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
85905
85906         * lib/xalloc-die.c: New file.
85907         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
85908         All uses removed.
85909         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
85910         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
85911         xalloc-die.c.
85912         (_, N_, xalloc_die): Move to xalloc-die.c.
85913         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
85914         so that we needn't mess with xalloc_msg_memory_exhausted.
85915
85916         * lib/sha1.h: Renamed from sha.h.
85917         (SHA1_H): Renamed from _SHA_H.
85918         (sha1_ctx): Renamed from sha_ctx.
85919         (sha1_init_ctx): Renamed from sha_init_ctx.
85920         (sha1_process_block): Renamed from sha_process_block.
85921         (sha1_process_bytes): Renamed from sha_process_bytes.
85922         (sha1_finish_ctx): Renamed from sha_finish_ctx.
85923         (sha1_read_ctx): Renamed from sha_read_ctx.
85924         (sha1_stream): Renamed from sha_stream.
85925         (sha1_buffer): Renamed from sha_buffer.
85926         * lib/sha1.c: Likewise; renamed from sha.c.
85927         Do not include <sys/types.h>.
85928         Include <stddef.h> rather than <stdlib.h>.
85929
85930 2004-08-08  Bruno Haible  <bruno@clisp.org>
85931
85932         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
85933         FILESYSTEM_PREFIX_LEN.
85934         * lib/progreloc.c: Likewise.
85935         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
85936
85937 2004-08-06  Simon Josefsson  <jas@extundo.com>
85938
85939         * modules/progname (Depends-on): Don't depend on stdbool.
85940
85941 2004-08-06  Simon Josefsson  <jas@extundo.com>
85942
85943         * modules/getsubopt: New file.
85944         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
85945         getsubopt.
85946
85947 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
85948
85949         More merge from coreutils.
85950
85951         * m4/utimens.m4, m4/utimecmp.m4: New files.
85952         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
85953         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
85954         prereq.m4, sha.m4: Import changes from coreutils.
85955
85956 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
85957
85958         More merge from coreutils.
85959         * modules/raise, modules/readtokens0, modules/utimens:
85960         * modules/utimecmp, module/xnanosleep: New files.
85961         * modules/strftime: Add lib/strftime.h.
85962         Change include from <time.h> to "strftime.h".
85963         * modules/yesno: Add lib/yesno.h.
85964         * modules/backupfile: Remove lib/addext.c.
85965         * modules/euidaccess: Add stat-macros.h.
85966         * modules/canonicalize, modules/euidaccess,
85967         modules/filemode, modules/lchown, modules/makepath,
85968         modules/rmdir, modules/stat: Likewise.
85969
85970 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
85971
85972         Merge from tar.
85973         * lib/argp-help.c (make_hol, hol_append): Don't assume that
85974         SIZE_MAX is a valid preprocessor constant.
85975         (__argp_basename): Change from "#ifndef _LIBC"
85976         to "#ifndef __argp_short_program_name", so that
85977         we don't compile these functions for tar.
85978
85979         More merges from coreutils.
85980         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
85981         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
85982         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
85983         * lib/addext.c: Remove; no longer needed.
85984         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
85985         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
85986         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
85987         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
85988         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
85989         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
85990         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
85991         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
85992         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
85993         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
85994         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
85995         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
85996         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
85997         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
85998         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
85999         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
86000         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
86001         Import changes from coreutils.
86002
86003 2004-08-05  Simon Josefsson  <jas@extundo.com>
86004
86005         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
86006
86007 2004-08-05  Simon Josefsson  <jas@extundo.com>
86008
86009         * m4/getsubopt.m4: New file.
86010
86011 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
86012
86013         Merge from coreutils.
86014
86015         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
86016         * m4/getcwd-path-max.m4: New files.
86017
86018         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
86019         FILESYSTEM_PREFIX_LEN ->
86020         FILE_SYSTEM_PREFIX_LEN.
86021         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
86022         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
86023         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
86024         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
86025
86026         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
86027         prerequisite modules now handle the DOS stuff.
86028         Don't check for unistd.h.
86029
86030 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
86031
86032         Merge from coreutils.
86033
86034         * lib/.gdb-history: Remove; this doesn't belong here.
86035
86036         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
86037         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
86038         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
86039         * lib/getcwd.c: New files.
86040
86041         * lib/dirname.h: Include <stdbool.h>.
86042         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
86043         for consistency with POSIX terminology.  All uses changed.
86044         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
86045         (strip_trailing_slashes): Use bool for booleans.
86046         * lib/stripslash.c (strip_trailing_slashes): Likewise.
86047
86048         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
86049         sometimes returns a positive errno value even when it succeeds.
86050         (print_errno_message) [!LIBC]: Fall back on strerror if
86051         __strerror_r fails.
86052
86053         * lib/path-concat.c (mempcpy): Don't define if a system header defines
86054         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
86055         (longest_relative_suffix): New function.
86056         (path_concat): Use it.  Assume first argument is not NULL.
86057         Port to DOS.  Omit redundant separators.
86058         Report an error instead of returning NULL.
86059         Use mempcpy instead of memcpy.
86060         (xpath_concat): Remove: not declared or used.
86061
86062         * lib/same.h: Include <stdbool.h>
86063         (same_name): Return bool, not int.
86064         * lib/same.c (same_name): Likewise.
86065         (errno): Don't declare; we assume C89 or better now.
86066
86067         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
86068         if not already defined.
86069
86070         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
86071         * lib/dup-safer.c (errno): Likewise.
86072
86073 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
86074
86075         Merge from coreutils.
86076         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
86077         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
86078         * modules/path-concat: Don't depend on strdup.
86079
86080 2004-08-03  Simon Josefsson  <jas@extundo.com>
86081
86082         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
86083         * lib/progname.h: Don't include stdbool.h.
86084
86085 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
86086
86087         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
86088         * MODULES.html.sh (func_all_modules): Remove fatal.
86089
86090 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
86091
86092         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
86093
86094 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
86095
86096         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
86097         working.
86098
86099 2004-08-02  Simon Josefsson  <jas@extundo.com>
86100
86101         * lib/getsubopt.h: New file, with comments from Bruno Haible.
86102         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
86103         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
86104
86105 2004-08-01  Simon Josefsson  <jas@extundo.com>
86106
86107         * lib/xgetdomainname.c: Include stdlib.h, for free().
86108
86109 2004-07-19  Bruno Haible  <bruno@clisp.org>
86110
86111         * MODULES.html.sh (func_all_modules): Add dummy.
86112
86113 2004-07-16  Simon Josefsson  <jas@extundo.com>
86114
86115         * modules/dummy: New file.
86116
86117 2004-07-16  Simon Josefsson  <jas@extundo.com>
86118
86119         * lib/dummy.c: New file.
86120
86121 2004-07-16  Bruno Haible  <bruno@clisp.org>
86122
86123         * lib/backupfile.h: Add extern "C" for C++.
86124         * lib/closeout.h: Likewise.
86125         * lib/copy-file.h: Likewise.
86126         * lib/findprog.h: Likewise.
86127         * lib/full-write.h: Likewise.
86128         * lib/pathname.h: Likewise.
86129         * lib/progname.h: Likewise.
86130         * lib/stpcpy.h: Likewise.
86131         * lib/stpncpy.h: Likewise.
86132         * lib/strcase.h: Likewise.
86133         * lib/strstr.h: Likewise.
86134         * lib/xalloc.h: Likewise.
86135
86136         * lib/mbswidth.h: Add extern "C" for C++.
86137         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
86138
86139 2004-07-13  Robert Millan  <robertmh@gnu.org>
86140
86141         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
86142
86143 2004-07-09  Simon Josefsson  <jas@extundo.com>
86144
86145         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
86146         failed without this.)
86147
86148 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
86149
86150         * modules/chown (Files): Add lib/fchown-stub.c, since
86151         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
86152
86153 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
86154
86155         * lib/fchown-stub.c: New file.
86156
86157 2004-06-24  Jim Meyering  <jim@meyering.net>
86158
86159         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
86160
86161 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
86162
86163         * modules/argz: Omit "#include".
86164
86165         * MODULES.html.sh (func_all_modules): Add calloc, to match
86166         2004-06-01 addition of calloc module.
86167
86168 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
86169
86170         * m4/argz.m4: New file, which is autoupdated from libtool.
86171
86172 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
86173
86174         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
86175         libtool.
86176
86177 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
86178
86179         * config/srclist-update: Don't insist on "USA." before the
86180         close-comment, as libtool omits the period and puts the */ on a
86181         separate line.
86182         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
86183         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
86184
86185 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
86186
86187         * modules/argz: New file.
86188         * MODULES.html.sh (func_all_modules): Add argz.
86189
86190 2004-06-12  Jim Meyering  <jim@meyering.net>
86191         and  Paul Eggert  <eggert@cs.ucla.edu>
86192
86193         * modules/hash (Files): Add lib/xalloc.h.
86194         * modules/pipe (Depends-on): Add wait-process.
86195         * modules/stat (Depends-on): Add xalloc.
86196         * modules/userspec (Files): Add lib/userspec.h.
86197         * modules/xstrto
86198
86199         Upgrade from gettext-0.13.
86200         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
86201         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
86202         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
86203
86204 2004-06-10  Jim Meyering  <jim@meyering.net>
86205
86206         * lib/calloc.c: New file.
86207
86208 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
86209
86210         * lib/getdate.y (yylex): Allow space between sign and number.
86211         Problem reported by Dan Jacobson.
86212
86213 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
86214
86215         Merge from coreutils CVS.
86216
86217         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
86218         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
86219         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
86220         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
86221         xstrtol.m4: Fix copyright date and/or serial number.
86222
86223         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
86224         See if we need an fchown replacement.
86225         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
86226         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
86227         and use the replacement function if we detect either defect.
86228
86229         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
86230         gl_UTIMECMP.
86231
86232 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
86233         and  Jim Meyering  <jim@meyering.net>
86234
86235         Merge from coreutils CVS.
86236
86237         * lib/stat-macros.h: New file, with contents from file-type.h
86238         and coreutils' system.h.
86239         * lib/file-type.c: Include "stat-macros.h".
86240         * lib/file-type.h (file_type): Move all macro definitions to new file,
86241         stat-macros.h.
86242
86243         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
86244         Wrap old code with this conditional.
86245         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
86246         function that does not dereference symlinks.
86247         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
86248
86249         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
86250         dependency problems.
86251         (xreadlink): Accept new arg SIZE, for efficiency.
86252         All decls and uses changed.
86253         * lib/xreadlink.h: Include <stddef.h>, for size_t.
86254
86255         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
86256         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
86257
86258         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
86259         sysexits.h.
86260
86261 2004-06-01  Jim Meyering  <jim@meyering.net>
86262
86263         * m4/calloc.m4: New file.
86264
86265 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
86266
86267         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
86268         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
86269         Also, fix a typo in a diagnostic.
86270
86271 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
86272
86273         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
86274         or AC_FUNC_REALLOC.
86275
86276 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
86277
86278         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
86279         macros to be defined.
86280         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
86281         the allocator returns NULL because the requested size is zero.
86282
86283 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
86284
86285         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
86286         var.  Add comment explaining why libc still defines it.  This
86287         merges the following patch from glibc:
86288         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
86289
86290 2004-05-20  Andreas Schwab  <schwab@suse.de>
86291
86292         * m4/free.m4: Replace free if it not known to work, not the other
86293         way round.
86294
86295 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
86296
86297         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
86298         present in glibc since revision 1.1 of this file.
86299         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
86300         obstack_alignment_mask, obstack_alloc, obstack_base,
86301         obstack_blank, obstack_blank_fast, obstack_chunk_size,
86302         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
86303         obstack_grow0, obstack_init, obstack_int_grow,
86304         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
86305         obstack_next_free, obstack_object_size, obstack_ptr_grow,
86306         obstack_ptr_grow_fast, obstack_room): Remove declarations of
86307         nonexistent functions.
86308
86309 2004-05-18  Karl Berry  <karl@gnu.org>
86310
86311         * config/srclist.txt: break link for vasnprintf.c.
86312
86313 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
86314
86315         Port obstack to the AS/400, where pointers are 16 bytes wide and
86316         you cannot cast an integer to a valid pointer.  This patch is
86317         currently waiting to be integrated into glibc; see
86318         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
86319
86320         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
86321         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
86322         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
86323         (struct obstack): temp member is now a union of a pointer and
86324         an integer, instead of an integer.  All integer uses changed.
86325         This does not affect the physical layout of struct obstack,
86326         except on hosts (like the AS/400) where the size or alignment of
86327         void * is greater than that of ptrdiff_t.
86328         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
86329         __STDC__)]: Store temporary in pointer member of union, not
86330         integer member.
86331         * lib/obstack.c: Include <stddef.h>, for offsetof.
86332         (struct fooalign): Remove; it doesn't need a name.
86333         (union fooround): Change double to long double, and add void *.
86334         (DEFAULT_ALIGNMENT): Use offsetof to compute.
86335         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
86336         not a macro.  Hence the values are always int; so remove all
86337         casts-to-int in uses.
86338
86339 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
86340
86341         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
86342         we can get this patch merged into glibc.
86343
86344 2004-05-17  Derek R. Price  <derek@ximbiot.com>
86345             Paul Eggert  <eggert@cs.ucla.edu>
86346
86347         * m4/argp: Depend on alloca.
86348
86349 2004-05-17  Derek R. Price  <derek@ximbiot.com>
86350             Paul Eggert  <eggert@cs.ucla.edu>
86351
86352         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
86353         freecoding.
86354
86355 2004-05-17  Bruno Haible  <bruno@clisp.org>
86356
86357         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
86358         precision that consists of a '.' followed by an empty digit string.
86359         Patch by Tor Lillqvist <tml@iki.fi>.
86360
86361 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
86362
86363         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
86364         for backward compatibility with older code.  We need our own
86365         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
86366         it under some other name, and our alloca.h will define it.
86367
86368 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
86369             Derek Price  <derek@ximbiot.com>
86370
86371         * lib/alloca.c: Include <alloca.h>, to get our interface.
86372         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
86373         include <alloca.h> first.  Use C89 prototype for alloca; this
86374         requires including <stddef.h> for size_t.  Use extern "C" if C++.
86375         Use #elif for simplicity, since we can assume C89 now.
86376         Don't try to source the system alloca.h since it will not be found
86377         and to prevent recursively including its replacement.
86378         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
86379         * lib/regex.c: Likewise.
86380
86381 2004-05-16  Derek Price  <derek@ximbiot.com>
86382             Paul Eggert  <eggert@cs.ucla.edu>
86383
86384         getline cleanup.  This changes the getndelim2 API: both order of
86385         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
86386         no delimiter).
86387
86388         * lib/getline.c: Don't include stddef.h or stdio.h, since our
86389         interface does that.
86390         (getline): Always use getdelim, so that we don't have two
86391         copies of this code.
86392         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
86393         if available.
86394         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
86395         (GETNDELIM2_MAXIMUM): New macro.
86396         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
86397         instead of the old practice of delim2==0.  All callers changed.
86398         Return -1 on overflow, instead of returning junk.
86399         Do not set *linesize unless allocation succeeds.
86400         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
86401         that we include sys/types.h.
86402         * lib/getnline.h: Likewise.
86403         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
86404         (getndelim2): Reorder arguments.
86405         * lib/getnline.c (getnline, getndelim):
86406         Don't discard the NMAX argument.
86407         (getnline): Invoke getndelim, to avoid code duplication.
86408         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
86409         of (size_t) -1 by callers of the getnline family.
86410
86411 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
86412
86413         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
86414         Check for gettimeofday.
86415         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
86416         Check for settimeofday, stime.
86417
86418 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
86419
86420         * lib/nanosleep.c (suspended): Change its type from int to
86421         sig_atomic_t volatile.
86422         (first_call): Make it private to rpl_nanosleep, and have it
86423         be zero initially as that's a bit faster.
86424         (my_usleep): Round up fractional times instead of truncating them,
86425         as this is the usual meaning for 'sleep'.
86426
86427         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
86428         doesn't work.
86429         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
86430         (ENOSYS): Define if not defined.
86431         (settime): Fall back on stime if it exists and settimeofday fails.
86432         But don't bother with fallbacks if a method fails with errno == EPERM.
86433
86434 2004-05-11  Jim Meyering  <jim@meyering.net>
86435
86436         Prior to this change, the save_cwd caller required read access to the
86437         current directory on most systems (ones with the fchdir function).
86438
86439         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
86440         fails, try write-only, and finally, resort to using xgetcwd.
86441
86442 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
86443
86444         * lib/obstack.c, obstack.h: Import changes from libc.
86445
86446 2004-04-28  Bruno Haible  <bruno@clisp.org>
86447
86448         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
86449         also implicitly appends .exe to executables.
86450         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
86451         accepts Windows pathnames.
86452         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
86453         Treat Cygwin like Windows, since it now accepts Windows pathnames.
86454         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
86455         Treat Cygwin like Windows, since it now accepts Windows pathnames.
86456         Reported by Derek Robert Price <derek@ximbiot.com>.
86457
86458 2004-04-21  Karl Berry  <karl@gnu.org>
86459
86460         * config/srclist.txt (localcharset.c): break sync.
86461
86462 2004-04-20  Paul Eggert  <eggert@twinsun.com>
86463
86464         * m4/host-os.m4: Add a copyright notice.
86465
86466 2004-04-20  Jim Meyering  <jim@meyering.net>
86467
86468         Change UTILS_ to gl_ in AC_DEFINE'd names.
86469         Change utils_- and jm_-prefixed variables, too.
86470         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
86471         UTILS_FUNC_MKDIR_TRAILING_SLASH.
86472         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
86473
86474         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
86475         Don't emit trailing blanks.
86476         Also rename jm_-prefixed variables to have gl_ prefix.
86477
86478         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
86479         Also rename jm_-prefixed variables to have gl_ prefix.
86480
86481         * m4/jm-macros.m4: Reflect the renamings.
86482         * m4/prereq.m4: Likewise.
86483
86484 2004-04-20  Jim Meyering  <jim@meyering.net>
86485
86486         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
86487         memory.
86488
86489 2004-04-20  Jim Meyering  <jim@meyering.net>
86490             Bruno Haible  <bruno@clisp.org>
86491
86492         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
86493         memory when realloc fails.
86494
86495 2004-04-19  Jim Meyering  <jim@meyering.net>
86496
86497         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
86498         now that readutmp.c may call `free (0)'.
86499
86500 2004-04-19  Bruno Haible  <bruno@clisp.org>
86501
86502         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
86503         * m4/inttypes_h.m4: Likewise.
86504         * m4/stdint_h.m4: Likewise.
86505         * m4/intmax_t.m4: Likewise.
86506         * m4/uintmax_t.m4: Likewise.
86507
86508 2004-04-18  Jim Meyering  <jim@meyering.net>
86509
86510         * m4/prereq.m4: Don't forbid jm_ prefix.
86511
86512         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
86513         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
86514         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
86515         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
86516         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
86517         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
86518         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
86519         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
86520         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
86521         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
86522         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
86523         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
86524         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
86525         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
86526         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
86527         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
86528         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
86529         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
86530         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
86531
86532 2004-04-18  Jim Meyering  <jim@meyering.net>
86533
86534         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
86535         failure, don't leak memory and do call END_UTMP_ENT.
86536
86537 2004-04-16  Jim Meyering  <jim@meyering.net>
86538
86539         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
86540         coreutils' stat program.
86541         (gl_PREREQ): Don't require jm_PREREQ_STAT.
86542
86543 2004-04-11  Paul Eggert  <eggert@twinsun.com>
86544
86545         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
86546         C89.
86547         (CHAR_BIT): Remove, since we assume C89.
86548         Include <stdint.h> if available, as per current Autoconf CVS advice.
86549
86550 2004-03-31  Jim Meyering  <jim@meyering.net>
86551
86552         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
86553         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
86554         * m4/xalloc.m4: Likewise.
86555
86556 2004-03-30  Paul Eggert  <eggert@twinsun.com>
86557
86558         Merge from coreutils.
86559
86560         * m4/inttostr.m4: New file.
86561         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
86562         Require AM_STDBOOL_H and gl_TIMESPEC instead.
86563         Require gl_CLOCK_TIME.
86564         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
86565
86566 2004-03-30  Paul Eggert  <eggert@twinsun.com>
86567
86568         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
86569         not bool, to be more consistent with Unix conventions.
86570         Suggested by Bruno Haible.
86571
86572         Merge from coreutils.
86573
86574         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
86575         * lib/umaxtostr.c: New files.
86576
86577         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
86578         the usual <time.h> dance.
86579         (get_date): Change signature to support fractional time stamps.
86580         All callers changed.
86581         * lib/getdate.y: Include "getdate.h" first, as we can now
86582         assume C89 and don't need to worry about 'const'.
86583         Similarly, include "unlocked-io.h" near start, not in middle.
86584         Include <limits.h>.
86585         (textint.value): Use long int rather than int.
86586         (textint.digits): Use size_t rather than int.
86587         (BILLION, LOG10_BILLION): New constants.
86588         (parser_control): New member rel_ns.  Members day_ordinal,
86589         time_zone, month, day, hour, minutes, rel_year, rel_month,
86590         rel_day, rel_hour, rel_minutes, rel_seconds
86591         are now long int, not int.  Member seconds is now struct timespec,
86592         not int.  New member timespec_seen.  Members dates_seen, days_seen,
86593         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
86594         not int.
86595         (%union.intval): Now long int, not int.
86596         New member timespec.
86597         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
86598         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
86599         (spec): Now is a timespec or an item list.
86600         (timespec, items): New nonterminals.
86601         (time, rel, relunit, number, get_date):
86602         Add support for fractional seconds.
86603         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
86604         (gmtime, localtime, mktime): Remove decls; not needed with C89.
86605         (to_hour): First arg is now long int, not int.
86606         (to_year): Returns long int, not int.
86607         Don't treat year -70 like 70.
86608         (tm_diff): Returns long int, not int.
86609         (lookup_word): Use bool instead of int when appropriate.
86610         (yylex): Use size_t for count, not int.
86611         Detect overflow when parsing large integer constants.
86612         Add support for fractions.
86613         (get_date): Make pointers 'const' if possible.
86614         Use more-portable code to detect integer overflow.
86615         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
86616         Don't use ctime; it's not reliable if the year has >4 digits.
86617
86618         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
86619         This is for compatibility with BSD.
86620
86621         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
86622         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
86623         From coreutils' system.h.
86624
86625         * lib/userspec.c: Don't include "posixver.h".
86626         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
86627         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
86628         compatible extension.  Simplify code by removing a boolean int
86629         that was always nonzero if a string was nonnull.
86630
86631 2004-03-30  Jim Meyering  <jim@meyering.net>
86632
86633         Merge from coreutils.
86634
86635         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
86636         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
86637         on some systems one must include <grp.h> before it.
86638         Reported by Christian Krackowizer.
86639
86640 2004-03-30  Jim Meyering  <jim@meyering.net>
86641
86642         Merge from coreutils.
86643
86644         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
86645
86646         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
86647         an empty input stream.
86648
86649         * lib/readtokens.c: Include <stdbool.h>.
86650         (readtoken): Use `size_t' rather than int/long.
86651         All callers adjusted.
86652         Use `bool' rather than `int' where appropriate.
86653         Use memset rather than an explicit loop.
86654         Use x2nrealloc rather than xrealloc.
86655         Allow the use of `\0' as a delimiter.
86656         (readtokens): Likewise.
86657         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
86658
86659 2004-03-30  Jim Meyering  <jim@meyering.net>
86660
86661         * m4/realloc.m4: Remove file, since now it does no more than
86662         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
86663         the `configure.ac' section of module/realloc.
86664         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
86665
86666 2004-03-30  Bruno Haible  <bruno@clisp.org>
86667
86668         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
86669         nonnull.
86670
86671 2004-03-29  Paul Eggert  <eggert@twinsun.com>
86672
86673         Merge changes to getloadavg.c from coreutils and Emacs.
86674
86675         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
86676         Define to an expression, not to the empty string.
86677         Include cloexec.h and xalloc.h.
86678         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
86679         Use set_cloexec_flag rather than rolling our own.
86680         * lib/cloexec.c, lib/cloexec.h: New files.
86681
86682 2004-03-29  Paul Eggert  <eggert@twinsun.com>
86683
86684         * m4/cloexec.m4: New file.
86685
86686 2004-03-18  Paul Eggert  <eggert@twinsun.com>
86687
86688         * lib/getopt.h: Sync with libc CVS.
86689
86690 2004-03-18  Paul Eggert  <eggert@twinsun.com>
86691             Bruno Haible  <bruno@clisp.org>
86692
86693         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
86694         mbswidth.
86695
86696 2004-03-18  Paul Eggert  <eggert@twinsun.com>
86697             Bruno Haible  <bruno@clisp.org>
86698
86699         * lib/mbswidth.h: Include <wchar.h> only if
86700         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
86701         <wchar.h>.
86702         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
86703
86704 2004-03-09  Paul Eggert  <eggert@twinsun.com>
86705
86706         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
86707         Sync with libc CVS.
86708         * lib/getopt_int.h: New file, also synced from libc.
86709
86710 2004-03-09  Paul Eggert  <eggert@twinsun.com>
86711
86712         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
86713         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
86714         Bring back getopt.c, getopt.h, getopt1.c.
86715
86716 2004-03-07  Paul Eggert  <eggert@twinsun.com>
86717
86718         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
86719         All uses changed.  Check for sa_sigaction member; this fixes
86720         a bug first reported by Jason Andrade in
86721         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
86722
86723 2004-03-07  Paul Eggert  <eggert@twinsun.com>
86724
86725         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
86726         '#if' expressions.  Unlike the code it replaces, it does not
86727         depend on (defined _SC_PAGESIZE).  However, it does depend on
86728         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
86729         first reported by Jason Andrade in
86730         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
86731
86732 2004-02-25  Simon Josefsson  <jas@extundo.com>
86733
86734         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
86735
86736 2004-02-25  Simon Josefsson  <jas@extundo.com>
86737
86738         * lib/strdup.h: New file.
86739         * lib/strdup.c: Include it.
86740         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
86741         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
86742
86743 2004-02-23  Karl Berry  <karl@gnu.org>
86744
86745         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
86746         (from fencepost.gnu.org:/gd/gnuorg).
86747
86748 2004-02-23  Karl Berry  <karl@gnu.org>
86749
86750         * config/srclistvars.sh (GNUORG) [karl]: redefine.
86751         * config/srclist.txt: add maintain/standards documents.
86752
86753 2004-02-18  Bruno Haible  <bruno@clisp.org>
86754
86755         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
86756         Reported by Derek Robert Price <derek@ximbiot.com>.
86757
86758 2004-02-16  Karl Berry  <karl@gnu.org>
86759
86760         * config/mkinstalldirs, install-sh: update from automake.
86761
86762 2004-02-06  Karl Berry  <karl@gnu.org>
86763
86764         * m4/po.m4: update from gettext 0.14.1.
86765
86766 2004-02-06  Karl Berry  <karl@gnu.org>
86767
86768         * lib/config.charset: update from gettext 0.14.1.
86769
86770 2004-02-05  Paul Eggert  <eggert@twinsun.com>
86771
86772         Add comments and code, prompted by suggestions from Bruno Haible
86773         for sh-quote.
86774         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
86775         describing the enum quoting_style values.
86776         * lib/quotearg.c (quotearg_alloc): New function.
86777         (quotearg_buffer_restyled): Treat lone { and } as special.
86778         Treat = as special.  Work around bug with older shells
86779         that "see" a '\' that is really the 2nd byte of a multibyte char.
86780         Quote empty string with shell_quoting_style.
86781
86782 2004-02-03  Bruno Haible  <bruno@clisp.org>
86783
86784         * m4/pipe.m4: New file, from GNU gettext.
86785
86786 2004-02-03  Bruno Haible  <bruno@clisp.org>
86787
86788         * lib/pipe.h: New file, from GNU gettext.
86789         * lib/pipe.c: New file, from GNU gettext.
86790
86791 2004-01-27  Bruno Haible  <bruno@clisp.org>
86792
86793         * m4/execute.m4: New file, from GNU gettext.
86794
86795 2004-01-27  Bruno Haible  <bruno@clisp.org>
86796
86797         * lib/execute.h: New file, from GNU gettext.
86798         * lib/execute.c: New file, from GNU gettext.
86799         * lib/w32spawn.h: New file, from GNU gettext.
86800
86801 2004-01-24  Paul Eggert  <eggert@twinsun.com>
86802
86803         Merge from diffutils.
86804
86805         * lib/file-type.c (file_type): Add typed memory objects.
86806         * lib/file-type.h (S_TYPEISTMO): New macro.
86807
86808         * lib/c-stack.h (c_stack_action): Remove argv argument.
86809         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
86810         (die): Don't calculate message unless segv_action returns.
86811         (get_stack_location, min_address_from_argv, max_address_from_argv,
86812         volatile stack_base, volatile_stack_size): Remove.
86813         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
86814         that every segmentation violation is a stack overflow.  (Ouch!)
86815         See Debian bug 136249 (still outstanding) for more info about why
86816         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
86817
86818 2004-01-24  Paul Eggert  <eggert@twinsun.com>
86819
86820         Exit-status fix from coreutils.
86821
86822         Use exit_failure consistently in place of EXIT_FAILURE,
86823         so that program exit statuses are consistent on failure.
86824
86825         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
86826         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
86827         * lib/argmatch.h: Comment fix to match the above.
86828         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
86829         Now a macro referring to exit_failure, instead of a separate
86830         variable.  Include "exitfail.h" to get it.
86831         * lib/xstrtol.h: Include "exitfail.h".
86832         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
86833
86834         * lib/long-options.c (parse_long_options): Use prototype
86835         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
86836         for clarity.
86837
86838 2004-01-21  Jim Meyering  <jim@meyering.net>
86839
86840         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
86841         so as not to conflict with a different-sized __mktime_internal
86842         function in GNU libc.
86843         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
86844         Problem building statically-linked `ls' reported by Michael Brunnbauer.
86845
86846 2004-01-20  Karl Berry  <karl@gnu.org>
86847
86848         * config/config.guess: update from config.
86849
86850         * config/srclistvars.sh: GNUWWWLICENSES for karl.
86851
86852 2004-01-20  Bruno Haible  <bruno@clisp.org>
86853
86854         Safer stack allocation.
86855         * lib/setenv.c: Include allocsa.h.
86856         (alloca): Remove fallback definition.
86857         (freea): Remove macro.
86858         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
86859         instead of freea.
86860
86861 2004-01-20  Bruno Haible  <bruno@clisp.org>
86862
86863         * m4/eealloc.m4: New file, from GNU gettext.
86864
86865 2004-01-20  Bruno Haible  <bruno@clisp.org>
86866
86867         * m4/allocsa.m4: New file, from GNU gettext.
86868
86869 2004-01-20  Bruno Haible  <bruno@clisp.org>
86870
86871         * lib/xallocsa.h: New file, from GNU gettext.
86872         * lib/xallocsa.c: New file, from GNU gettext.
86873
86874 2004-01-20  Bruno Haible  <bruno@clisp.org>
86875
86876         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
86877
86878 2004-01-20  Bruno Haible  <bruno@clisp.org>
86879
86880         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
86881         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
86882         specially.
86883
86884 2004-01-20  Bruno Haible  <bruno@clisp.org>
86885
86886         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
86887         patch.
86888
86889 2004-01-20  Bruno Haible  <bruno@clisp.org>
86890
86891         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
86892
86893 2004-01-20  Bruno Haible  <bruno@clisp.org>
86894
86895         * lib/eealloc.h: New file.
86896
86897 2004-01-20  Bruno Haible  <bruno@clisp.org>
86898
86899         * lib/binary-io.h: Avoid warnings on Cygwin.
86900
86901 2004-01-20  Bruno Haible  <bruno@clisp.org>
86902
86903         * lib/allocsa.h: New file, from GNU gettext.
86904         * lib/allocsa.c: New file, from GNU gettext.
86905
86906 2004-01-18  Karl Berry  <karl@gnu.org>
86907
86908         * doc/gpl.texi, doc/lgpl.texi: new files.
86909
86910 2004-01-18  Karl Berry  <karl@gnu.org>
86911
86912         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
86913         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
86914
86915 2004-01-15  Paul Eggert  <eggert@twinsun.com>
86916
86917         Merge from coreutils.
86918
86919         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
86920         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
86921         (gl_DEFAULT_POSIX2_VERSION): Move
86922         the documentation from 'configure' into 'config.hin',
86923         so that 'configure --help' isn't burdened by it and
86924         we don't have to worry about its formatting there.
86925         Reword the documentation so that it's more succinct
86926         and can be run together into a single paragraph.
86927         * m4/same.m4 (gl_SAME): Check for pathconf.
86928
86929 2004-01-15  Paul Eggert  <eggert@twinsun.com>
86930
86931         Merge from coreutils.
86932
86933         * lib/posixver.c: Include posixver.h.
86934
86935         * lib/same.c: Include <stdbool.h>, <limits.h>.
86936         (_POSIX_NAME_MAX): Define if not defined.
86937         (MIN): New macro.
86938         (same_name): If file names are silently truncated, report
86939         that the file names are the same if they are the same after
86940         the silent truncation.
86941
86942         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
86943         conversion function.
86944         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
86945         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
86946         longer needed.
86947
86948 2004-01-15  Jim Meyering  <jim@meyering.net>
86949
86950         Merge from coreutils.
86951
86952         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
86953         if no library is required.
86954         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
86955         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
86956         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
86957         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
86958         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
86959         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
86960         value, $ac_cv_search_crypt, if it's "none required".
86961         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
86962         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
86963         not gl_FUNC_GETLOADAVG.
86964         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
86965         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
86966
86967 2004-01-15  Jim Meyering  <jim@meyering.net>
86968
86969         Merge from coreutils.
86970
86971         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
86972         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
86973         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
86974
86975         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
86976         optional configure-time default.
86977
86978         * lib/version-etc.c (version_etc_copyright): Update copyright date.
86979
86980         * lib/xreadlink.c (xreadlink): Correct outdated comment.
86981
86982 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
86983
86984         Merge from coreutils.
86985
86986         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
86987         value, $ac_cv_search_nanosleep, if it's "none required".
86988
86989 2004-01-14  Paul Eggert  <eggert@twinsun.com>
86990
86991         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
86992         with like-named macro in fnmatch.c.
86993         (EXT): Use an internal constant instead.
86994
86995         Merge fnmatch patches from glibc.
86996         * lib/fnmatch.c (mbsinit): Remove define.
86997         Add libc_hidden_ver (__fnmatch, fnmatch).
86998         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
86999         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
87000
87001 2004-01-14  Karl Berry  <karl@gnu.org>
87002
87003         * config/install-sh: update from automake.
87004
87005 2004-01-13  Karl Berry  <karl@gnu.org>
87006
87007         * config/install-sh: update from automake.
87008
87009 2004-01-09  Karl Berry  <karl@gnu.org>
87010
87011         * config/install-sh: update from automake.
87012
87013 2004-01-05  Karl Berry  <karl@gnu.org>
87014
87015         * config/config.{sub,guess}: update from config.
87016
87017 2003-12-31  Karl Berry  <karl@gnu.org>
87018
87019         * config/depcomp: update from automake.
87020
87021 2003-12-14  Karl Berry  <karl@gnu.org>
87022
87023         * lib/config.charset: update from gettext-runtime.
87024
87025 2003-12-03  Paul Eggert  <eggert@twinsun.com>
87026
87027         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
87028         Bug reported by Alfred M. Szmidt.
87029
87030 2003-12-03  Bruno Haible  <bruno@clisp.org>
87031
87032         * m4/gettext.m4: Upgrade from gettext-0.13.
87033         * m4/po.m4: Upgrade from gettext-0.13.
87034         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
87035         * m4/intmax.m4: New file, from gettext-0.13.
87036         * m4/printf-posix.m4: New file, from gettext-0.13.
87037
87038 2003-11-29  Karl Berry  <karl@gnu.org>
87039
87040         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
87041
87042 2003-11-25  Paul Eggert  <eggert@twinsun.com>
87043             Bruno Haible  <bruno@clisp.org>
87044
87045         * lib/printf-parse.h: Don't include sys/types.h.
87046         (ARG_NONE): New macro.
87047         (char_directive): Change type of *arg_index fields to size_t.
87048         * lib/printf-parse.c: Don't include sys/types.h.
87049         (SSIZE_MAX): Remove macro.
87050         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
87051         Remove unnecessary overflow check.
87052         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
87053         fields.
87054
87055 2003-11-25  Bruno Haible  <bruno@clisp.org>
87056
87057         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
87058
87059 2003-11-25  Bruno Haible  <bruno@clisp.org>
87060
87061         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
87062         gt_TYPE_SSIZE_T.
87063
87064 2003-11-24  Paul Eggert  <eggert@twinsun.com>
87065
87066         * modules/alloca: Remove dependency on xalloc.
87067
87068 2003-11-24  Paul Eggert  <eggert@twinsun.com>
87069
87070         * lib/alloca.c: Remove dependency on xalloc module.
87071         (xalloc_die): Remove.
87072         (memory_full) [!defined emacs]: New macro.
87073         [!defined emacs]: Don't include xalloc.h.
87074         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
87075         address arithmetic overflows.  Change datatypes a bit to avoid
87076         unnecessary casts.
87077
87078 2003-11-22  Jim Meyering  <jim@meyering.net>
87079
87080         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
87081         s/size/size_t/.
87082
87083 2003-11-21  Karl Berry  <karl@gnu.org>
87084
87085         * config/config.{sub,guess}: update from config.
87086
87087 2003-11-18  Karl Berry  <karl@gnu.org>
87088
87089         * config/config.{sub,guess}: update from config.
87090
87091         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
87092
87093 2003-11-17  Paul Eggert  <eggert@twinsun.com>
87094
87095         * README: Mention that S+T cannot overflow if S is the size of
87096         an existing object and T is sufficiently small.
87097
87098 2003-11-17  Jim Meyering  <jim@meyering.net>
87099
87100         On systems without utime and without a utimes function capable of
87101         dealing with a NULL struct utimbuf* argument, this utime replacement
87102         could -- in unusual circumstances -- leak a file descriptor.
87103         * lib/utime.c: Include <unistd.h> and <errno.h>.
87104         (utime_null): Be sure to close `fd' and to preserve errno.
87105         Reported by Geoff Collyer via Arnold Robbins.
87106
87107 2003-11-17  Bruno Haible  <bruno@clisp.org>
87108
87109         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
87110         (Depends-on): Add xsize.
87111
87112 2003-11-17  Bruno Haible  <bruno@clisp.org>
87113
87114         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
87115
87116 2003-11-17  Bruno Haible  <bruno@clisp.org>
87117
87118         * lib/vasnprintf.c (alloca): Remove fallback definition.
87119         (freea): Remove definition.
87120         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
87121         Reported by Paul Eggert.
87122
87123 2003-11-16  Paul Eggert  <eggert@twinsun.com>
87124             Bruno Haible  <bruno@clisp.org>
87125
87126         Protect against address arithmetic overflow.
87127         * lib/printf-args.h: Include stddef.h.
87128         (arguments): Change type of field 'count' to size_t.
87129         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
87130         'unsigned int' where appropriate.
87131         * lib/printf-parse.h: Include sys/types.h.
87132         (char_directive): Change type of *arg_index fields to ssize_t.
87133         (char_directives): Change type of fields 'count', max_*_length to
87134         size_t.
87135         * lib/printf-parse.c: Include sys/types.h and xsize.h.
87136         (SSIZE_MAX): Define fallback value.
87137         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
87138         instead of 'int' where appropriate. Check a_allocated, d_allocated
87139         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
87140         * lib/vasnprintf.c: Include xsize.h.
87141         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
87142         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
87143         overflow. Avoid wraparound when converting a width or precision from
87144         decimal to binary.
87145
87146 2003-11-16  Bruno Haible  <bruno@clisp.org>
87147
87148         Update from GNU gettext.
87149         * lib/printf-parse.c: Generalize to it can be compiled for wide
87150         strings.
87151         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
87152         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
87153         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
87154         SNPRINTF): New macros.
87155         Don't include <alloca.h> if the file is used inside libintl.
87156         (local_wcslen): New function, for Solaris 2.5.1.
87157         (VASNPRINTF): Use it instead of wcslen.
87158
87159 2003-11-16  Bruno Haible  <bruno@clisp.org>
87160
87161         * lib/xsize.h (xmax): New function.
87162         (xsum, xsum3, xsum4): Declare as "pure" functions.
87163
87164 2003-11-12  Paul Eggert  <eggert@twinsun.com>
87165
87166         * modules/xalloc (Files): Undo latest change, since xalloc.h
87167         no longer needs SIZE_MAX or PTRDIFF_MAX.
87168
87169 2003-11-12  Paul Eggert  <eggert@twinsun.com>
87170
87171         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
87172         gl_PTRDIFF_MAX.
87173
87174 2003-11-12  Paul Eggert  <eggert@twinsun.com>
87175
87176         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
87177         "return", to pacify some unknown compiler.  Problem reported
87178         by Joerg Schilling.
87179
87180 2003-11-12  Paul Eggert  <eggert@twinsun.com>
87181
87182         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
87183         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
87184         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
87185         heuristic is just as accurate as far as we know, and it removes a
87186         dependency on size_max.m4 and ptrdiff_max.m4.
87187
87188 2003-11-11  Bruno Haible  <bruno@clisp.org>
87189
87190         * modules/xsize (Files): Add m4/size_max.m4.
87191         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
87192
87193 2003-11-11  Bruno Haible  <bruno@clisp.org>
87194
87195         * m4/size_max.m4: New file.
87196         * m4/ptrdiff_max.m4: New file.
87197         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
87198         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
87199         (gl_XALLOC): Invoke it.
87200
87201 2003-11-11  Bruno Haible  <bruno@clisp.org>
87202
87203         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
87204         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
87205         defined.
87206
87207 2003-11-10  Paul Eggert  <eggert@twinsun.com>
87208
87209         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
87210         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
87211         rejected some allocations of exactly SIZE_MAX - 2 bytes.
87212         From Bruno Haible.
87213         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
87214         not (size_t) -1, since it's defined here.
87215
87216 2003-11-09  Karl Berry  <karl@gnu.org>
87217
87218         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
87219
87220 2003-11-06  Paul Eggert  <eggert@twinsun.com>
87221
87222         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
87223         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
87224         Reject sizes of exactly SIZE_MAX bytes.
87225         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
87226         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
87227
87228 2003-11-05  Bruno Haible  <bruno@clisp.org>
87229
87230         * lib/xsize.h: Include limits.h, to avoid a possible collision with
87231         SIZE_MAX defined in <limits.h> on Solaris.
87232
87233 2003-11-04  Jim Meyering  <jim@meyering.net>
87234
87235         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
87236         variable names, rather than @VAR@.
87237         * modules/poll: Likewise.
87238
87239 2003-11-04  Bruno Haible  <bruno@clisp.org>
87240
87241         * modules/xsize: New file.
87242         * modules/linebreak: Depend on xsize.
87243         * MODULES.html.sh (func_all_modules): Add xsize.
87244
87245 2003-11-04  Bruno Haible  <bruno@clisp.org>
87246
87247         * m4/xsize.m4: New file.
87248
87249 2003-11-04  Bruno Haible  <bruno@clisp.org>
87250
87251         * lib/xsize.h: New file.
87252         * lib/linebreak.c: Include xsize.h.
87253         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
87254         argument for overflow.
87255         Suggested by Paul Eggert.
87256
87257 2003-11-03  Karl Berry  <karl@gnu.org>
87258
87259         * config/config.{guess,sub}: update from config.
87260
87261 2003-11-03  Jim Meyering  <jim@meyering.net>
87262
87263         * modules/userspec (lib_SOURCES): Add userspec.h.
87264         (Include): Add "userspec.h".
87265         Improve description.
87266
87267 2003-11-03  Jim Meyering  <jim@meyering.net>
87268
87269         * lib/userspec.c: Include "userspec.h".
87270         * lib/userspec.h: New file.
87271
87272 2003-11-03  Bruno Haible  <bruno@clisp.org>
87273
87274         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
87275
87276 2003-11-03  Bruno Haible  <bruno@clisp.org>
87277
87278         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
87279         available, to avoid (extremely rare) race condition.
87280         Suggested by Paul Eggert.
87281
87282 2003-11-02  Karl Berry  <karl@gnu.org>
87283
87284         * config/srclist.txt (vasprintf.c): sync broken, sigh.
87285
87286 2003-10-31  Paul Eggert  <eggert@twinsun.com>
87287
87288         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
87289         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
87290         (read_filesystem_list): Set and use me_type_malloced.
87291         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
87292         whatever the type happens to be), for brevity and consistency.
87293         Check for size calculation overflow on Alphas running OSF/1.
87294
87295 2003-10-31  Jim Meyering  <jim@meyering.net>
87296
87297         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
87298
87299         * lib/linebuffer.c: Include <string.h> for declaration of memset.
87300
87301 2003-10-30  Paul Eggert  <eggert@twinsun.com>
87302             Bruno Haible  <bruno@clisp.org>
87303
87304         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
87305         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
87306
87307 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
87308
87309         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
87310         netbsd*-gnu*.  Suggested by Robert Millan.
87311
87312 2003-10-29  Paul Eggert  <eggert@twinsun.com>
87313
87314         * modules/group-member: Depend on stdbool.
87315
87316 2003-10-29  Paul Eggert  <eggert@twinsun.com>
87317
87318         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
87319
87320 2003-10-29  Paul Eggert  <eggert@twinsun.com>
87321
87322         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
87323         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
87324         after the 'gnu' in these cases.  This fixes some bugs in the
87325         previous change, and is based on suggestions by Robert Millan.
87326
87327 2003-10-29  Paul Eggert  <eggert@twinsun.com>
87328
87329         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
87330         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
87331         no longer needed.
87332         * lib/quotearg.c (quotearg_n_options): Use it.
87333         * lib/group-member.c: Include <stdbool.h>.
87334         (free_group_info): Arg is now const *; don't free arg.
87335         (get_group_info): Now returns bool and accepts struct group_info *,
87336         rather than returning a malloc'ed struct group_info *.
87337         All uses changed.  Check for overflow in internal size calculation.
87338
87339         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
87340         rather than xmalloc/xrealloc.
87341         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
87342         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
87343         conformance bug: the old code used a pointer after freeing the
87344         storage that it addressed.
87345         * lib/hash.c (hash_initialize): Simplify the code by using
87346         xalloc_oversized rather than doing it by hand.
87347         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
87348         the buffer preserved.  Use free and xmalloc instead.
87349         * lib/quotearg.c (quotearg_n_options): Likewise.
87350         Use a simpler test for size overflow.  Don't use xalloc_oversized
87351         because unsigned int might be wider than size_t (!); this suggests
87352         that we should switch from unsigned int to size_t for slot numbers.
87353
87354 2003-10-28  Paul Eggert  <eggert@twinsun.com>
87355
87356         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
87357         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
87358         NetBSD kernels.  Requested by Richard Stallman.
87359
87360 2003-10-27  Paul Eggert  <eggert@twinsun.com>
87361
87362         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
87363         to allocate the returned structure.  Do not allocate a subarray,
87364         as x2nrealloc will do that.
87365         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
87366         instead of xnrealloc.
87367         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
87368
87369 2003-10-27  Bruno Haible  <bruno@clisp.org>
87370
87371         * lib/stdbool_.h: Better support for BeOS.
87372
87373 2003-10-26  Paul Eggert  <eggert@twinsun.com>
87374
87375         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
87376         now uses inline.
87377
87378 2003-10-26  Paul Eggert  <eggert@twinsun.com>
87379
87380         * lib/xalloc.h (xalloc_oversized): New static inline function, for
87381         callers that want to do their own size-overflow checking.  Include
87382         <stdbool.h>, since xalloc_oversized returns bool.
87383         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
87384         to use xalloc_oversized.
87385
87386         Add two functions x2realloc, x2nrealloc, for programs that grow
87387         arrays dynamically by doubling their sizes.
87388         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
87389         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
87390         New functions.
87391
87392         Port to C99 semantics for 'inline' of external functions.
87393         Bug reported by Bruno Haible.
87394         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
87395         with the old contents of xnmalloc.
87396         (xnmalloc, xmalloc): Use it.
87397         (xnrealloc_inline): New static inline function,
87398         with the old contents of xnrealloc.
87399         (xnrealloc, xrealloc): Use it.
87400
87401         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
87402         that.
87403
87404 2003-10-26  Karl Berry  <karl@gnu.org>
87405
87406         * config/srclist.txt (COPYING.DOC): no longer available from
87407         /gd/gnuorg; don't know where the ultimate source is.
87408
87409 2003-10-25  Paul Eggert  <eggert@twinsun.com>
87410
87411         Fix several address-calculation bugs in the hash modules,
87412         plus some minor code cleanup.
87413
87414         * lib/hash.h: Include <stdbool.h>, for bool.
87415         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
87416         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
87417         hash_get_n_entries, hash_get_max_bucket_length,
87418         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
87419         hash_rehash): Use size_t rather than unsigned.
87420         * lib/hash.c (struct hash_table, hash_get_n_buckets,
87421         hash_get_n_buckets_used, hash_get_n_entries,
87422         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
87423         hash_get_entries, hash_do_for_each, hash_string, is_prime,
87424         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
87425         Likewise.
87426         (SIZE_MAX): Define if not defined.
87427         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
87428         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
87429         hash_print):
87430         Use const * when possible.
87431         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
87432         (check_tuning): Fix bug: if tuning parameters were very close to
87433         0 or 1, rounding errors could have caused subscript violations.
87434         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
87435         (hash_initialize): Add 'fail:' label
87436         to free table and return NULL, and use it to simplify code.
87437         Use calloc rather than clearing the storage ourself.
87438         (hash_initialize, hash_rehash): Check for arithmetic overflow in
87439         buffer size calculations.
87440         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
87441         Include <stddef.h>, for size_t.
87442         * lib/hash-pjw.c (hash_pjw): Likewise.
87443         Switch to method described by Bruno Haible.
87444         Include <limits.h>, for CHAR_BIT.
87445         (SIZE_BITS): New macro.
87446
87447 2003-10-23  Paul Eggert  <eggert@twinsun.com>
87448
87449         * m4/getline.m4 (AM_FUNC_GETLINE):
87450         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
87451         hosts.  Problem reported by Derek Robert Price in
87452         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
87453         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
87454         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
87455
87456 2003-10-21  Paul Eggert  <eggert@twinsun.com>
87457
87458         * lib/getndelim2.c (getndelim2): When size calculation overflows,
87459         ceiling the allocation at NMAX bytes rather than silently
87460         discarding input bytes before NMAX is reached.  This makes
87461         a difference only if NMAX exceeds SIZE_MAX / 2.
87462
87463         * lib/obstack.c: Merge from glibc.
87464         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
87465         Add libc_hidden_def (_obstack_newchunk).
87466         (_obstack_free) [! defined _LIBC]: Remove.
87467         [defined _LIBC]: Make a strong alias from obstack_free, rather than
87468         a clone of the function body.
87469         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
87470         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
87471
87472         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
87473         glibc.
87474         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
87475         arg to memcpy.
87476
87477         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
87478         (obstack_ptr_grow_fast, obstack_int_grow_fast):
87479         Don't use lvalue casts, as GCC plans to remove support for them
87480         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
87481         was also present in the non-GCC version, indicating that this
87482         code had always been buggy and had never been widely used.
87483         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
87484         Use the fast variant of each macro, rather than copying the
87485         definiens of the fast variant; that way, we'll be more likely to
87486         catch future bugs in the fast variants.
87487
87488 2003-10-20  Bruno Haible  <bruno@clisp.org>
87489
87490         * modules/wait-process: New file.
87491         * MODULES.html.sh (func_all_modules): Add wait-process.
87492
87493 2003-10-20  Bruno Haible  <bruno@clisp.org>
87494
87495         * m4/wait-process.m4: New file.
87496
87497 2003-10-20  Bruno Haible  <bruno@clisp.org>
87498
87499         * lib/wait-process.h: New file, from GNU gettext.
87500         * lib/wait-process.c: New file, from GNU gettext.
87501
87502 2003-10-19  Jim Meyering  <jim@meyering.net>
87503
87504         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
87505         HPUX 10.20.
87506
87507 2003-10-18  Karl Berry  <karl@gnu.org>
87508
87509         * config/config.guess: update from config.
87510
87511 2003-10-16  Paul Eggert  <eggert@twinsun.com>
87512
87513         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
87514         (getgroups): First arg is int, not size_t.
87515         Don't let 'free' mangle errno.
87516
87517 2003-10-16  Paul Eggert  <eggert@twinsun.com>
87518
87519         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
87520
87521 2003-10-16  Karl Berry  <karl@gnu.org>
87522
87523         * config/config.{guess,sub}: update from config.
87524
87525 2003-10-16  Jim Meyering  <jim@meyering.net>
87526
87527         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
87528         memcpy.
87529
87530 2003-10-15  Paul Eggert  <eggert@twinsun.com>
87531
87532         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
87533         (SIZE_MAX): Remove.
87534         (new_exclude, add_exclude_file): Initial size no longer needs to
87535         be a power of 2.
87536         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
87537         our own address arithmetic overflow checking.
87538
87539         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
87540         (fnmatch): Do not alloca more than 2000 wide characters;
87541         instead, use malloc for large buffers.
87542         Check for address arithmetic overflow, and return -1
87543         with errno set to ENOMEM in that case.
87544         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
87545         (NEW_PATTERN): Do not alloca more than 8000 bytes;
87546         instead, return -1.  Check for address arithmetic overflow.
87547
87548 2003-10-14  Paul Eggert  <eggert@twinsun.com>
87549
87550         Handle invalid suffixes and overflow independently, so that
87551         callers can treat them independently as needed.  Fix some bugs in
87552         suffix handling, e.g., "100k@" was not diagnosed as an invalid
87553         suffix for a human-readable blocksize.  The major caller-visible
87554         change is the addition of a new
87555         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
87556         that both overflow and suffix chars were found.
87557
87558         * lib/human.c (humblock): Don't check separately for invalid suffix
87559         char; that is xstrtoumax's job (now that its bug is fixed).
87560         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
87561         INTMAX_MAX]: New macros.
87562         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
87563         TYPE_MAXIMUM): New macros.
87564         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
87565         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
87566         if overflow occurs, as it's what __strtol does and it's more useful
87567         in practice.
87568         (__xstrtol): If __strtol reports some error other than ERANGE,
87569         reflect it to the caller as LONGINT_INVALID.  If it reports
87570         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
87571         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
87572         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
87573         value.
87574         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
87575         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
87576         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
87577         [defined UINTMAX_MAX]: New macros.
87578
87579 2003-10-14  Bruno Haible  <bruno@clisp.org>
87580
87581         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
87582
87583 2003-10-14  Bruno Haible  <bruno@clisp.org>
87584
87585         * m4/sig_atomic_t: New file, from GNU gettext.
87586         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
87587
87588 2003-10-14  Bruno Haible  <bruno@clisp.org>
87589
87590         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
87591         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
87592         Also use volatile where needed.
87593
87594 2003-10-12  Paul Eggert  <eggert@twinsun.com>
87595
87596         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
87597         Change maintainer from Bruno Haible to 'all'.
87598
87599 2003-10-12  Paul Eggert  <eggert@twinsun.com>
87600
87601         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
87602
87603 2003-10-12  Paul Eggert  <eggert@twinsun.com>
87604
87605         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
87606         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
87607         and define in terms of the other primitives.
87608         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
87609         (SIZE_MAX): Define if not already defined.
87610         (array_size_overflow): New function.
87611         (xalloc_die): Abort instead of exiting if 'error' returns.
87612         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
87613         (xmalloc, xrealloc): Use them.
87614         (xcalloc): Check for address arithmetic overflow.
87615         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
87616         a bit faster than strcpy.
87617
87618 2003-10-10  Simon Josefsson  <jas@extundo.com>
87619
87620         * modules/argp (Depends-on): Add restrict and strcase.
87621
87622 2003-10-10  Simon Josefsson  <jas@extundo.com>
87623
87624         * m4/argp.m4: Add AC_C_INLINE.
87625
87626 2003-10-08  Paul Eggert  <eggert@twinsun.com>
87627
87628         Merge getpass from libc, plus a few fixes.
87629
87630         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
87631         Include <stdbool.h>.
87632         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
87633         __fsetlocking to empty.
87634         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
87635         do include <bits/libc-lock.h>.
87636         Do not include <fcntl.h>; not needed.
87637         [_LIBC]: Include <wchar.h>.
87638         (NOTCANCEL_MODE): New macro.
87639         (flockfile, funlockfile) [_LIBC]: New macros.
87640         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
87641         [!_LIBC]: New macros.
87642         (call_fclose): New function.
87643         (getpass): Use it.  Save tty stream separately; this simplifies the
87644         code and makes it more reliable if stdin happens to equal stdout.
87645         Invoke __fsetlocking on tty.
87646         Handle thread cancellation if needed.
87647         Namespace cleanup (use __tcgetattr, __getline).
87648         Use bool for Booleans.
87649         [USE_IN_LIBIO]: Handle wide streams.
87650         [!_LIBC]: Unconditionally do the fseek, since we don't know what
87651         stream might go where.
87652
87653         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
87654         doesn't have to include <stdio.h> before us.
87655         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
87656         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
87657         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
87658         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
87659         if not declared, so that we can use getpass.c code from libc without
87660         rewriting it.
87661         (flockfile, ftrylockfile, funlockfile): New macros.
87662
87663 2003-10-08  Paul Eggert  <eggert@twinsun.com>
87664
87665         * modules/getpass: Depend on stdbool.
87666
87667 2003-10-08  Paul Eggert  <eggert@twinsun.com>
87668
87669         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
87670
87671 2003-10-07  Karl Berry  <karl@gnu.org>
87672
87673         * config/config.{guess,sub}: update from config.
87674
87675 2003-10-06  Jim Meyering  <jim@meyering.net>
87676             Bruno Haible  <bruno@clisp.org>
87677
87678         This lets translators provide better translations for the
87679         "Written by ..." part of --version output.
87680         * lib/version-etc.h: Include stdarg.h.
87681         (version_etc_copyright): Declare as readonly.
87682         (version_etc): Make this function variadic with a NULL-terminated list
87683         of author name strings.
87684         (version_etc_va): New declaration.
87685         * lib/version-etc.c: Include stdarg.h, stdlib.h.
87686         (version_etc_copyright): Declare as readonly.
87687         (version_etc_va): New function. Provide a different translatable string
87688         for each possible number of authors < 10. Abbreviate when there are 10
87689         authors or more.
87690         (version_etc): Make this function variadic. Call version_etc_va.
87691         Suggestion from Gary V. Vaughan.
87692
87693         * lib/long-options.h (parse_long_options): Change prototype: the
87694         authors string is moved to the end and becomes variadic.
87695         * lib/long-options.c: Include stdarg.h.
87696         (parse_long_options): Make this function variadic, too.
87697         Call version_etc_va, not version_etc.
87698
87699 2003-10-06  Bruno Haible  <bruno@clisp.org>
87700
87701         * modules/version-etc-2: Remove file.
87702         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
87703
87704 2003-10-06  Bruno Haible  <bruno@clisp.org>
87705
87706         * modules/fatal-signal: New file.
87707         * MODULES.html.sh (func_all_modules): Add fatal-signal.
87708
87709 2003-10-06  Bruno Haible  <bruno@clisp.org>
87710
87711         * m4/fatal-signal.m4: New file.
87712         * m4/signalblocking.m4: New file, from GNU gettext.
87713
87714 2003-10-06  Bruno Haible  <bruno@clisp.org>
87715
87716         * lib/version-etc-2.h: Remove file.
87717         * lib/version-etc-2.c: Remove file.
87718
87719 2003-10-06  Bruno Haible  <bruno@clisp.org>
87720
87721         * lib/fatal-signal.h: New file, from GNU gettext.
87722         * lib/fatal-signal.c: New file, from GNU gettext.
87723
87724 2003-10-05  Paul Eggert  <eggert@twinsun.com>
87725
87726         * README: Rework advice for preventing empty .o files.
87727         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
87728         not <sys/types.h>.
87729
87730 2003-10-04  Karl Berry  <karl@gnu.org>
87731
87732         * lib/argp*: update from libc.
87733
87734 2003-10-04  Karl Berry  <karl@gnu.org>
87735
87736         * config/config.{guess,sub}: update from config.
87737
87738 2003-10-02  Bruno Haible  <bruno@clisp.org>
87739
87740         * modules/lchown (Include): Add lchown.h.
87741         * modules/time_r (Include): Use "..." syntax.
87742         * modules/xgetdomainname (Include): Add xgetdomainname.h.
87743
87744 2003-10-01  Simon Josefsson  <jas@extundo.com>
87745
87746         * MODULES.html.sh (func_all_modules): Move gethostname from section
87747         'based on' to section 'lacking' POSIX:2001.
87748
87749 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
87750
87751         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
87752         to output mode on the same stream.
87753
87754 2003-09-29  Paul Eggert  <eggert@twinsun.com>
87755
87756         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
87757         Fix arg typo in previous patch.
87758
87759 2003-09-28  Jim Meyering  <jim@meyering.net>
87760
87761         * lib/error.c: Correct cpp indentation.
87762
87763 2003-09-27  Paul Eggert  <eggert@twinsun.com>
87764
87765         * modules/free: New file.
87766
87767 2003-09-27  Paul Eggert  <eggert@twinsun.com>
87768
87769         * m4/free.m4: New file.
87770
87771 2003-09-27  Paul Eggert  <eggert@twinsun.com>
87772
87773         * lib/minmax.h (MIN, MAX)
87774         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
87775         Omit the special code that used __typeof__, since we worry that
87776         it could be more trouble than it's worth.  See:
87777         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
87778         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
87779
87780         * lib/free.c: New file.
87781
87782 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
87783
87784         Trivial fixes to Makefile.am parts of module listings.
87785         * modules/strstr: Append strstr.h to lib_SOURCES.
87786         * modules/strcase: Likewise, for strcase.h.
87787
87788 2003-09-27  Karl Berry  <karl@gnu.org>
87789
87790         * config/mkinstalldirs: update from automake.
87791
87792 2003-09-26  Paul Eggert  <eggert@twinsun.com>
87793
87794         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
87795         (error_tail): Do not loop, reallocating temporary buffer, since
87796         the output cannot contain more wide characters than the input
87797         contains bytes, the size must be big enough already.  This avoids
87798         one potential size overflow calculation.  Check for size overflow
87799         when calculating temporary buffer size.  Free temporary buffer
87800         when done, if it was allocated with malloc; this plugs a memory
87801         leak.  Remove casts from void * to pointers, that are no longer
87802         needed now that we're assuming C89 or better.
87803
87804         Merge error changes from glibc.
87805
87806         * lib/error.c, error.h: Update copyright notice header to match glibc.
87807         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
87808         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
87809         Disable cancellation while printing error.
87810         * lib/error.h: Prepend __ to parameter names.
87811
87812 2003-09-26  Jim Meyering  <jim@meyering.net>
87813
87814         * lib/error.c (error_tail): Move some declarations
87815         into inner scope where the local variables are used.
87816
87817 2003-09-26  Bruno Haible  <bruno@clisp.org>
87818
87819         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
87820         stpncpy().
87821         Don't define stpncpy through config.h; it's now done through stpncpy.h.
87822
87823 2003-09-26  Bruno Haible  <bruno@clisp.org>
87824
87825         * lib/stpncpy.h (gnu_stpncpy): New declaration.
87826         (stpncpy): Define as alias for gnu_stpncpy.
87827         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
87828
87829 2003-09-25  Simon Josefsson  <jas@extundo.com>
87830
87831         * lib/xgetdomainname.h: New file.
87832         * lib/xgetdomainname.c: New file.
87833
87834 2003-09-25  Simon Josefsson  <jas@extundo.com>
87835             Bruno Haible  <bruno@clisp.org>
87836
87837         * modules/getdomainname: New file.
87838         * modules/xgetdomainname: New file.
87839         * MODULES.html.sh (func_all_modules): Add getdomainname,
87840         xgetdomainname.
87841
87842 2003-09-25  Simon Josefsson  <jas@extundo.com>
87843             Bruno Haible  <bruno@clisp.org>
87844
87845         * m4/getdomainname.m4: New file.
87846
87847 2003-09-25  Simon Josefsson  <jas@extundo.com>
87848             Bruno Haible  <bruno@clisp.org>
87849
87850         * lib/getdomainname.h: New file.
87851         * lib/getdomainname.c: New file.
87852
87853 2003-09-25  Karl Berry  <karl@gnu.org>
87854
87855         * lib/argp-fmtstream.c, argp-help.c: update from libc.
87856
87857 2003-09-25  Karl Berry  <karl@gnu.org>
87858
87859         * config/install-sh: update from automake.
87860
87861 2003-09-25  Bruno Haible  <bruno@clisp.org>
87862
87863         * modules/version-etc-2: New file, from modules/version-etc with
87864         modifications.
87865         * MODULES.html.sh (func_all_modules): Add version-etc-2.
87866
87867 2003-09-25  Bruno Haible  <bruno@clisp.org>
87868
87869         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
87870         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
87871
87872 2003-09-24  Simon Josefsson  <jas@extundo.com>
87873
87874         * modules/xgethostname: Add xgethostname.h.
87875
87876 2003-09-24  Paul Eggert  <eggert@twinsun.com>
87877
87878         * lib/linebuffer.c (freebuffer): Don't free the argument, just
87879         the buffer associated with the argument.  Bug reported by
87880         Simon Josefsson.
87881
87882 2003-09-24  Paul Eggert  <eggert@twinsun.com>
87883
87884         * README: Document assumptions that 'int' is at least 32 bits
87885         wide, that integer arithmetic is 2's complement without overflow,
87886         that there are no holes in integer values, that adding sizes of
87887         two nonoverlapping objects can't overflow, and that all-bits-zero
87888         yields scalar zero.  Fix spelling and capitalization typos.
87889
87890 2003-09-19  Karl Berry  <karl@gnu.org>
87891
87892         * lib/argp.h: update from libc.
87893
87894 2003-09-17  Paul Eggert  <eggert@twinsun.com>
87895
87896         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
87897         to avoid spurious warnings like "AC_RUN_IFELSE was called before
87898         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
87899
87900 2003-09-17  Paul Eggert  <eggert@twinsun.com>
87901
87902         * gnulib-tool: Use "test -h", not "test -L", for portability
87903         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
87904         (tags_regexp): Remove, since \| doesn't conform to POSIX.
87905         (sed_extract_prog): Issue s commands one-by-one, rather than
87906         using \| in one s command.
87907
87908 2003-09-16  Paul Eggert  <eggert@twinsun.com>
87909
87910         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
87911         input error, instead of returning NULL the next time we are called
87912         (and therefore losing track of errno).
87913
87914 2003-09-16  Bruno Haible  <bruno@clisp.org>
87915
87916         * gnulib-tool (func_create_testdir): Warn about duplicated
87917         dependencies.
87918
87919 2003-09-15  Paul Eggert  <eggert@twinsun.com>
87920
87921         * modules/argmatch, modules/fatal, modules/obstack,
87922         modules/xalloc, modules/xgethostname: Sort dependencies by
87923         importance, not alphabetically.
87924
87925 2003-09-15  Paul Eggert  <eggert@twinsun.com>
87926
87927         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
87928         fails, so that the caller gets the proper errno.
87929
87930         * lib/readutmp.c (read_utmp): Likewise.
87931         Check for fstat error.  Close stream and free storage
87932         when failing.
87933
87934 2003-09-14  Karl Berry  <karl@gnu.org>
87935
87936         * config/srclist.txt (strdup.c): disable for c89 changes.
87937
87938 2003-09-14  Jim Meyering  <jim@meyering.net>
87939
87940         * lib/getloadavg.c: Correct cpp indentation.
87941         * lib/strdup.c: Likewise.
87942         * lib/vasnprintf.c: Likewise.
87943
87944 2003-09-14  Bruno Haible  <bruno@clisp.org>
87945
87946         * modules/fwriteerror: New file.
87947         * MODULES.html.sh (func_all_modules): Add fwriteerror.
87948
87949 2003-09-14  Bruno Haible  <bruno@clisp.org>
87950
87951         * lib/fwriteerror.h: New file.
87952         * lib/fwriteerror.c: New file.
87953
87954 2003-09-12  Paul Eggert  <eggert@twinsun.com>
87955
87956         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
87957         modules/xgethostname, modules/xalloc: Depend on exit.
87958
87959 2003-09-12  Paul Eggert  <eggert@twinsun.com>
87960
87961         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
87962
87963         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
87964         and AC_MINIX, too, so that their extensions are available.
87965
87966         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
87967         This macro has been superseded by gl_BACKUPFILE.
87968
87969         More patches to assume C89 or better.
87970
87971         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
87972
87973         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
87974         unconditionally.
87975         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
87976         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
87977         Include <string.h>, <stdlib.h> unconditionally.
87978         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
87979         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
87980         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
87981         headers or for string.h.
87982         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
87983         or strtoul.
87984
87985         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
87986         headers.
87987         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
87988         * m4/userspec.m4 (gl_USERSPEC): Likewise.
87989         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
87990         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
87991         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
87992         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
87993         memcpy, memset.
87994         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
87995         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
87996         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
87997         strtol.
87998         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
87999         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
88000         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
88001         strtoul.
88002
88003 2003-09-12  Paul Eggert  <eggert@twinsun.com>
88004
88005         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
88006         * lib/obstack.c [!defined _LIBC]: Likewise.
88007         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
88008         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
88009         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
88010
88011         More changes to assume C89 or better.
88012
88013         * lib/error.c (error_tail): Assume vprintf.
88014
88015         * lib/argmatch.c (getenv): Remove decl.
88016         * lib/progreloc.c (get_full_program_name): Define via prototype.
88017         * lib/setenv.c (clearenv): Likewise.
88018         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
88019         needed.
88020         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
88021         (malloc, memcpy): Remove decls.
88022         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
88023         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
88024         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
88025         (memcpy): Remove macro.
88026         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
88027         (__P): Remove.  All uses removed.
88028         (PTR): Remove.  All uses changed to void *.
88029         (CHAR_BIT, NULL): Remove.
88030         (spaces, zeros, memset_space, memset_zero)
88031         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
88032         Remove.
88033         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
88034         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
88035         Define with prototype.
88036         Remove now-unnecessary prototype decl.
88037         (extra_args_spec): Assume ANSI C.  All uses changed.
88038         (extra_args_spec_iso): Remove.
88039         (my_strftime, emacs_strftimeu): Define via prototype.
88040         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
88041         unconditionally.
88042         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
88043         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
88044         (strtoul, strtol): Remove decls.
88045         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
88046         LONG_MAX): Remove.
88047         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
88048         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
88049         (LOCALE_PARAM_PROTO): New macro.
88050         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
88051         (INTERNAL (strtol), strtol): Define with a prototype.
88052         (PARAMS): Remove.  All uses removed.
88053         * lib/tempname.c: Include <string.h> unconditionally.
88054         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
88055         * lib/xgethostname.c (main): Define with a prototype.
88056         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
88057         Include <stdlib.h> unconditionally.
88058         (calloc, malloc, realloc, free): Remove decls.
88059         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
88060         Include <stdlib.h> unconditionally.  Sort include file names.
88061         (strtod): Remove.
88062         (xstrtod): Define with a prototype.
88063         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
88064         (strtol, strtoul): Remove decls.
88065
88066 2003-09-11  Paul Eggert  <eggert@twinsun.com>
88067
88068         More patches to assume C89 or better.
88069         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
88070         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
88071         string.h, memchr, STDC_HEADERS.
88072
88073 2003-09-11  Paul Eggert  <eggert@twinsun.com>
88074
88075         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
88076         Include <stdlib.h>, <string.h> unconditionally.
88077         Remove now-unnecessary cast to char *.
88078         * lib/strnlen.c: Include <string.h> unconditionally.
88079         * lib/yesno.c (yesno): Define with a prototype.
88080
88081 2003-09-11  Bruno Haible  <bruno@clisp.org>
88082
88083         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
88084
88085 2003-09-10  Jim Meyering  <jim@meyering.net>
88086
88087         * lib/error.c: Correct indentation of cpp directives.
88088
88089 2003-09-10  Bruno Haible  <bruno@clisp.org>
88090
88091         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
88092         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
88093         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
88094         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
88095         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
88096         <stdlib.h> and <string.h> checks.
88097         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
88098         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
88099
88100 2003-09-10  Bruno Haible  <bruno@clisp.org>
88101
88102         * lib/strcspn.c: Include <string.h> unconditionally.
88103         * lib/strpbrk.c: Include <string.h> unconditionally.
88104         * lib/strstr.c: Include <string.h> unconditionally.
88105         * lib/unicodeio.c: Include <string.h> unconditionally.
88106         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
88107         * lib/unsetenv.c: Likewise.
88108         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
88109         * lib/yesno.c: Include <stdlib.h> unconditionally.
88110         (rpmatch): Add prototype.
88111
88112 2003-09-09  Paul Eggert  <eggert@twinsun.com>
88113
88114         More patches to assume C89 or better.
88115         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
88116         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
88117         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
88118         or for string.h.
88119         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
88120         stdlib.h.
88121         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
88122         C headers.
88123         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
88124         string.h.
88125         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
88126         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
88127         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
88128         or for string.h.
88129         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
88130         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
88131         C headers.
88132         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
88133         memcpy.
88134         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
88135         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
88136         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
88137         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
88138         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
88139         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
88140         string.h, free.
88141         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
88142         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
88143         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
88144         C headers, or for string.h.
88145         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
88146         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
88147         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
88148         headers, memory.h, stdlib.h, string.h, strings.h.
88149         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
88150         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
88151         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
88152         strchr.
88153         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
88154         headers, memory.h, string.h.
88155         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
88156         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
88157         free.
88158         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
88159         headers.
88160         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
88161         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
88162         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
88163         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
88164         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
88165
88166 2003-09-09  Paul Eggert  <eggert@twinsun.com>
88167
88168         More K&R removal.
88169
88170         * lib/acosl.c (main): Use a prototype.
88171         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
88172         tanl.c: Likewise.
88173
88174         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
88175
88176         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
88177         (getopt, etopt_long, getopt_long_only, _getopt_internal)
88178         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
88179         with a prototype.
88180         * lib/getopt.c (const): Remove macro.
88181         Include <string.h> unconditionally.
88182         (my_index): Remove; all uses changed to strchr.
88183         (strlen): Remove decl.
88184         (exchange): Remove forward decl; no longer needed.
88185         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
88186         Define with prototype.
88187         * lib/getopt1.c (const): Remove macro.
88188         (getopt_long, getopt_long_only, main): Define with prototype.
88189
88190         * lib/getugroups.c: Include <string.h> unconditionally.
88191
88192         * lib/getusershell.c: Include <stdlib.h> unconditionally.
88193         (getusershell, setusershell, endusershell, readname, main):
88194         Define with prototypes.
88195
88196         * lib/group-member.c: Include group-member.h first.
88197         Include <stdlib.h> unconditionally.
88198
88199         * lib/hard-locale.c: Include hard-locale.h first.
88200         Include <stdlib.h>, <string.h> unconditionally.
88201
88202         * lib/hash.c (free, malloc): Remove decls.
88203         Include <stdlib.h> unconditionally.
88204
88205         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
88206         (getenv): Do not declare.
88207
88208         * lib/idcache.c: Include <string.h> unconditionally.
88209
88210         * lib/long-options.c: Include long-options.h first, to test interface.
88211         Include <stdlib.h> unconditionally.
88212
88213         * lib/makepath.c: Include makepath.h first, to test interface.
88214         Include <stdlib.h> and <string.h> unconditionally.
88215
88216         * lib/linebuffer.c: Include <stdlib.h>.
88217         (free): Remove decl.
88218
88219         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
88220         stddef.h. rpl_malloc returns void *, not char *.
88221         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
88222         prototype.
88223
88224         * lib/md5.h: Include <limits.h> unconditionally.
88225         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
88226         (__P): Remove; all uses removed.
88227         * lib/md5.c: Include "md5.h" first.
88228         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
88229         md5_buffer, md5_process_bytes, md5_process_block):
88230         Define with prototypes.
88231         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
88232         * lib/sha.c: Include "sha.h" first.
88233         Include <stdlib.h>, <string.h> unconditionally.
88234
88235         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
88236         * lib/memcmp.c (__ptr_t): Likewise.
88237         * lib/memrchr.c (__ptr_t): Likewise.
88238         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
88239         Include <string.h> unconditionally.
88240         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
88241         * lib/memchr.c: Include <stdlib.h> unconditionally.
88242         * lib/memchr.c (LONG_MAX): Remove.
88243         * lib/memrchr.c (LONG_MAX): Likewise.
88244         * lib/memchr.c (__memchr): Define via a prototype.
88245         * lib/memrchr.c (__memrchr): Likewise.
88246         * lib/memcmp.c (__P): Remove, and remove all uses.
88247         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
88248         Remove forward decls; no longer needed.
88249         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
88250         Use types required by C89 in prototype.
88251
88252         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
88253         * lib/savedir.c: Likewise.
88254         * lib/mkdir.c (free): Remove decl.
88255         * lib/rmdir.c (rmdir): Define with a prototype.
88256         * lib/savedir.c: Include savedir.h first, to test interface.
88257
88258         * lib/mktime.c (STDC_HEADERS): Remove.
88259         Include <stdlib.h>, <string.h> unconditionally.
88260
88261         * lib/modechange.c: Include <stdlib.h> unconditionally.
88262         (malloc): Remove decl.
88263
88264         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
88265         (free): Remove decl.
88266
88267         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
88268         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
88269         (This type really should be intptr_t, but that's a C99ism.)
88270         (_obstack_memcpy): Remove: all uses changed to memcpy.
88271         Include <string.h> unconditionally.
88272         (struct obstack): Assume __STDC__ for types of members
88273         chunkfun, freefun, extra_arg.
88274         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
88275         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
88276         obstack_begin, obstack_specify_allocation,
88277         obstack_specify_allocation_with_arg, obstack_chunkfun,
88278         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
88279         Remove unprototyped decls and the macros that use them.
88280         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
88281         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
88282         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
88283         (defined __STDC__ && __STDC__)]:
88284         Remove nonprototyped code.
88285         Include <stdlib.h> unconditionally.
88286         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
88287         _obstack_allocated_p, _obstack_free, obstack_free,
88288         _obstack_memory_used, print_and_abort):
88289         Define using prototypes.
88290         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
88291         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
88292         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
88293         obstack_next_free, obstack_object_size, obstack_room) [0]:
88294         Remove unused, unprototyped code.
88295
88296         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
88297
88298         * lib/physmem.c (physmem_total, physmem_available, main): Define
88299         with prototypes.
88300
88301         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
88302         (main): Define with a prototype.
88303
88304         * lib/posixver.c (getenv): Remove decl.
88305
88306         * lib/putenv.c (malloc): Returns void *, not char *.
88307         Include <string.h> unconditionally.
88308         (strchr, memcpy, NULL): Do not define.
88309
88310         * lib/readtokens.c: Include readtokens.h first, to test interface.
88311         Include <stdlib.h>, <string.h> unconditionally.
88312         (init_tokenbuffer): Define with a prototype.
88313
88314         * lib/regex.c (PARAMS): Remove.  All uses removed.
88315         All uses of _RE_ARGS removed, too.
88316         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
88317         unconditionally.
88318         (bzero): Assume memset exists.
88319         (memcmp, memcpy, NULL): Remove.
88320         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
88321         char, or assignments to local vars of type signed char.
88322         (init_syntax_once, PREFIX(extract_number_and_incr),
88323         PREFIX(print_partial_compiled_pattern),
88324         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
88325         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
88326         PREFIX(regex_grow_registers), PREFIX(regex_compile),
88327         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
88328         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
88329         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
88330         wcs_compile_range, byte_compile_range, truncate_wchar,
88331         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
88332         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
88333         count_mbs_length, wcs_re_match_2_internal,
88334         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
88335         PREFIX(alt_match_null_string_p),
88336         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
88337         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
88338         regfree, PREFIX(extract_number)): Define with prototype.  Remove
88339         now-unnecessary declaration, if any.
88340         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
88341         regcomp, regexec):
88342         Remove now-unnecessary casts among pointer types.
88343         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
88344
88345         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
88346         (free): Remove decl.
88347
88348         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
88349
88350         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
88351         (free): Remove decl.
88352
88353         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
88354         * lib/xgetcwd.c: Likewise.
88355
88356         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
88357         (free): Remove decl.
88358
88359         * lib/strchrnul.c (strchrnul): Define with a prototype.
88360         Fix bug: c_in was not converted to char before searching.
88361
88362         The following changes are not K&R related:
88363
88364         * lib/group-member.h: Include <sys/types.h>, so that this file is
88365         self-contained.
88366         * lib/makepath.h: Likewise.
88367
88368         * lib/getusershell.c (readname, default_index, line_size, readname):
88369         Use size_t, not int, for sizes.
88370         (readname): If the size overflows, report an error instead of
88371         looping forever.
88372
88373 2003-09-09  Paul Eggert  <eggert@twinsun.com>
88374
88375         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
88376         libc.
88377
88378 2003-09-09  Paul Eggert  <eggert@twinsun.com>
88379
88380         * README: New section: portability guidelines.
88381
88382 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
88383
88384         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
88385         C89 spec.
88386
88387 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
88388
88389         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
88390
88391 2003-09-08  Paul Eggert  <eggert@twinsun.com>
88392
88393         Assume C89 or better; remove K&R cruft.
88394         A few of these changes were first proposed by Derek Robert Price
88395         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
88396
88397         * lib/addext.c: Include <string.h> unconditionally.
88398         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
88399         Don't declare getenv or malloc.
88400
88401         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
88402         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
88403         (NULL): Remove.
88404         (find_stack_direction, alloca): Use prototypes.
88405
88406         * lib/atexit.c (atexit): Define using a prototype.
88407
88408         * lib/basename.c, dirname.c, stripslash.c:
88409         Include <string.h> unconditionally.
88410
88411         * lib/bcopy.c: Include <stddef.h>.
88412         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
88413
88414         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
88415
88416         * lib/error.h (error, error_at_line, error_print_progname)
88417         [! (defined (__STDC__) && __STDC__)]: Remove decls.
88418         * lib/error.c: Include error.h first, to check interface.
88419         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
88420         (VA_START): Remove; all uses changeed to va_start.
88421         (exit, strerror): Remove decls.
88422         (error_print_progname): Prototype uncondionally.
88423         Don't include <errno.h>; no longer needed.
88424         (private_strerror): Remove.
88425         (error_tail): Always define.
88426         (error, error_at_line): Assume C89 or better; always use prototypes.
88427         * lib/fatal.c: Include "fatal.h" first, to test interface.
88428         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
88429         (VA_START): Remove; all uses changed to va_start.
88430         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
88431         this case.
88432         (exit): Remove decl.
88433         (fatal): Prototype unconditionally.  Assume va_start works.
88434         Abort at end, to pacify gcc.
88435
88436         * lib/euidaccess.c (main): Define with a prototype.
88437
88438         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
88439
88440         * lib/exitfail.c: Include <stdlib.h> unconditionally.
88441
88442         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
88443         prototypes.
88444         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
88445         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
88446         (getenv): Remove decl.
88447         (fnmatch): Define using a prototype.
88448         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
88449         (FCT): Define using a prototype.
88450
88451         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
88452
88453         * lib/gethostname.c: Include <stddef.h>.
88454         (gethostname): Define with prototype.  Length is size_t, not int.
88455
88456 2003-09-08  Paul Eggert  <eggert@twinsun.com>
88457
88458         Assume C89 or better; remove K&R cruft.
88459         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
88460         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
88461         string.h, getenv, malloc.
88462         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
88463         headers.
88464         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
88465         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
88466         do not check for strerror.
88467         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
88468         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
88469         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
88470         do not check for doprnt or vprintf.
88471         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
88472         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
88473
88474 2003-09-08  Paul Eggert  <eggert@twinsun.com>
88475
88476         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
88477         getversion.c should have been removed then, but was accidentally
88478         preserved.
88479
88480         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
88481         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
88482
88483 2003-09-08  Karl Berry  <karl@gnu.org>
88484
88485         * config/config.sub, config.guess, srclistvars.sh: update from savannah
88486                 config, forget about prep.
88487
88488         * config/depcomp, missing: update from automake.
88489
88490 2003-09-07  Paul Eggert  <eggert@twinsun.com>
88491
88492         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
88493         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
88494
88495 2003-09-07  Paul Eggert  <eggert@twinsun.com>
88496
88497         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
88498         copy_tm_result.  Bug reported by Simon Josefsson in
88499         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
88500
88501 2003-09-06  Paul Eggert  <eggert@twinsun.com>
88502
88503         * m4/time_r.m4: New file.
88504         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
88505         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
88506         is. Check for timegm declaration.
88507         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
88508         Do not check for gmtime_r.
88509         Replace mktime if __mktime_internal does not exist and if mktime
88510         hasn't been replaced already.
88511
88512 2003-09-06  Paul Eggert  <eggert@twinsun.com>
88513
88514         * lib/time_r.c, lib/time_r.h: New files.
88515
88516         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
88517         __localtime_r.
88518         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
88519         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
88520
88521         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
88522         __gmtime_r.
88523         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
88524         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
88525         Include <time_r.h>.
88526
88527         * lib/timegm.c: Switch to glibc implementation, with the following
88528         changes:
88529         [defined HAVE_CONFIG_H]: Include <config.h>.
88530         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
88531         (__mktime_internal) [!defined _LIBC]: New decl.
88532         (__gmtime_r) [!defined _LIBC]: New macro and function.
88533         (timegm): Use a prototype, since gnulib assumes C89.
88534         Do not bother declaring tmp to be const, as it's not really usefu.
88535         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
88536         (timegm): Declare only if HAVE_DECL_TIMEGM.
88537
88538 2003-09-06  Paul Eggert  <eggert@twinsun.com>
88539
88540         * MODULES.html.sh (func_all_modules): Add time_r.
88541         * modules/time_r: New file.
88542         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
88543         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
88544
88545 2003-09-03  Paul Eggert  <eggert@twinsun.com>
88546
88547         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
88548         Bug reported by Lute Kamstra in
88549         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
88550
88551         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
88552         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
88553         course with correspondingly smaller numbers for tomorrow and
88554         yesterday.  From Tadayoshi Funaba.  Originally installed into
88555         sh-utils on 1999-08-07, but the patch got lost (I guess during the
88556         coreutils merge?).
88557
88558 2003-08-31  Simon Josefsson  <jas@extundo.com>
88559
88560         * modules/timegm: New file.
88561         * MODULES.html.sh (func_all_modules): Add timegm.
88562
88563 2003-08-31  Simon Josefsson  <jas@extundo.com>
88564
88565         * m4/timegm.m4: New file.
88566
88567 2003-08-31  Simon Josefsson  <jas@extundo.com>
88568
88569         * lib/timegm.h: New file.
88570         * lib/timegm.c: New file.  Based on
88571         wget-1.8.2/src/http.c:mktime_from_utc.
88572
88573 2003-08-31  Karl Berry  <karl@gnu.org>
88574
88575         * lib/argp.h: update from libc.
88576
88577 2003-08-28  Bruno Haible  <bruno@clisp.org>
88578
88579         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
88580         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
88581         followed by '#define fnmatch fnmatch_posix' gives an error.
88582
88583 2003-08-28  Bruno Haible  <bruno@clisp.org>
88584
88585         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
88586         warning on QNX, which defines O_BINARY to 000000.
88587
88588 2003-08-27  Jim Meyering  <jim@meyering.net>
88589
88590         * m4/mkstemp.m4: Require that the system mkstemp be able to create
88591         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
88592         would fail after 32.  Reported by Danny Levinson.  Details here:
88593         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
88594
88595 2003-08-24  Bruno Haible  <bruno@clisp.org>
88596
88597         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
88598         MSVC7 <stdio.h> is included later.
88599
88600 2003-08-22  Simon Josefsson  <jas@extundo.com>
88601
88602         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
88603
88604 2003-08-20  Karl Berry  <karl@gnu.org>
88605
88606         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
88607
88608 2003-08-20  Bruno Haible  <bruno@clisp.org>
88609
88610         * modules/progname: New file.
88611         * MODULES.html.sh (func_all_modules): Add progname.
88612
88613 2003-08-20  Bruno Haible  <bruno@clisp.org>
88614
88615         * lib/progname.h: New file, from GNU gettext.
88616         * lib/progname.c: New file, from GNU gettext.
88617         * lib/progreloc.c: New file, from GNU gettext.
88618
88619 2003-08-19  Jim Meyering  <jim@meyering.net>
88620
88621         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
88622         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
88623
88624 2003-08-19  Bruno Haible  <bruno@clisp.org>
88625
88626         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
88627         more.
88628
88629 2003-08-19  Bruno Haible  <bruno@clisp.org>
88630
88631         * lib/xstrdup.c: Assume <string.h> exists.
88632
88633 2003-08-18  Paul Eggert  <eggert@twinsun.com>
88634
88635         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
88636         in makefile rules.
88637
88638 2003-08-18  Jim Meyering  <jim@meyering.net>
88639
88640         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
88641         * m4/lib-ld.m4: Likewise.
88642
88643 2003-08-18  Jim Meyering  <jim@meyering.net>
88644
88645         * lib/setenv.h: Indent nested cpp directive.
88646         * lib/vasnprintf.c: Remove trailing blanks.
88647
88648 2003-08-17  Simon Josefsson  <jas@extundo.com>
88649
88650         * modules/xstrndup: New file.
88651         * MODULES.html.sh (func_all_modules): Add xstrndup.
88652
88653 2003-08-17  Simon Josefsson  <jas@extundo.com>
88654
88655         * modules/argp: Fix autoconf macro name. Add more dependencies.
88656
88657 2003-08-17  Simon Josefsson  <jas@extundo.com>
88658
88659         * m4/xstrndup.m4: New file.
88660
88661 2003-08-17  Simon Josefsson  <jas@extundo.com>
88662
88663         * m4/argp.m4: New file.
88664
88665 2003-08-17  Simon Josefsson  <jas@extundo.com>
88666             Bruno Haible  <bruno@clisp.org>
88667
88668         * lib/xstrndup.h: New file.
88669         * lib/xstrndup.c: New file.
88670
88671 2003-08-17  Bruno Haible  <bruno@clisp.org>
88672
88673         * modules/strndup (Files, Include): Add lib/strndup.h.
88674
88675 2003-08-17  Bruno Haible  <bruno@clisp.org>
88676
88677         * modules/euidaccess (Files): Add lib/euidaccess.h.
88678
88679 2003-08-17  Bruno Haible  <bruno@clisp.org>
88680
88681         * lib/strndup.h: New file.
88682
88683 2003-08-17  Bruno Haible  <bruno@clisp.org>
88684
88685         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
88686         like AC_GNU_SOURCE.
88687         * modules/extensions (configure.ac): Comment out the invocation of
88688         gl_USE_SYSTEM_EXTENSIONS.
88689
88690 2003-08-16  Paul Eggert  <eggert@twinsun.com>
88691
88692         Merges from coreutils, etc.
88693         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
88694         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
88695         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
88696         fixing a typo.
88697         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
88698         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
88699
88700 2003-08-16  Paul Eggert  <eggert@twinsun.com>
88701
88702         Document merge from coreutils.
88703         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
88704         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
88705         * modules/utime: Add m4/utimes-null.m4.
88706
88707 2003-08-16  Paul Eggert  <eggert@twinsun.com>
88708
88709         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
88710         space, undoing this 2003-08-12 change:
88711         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
88712
88713 2003-08-16  Paul Eggert  <eggert@twinsun.com>
88714
88715         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
88716         strtoul.c from libc, undoing this 2003-08-12 change:
88717         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
88718
88719 2003-08-16  Jim Meyering  <jim@meyering.net>
88720
88721         Merges from coreutils.
88722         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
88723         prefix.  Adjust cache variables similarly.  Create 500 rather than
88724         just 300 files, to exercise bug on Darwin6.5, too.
88725         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
88726         $missing_dir.
88727         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
88728         AM_SYS_POSIX_TERMIOS.
88729         Reported by mkc@mathdogs.com.
88730         Also change use of $am_cv_sys_posix_termios
88731         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
88732         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
88733         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
88734         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
88735         in /proc/mounts until it finds one with matching device number.  This
88736         is unnecessary when the FILE argument *is* a mount point.  No stat call
88737         is necessary in that case.  So, disable the statvfs-testing code on
88738         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
88739         as RedHat bug# 84846.
88740         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
88741         to 1MB, so as not to render systems with no stack size limit (e.g.,
88742         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
88743         Include <unistd.h>.  On some systems,
88744         it is required for the definition of _SC_PAGESIZE.
88745
88746 2003-08-16  Jim Meyering  <jim@meyering.net>
88747
88748         Merge from coreutils.
88749         * lib/xstrtoimax.c: #else #if -> #elif.
88750         * lib/xstrtoumax.c: Likewise.
88751
88752 2003-08-16  Jim Meyering  <jim@meyering.net>
88753
88754         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
88755         * m4/utimes.m4: Removed.
88756         * m4/utimes-null.m4: Renamed from utimes.m4.
88757
88758         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
88759         to 1MB, so as not to render systems with no stack size limit (e.g.,
88760         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
88761         Include <unistd.h>.  On some systems,
88762         it is required for the definition of _SC_PAGESIZE.
88763
88764 2003-08-16  Jim Meyering  <jim@meyering.net>
88765         and Paul Eggert  <eggert@cs.ucla.edu>
88766
88767         Merges from coreutils, etc.
88768
88769         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
88770         using the latest version from cvs.  This avoids problems with #line
88771         directives using a vendor (Sun) compiler.
88772         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
88773         Don't set GETGROUPS_LIB here; now it's
88774         done via getgroups.m4's wrapper function.
88775         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
88776         rather than just in sh-util/configure.in, so that the
88777         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
88778         same.
88779         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
88780         AC_FUNC_GETLOADAVG where to find getloadavg.c.
88781         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
88782         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
88783         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
88784         Remove code that is now done by the newly-required macros.
88785         Append $(EXEEXT) to DF_PROG.
88786         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
88787         Do not invoke or require the following here,
88788         since prereq.m4 or some gnulib .m4 now does this for us:
88789         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
88790         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
88791         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
88792         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
88793         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
88794         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
88795         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
88796         AC_FUNC_OBSTACK.
88797         Do not replace the following functions, as this is now the job
88798         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
88799         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
88800         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
88801         atexit getpass, strdup, getpagesize.
88802         Replace 'raise'.
88803         Do not check for the following functions, as this is now the job
88804         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
88805         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
88806         setregid.
88807         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
88808         Check for sys/sysctl.h.
88809         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
88810         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
88811         of checking for ssize_t ourselves.
88812
88813         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
88814         Require every macro that gnulib/modules/* suggests for us.
88815         (jm_PREREQ_ADDEXT): New macro.
88816         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
88817         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
88818
88819         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
88820         (gl_PHYSMEM): Use it.
88821         Also check for `table' function.
88822         Check for new headers and functions.
88823         Add check for sys/sysmp.h.
88824         With suggestions from Kaveh Ghazi.
88825         Ignore headers that are present but cannot be compiled.  This
88826         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
88827         C 5.4.
88828
88829 2003-08-15  Paul Eggert  <eggert@twinsun.com>
88830
88831         Document merge from coreutils.
88832         * modules/userspec: Depend on posixver.
88833         * modules/strftime: Depend on tzset.
88834
88835 2003-08-15  Paul Eggert  <eggert@twinsun.com>
88836
88837         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
88838         rather than tab, after '#' in shell-script copyright notices.
88839         Suggested by Bruno Haible.
88840
88841 2003-08-15  Paul Eggert  <eggert@twinsun.com>
88842
88843         * config/srclist-update: Use three spaces, rather than tab, after '#'
88844         in shell-script copyright notices.  Suggested by Bruno Haible.
88845         Remove unnecessary parenthesization in regular expression.
88846
88847 2003-08-15  Jim Meyering  <jim@meyering.net>
88848
88849         Merge from coreutils.
88850         * lib/xgethostname.c: Include <stdlib.h>.
88851         (xghostname): Don't exit for anything other than memory-related
88852         failure; just return NULL.
88853         * lib/userspec.c: Include "posixver.h".
88854         (parse_user_spec): Accept `.' as a separator only
88855         in pre-POSIX-200112 mode.
88856         * lib/strtoimax.c: Use #elif rather than #else #if.
88857         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
88858         Remove function, now that we can rely on a working tzset function.
88859         [!_LIBC]: Ensure that the required autoconf test has been run.
88860         [!defined _NL_CURRENT && HAVE_STRFTIME]:
88861         Use underlying_strftime for %r.
88862         * lib/sha.c: Merge in some clean-up and optimization changes from
88863         glibc.
88864         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
88865         Ensure that it is a multiple of 64.
88866         Rearrange loop exit tests so as to avoid performing an
88867         additional fread after encountering an error or EOF.
88868         * lib/realloc.c: Update copyright date.
88869
88870 2003-08-15  Jim Meyering  <jim@meyering.net>
88871         and Paul Eggert  <eggert@twinsun.com>
88872
88873         Merge from coreutils.
88874         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
88875         member but strut utmpx does not.  Needed for AIX 4.3.3.
88876         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
88877
88878 2003-08-15  Jim Meyering  <jim@meyering.net>
88879         and Paul Eggert  <eggert@cs.ucla.edu>
88880
88881         Merges from coreutils, etc.
88882         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
88883         Require gl_FUNC_TZSET_CLOBBER.
88884         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
88885         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
88886         members.
88887
88888 2003-08-14  Paul Eggert  <eggert@twinsun.com>
88889
88890         Help the merge from coreutils.
88891         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
88892         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
88893         * m4/tzset.m4: Use it too.
88894
88895 2003-08-14  Paul Eggert  <eggert@twinsun.com>
88896
88897         * modules/tzset: New file.
88898
88899 2003-08-14  Jim Meyering  <jim@meyering.net>
88900
88901         Merges from coreutils.
88902         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
88903         variable names, rather than @FNMATCH_H@.
88904         * modules/alloca: Likewise for $(ALLOCA_H).
88905
88906         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
88907         the three copies of the literal target, `fnmatch.h'.
88908         * modules/alloca (alloca.h): Likewise.
88909
88910 2003-08-14  Jim Meyering  <jim@meyering.net>
88911
88912         Merge from coreutils.
88913         * m4/tzset.m4: New file.
88914         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
88915         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
88916         otherwise, AIX 5.1 systems would end up using the latter.
88917         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
88918         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
88919         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
88920         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
88921
88922 2003-08-14  Jim Meyering  <jim@meyering.net>
88923
88924         Merge from coreutils.
88925         * lib/obstack.h: Whitespace changes.
88926         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
88927         and xcalloc return values.
88928         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
88929         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
88930         hang on OSF/1 5.1 for DIR on both local and remote file systems.
88931         Reported by (and fix confirmed by) Nelson H. F. Beebe.
88932         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
88933         error from mntctl.
88934         Use mntctl's return value to drive the entry-processing loop, since
88935         we can't rely on the value of the vmt_length member in the last
88936         entry.  On some systems doing so could result in exhausting
88937         virtual memory.  Based in part on a patch from Mike Jetzer.
88938
88939 2003-08-14  Jim Meyering  <jim@meyering.net>
88940         and Paul Eggert  <eggert@twinsun.com>
88941
88942         Merges from coreutils, plus other fixes.
88943         * lib/physmem.c: Merge in portability changes from gcc/libiberty
88944         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
88945         for credits and details.  Thanks to Kaveh Ghazi for helping
88946         to keep these files in sync.
88947         (ARRAY_SIZE): Define it.
88948         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
88949         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
88950         (memcasecmp): Don't assume size_t fits in unsigned int.
88951         Remove casts and duplicate code.
88952         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
88953         (memcpy): Remove definition.
88954         Merge in some clean-up and optimization changes from glibc.
88955         [BLOCKSIZE]: Move definition to top of file.
88956         Ensure that it is a multiple of 64.
88957         Rearrange loop exit tests so as to avoid performing an
88958         additional fread after encountering an error or EOF.
88959         * lib/md5.h (md5_uintptr): Define.
88960         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
88961         return to the initial working directory.  Preserve errno
88962         for caller.
88963         * lib/idcache.c: Include "xalloc.h".
88964         (xmalloc, xrealloc): Remove decls.
88965         (getuser): Remove casts no longer required in C89.
88966         * lib/human.c: Include stdio.h, for sprintf.
88967         * lib/group-member.c: Include "xalloc.h".
88968         (xmalloc, xrealloc): Remove decls.
88969         (get_group_info): Remove casts no longer required in C89.
88970         * lib/getusershell.c (readname): Remove casts no longer required in
88971         C89.
88972         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
88973         * lib/getline.c: Whitespace fix, from coreutils.
88974
88975 2003-08-13  Paul Eggert  <eggert@twinsun.com>
88976
88977         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
88978         Check for isascii.
88979
88980         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
88981         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
88982         Undo previous (whitespace-only) change.
88983
88984 2003-08-13  Paul Eggert  <eggert@twinsun.com>
88985
88986         * lib/exclude.c: Include <ctype.h>
88987         (IN_CTYPE_DOMAIN): New macro.
88988         (is_space): New fn.
88989         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
88990         and empty lines.
88991
88992         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
88993         Undo previous (whitespace-only) change.
88994
88995 2003-08-13  Paul Eggert  <eggert@twinsun.com>
88996
88997         * config/srclist-update: Change update back to the old behavior,
88998         leaving whitespace alone.  Use one 'sed' command rather than a
88999         pipeline.
89000         (fixlicense): Now a variable, not a function.
89001         (remove_trailing_blanks): Remove.
89002         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
89003         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
89004         Undo previous (whitespace-only) change.
89005
89006 2003-08-12  Paul Eggert  <eggert@twinsun.com>
89007
89008         Merge from coreutils.
89009         * modules/euidaccess: Add lib_SOURCES, include for new
89010         file euidaccess.h
89011
89012 2003-08-12  Paul Eggert  <eggert@twinsun.com>
89013
89014         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
89015         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
89016         Normalize leading white space and remove trailing white space.
89017
89018         Merge from coreutils
89019         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
89020
89021         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
89022         0.12.1.  These files are now being upgraded automatically by
89023         ../config/srclist-update.
89024
89025 2003-08-12  Paul Eggert  <eggert@twinsun.com>
89026
89027         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
89028         Normalize leading white space and remove trailing white space.
89029         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
89030         notice, as per ../config/srclist-update.
89031
89032         Merge from coreutils.
89033         * lib/euidaccess.h: New file.
89034         * lib/euidaccess.c: Include it.
89035         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
89036         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
89037         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
89038
89039 2003-08-12  Paul Eggert  <eggert@twinsun.com>
89040
89041         * config/srclist-update: Add copyright notice.
89042         (remove_id_lines, remove_trailing_blanks): New constants.
89043         (fixfile): Use them to normalize spacing a bit in copied files.
89044         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
89045         Normalize leading white space and remove trailing white space.
89046
89047         * config/texinfo.tex: Sync with texinfo.
89048
89049         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
89050         strtoul.c from libc, to merge coreutils whitespace changes.
89051
89052         * config/srclist.txt: Get the following m4 files from gettext:
89053         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
89054         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
89055         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
89056         wint_t.m4.
89057
89058 2003-08-12  Karl Berry  <karl@gnu.org>
89059
89060         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
89061         been made.
89062
89063 2003-08-11  Paul Eggert  <eggert@twinsun.com>
89064
89065         * modules/gnu-source, m4/gnu-source.m4:
89066         Remove; we're assuming Autoconf 2.54 or later now.
89067         Suggested by Bruno Haible.
89068         * MODULES.html.sh (func_all_modules): Remove gnu-source.
89069
89070 2003-08-11  Bruno Haible  <bruno@clisp.org>
89071
89072         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
89073
89074 2003-08-11  Bruno Haible  <bruno@clisp.org>
89075
89076         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
89077         (vasnprintf): Use it instead of wcslen.
89078
89079 2003-08-11  Bruno Haible  <bruno@clisp.org>
89080
89081         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
89082         value to ensure that _Bool promotes to int. Use #define for _Bool when
89083         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
89084
89085 2003-08-10  Karl Berry  <karl@gnu.org>
89086
89087         * lib/regex.h: update from libc (whitespace fix).
89088
89089 2003-08-09  Paul Eggert  <eggert@twinsun.com>
89090
89091         Merge some files from coreutils.  These changes were
89092         originally made by Jim Meyering.
89093         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
89094         many older Unixes require this.
89095         * lib/alloca.c (alloca): Remove cast to argument of free;
89096         no longer needed in C89.
89097         * lib/alloca_.h, regex.h: Fix white space to match
89098         what GNU indent does.
89099
89100 2003-08-09  Paul Eggert  <eggert@twinsun.com>
89101
89102         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
89103         apparently Emacs's Unicode mode got confused before my 2003-08-05
89104         checkin.
89105
89106 2003-08-08  Paul Eggert  <eggert@twinsun.com>
89107
89108         * m4/extensions.m4: New file.
89109         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
89110         Require gl_USE_SYSTEM_EXTENSIONS.
89111         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
89112         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
89113
89114 2003-08-08  Paul Eggert  <eggert@twinsun.com>
89115
89116         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
89117         * modules/extensions, modules/gnu-source: New files.
89118         * modules/timespec, modules/unlocked-io: Depend on extensions.
89119
89120 2003-08-07  Paul Eggert  <eggert@twinsun.com>
89121
89122         * modules/restrict: New file.
89123         * MODULES.html.sh (func_all_modules): Add restrict.
89124         * modules/regex: Depend on restrict.
89125
89126 2003-08-07  Paul Eggert  <eggert@twinsun.com>
89127
89128         * m4/restrict.m4: New file.
89129         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
89130
89131 2003-08-07  Bruno Haible  <bruno@clisp.org>
89132
89133         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
89134         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
89135
89136 2003-08-07  Bruno Haible  <bruno@clisp.org>
89137
89138         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
89139         makes the module 'getndelim2' compatible with the module 'getline'.
89140
89141 2003-08-05  Paul Eggert  <eggert@twinsun.com>
89142
89143         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
89144         byte with "\201" to avoid glitches when editing that source file
89145         with multi-gnome-terminal.
89146
89147 2003-08-05  Paul Eggert  <eggert@twinsun.com>
89148
89149         * lib/bumpalloc.h: Remove.
89150
89151 2003-08-05  Paul Eggert  <eggert@twinsun.com>
89152
89153         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
89154         * modules/bumpalloc: Remove.
89155
89156 2003-08-04  Paul Eggert  <eggert@twinsun.com>
89157
89158         * lib/getloadavg.c: Change copyright notice and spacing to conform to
89159         GNU coding style.
89160
89161         Merge from coreutils.
89162         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
89163         1. From glibc.
89164         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
89165         from Karl Berry, implemented by Jim Meyering.
89166         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
89167         from Dmitry V. Levin.
89168         Remove anachronistic cast of xrealloc.
89169         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
89170         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
89171         type. Otherwise, it wouldn't compile with at least /bin/cc on
89172         ymp-cray-unicos9.0.2.X.
89173         Combine two mostly-identical uses of alloca into one.
89174         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
89175
89176 2003-08-04  Dave Love  <d.love@dl.ac.uk>
89177
89178         [From Emacs.]
89179
89180         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
89181         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
89182         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
89183         obsolete NLIST_NAME_UNION.
89184         [__GNU__]: Undef BSD and FSCALE.
89185         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
89186
89187 2003-08-03  Paul Eggert  <eggert@twinsun.com>
89188
89189         * lib/stdbool_.h (_Bool): Make it signed char, instead of
89190         an enum type, so that it's guaranteed to promote to int.  See:
89191         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
89192
89193 2003-08-03  Karl Berry  <karl@gnu.org>
89194
89195         * config/depcomp: update from automake.
89196
89197 2003-07-31  Paul Eggert  <eggert@twinsun.com>
89198
89199         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
89200         (strerror): Don't assume that a printable int fits in 14 bytes.
89201
89202 2003-07-31  Bruno Haible  <bruno@clisp.org>
89203
89204         * modules/getpass-gnu: New file.
89205         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
89206
89207 2003-07-31  Bruno Haible  <bruno@clisp.org>
89208
89209         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
89210
89211 2003-07-24  Karl Berry  <karl@gnu.org>
89212
89213         * config/missing: update from automake.
89214
89215 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
89216             Bruno Haible  <bruno@clisp.org>
89217
89218         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
89219         * lib/getline.c (getline, getdelim): Likewise.
89220         Remove _GNU_SOURCE define; now it's defined in config.h through
89221         m4/getline.m4.
89222
89223 2003-07-23  Karl Berry  <karl@gnu.org>
89224
89225         * config/config.sub: update from prep.
89226
89227 2003-07-22  Paul Eggert  <eggert@twinsun.com>
89228
89229         * modules/xalloc (Depends-on): Add exitfail.
89230         * modules/xmemcoll: Likewise.
89231
89232 2003-07-22  Paul Eggert  <eggert@twinsun.com>
89233
89234         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
89235         over-parenthesization in macros.
89236
89237         Sync with coreutils.
89238
89239         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
89240         required by C99.
89241
89242         Use `exit_failure' for xalloc and xmemcoll instead of their own
89243         private exit-failure variables.
89244         * lib/xalloc.h (xalloc_exit_failure): Remove.
89245         * lib/xmalloc.c: Likewise.  Include exitfail.h.
89246         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
89247         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
89248         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
89249         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
89250
89251 2003-07-20  Jim Meyering  <jim@meyering.net>
89252
89253         * modules/closeout (Depends-on): Add exitfail.
89254         Suggestion from Bruno Haible.
89255
89256 2003-07-19  Karl Berry  <karl@gnu.org>
89257
89258         * config/config.sub: update from prep.
89259
89260 2003-07-18  Paul Eggert  <eggert@twinsun.com>
89261
89262         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
89263         Remove.
89264         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
89265         to test that it can stand by itself.  Include "exitfail.h".
89266         Clients should set exit_failure instead.
89267         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
89268
89269 2003-07-18  Bruno Haible  <bruno@clisp.org>
89270
89271         * modules/getndelim2: New file.
89272         * modules/getline: Share files with module getndelim2.
89273         * modules/getnline: Depend on getndelim2 instead of sharing files with
89274         it. Add getnline.c to lib_SOURCES.
89275         * MODULES.html.sh (func_all_modules): Add getndelim2.
89276
89277 2003-07-18  Bruno Haible  <bruno@clisp.org>
89278
89279         * m4/getndelim2.m4: New file.
89280         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
89281         invoke gl_PREREQ_GETNDELIM2.
89282         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
89283         gl_PREREQ_GETNDELIM2.
89284         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
89285         gl_GETNDELIM2.
89286
89287 2003-07-18  Bruno Haible  <bruno@clisp.org>
89288
89289         * lib/getndelim2.h: New file.
89290         * lib/getndelim2.c: Make into a module of its own. Include config.h,
89291         getndelim2.h.
89292         (getndelim2): Make non-static. Change return type to ssize_t.
89293         * lib/getline.h: Change argument names.
89294         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
89295         * lib/getnline.c: Include getndelim2.h.
89296
89297 2003-07-18  Andreas Schwab  <schwab@suse.de>
89298
89299         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
89300
89301 2003-07-17  Karl Berry  <karl@gnu.org>
89302
89303         * config/config.sub: update from prep.
89304
89305 2003-07-17  Bruno Haible  <bruno@clisp.org>
89306
89307         * modules/getnline: New file.
89308         * modules/getline: Add lib/getndelim2.c to source file list.
89309         * MODULES.html.sh (func_all_modules): Add getnline.
89310
89311 2003-07-17  Bruno Haible  <bruno@clisp.org>
89312
89313         * m4/getnline.m4: New file.
89314
89315 2003-07-17  Bruno Haible  <bruno@clisp.org>
89316
89317         * m4/Makefile.am.in: Remove file.
89318         * m4/Makefile.am: Remove file.
89319         * m4/Makefile.in: Remove file.
89320
89321 2003-07-17  Bruno Haible  <bruno@clisp.org>
89322
89323         * lib/getnline.h: New file.
89324         * lib/getnline.c: New file.
89325         * lib/getndelim2.c: New file, extracted from getline.c.
89326         (getndelim2): Renamed from getdelim2, with added nmax argument.
89327         * lib/getline.c: Include getndelim2.c.
89328         (getdelim2): Moved out to getndelim2.c.
89329         (getline, getdelim): Update.
89330
89331 2003-07-17  Bruno Haible  <bruno@clisp.org>
89332
89333         * lib/Makefile.am: Remove file.
89334         * lib/Makefile.in: Remove file.
89335
89336 2003-07-17  Bruno Haible  <bruno@clisp.org>
89337
89338         * configure.in: Remove file.
89339         * Makefile.in: Remove file.
89340
89341 2003-07-17  Bruno Haible  <bruno@clisp.org>
89342
89343         * MODULES.html.sh: Put the </BODY> right before </HTML>.
89344
89345 2003-07-16  Karl Berry  <karl@gnu.org>
89346
89347         * config/srclist-update: was running fixlicense twice, which caused
89348                 texinfo.tex to be nullified for some reason.  Simplify,
89349                 $gplsrc is no longer needed as far as I can see?
89350
89351 2003-07-16  Jim Meyering  <jim@meyering.net>
89352
89353         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
89354
89355 2003-07-15  Paul Eggert  <eggert@twinsun.com>
89356
89357         * config/srclist.txt: Get the following files from gettext-runtime/intl
89358         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
89359         ref-del.sin.  From Bruno Haible.
89360         * config/srclist-update (fixfile): Change grep pattern again, since the
89361         previous fix didn't work (there was another trailing $).  Use
89362         '[$]' to escape the $s.
89363
89364 2003-07-15  Karl Berry  <karl@gnu.org>
89365
89366         * lib/vasnprintf.c: update from gettext.
89367
89368 2003-07-15  Karl Berry  <karl@gnu.org>
89369
89370         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
89371         gets expanded when surrounded by '$'.
89372
89373 2003-07-15  Jim Meyering  <jim@meyering.net>
89374
89375         * modules/save-cwd: Don't depend on error.  From Derek Price.
89376
89377 2003-07-15  Jim Meyering  <jim@meyering.net>
89378
89379         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
89380
89381 2003-07-14  Simon Josefsson  <jas@extundo.com>
89382
89383         * modules/mempcpy: New file.
89384         * MODULES.html.sh (func_all_modules): Add mempcpy.
89385
89386 2003-07-14  Simon Josefsson  <jas@extundo.com>
89387
89388         * m4/mempcpy.m4: New file.
89389
89390 2003-07-14  Simon Josefsson  <jas@extundo.com>
89391
89392         * lib/mempcpy.h: New file.
89393         * lib/mempcpy.c: New file.
89394
89395 2003-07-14  Paul Eggert  <eggert@twinsun.com>
89396
89397         * modules/getdate, modules/posixtm: Depend on mktime.
89398
89399 2003-07-14  Paul Eggert  <eggert@twinsun.com>
89400
89401         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
89402         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
89403         unicodeio.c, unicodeio.h, unlocked-io.h:
89404         Switch from LGPL to GPL.
89405
89406 2003-07-14  Paul Eggert  <eggert@twinsun.com>
89407
89408         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
89409         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
89410         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
89411         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
89412         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
89413         updated automatically by ../config/srclist-update.  This changes
89414         their license from LPGL to GPL.
89415
89416 2003-07-14  Paul Eggert  <eggert@twinsun.com>
89417
89418         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
89419         assumed to refer to the root of the most recent stable gettext version.
89420         * config/srclistvars.sh: Add defaults for eggert.
89421         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
89422         Match "This program" as well as "The program".  This is needed
89423         for gettext.
89424
89425 2003-07-14  Jim Meyering  <jim@meyering.net>
89426
89427         Don't emit diagnostics.  Let callers do that.
89428         * lib/save-cwd.c: Don't include "error.h".
89429         (save_cwd): Don't call error.  Ensure that errno is valid
89430         when returning nonzero.
89431
89432         * lib/save-cwd.h (restore_cwd): Update prototype.
89433         * lib/save-cwd.c (restore_cwd): Remove two parameters.
89434         Simplify.  Don't call error upon failure.  Let callers do that.
89435         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
89436         when auditing is enabled.  But don't bother updating the #if.
89437
89438 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
89439
89440         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
89441         it breaks C++ compilation.
89442         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
89443
89444 2003-07-10  Simon Josefsson  <jas@extundo.com>
89445
89446         * modules/strchrnul (Makefile.am): Add strchrnul.h.
89447
89448 2003-07-10  Jim Meyering  <jim@meyering.net>
89449
89450         * m4/clock_time.m4: Remove trailing blank.
89451         * m4/intmax_t.m4: Likewise.
89452
89453 2003-07-10  Jim Meyering  <jim@meyering.net>
89454
89455         * lib/vasnprintf.c: Remove trailing blanks.
89456         Make cpp indentation consistent.
89457
89458 2003-07-09  Paul Eggert  <eggert@twinsun.com>
89459
89460         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
89461         posixver.c, strftime.c, strnlen.c, strverscmp.c:
89462         Switch from LGPL to GPL.
89463
89464 2003-07-09  Paul Eggert  <eggert@twinsun.com>
89465
89466         * config/srclist.txt: Sort sublists.  Add
89467         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
89468         that differ from gnulib for one reason or another; we'd like this list
89469         to be smaller but for now let's document what we have.
89470
89471 2003-07-08  Paul Eggert  <eggert@twinsun.com>
89472
89473         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
89474         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
89475         and sweeter "eval x=$x".
89476         * config/srclist.txt: Get lib/argp* from glibc.
89477
89478 2003-07-07  Paul Eggert  <eggert@twinsun.com>
89479
89480         * lib/mktime.c: Fix some boundary cases and remove need for floating
89481         point.
89482
89483         Issue a compile-time diagnostic if time_t is floating point, or if
89484         two's complement arithmetic is not in effect, or if arithmetic
89485         right shift does not propagate the sign.  These assumptions were
89486         all in the original code but they weren't checked.
89487
89488         (TIME_T_MIDPOINT, verify): New macros.
89489         (__isleap): Remove; it has integer overflow problems.
89490         (leapyear): New function, without those problems.
89491         (ydhms_tm_diff): Remove; splitting into two parts.
89492         (ydhms_diff): New function, containing the arithmetic part of
89493         the old ydhms_tm_diff function.  Issue a compile-time
89494         diagnostic if we are not using C99 integer division.
89495         Avoid casts when possible.
89496         (guess_time_tm): New function, containing the checking part of
89497         the old ydhms_tm_diff function.  Return the new value, rather than
89498         the difference between it and the old.  Accept a new argument T
89499         so that *T specifies the old value.  Check for overflow in the result.
89500
89501         (__mktime_internal): Use a time_t offset, not a long int offset.
89502         This undoes the 2003-06-04 change, which is no longer needed now
89503         that we have better overflow checking.
89504         (localtime_offset): Likewise.
89505
89506         (__mktime_internal): Avoid harmful overflow on hosts where time_t
89507         and long are 64-bit but int is only 32-bit.
89508         (ydhms_diff): Use long int to store year1 and yday1.
89509         Issue a compile-time diagnostic if long int is not wide enough.
89510
89511         (__mktime_internal): Use long int to store adjusted year and yday.
89512         Use plain C rather than preprocessor commands, if that doesn't
89513         affect efficiency.
89514         Check for overflow (and try to repair) after each probe
89515         rather than checking only at the very end.  This avoids some bugs
89516         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
89517         does not equal GMT offset at maximum time).
89518         Use integer to check for overflow rather than floating point; this
89519         is more portable to non-IEEE hosts, and is a tad faster.
89520         When we detect that we are oscillating between two values,
89521         don't check whether tm_isdst has the requested value, since
89522         we already know the answer.  When tm_isdst has the wrong value,
89523         use a different heuristic to find the right one, based on the
89524         extreme values actually observed in practice in tz2003a,
89525         rather than the (overly optimistic) "previous 3 calendar quarters".
89526
89527         (not_equal_tm, print_tm, check_result): Use "const T" rather than
89528         "T const" to accommodate glibc style.
89529         (check_result): Use less-confusing report format.  "long" -> "long int.
89530         (main): Likewise.
89531         Don't loop if the iteration overflows time_t.
89532         Allow a negative step in the iteration.
89533
89534 2003-07-06  Karl Berry  <karl@gnu.org>
89535
89536         * config/depcomp: update from automake.
89537         * config/config.sub: update from prep.
89538
89539 2003-07-03  Karl Berry  <karl@gnu.org>
89540
89541         * config/config.guess: update from prep.
89542
89543 2003-07-01  Paul Eggert  <eggert@twinsun.com>
89544
89545         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
89546         xreadlink.c now includes it unconditionally.
89547
89548 2003-07-01  Paul Eggert  <eggert@twinsun.com>
89549
89550         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
89551         having it depend on HAVE_SYS_TYPES_H.
89552
89553 2003-07-01  Bruno Haible  <bruno@clisp.org>
89554
89555         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
89556         <sys/types.h> should be sufficient.
89557         Reported by Paul Eggert.
89558
89559 2003-06-26  Karl Berry  <karl@gnu.org>
89560
89561         * config/depcomp: update from automake.
89562
89563 2003-06-26  Bruno Haible  <bruno@clisp.org>
89564
89565         * modules/human: Depend on module stdbool.
89566
89567 2003-06-25  Bruno Haible  <bruno@clisp.org>
89568
89569         * modules/readlink: New file.
89570         * modules/xreadlink: Depend on it.
89571         * MODULES.html.sh (func_all_modules): Add readlink.
89572
89573 2003-06-25  Bruno Haible  <bruno@clisp.org>
89574
89575         * m4/readlink.m4: New file.
89576
89577 2003-06-25  Bruno Haible  <bruno@clisp.org>
89578
89579         * lib/readlink.c: New file.
89580
89581 2003-06-22  Karl Berry  <karl@gnu.org>
89582
89583         * config/srclist.txt: update mkinstalldirs from automake.
89584         * config/mkinstalldirs: update.
89585
89586 2003-06-22  Bruno Haible  <bruno@clisp.org>
89587
89588         Portability to mingw32.
89589         * m4/ssize_t.m4: New file, from GNU gettext.
89590         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
89591         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
89592
89593 2003-06-22  Bruno Haible  <bruno@clisp.org>
89594
89595         * modules/safe-read: Add m4/ssize_t.m4.
89596         * modules/xreadlink: Add m4/ssize_t.m4.
89597
89598 2003-06-20  Bruno Haible  <bruno@clisp.org>
89599
89600         Assume C89, so PARAMS isn't needed.
89601         * lib/unicodeio.h (PARAMS): Remove.
89602         * lib/unicodeio.c: Don't use PARAMS.
89603
89604 2003-06-18  Karl Berry  <karl@gnu.org>
89605
89606         * config/config.{guess,sub}: update from prep.
89607
89608 2003-06-18  Jim Meyering  <jim@meyering.net>
89609
89610         Merge changes from coreutils.
89611         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
89612         Remove explicit declarations of xmalloc and realloc.
89613         Include xalloc.h.
89614         (read_utmp): Remove anachronistic cast of xmalloc.
89615
89616 2003-06-17  Paul Eggert  <eggert@twinsun.com>
89617
89618         Assume C89, so PARAMS isn't needed.
89619         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
89620         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
89621         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
89622         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
89623         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
89624         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
89625         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
89626         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
89627         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
89628         lib/xstrtod.h, lib/xstrtol.h: Likewise.
89629         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
89630         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
89631         no longer needed. Anyway, config.h should always be included before any
89632         other file.
89633
89634 2003-06-11  Simon Josefsson  <jas@extundo.com>
89635
89636         * modules/sysexits: New file.
89637         * MODULES.html.sh (func_all_modules): Add sysexits.
89638
89639 2003-06-11  Simon Josefsson  <jas@extundo.com>
89640
89641         * lib/sysexit_.h: New file.
89642
89643 2003-06-11  Derek Price  <derek@ximbiot.com>
89644
89645         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
89646         necessary.
89647
89648 2003-06-11  Bruno Haible  <bruno@clisp.org>
89649
89650         * m4/sysexits.m4: New file.
89651
89652 2003-06-10  Simon Josefsson  <jas@extundo.com>
89653
89654         * lib/argp.h: New file, from glibc.
89655         * lib/argp-ba.c: New file, from glibc.
89656         * lib/argp-eexst.c: New file, from glibc.
89657         * lib/argp-fmtstream.c: New file, from glibc.
89658         * lib/argp-fmtstream.h: New file, from glibc.
89659         * lib/argp-fs-xinl.c: New file, from glibc.
89660         * lib/argp-help.c: New file, from glibc.
89661         * lib/argp-namefrob.h: New file, from glibc.
89662         * lib/argp-parse.c: New file, from glibc.
89663         * lib/argp-pv.c: New file, from glibc.
89664         * lib/argp-pvh.c: New file, from glibc.
89665         * lib/argp-xinl.c: New file, from glibc.
89666
89667 2003-06-10  Simon Josefsson  <jas@extundo.com>
89668
89669         * modules/strchrnul: New file.
89670
89671 2003-06-10  Simon Josefsson  <jas@extundo.com>
89672
89673         * modules/argp: New file.
89674
89675 2003-06-10  Simon Josefsson  <jas@extundo.com>
89676
89677         * m4/strchrnul.m4: New file.
89678
89679 2003-06-10  Simon Josefsson  <jas@extundo.com>
89680
89681         * lib/strchrnul.h: New file.
89682         * lib/strchrnul.c: New file.
89683
89684 2003-06-10  Bruno Haible  <bruno@clisp.org>
89685
89686         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
89687
89688 2003-06-07  Karl Berry  <karl@gnu.org>
89689
89690         * config/config.{guess,sub}: update from prep.
89691
89692 2003-06-07  Jim Meyering  <jim@meyering.net>
89693
89694         * modules/strtod: Use $(...) notation, not @...@ for
89695         AC_REPLACE'd variables.
89696         * modules/localcharset: Likewise.
89697
89698 2003-06-07  Jim Meyering  <jim@meyering.net>
89699
89700         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
89701         in place of my name in the copyright comment.
89702         Remove definition and uses of __P.
89703
89704         From coreutils.
89705         * lib/stat.c: Don't declare xmalloc explicitly.
89706         Instead, include "xalloc.h".
89707         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
89708         xrealloc, and xcalloc return values.
89709         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
89710         Improve comment.
89711         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
89712
89713 2003-06-07  Bruno Haible  <bruno@clisp.org>
89714
89715         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
89716         avoid AC_CONFIG_LINKS.
89717         * modules/fnmatch (Makefile.am): Use explicit creation rule for
89718         fnmatch.h, to avoid AC_CONFIG_LINKS.
89719         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
89720
89721 2003-06-07  Bruno Haible  <bruno@clisp.org>
89722
89723         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
89724         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
89725         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
89726         directory.
89727         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
89728         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
89729         directory.
89730
89731 2003-06-06  Jim Meyering  <jim@meyering.net>
89732
89733         Merge from coreutils.
89734         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
89735         Consolidate declarations and initializations of *_base* locals.
89736
89737         Merge from coreutils.
89738         This avoids a core dump on systems without GNU putenv,
89739         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
89740         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
89741         (unsetenv): New static function, from GNU libc.
89742         (rpl_putenv): Use it.
89743
89744         * lib/modechange.c: Remove trailing blanks.
89745
89746         Merge from coreutils.
89747         * lib/fsusage.c: Remove declaration of statfs.
89748         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
89749
89750         * lib/posixtm.c: Include <stdbool.h> unconditionally.
89751
89752 2003-06-06  Jim Meyering  <jim@meyering.net>
89753
89754         * lib/stdbool_.h: Renamed from stdbool.h.in.
89755
89756 2003-06-06  Jim Meyering  <jim@meyering.net>
89757             Bruno Haible  <bruno@clisp.org>
89758
89759         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
89760         Adjust Makefile.am snippet not to redirect directly to target.
89761         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
89762
89763 2003-06-05  Paul Eggert  <eggert@twinsun.com>
89764
89765         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
89766         mismatch, look in future quarters as well as past.  This fixes a
89767         bug when processing fall-backwards gaps immediately after a long
89768         period of daylight-saving time.
89769
89770         * lib/mktime.c: Assume freestanding C89 or better.
89771         (HAVE_LIMITS_H): Remove.  Assume it's 1.
89772         (__P): Remove; not used.
89773         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
89774         (mktime, not_equal_tm, print_tm, check_result,
89775         main): Use prototypes.  Use const * where appropriate.
89776         (main): Fix typo in testing code that uncovered by above changes.
89777         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
89778
89779 2003-06-04  Paul Eggert  <eggert@twinsun.com>
89780
89781         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
89782         locale.h, localeconv.  This merges changes from coreutils.
89783
89784         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
89785         It can be removed after the next Autoconf is released.
89786         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
89787         needed.
89788
89789 2003-06-04  Paul Eggert  <eggert@twinsun.com>
89790
89791         * lib/mktime.c: Fix Debian bug 177940
89792         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
89793         (localtime_offset): Now long int, not time_t, because we want it
89794         to be guaranteed to be signed.  All uses changed.
89795         (__mktime_internal): If overflow would occur when adding offset,
89796         don't add it.
89797
89798         Merge 'human' changes from coreutils.  Rewrite to support
89799         locale-specific notations like thousands separators.
89800         * lib/human.c: Simplify authorship notice.
89801         Include human.h immediately after config.h.
89802         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
89803         <limits.h>: Do not include, since human.h does.
89804         (SIZE_MAX, UINTMAX_MAX): New macros.
89805         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
89806         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
89807         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
89808         (power_letter): Renamed from suffixes.
89809         (generate_suffix_backwards): Remove.
89810         (adjust_value): Now takes int style (because of human.h changes)
89811         and long double value (for greater precision on some platforms).
89812         (group_number): New function.
89813         (human_readable): Use it.  Use integer options, not enum.
89814         Put the options before the sizes in the arg list.
89815         Support all the new options.
89816         The old human_readable function has been removed;
89817         use inttostr.h instead.
89818         (human_readable, default_block_size, humblock):
89819         Use uintmax_t, not int, for block sizes.
89820         (human_readable_inexact, block_size_types): Remove.
89821         (block_size_opts): New constant.
89822         (human_options): Renamed from human_block_size, with new signature
89823         that allows block sizes up to UINTMAX_MAX.  All callers changed.
89824         * lib/human.h: Add copyright and authorship notice.
89825         Include <limits.h> and <stdbool.h> unconditionally.
89826         (PARAMS): Remove.  All uses removed.
89827         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
89828         (enum human_inexact_style): Remove tag; now a nameless enum.
89829         (human_floor, human_ceiling, human_round_to_even): Now have
89830         values 2, 0, 1 rather than -1, 1, 0.
89831         (human_group_digits, human_suppress_point_zero, human_autoscale,
89832         human_base_1024, human_SI, human_B): New constants.
89833         (human_readable_inexact, human_block_size): Remove.
89834         (human_readable): Size args are now uintmax_t, not int.
89835         (human_options): New decl.
89836
89837         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
89838         unnecessary now that we assume C89 or better.  This change
89839         imported from coreutils.
89840
89841         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
89842         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
89843         in the 2003-05-30 sync from glibc.
89844
89845         .h files should stand alone, but we shouldn't include <sys/types.h>
89846         if we can get away with just <stddef.h>.
89847
89848         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
89849         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
89850         rather than <sys/types.h>, as we merely need size_t.
89851         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
89852         to get size_t.
89853         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
89854         Include <stdio.h>, to get FILE.
89855         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
89856         memcasecmp.h has included <stddef.h> and all we need is size_t.
89857         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
89858         our interface, instead of including <sys/types.h>
89859
89860 2003-06-04  Paul Eggert  <eggert@twinsun.com>
89861
89862         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
89863         now, as glibc mktime is buggy on non-glibc systems.
89864
89865 2003-06-03  Karl Berry  <karl@gnu.org>
89866
89867         * config/config.sub: update from prep.
89868
89869 2003-06-02  Paul Eggert  <eggert@twinsun.com>
89870
89871         [from coreutils]
89872         Fix some minor time-related bugs with POSIX time arguments.
89873         Some valid time stamps were being rejected (notably -1, and
89874         time stamps before 1900 on 64-bit hosts).  And some invalid
89875         time stamps were being accepted, e.g. September 31.
89876
89877         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
89878         that we can return (time_t) -1 successfully.
89879         * lib/posixtm.c: Likewise.
89880         [HAVE_STDBOOL_H]: Include <stdbool.h>.
89881         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
89882         (t): Remove static var.
89883         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
89884         of static var.  All uses changed.
89885         (year): Do not reject years before 1900; they can occur with
89886         64-bit time_t.
89887         (posix_time_parse): Do not check for out-of-range components;
89888         that is now the caller's responsibility, since our checks were
89889         only approximations.
89890         (posixtime): Use mktime to check for out-of-range components,
89891         since it knows them exactly.
89892         If mktime returns (time_t) -1, check whether an error actually occurred
89893         by invoking localtime on -1.
89894         (main) [TEST_POSIXTIME]: Check for input data errors, and report
89895         posixtime failures better.
89896         Improve the test data (in comments only).
89897
89898 2003-06-02  Karl Berry  <karl@gnu.org>
89899
89900         * config/mkinstalldirs (version): new variable.
89901         (--version): new option.
89902         (usage): improve message.
89903
89904 2003-05-30  Karl Berry  <karl@gnu.org>
89905
89906         * lib/mktime.c: update from libc.
89907
89908 2003-05-30  Bruno Haible  <bruno@clisp.org>
89909
89910         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
89911         * config/config.rpath: Upgrade to gettext-0.12.1.
89912
89913 2003-05-30  Bruno Haible  <bruno@clisp.org>
89914
89915         * m4/gettext.m4: Upgrade to gettext-0.12.1.
89916         * m4/nls.m4: New file, from gettext-0.12.1.
89917         * m4/po.m4: New file, from gettext-0.12.1.
89918         * m4/progtest.m4: Upgrade to gettext-0.12.1.
89919
89920 2003-05-30  Bruno Haible  <bruno@clisp.org>
89921
89922         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
89923         * lib/localcharset.h: Likewise.
89924         * lib/localcharset.c: Likewise.
89925
89926 2003-05-29  Karl Berry  <karl@gnu.org>
89927
89928         * config/config.rpath: update from gettext.
89929
89930 2003-05-28  Paul Eggert  <eggert@twinsun.com>
89931
89932         Assume the headers required for C89 freestanding compilers.
89933         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
89934         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
89935         * m4/human.m4 (gl_HUMAN): Likewise.
89936         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
89937         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
89938         * m4/userspec.m4 (gl_USERSPEC): Likewise.
89939         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
89940         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
89941         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
89942
89943 2003-05-28  Paul Eggert  <eggert@twinsun.com>
89944
89945         Assume the headers required for C89 freestanding compilers.
89946         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
89947         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
89948         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
89949         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
89950         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
89951         define, since <limits.h> is guaranteed to do that.
89952         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
89953         * lib/exclude.c: Include <stdbool.h> unconditionally.
89954         * lib/tempname.c: Include <stddef.h> unconditionally.
89955         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
89956         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
89957         <stddef.h> does that.
89958         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
89959         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
89960         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
89961         needed.
89962         * lib/xstrtol.c: Likewise.
89963         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
89964         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
89965
89966         * lib/addext.c (addext): Use assignment rather than cast, to avoid
89967         warnings on some platforms.
89968
89969         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
89970         arbitrarily.
89971
89972 2003-05-26  Jim Meyering  <jim@meyering.net>
89973
89974         Merge in a change from coreutils:
89975         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
89976         that is guaranteed to be `no'.  Use `no_such_member' to indicate
89977         that condition, rather than `-1' which is slightly misleading.
89978         Change the name of the cache variable to have the gl_ prefix.
89979         Prompted by a patch from Richard Dawe for DJGPP.
89980
89981 2003-05-24  Karl Berry  <karl@gnu.org>
89982
89983         * config/config.guess: update from prep.
89984
89985 2003-05-22  Karl Berry  <karl@gnu.org>
89986
89987         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
89988
89989 2003-05-20  Karl Berry  <karl@gnu.org>
89990
89991         * config/config.guess: update from prep.
89992
89993 2003-05-18  Karl Berry  <karl@gnu.org>
89994
89995         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
89996         might actually be set by the user.
89997
89998         * config/depcomp, install-sh, mdate-sh: update from automake.
89999
90000 2003-05-17  Bruno Haible  <bruno@clisp.org>
90001
90002         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
90003         invalid expansion for AC_EGREP_CPP.
90004         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
90005         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
90006         Suggested by Akim Demaille <akim@epita.fr> in
90007         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
90008
90009 2003-05-12  Jim Meyering  <jim@meyering.net>
90010
90011         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
90012         the space-padded-by-default conversion specifiers, %e, %k, %l.
90013
90014 2003-05-12  Bruno Haible  <bruno@clisp.org>
90015
90016         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
90017         the string is longer than 4 KB.
90018
90019 2003-05-11  Karl Berry  <karl@gnu.org>
90020
90021         * config/config.{guess,sub}: update from prep.
90022
90023 2003-05-09  Bruno Haible  <bruno@clisp.org>
90024
90025         * modules/error: Add m4/strerror_r.m4 to file list.
90026
90027 2003-05-03  Bruno Haible  <bruno@clisp.org>
90028
90029         Upgrade to Unicode-4.0.
90030         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
90031         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
90032         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
90033         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
90034         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
90035         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
90036         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
90037         Change width of U+E0100..U+E01EF from 1 to 0.
90038
90039 2003-04-25  Jim Meyering  <jim@meyering.net>
90040
90041         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
90042         of type size_t, not int.
90043
90044 2003-04-25  Bruno Haible  <bruno@clisp.org>
90045
90046         * lib/copy-file.c: Include <stddef.h>, for size_t.
90047
90048 2003-04-21  Paul Eggert  <eggert@twinsun.com>
90049
90050         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
90051         code which expansion is under static control.  Patch imported from
90052         Akim Demaille's patch to Bison; see
90053         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
90054
90055 2003-04-14  Bruno Haible  <bruno@clisp.org>
90056
90057         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
90058
90059 2003-04-11  Jim Meyering  <jim@meyering.net>
90060
90061         Merge changes from Coreutils.
90062
90063         2003-03-22  Jim Meyering  <jim@meyering.net>
90064
90065         * lib/strftime.c (widen): Cast alloca return value to proper type.
90066
90067         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
90068
90069         From GNU libc.
90070         * lib/strftime.c (my_strftime): Handle very large width
90071         specifications for numeric values correctly.  Improve checks for
90072         overflow.
90073
90074         2003-01-19  Jim Meyering  <jim@meyering.net>
90075
90076         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
90077         definitions.
90078         (nl_get_alt_digit) [! defined my_strftime]: Define.
90079         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
90080         _nl_get_alt_digit and _nl_get_walt_digit.
90081
90082         * lib/strftime.c (my_strftime): Merge in locale-related changes from
90083         libc. These changes have no effect outside of _LIBC.
90084
90085 2003-04-10  Bruno Haible  <bruno@clisp.org>
90086
90087         * modules/findprog: New file.
90088         * MODULES.html.sh (func_all_modules): Add it.
90089
90090 2003-04-10  Bruno Haible  <bruno@clisp.org>
90091
90092         * m4/findprog.m4: New file.
90093         * m4/eaccess.m4: New file.
90094
90095 2003-04-10  Bruno Haible  <bruno@clisp.org>
90096
90097         * lib/findprog.h: New file, from GNU gettext.
90098         * lib/findprog.c: New file, from GNU gettext.
90099
90100 2003-04-05  Jim Meyering  <jim@meyering.net>
90101
90102         Merge changes from Coreutils.
90103
90104         * lib/exclude.h (PARAMS): Remove definition and uses.
90105         * lib/exclude.c: Remove uses of `PARAMS'.
90106
90107         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
90108         Add test-cases for DOS filenames. Declare program_name.
90109         (main): Set up program_name.  Patch by Rich Dawe.
90110
90111         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
90112         error from mntctl.
90113         Use mntctl's return value to drive the entry-processing loop, since
90114         we can't rely on the value of the vmt_length member in the last
90115         entry.  On some systems doing so could result in exhausting
90116         virtual memory.  Based in part on a patch from Mike Jetzer.
90117
90118 2003-04-04  Bruno Haible  <bruno@clisp.org>
90119
90120         * modules/linebreak: New file.
90121         * MODULES.html.sh (func_all_modules): Add it.
90122
90123 2003-04-04  Bruno Haible  <bruno@clisp.org>
90124
90125         * m4/linebreak.m4: New file.
90126
90127 2003-04-04  Bruno Haible  <bruno@clisp.org>
90128
90129         * lib/linebreak.h: New file, from GNU gettext.
90130         * lib/linebreak.c: New file, from GNU gettext with slight
90131         modifications.
90132         * lib/lbrkprop.h: New file, from GNU gettext.
90133
90134 2003-04-03  Bruno Haible  <bruno@clisp.org>
90135
90136         * modules/utf8-ucs4: New file.
90137         * modules/utf16-ucs4: New file.
90138         * modules/ucs4-utf8: New file.
90139         * modules/ucs4-utf16: New file.
90140         * MODULES.html.sh (func_all_modules): Add them.
90141
90142 2003-04-03  Bruno Haible  <bruno@clisp.org>
90143
90144         * m4/utf-ucs4.m4: New file.
90145         * m4/ucs4-utf.m4: New file.
90146
90147 2003-04-03  Bruno Haible  <bruno@clisp.org>
90148
90149         * lib/utf8-ucs4.h: New file, from GNU gettext.
90150         * lib/utf16-ucs4.h: New file, from GNU gettext.
90151         * lib/ucs4-utf8.h: New file, from GNU gettext.
90152         * lib/ucs4-utf16.h: New file, from GNU gettext.
90153
90154 2003-04-02  Bruno Haible  <bruno@clisp.org>
90155
90156         * modules/binary-io: New file.
90157         * MODULES.html.sh (func_all_modules): Add it.
90158
90159 2003-04-02  Bruno Haible  <bruno@clisp.org>
90160
90161         * lib/binary-io.h: New file, from GNU gettext.
90162
90163 2003-04-01  Bruno Haible  <bruno@clisp.org>
90164
90165         * modules/pathname: New file.
90166         * MODULES.html.sh (func_all_modules): Add it.
90167
90168 2003-04-01  Bruno Haible  <bruno@clisp.org>
90169
90170         * lib/pathname.h: New file, from GNU gettext.
90171         * lib/concatpath.c: New file, from GNU gettext.
90172
90173 2003-03-30  Bruno Haible  <bruno@clisp.org>
90174
90175         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
90176
90177 2003-03-30  Bruno Haible  <bruno@clisp.org>
90178
90179         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
90180         function chown() doesn't exist.
90181
90182 2003-03-28  Bruno Haible  <bruno@clisp.org>
90183
90184         * modules/copy-file: New file.
90185         * MODULES.html.sh (func_all_modules): Add it.
90186
90187 2003-03-28  Bruno Haible  <bruno@clisp.org>
90188
90189         * m4/copy-file.m4: New file.
90190
90191 2003-03-28  Bruno Haible  <bruno@clisp.org>
90192
90193         * lib/copy-file.h: New file, from GNU gettext.
90194         * lib/copy-file.c: New file, from GNU gettext.
90195
90196 2003-03-18  Jim Meyering  <jim@meyering.net>
90197
90198         * lib/quote.c (quote_n): Fix typo in comment.
90199
90200 2003-03-18  Bruno Haible  <bruno@clisp.org>
90201
90202         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
90203         checking.
90204         * m4/onceonly_2_57.m4: Likewise.
90205
90206 2003-03-17  Bruno Haible  <bruno@clisp.org>
90207
90208         * m4/onceonly.m4: Require autoconf 2.54 or newer.
90209         (m4_quote): Remove macro.
90210         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
90211
90212 2003-03-14  Jim Meyering  <jim@meyering.net>
90213
90214         Merge changes from Coreutils.
90215         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
90216         to be const, in order to avoid warnings.
90217         (obstack_room): Likewise.
90218         (obstack_empty_p): Likewise.
90219
90220 2003-03-14  Bruno Haible  <bruno@clisp.org>
90221
90222         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
90223         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
90224
90225 2003-03-13  Paul Eggert  <eggert@twinsun.com>
90226
90227         Merge changes from Bison.
90228         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
90229         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
90230         when compiling Bison 1.875's `bitset bset = obstack_alloc
90231         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
90232         * lib/hash.c: Include <stdbool.h> unconditionally.
90233
90234 2003-03-13  Paul Eggert  <eggert@twinsun.com>
90235
90236         * m4/onceonly.m4 (m4_quote): New macro.
90237         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
90238         Quote AC_FOREACH variable-expansions properly.
90239
90240 2003-03-13  Paul Eggert  <eggert@twinsun.com>
90241
90242         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
90243
90244 2003-03-09  Paul Eggert  <eggert@twinsun.com>
90245
90246         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
90247         Reported by Bruce Becker; see:
90248         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
90249
90250 2003-03-03  Paul Eggert  <eggert@twinsun.com>
90251             Bruno Haible  <bruno@clisp.org>
90252
90253         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
90254         Reported by John Hughes, see
90255         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
90256
90257 2003-02-20  Bruno Haible  <bruno@clisp.org>
90258
90259         * MODULES.html.sh (func_all_modules): Add poll.
90260
90261 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
90262
90263         * modules/poll: New file.
90264
90265 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
90266
90267         * lib/poll_.h: New file.
90268         * lib/poll.c: New file.
90269
90270 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
90271
90272         * m4/poll.m4: New file.
90273
90274 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
90275
90276         * modules/mathl: New file.
90277
90278 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
90279
90280         * lib/mathl.h: New file.
90281         * lib/acosl.c: New file.
90282         * lib/asinl.c: New file.
90283         * lib/atanl.c: New file.
90284         * lib/ceill.c: New file.
90285         * lib/cosl.c: New file.
90286         * lib/expl.c: New file.
90287         * lib/floorl.c: New file.
90288         * lib/frexpl.c: New file.
90289         * lib/ldexpl.c: New file.
90290         * lib/logl.c: New file.
90291         * lib/sincosl.c: New file.
90292         * lib/sinl.c: New file.
90293         * lib/sqrtl.c: New file.
90294         * lib/tanl.c: New file.
90295         * lib/trigl.c: New file.
90296         * lib/trigl.h: New file.
90297
90298 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
90299
90300         * m4/mathl.m4: New file.
90301
90302 2003-02-18  Bruno Haible  <bruno@clisp.org>
90303
90304         * MODULES.html.sh (func_all_modules): Add mathl.
90305
90306 2003-02-17  Bruno Haible  <bruno@clisp.org>
90307
90308         * modules/mkdtemp: New module.
90309         * MODULES.html.sh (func_all_modules): Add it.
90310
90311 2003-02-17  Bruno Haible  <bruno@clisp.org>
90312
90313         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
90314
90315 2003-02-17  Bruno Haible  <bruno@clisp.org>
90316
90317         * lib/mkdtemp.h: New file, from GNU gettext.
90318         * lib/mkdtemp.c: New file, from GNU gettext.
90319
90320 2003-02-02  Jim Meyering  <jim@meyering.net>
90321
90322         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
90323         e.g. glibc-2.2.93.
90324
90325 2003-01-31  Bruno Haible  <bruno@clisp.org>
90326
90327         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
90328         'rpl_rename'.
90329         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
90330         'rpl_strnlen'.
90331         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
90332         'rpl_strtod'.
90333         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
90334         'rpl_utime'.
90335
90336 2003-01-31  Bruno Haible  <bruno@clisp.org>
90337
90338         * lib/rename.c: #undef rename before defining rpl_rename.
90339         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
90340
90341 2003-01-30  Bruno Haible  <bruno@clisp.org>
90342
90343         * modules/vasnprintf, modules/vasprintf: New modules.
90344         * MODULES.html.sh (func_all_modules): Add them.
90345
90346 2003-01-30  Bruno Haible  <bruno@clisp.org>
90347
90348         * m4/signed.m4: New file, from GNU gettext.
90349         * m4/longdouble.m4: New file, from GNU gettext.
90350         * m4/wchar_t.m4: New file, from GNU gettext.
90351         * m4/wint_t.m4: New file, from GNU gettext.
90352         * m4/vasnprintf.m4: New file.
90353         * m4/vasprintf.m4: New file.
90354
90355 2003-01-30  Bruno Haible  <bruno@clisp.org>
90356
90357         * lib/printf-args.h: New file, from GNU gettext.
90358         * lib/printf-args.c: New file, from GNU gettext.
90359         * lib/printf-parse.h: New file, from GNU gettext.
90360         * lib/printf-parse.c: New file, from GNU gettext.
90361         * lib/vasnprintf.h: New file, from GNU gettext.
90362         * lib/vasnprintf.c: New file, from GNU gettext.
90363         * lib/asnprintf.c: New file, from GNU gettext.
90364         * lib/vasprintf.h: New file, from GNU gettext with modifications.
90365         * lib/vasprintf.c: New file, from GNU gettext.
90366         * lib/asprintf.c: New file, from GNU gettext.
90367
90368 2003-01-29  Bruno Haible  <bruno@clisp.org>
90369
90370         * modules/stpncpy: New module.
90371         * MODULES.html.sh (func_all_modules): Add it.
90372
90373 2003-01-29  Bruno Haible  <bruno@clisp.org>
90374
90375         * m4/stpncpy.m4: New file.
90376
90377 2003-01-29  Bruno Haible  <bruno@clisp.org>
90378
90379         * lib/stpncpy.h: New file, from GNU gettext with modifications.
90380         * lib/stpncpy.c: New file, from GNU gettext with modifications.
90381
90382 2003-01-28  Bruno Haible  <bruno@clisp.org>
90383
90384         * modules/c-ctype: New module.
90385         * MODULES.html.sh (func_all_modules): Add it.
90386
90387 2003-01-28  Bruno Haible  <bruno@clisp.org>
90388
90389         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
90390         Paul Eggert.
90391         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
90392         Paul Eggert.
90393
90394 2003-01-27  Bruno Haible  <bruno@clisp.org>
90395
90396         * modules/xsetenv: New module.
90397         * MODULES.html.sh (func_all_modules): Add it.
90398
90399 2003-01-27  Bruno Haible  <bruno@clisp.org>
90400
90401         * lib/xsetenv.h: New file, from GNU gettext.
90402         * lib/xsetenv.c: New file, from GNU gettext.
90403
90404 2003-01-23  Jim Meyering  <jim@meyering.net>
90405
90406         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
90407         from working on systems without dirfd (at least Irix and OSF1/Tru64).
90408
90409 2003-01-23  Bruno Haible  <bruno@clisp.org>
90410
90411         * modules/minmax: New module.
90412         * MODULES.html.sh (func_all_modules): Add it.
90413
90414 2003-01-23  Bruno Haible  <bruno@clisp.org>
90415
90416         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
90417         Eggert.
90418
90419 2003-01-22  Bruno Haible  <bruno@clisp.org>
90420
90421         * modules/exit: New module.
90422         * MODULES.html.sh (func_all_modules): Add it.
90423
90424 2003-01-22  Bruno Haible  <bruno@clisp.org>
90425
90426         * lib/exit.h: New file, from GNU gettext.
90427
90428 2003-01-19  Bruno Haible  <bruno@clisp.org>
90429
90430         * gnulib-tool: Recognize option --extract-maintainer.
90431         (func_get_maintainer): New function.
90432         * modules/*: Add Maintainer entry.
90433
90434 2003-01-16  Jim Meyering  <jim@meyering.net>
90435
90436         * m4/regex.m4: The `regex' struct is both input and output.
90437         Initialize it before each use.  Patch by Tim Waugh.
90438
90439 2003-01-16  Bruno Haible  <bruno@clisp.org>
90440
90441         * MODULES.html.sh: Add a table of contents. Add the module name as
90442         leftmost column. Add hyperlinks.
90443
90444 2003-01-15  Bruno Haible  <bruno@clisp.org>
90445
90446         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
90447
90448 2003-01-15  Bruno Haible  <bruno@clisp.org>
90449
90450         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
90451         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
90452         suffix.
90453
90454 2003-01-15  Bruno Haible  <bruno@clisp.org>
90455
90456         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
90457
90458 2003-01-15  Bruno Haible  <bruno@clisp.org>
90459
90460         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
90461         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
90462
90463 2003-01-14  Jim Meyering  <jim@meyering.net>
90464
90465         * lib/same.c (same_name): Tweak a comment.
90466
90467 2003-01-14  Bruno Haible  <bruno@clisp.org>
90468
90469         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
90470         when a string comparison is sufficient.
90471
90472 2003-01-14  Bruno Haible  <bruno@clisp.org>
90473
90474         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
90475         'unsigned int'.
90476
90477 2003-01-14  Bruno Haible  <bruno@clisp.org>
90478
90479         * lib/hash-pjw.c: Add comment about low quality of this function.
90480
90481 2003-01-13  Bruno Haible  <bruno@clisp.org>
90482
90483         * modules/stpcpy: Distribute lib/stpcpy.h.
90484         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
90485
90486 2003-01-13  Bruno Haible  <bruno@clisp.org>
90487
90488         * modules/*: Add a description.
90489         * modules/strpbrk: Fix Makefile.am snippet.
90490         * modules/strtoimax: Fix dependencies.
90491         * modules/strtoumax: Likewise.
90492
90493 2003-01-13  Bruno Haible  <bruno@clisp.org>
90494
90495         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
90496         * modules/alloca (Makefile.am): All object files depend on alloca.h.
90497         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
90498
90499 2003-01-13  Bruno Haible  <bruno@clisp.org>
90500
90501         * gnulib-tool (func_create_testdir): Store config/* files in the main
90502         directory.
90503         * config.rpath: Move to ...
90504         * config/config.rpath: ... here.
90505         * modules/gettext: Contains config/config.rpath, not config.rpath.
90506         * modules/iconv: Likewise.
90507
90508 2003-01-12  Paul Eggert  <eggert@twinsun.com>
90509
90510         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
90511         to avoid collisions with libcurses and libreadline.
90512
90513         * m4/getstr.m4: Remove.
90514         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
90515
90516 2003-01-12  Paul Eggert  <eggert@twinsun.com>
90517
90518         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
90519         to avoid collisions with libcurses and libreadline.
90520
90521         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
90522         * lib/getstr.h, getstr.c: Remove.
90523         * lib/getline.c: Include "getline.h", to check interface.
90524         Move body of old getstr.c here: this defines MIN_CHUNK and
90525         declares getdelim2, which is renamed from getstr.
90526         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
90527
90528         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
90529         All uses changed.
90530         * lib/linebuffer.h: Likewise.
90531         (readline): Remove backward-compatibility macro.
90532
90533 2003-01-12  Paul Eggert  <eggert@twinsun.com>
90534
90535         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
90536         to avoid collisions with libcurses and libreadline.
90537         * getstr: Remove.
90538         * MODULES.html.sh: Remove getstr.
90539         * modules/getline: Depend on unlocked-io, not getstr.
90540
90541 2003-01-12  Jim Meyering  <jim@meyering.net>
90542
90543         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
90544
90545 2003-01-10  Bruno Haible  <bruno@clisp.org>
90546
90547         * modules/alloca: Change Makefile.am requirements. Simplify Include
90548         requirements. Add lib/alloca_.h to file list.
90549
90550 2003-01-10  Bruno Haible  <bruno@clisp.org>
90551
90552         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
90553
90554 2003-01-10  Bruno Haible  <bruno@clisp.org>
90555
90556         * lib/alloca_.h: New file.
90557         * lib/getdate.y: Unconditionally include alloca.h.
90558         * lib/makepath.c: Likewise.
90559         * lib/setenv.c: Likewise.
90560         * lib/userspec.c: Likewise.
90561
90562 2003-01-09  Karl Berry  <karl@gnu.org>
90563
90564         * MODULES.html.sh: include `dirname $0` in PATH, to find
90565         gnulib-tool.
90566
90567 2003-01-09  Bruno Haible  <bruno@clisp.org>
90568
90569         * modules/stdbool: Change configure.ac, Makefile.am requirements.
90570         Simplify Include requirements. Add lib/stdbool.h.in to file list.
90571
90572 2003-01-09  Bruno Haible  <bruno@clisp.org>
90573
90574         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
90575
90576 2003-01-09  Bruno Haible  <bruno@clisp.org>
90577
90578         * lib/stdbool.h.in: New file.
90579
90580 2003-01-09  Bruno Haible  <bruno@clisp.org>
90581
90582         * gnulib-tool (func_all_modules): Ignore files ending in ~.
90583         * MODULES.html.sh: Likewise.
90584
90585 2003-01-08  Jim Meyering  <jim@meyering.net>
90586
90587         * lib/full-write.c: Undefine and define-away `const' after inclusion
90588         of errno.h, not before.  Suggestion from Bruno Haible.
90589
90590 2003-01-08  Bruno Haible  <bruno@clisp.org>
90591
90592         * modules/full-read: Depend on full-write.
90593
90594 2003-01-08  Bruno Haible  <bruno@clisp.org>
90595
90596         * lib/safe-read.c: Include specification header first, to ensure its
90597         selfcontainedness.
90598         * lib/full-write.c: Likewise.
90599
90600 2003-01-07  Jim Meyering  <jim@meyering.net>
90601
90602         * lib/full-write.c: Rework so that it may serve to define full_read,
90603         too.
90604         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
90605
90606 2003-01-07  Bruno Haible  <bruno@clisp.org>
90607
90608         * lib/strtoimax.c: Include <stdint.h> as an alternative to
90609         <inttypes.h>.
90610         * lib/xstrtol.h: Likewise.
90611         * lib/xstrtoimax.c: Likewise.
90612         * lib/xstrtoumax.c: Likewise.
90613         * lib/human.h: Likewise.
90614
90615         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
90616         on systems that have <inttypes.h> but not <stdint.h>.
90617
90618 2003-01-07  Bruno Haible  <bruno@clisp.org>
90619
90620         * MODULES.html.sh: Add copyright notice.
90621         (missed_files): Omit CVS directory entries.
90622         (func_module): Make it work with sed-3.02.
90623         * MODULES.txt: Remove file.
90624
90625 2003-01-06  Jim Meyering  <jim@meyering.net>
90626
90627         * lib/version-etc.c: Update year in translatable copyright string.
90628
90629 2003-01-03  Karl Berry  <karl@gnu.org>
90630
90631         * config/config.{guess,sub}: update from prep.
90632
90633 2003-01-02  Karl Berry  <karl@gnu.org>
90634
90635         * doc/COPYING.DOC: belatedly updated to 1.2.
90636
90637 2003-01-01  Karl Berry  <karl@gnu.org>
90638
90639         * gnulib-tool (func_verify_module): report module name $module in
90640         error message, not $1.
90641         * gnulib-tool (create-testdir): don't complain if destdir couldn't
90642         be created, only if it doesn't exist.
90643         * gnulib-tool (last_checkin_date): don't expand the $Date here.
90644
90645 2002-12-31  Paul Eggert  <eggert@twinsun.com>
90646
90647         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
90648
90649 2002-12-31  Paul Eggert  <eggert@twinsun.com>
90650
90651         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
90652         memcmp if strcoll doesn't work.
90653
90654 2002-12-31  Bruno Haible  <bruno@clisp.org>
90655
90656         * lib/utime.c (utime_null): No need to call ftruncate if the file was
90657         nonempty.
90658
90659 2002-12-31  Bruno Haible  <bruno@clisp.org>
90660
90661         * lib/memcoll.c (STRCOLL): New macro.
90662         (memcoll): Use it.
90663
90664 2002-12-31  Bruno Haible  <bruno@clisp.org>
90665
90666         * lib/localcharset.h: New file.
90667         * lib/localcharset.c: Include it.
90668         * lib/unicodeio.c: Likewise.
90669
90670 2002-12-31  Bruno Haible  <bruno@clisp.org>
90671
90672         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
90673         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
90674
90675 2002-12-31  Bruno Haible  <bruno@clisp.org>
90676
90677         * lib/getline.h: Include <stddef.h>, for size_t.
90678
90679         * lib/unicodeio.h: Include <stddef.h>, for size_t.
90680         * lib/unicodeio.c: Don't include <stddef.h>.
90681
90682 2002-12-31  Bruno Haible  <bruno@clisp.org>
90683
90684         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
90685         HAVE_TM_ZONE.
90686
90687 2002-12-24  Karl Berry  <karl@gnu.org>
90688
90689         * config/config.guess: update from prep.
90690
90691 2002-12-24  Bruno Haible  <bruno@clisp.org>
90692
90693         General infrasructure.
90694         * m4/README: Rewritten.
90695         * m4/onceonly.m4: New file.
90696         * m4/onceonly_2_57.m4: New file.
90697
90698         Module atexit.
90699         * m4/atexit.m4: New file.
90700
90701         Module strtod.
90702         * m4/strtod.m4: New file.
90703
90704         Module strtol.
90705         * m4/strtol.m4: New file.
90706
90707         Module strtoul.
90708         * m4/strtoul.m4: New file.
90709
90710         Module memchr.
90711         * m4/memchr.m4: New file.
90712
90713         Module memcmp.
90714         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
90715         (jm_FUNC_MEMCMP): Invoke it.
90716
90717         Module memcpy.
90718         * m4/memcpy.m4: New file.
90719
90720         Module memmove.
90721         * m4/memmove.m4: New file.
90722
90723         Module memset.
90724         * m4/memset.m4: New file.
90725
90726         Module strcspn.
90727         * m4/strcspn.m4: New file.
90728
90729         Module strpbrk.
90730         * m4/strpbrk.m4: New file.
90731
90732         Module strstr.
90733         * m4/strstr.m4: New file.
90734
90735         Module strerror.
90736         * m4/strerror.m4: New file.
90737
90738         Module mktime.
90739         * m4/mktime.m4: Renamed from jm-mktime.m4.
90740         (gl_PREREQ_MKTIME): New macro.
90741         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
90742
90743         Module malloc.
90744         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
90745         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
90746         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
90747
90748         Module realloc.
90749         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
90750         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
90751         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
90752
90753         Module strftime.
90754         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
90755         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
90756         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
90757         gl_TM_GMTOFF.
90758         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
90759
90760         Module xalloc.
90761         * m4/xalloc.m4: New file.
90762
90763         Module alloca.
90764         * m4/alloca.m4: New file.
90765
90766         Module putenv.
90767         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
90768         (jm_FUNC_PUTENV): Invoke it.
90769
90770         Module setenv.
90771         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
90772         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
90773         when invoked twice.
90774         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
90775         gt_FUNC_SETENV.
90776
90777         Module memrchr.
90778         * m4/memrchr.m4: New file.
90779
90780         Module stpcpy.
90781         * m4/stpcpy.m4: New file.
90782
90783         Module strcase.
90784         * m4/strcase.m4: New file.
90785
90786         Module strdup.
90787         * m4/strdup.m4: New file.
90788
90789         Module strnlen.
90790         * m4/strnlen.m4: New file.
90791
90792         Module strndup.
90793         * m4/strndup.m4: New file.
90794
90795         Module xstrtod.
90796         * m4/xstrtod.m4: New file.
90797
90798         Module xstrtol.
90799         * m4/xstrtol.m4: New file.
90800
90801         Module getdate.
90802         * m4/getdate.m4: New file.
90803
90804         Module unlocked-io.
90805         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
90806         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
90807         * m4/jm-glibc-io.m4n: Remove file.
90808
90809         Module long-options.
90810         * m4/long-options.m4: New file.
90811
90812         Module md5.
90813         * m4/md5.m4: New file.
90814
90815         Module sha.
90816         * m4/sha.m4: New file.
90817
90818         Module getstr.
90819         * m4/getstr.m4: New file.
90820
90821         Module getline.
90822         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
90823         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
90824         <sys/types.h>, for size_t. Use the function name gnu_getline, not
90825         simply getline. Infoke gl_PREREQ_GETLINE.
90826
90827         Module obstack.
90828         * m4/obstack.m4: New file.
90829
90830         Module hash.
90831         * m4/hash.m4: New file.
90832
90833         Module readtokens.
90834         * m4/readtokens.m4: New file.
90835
90836         Module strverscmp.
90837         * m4/strverscmp.m4: New file.
90838
90839         Module stdbool.
90840         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
90841         OSF/1.
90842
90843         Module strtoll.
90844         * m4/strtoll.m4: New file.
90845
90846         Module strtoull.
90847         * m4/strtoull.m4: New file.
90848
90849         Module strtoimax.
90850         * m4/strtoimax.m4: New file.
90851
90852         Module strtoumax.
90853         * m4/strtoumax.m4: New file.
90854
90855         Module xstrtoimax.
90856         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
90857         jm_AC_PREREQ_XSTRTOIMAX.
90858         Moved the strtol prerequisites to strtol.m4.
90859         Moved the strtoll prerequisites to strtoll.m4.
90860         Moved the strtoimax prerequisites to strtoimax.m4.
90861
90862         Module xstrtoumax.
90863         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
90864         jm_AC_PREREQ_XSTRTOUMAX.
90865         Moved the strtoul prerequisites to strtoul.m4.
90866         Moved the strtoull prerequisites to strtoull.m4.
90867         Moved the strtoumax prerequisites to strtoumax.m4.
90868
90869         Module chown.
90870         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
90871         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
90872
90873         Module dup2.
90874         * m4/dup2.m4: New file.
90875
90876         Module ftruncate.
90877         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
90878         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
90879
90880         Module getgroups.
90881         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
90882         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
90883
90884         Module gettimeofday.
90885         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
90886         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
90887         gl_PREREQ_GETTIMEOFDAY.
90888
90889         Module mkdir.
90890         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
90891         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
90892
90893         Module mkstemp.
90894         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
90895         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
90896         jm_AC_TYPE_UINTMAX_T.
90897         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
90898
90899         Module stat.
90900         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
90901         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
90902
90903         Module lstat.
90904         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
90905         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
90906
90907         Module timespec.
90908         * m4/timespec.m4 (gl_TIMESPEC): New macro.
90909         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
90910         * m4/st_mtim.m4: Indentation.
90911
90912         Module nanosleep.
90913         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
90914         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
90915         gl_PREREQ_NANOSLEEP.
90916
90917         Module regex.
90918         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
90919         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
90920         (gl_REGEX): New macro.
90921
90922         Module rename.
90923         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
90924         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
90925
90926         Module rmdir.
90927         * m4/rmdir.m4: New file.
90928
90929         Module utime.
90930         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
90931         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
90932         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
90933
90934         Module dirname.
90935         * m4/dirname.m4: New file.
90936
90937         Module getopt.
90938         * m4/getopt.m4: New file.
90939
90940         Module unistd-safer.
90941         * m4/unistd-safer.m4: New file.
90942
90943         Module fnmatch.
90944         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
90945         declaration.
90946         (gl_PREREQ_FNMATCH_EXTRA): New macro.
90947         (gl_FUNC_FNMATCH_POSIX): New macro.
90948         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
90949         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
90950         simply fnmatch.
90951
90952         Module exclude.
90953         * m4/exclude.m4: New file.
90954
90955         Module human.
90956         * m4/human.m4: New file.
90957
90958         Module acl.
90959         * m4/acl.m4: Nop.
90960
90961         Module backupfile.
90962         * m4/backupfile.m4: New file.
90963         * m4/d-ino.m4: Indentation.
90964
90965         Module fsusage.
90966         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
90967         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
90968         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
90969
90970         Module dirfd.
90971         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
90972         requirements.
90973
90974         Module euidaccess.
90975         * m4/euidaccess.m4: New file.
90976
90977         Module file-type.
90978         * m4/file-type.m4: New file.
90979
90980         Module fileblocks.
90981         * m4/fileblocks.m4: New file.
90982
90983         Module filemode.
90984         * m4/filemode.m4: New file.
90985
90986         Module isdir.
90987         * m4/isdir.m4: New file.
90988
90989         Module lchown.
90990         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
90991         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
90992
90993         Module makepath.
90994         * m4/makepath.m4: New file.
90995
90996         Module modechange.
90997         * m4/modechange.m4: New file.
90998
90999         Module mountlist.
91000         * m4/mountlist.m4: New file.
91001         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
91002         Indentation.
91003
91004         Module path-concat.
91005         * m4/path-concat.m4: New file.
91006
91007         Module pathmax.
91008         * m4/pathmax.m4: New file.
91009
91010         Module same.
91011         * m4/same.m4: New file.
91012
91013         Module save-cwd.
91014         * m4/save-cwd.m4: New file.
91015
91016         Module savedir.
91017         * m4/savedir.m4: New file.
91018
91019         Module xgetcwd.
91020         * m4/xgetcwd.m4: New file.
91021         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
91022
91023         Module xreadlink.
91024         * m4/xreadlink.m4: New file.
91025
91026         Module safe-read.
91027         * m4/safe-read.m4: New file.
91028
91029         Module safe-write.
91030         * m4/safe-write.m4: New file.
91031
91032         Module closeout.
91033         * m4/closeout.m4: New file.
91034
91035         Module stdio-safer.
91036         * m4/stdio-safer.m4: New file.
91037
91038         Module getpass.
91039         * m4/getpass.m4: New file.
91040
91041         Module getugroups.
91042         * m4/getugroups.m4: New file.
91043
91044         Module group-member.
91045         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
91046         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
91047
91048         Module idcache.
91049         * m4/idcache.m4: New file.
91050
91051         Module userspec.
91052         * m4/userspec.m4: New file.
91053
91054         Module gettime.
91055         * m4/clock_time.m4: New file.
91056         * m4/gettime.m4: New file.
91057
91058         Module settime.
91059         * m4/settime.m4: New file.
91060
91061         Module posixtm.
91062         * m4/posixtm.m4: New file.
91063
91064         Module gethostname.
91065         * m4/gethostname.m4: New file.
91066
91067         Module canon-host.
91068         * m4/canon-host.m4: New file.
91069
91070         Module gettext.
91071         * m4/codeset.m4: New file, from gettext-0.11.5.
91072         * m4/gettext.m4: New file, from gettext-0.11.5.
91073         * m4/glibc21.m4: New file, from gettext-0.11.5.
91074         * m4/iconv.m4: New file, from gettext-0.11.5.
91075         * m4/intdiv0.m4: New file, from gettext-0.11.5.
91076         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
91077         * m4/inttypes.m4: New file, from gettext-0.11.5.
91078         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
91079         * m4/isc-posix.m4: New file, from gettext-0.11.5.
91080         * m4/lcmessage.m4: New file, from gettext-0.11.5.
91081         * m4/lib-ld.m4: New file, from gettext-0.11.5.
91082         * m4/lib-link.m4: New file, from gettext-0.11.5.
91083         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
91084         * m4/progtest.m4: New file, from gettext-0.11.5.
91085         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
91086         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
91087         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
91088
91089         Module localcharset.
91090         * m4/localcharset.m4: New file.
91091
91092         Module hard-locale.
91093         * m4/hard-locale.m4: New file.
91094
91095         Module mbswidth.
91096         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
91097         onceonly macros.
91098         * m4/mbrtowc.m4: Add comment.
91099
91100         Module memcasecmp.
91101         * m4/memcasecmp.m4: New file.
91102
91103         Module memcoll.
91104         * m4/memcoll.m4: New file.
91105
91106         Module unicodeio.
91107         * m4/unicodeio.m4: New file.
91108
91109         Module rpmatch.
91110         * m4/rpmatch.m4: New file.
91111
91112         Module yesno.
91113         * m4/yesno.m4: New file.
91114
91115         Module exitfail.
91116         * m4/exitfail.m4: New file.
91117
91118         Module c-stack.
91119         * m4/c-stack.m4 (gl_C_STACK): New macro.
91120         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
91121
91122         Module error.
91123         * m4/error.m4 (gl_ERROR): New macro.
91124         (jm_PREREQ_ERROR): Use onceonly macros.
91125
91126         Module fatal.
91127         * m4/fatal.m4: New file.
91128
91129         Module getloadavg.
91130         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
91131         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
91132
91133         Module getpagesize.
91134         * m4/getpagesize.m4: New file.
91135
91136         Module getusershell.
91137         * m4/getusershell.m4: New file.
91138
91139         Module physmem.
91140         * m4/physmem.m4: New file.
91141
91142         Module posixver.
91143         * m4/posixver.m4: New file.
91144
91145         Module quotearg.
91146         * m4/quotearg.m4: New file.
91147
91148         Module quote.
91149         * m4/quote.m4: New file.
91150
91151         Module readutmp.
91152         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
91153
91154         Module sig2str.
91155         * m4/sig2str.m4: New file.
91156
91157         Other.
91158         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
91159         ulonglong.m4.
91160         * m4/intmax_t.m4: New file.
91161         * m4/d-type.m4: Indentation.
91162         * m4/jm-macros.m4: Update.
91163         * m4/prereq.m4 (jm_PREREQ): Update.
91164         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
91165         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
91166         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
91167         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
91168         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
91169         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
91170         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
91171         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
91172         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
91173         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
91174         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
91175         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
91176         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
91177         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
91178         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
91179         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
91180         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
91181         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
91182         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
91183
91184 2002-12-24  Bruno Haible  <bruno@clisp.org>
91185
91186         * MODULES.txt: Update according to m4/ changes.
91187
91188         Module gettext.
91189         * config.rpath: New file, from gettext-0.11.5.
91190
91191         * modules/*: New module descriptions.
91192         * gnulib-tool: New file.
91193         * MODULES.html.sh: New file.
91194
91195 2002-12-21  Karl Berry  <karl@gnu.org>
91196
91197         * doc/fdl.texi: update to version 1.2.
91198
91199 2002-12-19  Karl Berry  <karl@gnu.org>
91200
91201         * config/config.guess: update from prep.
91202
91203 2002-12-18  Bruno Haible  <bruno@clisp.org>
91204
91205         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
91206         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
91207
91208 2002-12-17  Bruno Haible  <bruno@clisp.org>
91209
91210         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
91211         stdlib.h, string.h.
91212
91213 2002-12-17  Bruno Haible  <bruno@clisp.org>
91214
91215         * lib/canon-host.c (strdup): Remove unused declaration.
91216
91217         * lib/fsusage.c: Include full_read.h.
91218         (get_fs_usage): Use full_read instead of safe_read.
91219
91220         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
91221
91222 2002-12-12  Karl Berry  <karl@gnu.org>
91223
91224         * config/config.guess: update from prep.
91225
91226 2002-12-11  Bruno Haible  <bruno@clisp.org>
91227
91228         * m4/setenv.m4: New file, from gettext-0.11.5.
91229
91230 2002-12-11  Bruno Haible  <bruno@clisp.org>
91231
91232         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
91233         not unsetenv().
91234         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
91235         modifications:
91236
91237         2002-12-11  Bruno Haible  <bruno@clisp.org>
91238
91239                 * setenv.c (alloca): Fall back to malloc.
91240                 (freea): New macro.
91241                 (setenv): Use freea() to free memory allocated with alloca().
91242
91243         2002-11-13  Bruno Haible  <bruno@clisp.org>
91244
91245                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
91246                 function declarations.
91247                 * unsetenv.c (unsetenv): Likewise.
91248
91249         2002-03-04  Bruno Haible  <bruno@clisp.org>
91250
91251                 Portability to AIX 4.3.3.
91252                 * unsetenv.c: New file, extracted from setenv.c.
91253                 * setenv.c: Move the unsetenv() function to unsetenv.c.
91254
91255         2001-12-20  Bruno Haible  <bruno@clisp.org>
91256
91257                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
91258                 use malloc instead. For SunOS 4.
91259
91260         2001-12-11  Bruno Haible  <bruno@clisp.org>
91261
91262                 * setenv.c: Declare alloca.
91263                 (compar_fn_t): New typedef.
91264                 (KNOWN_VALUE, STORE_VALUE): Use it.
91265
91266         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
91267         setenv.h.
91268
91269 2002-12-10  Paul Eggert  <eggert@twinsun.com>
91270
91271         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
91272         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
91273         Choose values that are less likely to collide with system fnmatch
91274         options.
91275         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
91276         defined (e.g., a pure POSIX system).
91277         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
91278         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
91279
91280 2002-12-06  Paul Eggert  <eggert@twinsun.com>
91281
91282         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
91283         a pain in practice to deal with generated m4 files.  This change
91284         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
91285
91286         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
91287         and jm-glibc-io.m4, as they are no longer a special case.
91288         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
91289         kludge and the auto-generation stuff.  Check only whether the
91290         functions are declared, not whether they exist, since older hosts
91291         that don't declare the functions can't use the optimization anyway.
91292
91293 2002-12-06  Jim Meyering  <jim@meyering.net>
91294
91295         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
91296
91297         Merge in changes from libc's misc/error.c, in preparation
91298         for the merge of gnulib's changes back into libc.
91299
91300         * lib/error.c (_): Define only if not already defined.
91301         Move definition to follow all #include directives.
91302         Include unlocked-io.h only if !_LIBC.
91303         [_LIBC]: Include <libio/libioP.h>.
91304         [USE_IN_LIBIO]: Include <libio/iolibio.h>
91305         (fflush): Tweak definition to use INTUSE.
91306         (putc): Define.
91307
91308 2002-12-05  Paul Eggert  <eggert@twinsun.com>
91309
91310         * lib/alloca.c [defined emacs]: Include "lisp.h".
91311         (xalloc_die) [defined emacs]: New macro.
91312         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
91313         [! defined emacs]: Include <xalloc.h>.
91314         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
91315         (pointer): Typedef to POINTER_TYPE *.
91316         (malloc): Remove decl; we now always use xmalloc.
91317         (alloca): Use old-style definition, since Emacs needs this.
91318         Check for arithmetic overflow when computing combined size.
91319
91320 2002-12-04  Paul Eggert  <eggert@twinsun.com>
91321
91322         Do not generate unlocked-io.h automatically, since it's easier to
91323         maintain it by hand.
91324
91325         * lib/unlocked-io.h: New file, from GNU diffutils,
91326         but with proper copyright notice and attribution.
91327         * lib/gen-uio: Remove.
91328         * lib/Makefile.am: Add copyright notice.
91329         (libfetish_a_SOURCES): Add unlocked-io.h.
91330         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
91331         (DISTCLEANFILES, io_functions): Remove macros.
91332         (EXTRA_DIST): Remove gen_uio.
91333         (unlocked-io.h): Remove rule.
91334
91335 2002-12-04  Jim Meyering  <jim@meyering.net>
91336
91337         Reflect the fact that stat.c and lstat.c are no longer generated.
91338         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
91339         (DISTCLEANFILES): Likewise.
91340         (EXTRA_DIST): Likewise.
91341         (all_local): Don't depend on stat.c or lstat.c.
91342         (stat.c, lstat.c): Remove rules.
91343         (EXTRA_DIST): Remove xstat.in.
91344
91345         * lib/xstat.in: Remove file.  Contents moved into stat.c.
91346         * lib/stat.c: New file.  Contents mostly from xstat.in.
91347         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
91348         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
91349
91350         * lib/safe-read.c: Rework so that it may serve to define safe_write,
91351         too.
91352         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
91353
91354 2002-12-03  Jim Meyering  <jim@meyering.net>
91355
91356         * lib/safe-read.c, safe-write.c: Change variable names and comments,
91357         but not semantics, to minimize the differences between these two files.
91358         (safe_read): Change comment to mention SAFE_READ_ERROR.
91359
91360         * lib/safe-read.c (IS_EINTR): Define.
91361         (safe_read): Use IS_EINTR in place of in-function cpp directives.
91362
91363 2002-12-02  Jim Meyering  <jim@meyering.net>
91364
91365         * lib/safe-read.c (EINTR): Define.
91366         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
91367         (INT_MAX): Provide fallback.
91368         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
91369
91370         * lib/safe-read.h (SAFE_READ_ERROR): Define.
91371
91372 2002-12-02  Bruno Haible  <bruno@clisp.org>
91373
91374         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
91375         Define, taken from safe-read.c.
91376         (INT_MAX): Provide fallback.
91377         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
91378         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
91379
91380         * lib/safe-read.c (EINTR): Remove definition.
91381         (safe_read): Don't use EINTR if it is absent.
91382
91383 2002-12-01  Jim Meyering  <jim@meyering.net>
91384
91385         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
91386         zero.
91387         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
91388
91389 2002-11-27  Paul Eggert  <eggert@twinsun.com>
91390
91391         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
91392         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
91393         with `if (! (value < limit)) abort ();', for readability.
91394
91395 2002-11-26  Karl Berry  <karl@gnu.org>
91396
91397         * lib/strdup.c: copy from libc again, with jim's ok.
91398         * lib/.cppi-disable: re-add strdup.c
91399
91400 2002-11-25  Karl Berry  <karl@gnu.org>
91401
91402         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
91403         instead of "strtol.c".
91404
91405 2002-11-25  Karl Berry  <karl@gnu.org>
91406
91407         * config/install-sh: update from automake for variable quoting, $0 in
91408         error msgs, etc.
91409
91410         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
91411         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
91412         entry.
91413
91414 2002-11-25  Jim Meyering  <jim@meyering.net>
91415
91416         * lib/mktime.c: Sync from libc, now that it has the latest fix.
91417
91418 2002-11-24  Karl Berry  <karl@gnu.org>
91419
91420         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
91421         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
91422
91423 2002-11-24  Jim Meyering  <jim@meyering.net>
91424
91425         Update from coreutils:
91426
91427         * lib/mktime.c: Merge in changes from libc.
91428
91429         Avoid a link-time failure on some Linux systems.
91430         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
91431         (otherwise).
91432         (__mon_yday): Declare with the STATIC attribute.
91433         (__mktime_internal): Likewise.
91434         Based on a report from Greg Schafer.
91435
91436 2002-11-23  Jim Meyering  <jim@meyering.net>
91437
91438         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
91439         Use `unsigned', not `int', as type of index.
91440
91441         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
91442
91443         * lib/fsusage.c: Remove unneeded parentheses around operands of
91444         `defined'.
91445
91446 2002-11-22  Paul Eggert  <eggert@twinsun.com>
91447
91448         * lib/quotearg.h: Allow multiple inclusion by surrounding with
91449         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
91450         so that we can be included first.
91451         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
91452         * lib/quotearg.c: Include quotearg.h immediately after config.h.
91453         No need to include stddef.h or sys/types.h any more.
91454         Surround local include files with "", not "<>".
91455         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
91456         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
91457         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
91458         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
91459         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
91460         (ISPRINT): Remove; no longer needed now that we assume C89.
91461
91462         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
91463         Preserve errno.
91464
91465         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
91466         quotearg_char): Use SIZE_MAX rather than
91467         (size_t) -1 when we are talking about "infinity".
91468
91469         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
91470
91471 2002-11-22  Paul Eggert  <eggert@twinsun.com>
91472
91473         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
91474         hint that one should use `if (! x) abort ();' rather than `assert
91475         (x);', and anyway it's one less thing to worry about configuring.
91476         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
91477         hash_rehash, hash_insert): Use abort rather than assert.
91478
91479 2002-11-22  Bruno Haible  <bruno@clisp.org>
91480
91481         * lib/safe-read.h: Assume C89. Add comments.
91482         (safe_read): Change return type to size_t.
91483         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
91484         byte counts > SSIZE_MAX correctly.
91485         * lib/safe-write.h: New file.
91486         * lib/safe-write.c: New file.
91487         * lib/full-read.h: New file.
91488         * lib/full-read.c: New file.
91489         * lib/full-write.h: Assume C89. Add comments.
91490         * lib/full-write.c: Include safe-write.h.
91491         (full_write): Rewritten to use safe_write.
91492         Suggested by Jim Meyering and Paul Eggert.
91493
91494 2002-11-21  Jim Meyering  <jim@meyering.net>
91495
91496         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
91497
91498         Merge in changes from the coreutils.
91499
91500         2002-09-25  Paul Eggert  <eggert@twinsun.com>
91501         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
91502         <stdint.h>.
91503         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
91504         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
91505         int.  Work more efficiently if X is the same width as uintmax_t.
91506         Do not compare X to -1, to avoid bogus compiler warning.
91507         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
91508         Don't assume that f_frsize and f_bsize are the same type.
91509
91510         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
91511         warning on FreeBSD.
91512
91513         * lib/makepath.c (make_path): Restore umask *before* creating the final
91514         component.
91515         (make_path): Minor reformatting.
91516
91517         * lib/xmalloc.c: Adjust to work with new autoconf macros,
91518         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
91519         HAVE_MALLOC/HAVE_REALLOC.
91520
91521         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
91522         dummy ones.  At least on GNU/Linux systems, `auto' means something
91523         else.
91524         From Michael Stone.
91525
91526 2002-11-21  Bruno Haible  <bruno@clisp.org>
91527
91528         Remove case insensitive option matching.
91529         * lib/argmatch.h (argcasematch): Remove declaration.
91530         (ARGCASEMATCH): Remove macro.
91531         (__xargmatch_internal): Remove case_sensitive argument.
91532         (XARGMATCH): Update.
91533         (XARGCASEMATCH): Remove macro.
91534         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
91535         case_sensitive argument.
91536         (argcasematch): Remove function.
91537         (__xargmatch_internal): Remove case_sensitive argument.
91538         (main): Use XARGMATCH instead of XARGCASEMATCH.
91539
91540         * lib/xmalloc.c: Change compile-time error message. Add comment about
91541         required autoconf version.
91542
91543 2002-11-20  Paul Eggert  <eggert@twinsun.com>
91544
91545         Merge argmatch cleanups from Bison.  Assume C89.
91546
91547         * lib/argmatch.c: Include config.h here, not in argmatch.h.
91548         Include stdlib.h, for EXIT_FAILURE.
91549         Always include <string.h>, since we assume C89.
91550         (EXIT_FAILURE): Remove pre-C89 bug workaround.
91551         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
91552         Include <stddef.h> instead, since it's all we need for size_t.
91553         (PARAMS): Remove.  All uses removed.
91554         (ARRAY_CARDINALITY): Do not bother to #undef.
91555         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
91556         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
91557         Remove unnecessary parentheses.
91558         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
91559         Insert necessary parentheses.
91560         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
91561         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
91562
91563 2002-11-19  Bruno Haible  <bruno@clisp.org>
91564
91565         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
91566         * lib/mbswidth.h: Include <stddef.h>, for size_t.
91567
91568         * lib/mbswidth.h (PARAMS): Remove macro.
91569         (mbswidth, mbsnwidth): Use ANSI C function declarations.
91570         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
91571
91572         * lib/gcd.h (PARAMS): Remove macro.
91573         (gcd): Use ANSI C function declarations.
91574         * lib/gcd.c (gcd): Likewise.
91575
91576 2002-11-15  Bruno Haible  <bruno@clisp.org>
91577
91578         * lib/strcspn.c: Include <stddef.h>.
91579         (strcspn): Use ANSI C function declaration. Change return type to
91580         size_t. Use NULL.
91581         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
91582         (strpbrk): Use NULL.
91583         * lib/strpbrk.h (PARAMS): Remove macro.
91584         (strpbrk): Use ANSI C function declaration.
91585         * lib/strstr.c: Don't include <sys/types.h>.
91586         * lib/strstr.h (PARAMS): Remove macro.
91587         (strstr): Use ANSI C function declarations.
91588
91589 2002-11-14  Karl Berry  <karl@gnu.org>
91590
91591         * config/mkinstalldirs: `do' on separate line, instead of
91592         `for var; do'.
91593
91594 2002-11-06  Bruno Haible  <bruno@clisp.org>
91595
91596         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
91597         * lib/gcd.c (gcd): Likewise.
91598
91599 2002-11-05  Bruno Haible  <bruno@clisp.org>
91600
91601         * lib/gcd.h: New file, from gettext-0.11.5.
91602         * lib/gcd.c: New file, from gettext-0.11.5.
91603
91604 2002-11-05  Bruno Haible  <bruno@clisp.org>
91605
91606         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
91607         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
91608         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
91609         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
91610
91611         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
91612         <libintl.h>.
91613         * lib/makepath.c: Include gettext.h instead of <locale.h> and
91614         <libintl.h>.
91615
91616         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
91617         * lib/human.c: Include gettext.h instead of <libintl.h>.
91618         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
91619         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
91620         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
91621         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
91622         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
91623         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
91624         (textdomain): Remove definition.
91625         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
91626
91627         * lib/long-options.c: Remove include of <libintl.h> and definition of
91628         _.
91629         * lib/same.c: Remove include of <libintl.h> and definition of _.
91630
91631 2002-11-04  Owen Taylor  <otaylor@redhat.com>
91632
91633         * lib/config.charset: A few additions for Solaris.
91634
91635 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
91636
91637         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
91638         * lib/localcharset.c (locale_charset): Declare as extern "C".
91639
91640 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
91641
91642         * lib/config.charset: msdos in uk_UA uses CP1125.
91643
91644 2002-11-04  Bruno Haible  <bruno@clisp.org>
91645
91646         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
91647         * lib/strcase.h: New file, from GNU gettext-0.11.5.
91648         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
91649         * lib/strstr.h: New file, from GNU gettext-0.11.5.
91650         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
91651
91652 2002-11-04  Bruno Haible  <bruno@clisp.org>
91653
91654         * lib/localcharset.c (locale_charset): Don't return an empty string.
91655
91656 2002-11-04  Bruno Haible  <bruno@clisp.org>
91657
91658         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
91659         aliases.
91660
91661 2002-11-04  Bruno Haible  <bruno@clisp.org>
91662
91663         * lib/config.charset: Update for newest glibc. Add canonical names
91664         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
91665
91666 2002-11-04  Bruno Haible  <bruno@clisp.org>
91667
91668         * lib/config.charset: Add support for NetBSD.
91669
91670 2002-11-04  Bruno Haible  <bruno@clisp.org>
91671
91672         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
91673
91674 2002-11-01  Bruno Haible  <bruno@clisp.org>
91675
91676         * configure.in: Add AC_CONFIG_AUX_DIR call.
91677         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
91678         test/Makefile.
91679         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
91680
91681 2002-09-28  Karl Berry  <karl@gnu.org>
91682
91683         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
91684         installed automake until the next release, since changes have been
91685         made.
91686
91687 2002-09-25  Karl Berry  <karl@gnu.org>
91688
91689         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
91690         * lib/getopt*: copy from libc/posix.
91691         * lib/gettext.h: copy from gettext.
91692         * lib/.cppi-disable: add strdup.c, gettext.h.
91693
91694 2002-09-25  Karl Berry  <karl@gnu.org>
91695
91696         * config/srclist.txt: enable gettext.h check.
91697         * config/config.{guess,sub}: update from prep.
91698         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
91699                 from automake 1.6.3.
91700         See srclist*.
91701
91702 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
91703
91704         * regex.c (PATFETCH): Remove the translating fetch.
91705         (PATFETCH_RAW): Rename to PATFETCH.
91706         (set_image_of_range): New fun.
91707         (SET_RANGE_TABLE_WORK_AREA): Use it.
91708         (regex_compile): Don't translate the pattern chars so eagerly.
91709         Only do it when inserting an `exactn' bytecode or when handling
91710         a char-range.
91711         (mutually_exclusive_p): Avoid empty statement.
91712
91713 2002-07-06  Jim Meyering  <meyering@lucent.com>
91714
91715         * m4/README: Don't mention Makefile.am.in.
91716         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
91717
91718 2002-07-01  Jim Meyering  <meyering@lucent.com>
91719
91720         * lib/c-stack.c: Include sys/time.h.
91721         From Volker Borchert.
91722
91723 2002-06-26  Paul Eggert  <eggert@twinsun.com>
91724
91725         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
91726
91727 2002-06-26  Paul Eggert  <eggert@twinsun.com>
91728
91729         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
91730         New macro.  Use it uniformly instead of
91731         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
91732         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
91733         reported by Vin Shelton.
91734
91735 2002-06-22  Paul Eggert  <eggert@twinsun.com>
91736
91737         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
91738         Do not assume SA_SIGINFO behavior.
91739         Bug reported by Jim Meyering on NetBSD 1.5.2.
91740
91741 2002-06-22  Jim Meyering  <meyering@lucent.com>
91742
91743         * m4/c-stack.m4: New file, from diffutils-2.8.2.
91744         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
91745
91746         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
91747         now that configure.ac uses AC_GNU_SOURCE.
91748         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
91749         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
91750
91751         Update to latest tools.  Suggestions from Paul Eggert.
91752         * m4/stdbool.m4: New file, from diffutils-2.8.2.
91753         * m4/gnu-source.m4: Update from diffutils-2.8.2.
91754         * m4/fnmatch.m4: Likewise.
91755         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
91756         to AC_HEADER_STDBOOL
91757
91758 2002-06-22  Jim Meyering  <meyering@lucent.com>
91759
91760         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
91761         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
91762
91763 2002-06-22  Jim Meyering  <meyering@lucent.com>
91764
91765         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
91766
91767         * lib/exitfail.c, exitfail.h: Likewise.
91768         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
91769
91770         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
91771         of fnmatch.h.
91772         (EXTRA_DIST): Add fnmatch_loop.c.
91773         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
91774
91775         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
91776         * lib/fnmatch.c: Update from diffutils-2.8.2.
91777         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
91778         * lib/fnmatch.h: Remove file.
91779
91780 2002-06-21  Jim Meyering  <meyering@lucent.com>
91781
91782         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
91783         * m4/mbrtowc.m4: Likewise.
91784
91785         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
91786         * m4/mbswidth.m4: Reflect name change:
91787         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
91788         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
91789
91790         * m4/lib-link.m4: Update from gettext-0.11.2.
91791         * m4/gettext.m4: Likewise.
91792
91793         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
91794         From Alfred M. Szmidt.
91795
91796 2002-06-18  Paul Eggert  <eggert@twinsun.com>
91797
91798         * lib/file-type.h: Report an error if neither S_ISREG nor
91799         S_IFREG is defined, instead of using a test specific to glibc
91800         2.2.  This should be safe, since POSIX requires S_ISREG and
91801         Unix Version 7 had S_IFREG.  We don't need to check for
91802         <sys/types.h> since we don't use any symbols that it defines.
91803
91804 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
91805
91806         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
91807         $@-t, so that each temporary file name is unique and valid in the first
91808         8 characters, for operation under DOS.
91809
91810 2002-06-15  Paul Eggert  <eggert@twinsun.com>
91811
91812         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
91813
91814 2002-06-15  Jim Meyering  <meyering@lucent.com>
91815
91816         Work even with DJGPP 2.03, which lacks support for symlinks.
91817         From Richard Dawe.
91818         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
91819         is defined.
91820         * lib/lchown.c (S_ISLNK): Likewise.
91821
91822 2002-06-15  Jim Meyering  <meyering@lucent.com>
91823
91824         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
91825         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
91826         have been included before this file.
91827
91828 2002-06-14  Jim Meyering  <meyering@lucent.com>
91829
91830         * lib/file-type.h: Use the version from diffutils-2.8.2.
91831         * lib/file-type.c: Likewise.
91832
91833 2002-06-07  Jim Meyering  <meyering@lucent.com>
91834
91835         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
91836         They're needed at least for NetBSD 1.5.2.
91837         ($statxfs_includes): Include those same headers.
91838         ($statxfs_includes): Include sys/vfs.h if available.
91839         ($statxfs_includes): Likewise for sys/statvfs.h.
91840         Check for the following members in both structs statfs and statvfs:
91841         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
91842
91843 2002-06-01  Jim Meyering  <meyering@lucent.com>
91844
91845         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
91846         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
91847
91848 2002-05-28  Jim Meyering  <meyering@lucent.com>
91849
91850         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
91851         Reported by Volker Borchert.
91852
91853 2002-05-27  Jim Meyering  <meyering@lucent.com>
91854
91855         Fix a problem seen only on nonconforming systems whereby ls.c's
91856         use of localtime, and then of gettimeofday would cause trouble:
91857         the localtime call used to initialize rpl_gettimeofday's save
91858         mechanism would clobber ls's current local time information so
91859         that in any long listing the first file would always be listed
91860         with date 1970-01-01.  Analysis by Volker Borchert.
91861
91862         * lib/gettimeofday.c (localtime): Undefine.
91863         (rpl_localtime): New function.
91864
91865 2002-05-27  Jim Meyering  <meyering@lucent.com>
91866
91867         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
91868         localtime.
91869
91870         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
91871         use the replacement function; it wouldn't resolve at link time.
91872         Reported by Volker Borchert.
91873
91874 2002-05-22  Jim Meyering  <meyering@lucent.com>
91875
91876         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
91877         file-type.h.
91878         * lib/file-type.h: New file.
91879         * lib/file-type.c (file_type): New file/function.  Extracted from
91880         diffutils.
91881
91882 2002-04-30  Jim Meyering  <meyering@lucent.com>
91883
91884         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
91885
91886 2002-04-29  Paul Eggert  <eggert@twinsun.com>
91887
91888         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
91889
91890 2002-04-29  Paul Eggert  <eggert@twinsun.com>
91891
91892         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
91893         Do not check for alloca.h (no longer used) or stdbool.h (was never
91894         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
91895
91896 2002-04-29  Paul Eggert  <eggert@twinsun.com>
91897
91898         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
91899
91900 2002-04-29  Jim Meyering  <meyering@lucent.com>
91901
91902         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
91903         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
91904         Use AC_FUNC_STRNLEN here instead.
91905
91906         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
91907         With autoconf-2.53a, it's part of AC_PROG_CC.
91908
91909 2002-04-28  Paul Eggert  <eggert@twinsun.com>
91910
91911         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
91912         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
91913
91914 2002-04-28  Paul Eggert  <eggert@twinsun.com>
91915
91916         * lib/sig2str.h, lib/sig2str.c: New files.
91917         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
91918
91919 2002-04-28  Paul Eggert  <eggert@twinsun.com>
91920
91921         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
91922         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
91923         of 127, since 64 is the largest conceivable number for ancient
91924         nonstandard hosts.
91925         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
91926
91927 2002-04-28  Jim Meyering  <meyering@lucent.com>
91928
91929         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
91930
91931 2002-04-24  Jim Meyering  <meyering@lucent.com>
91932
91933         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
91934         (jm_PREREQ): Use it.
91935
91936         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
91937         mach/mach.h fcntl.h.
91938         Check for this function: setlocale.
91939
91940 2002-04-24  Jim Meyering  <meyering@lucent.com>
91941
91942         * lib/gettext.h: New file, from Gettext.
91943         * lib/Makefile.am (INCLUDES): Remove -I../intl.
91944         (libfetish_a_SOURCES): Add gettext.h.
91945
91946 2002-04-16  Jim Meyering  <meyering@lucent.com>
91947
91948         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
91949         ut_pid, ut_id, ut_exit.
91950
91951 2002-04-16  Jim Meyering  <meyering@lucent.com>
91952
91953         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
91954         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
91955         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
91956
91957 2002-04-12  Jim Meyering  <meyering@lucent.com>
91958
91959         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
91960         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
91961         existence of the getmntinfo function.  Needed for Darwin 5.3.
91962
91963         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
91964         This is necessary at least on Darwin 5.3.
91965
91966         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
91967         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
91968         strnlen.o in the library, and that makes some versions of ranlib
91969         object.
91970
91971 2002-04-12  Jim Meyering  <meyering@lucent.com>
91972
91973         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
91974
91975 2002-04-09  Jim Meyering  <meyering@lucent.com>
91976
91977         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
91978         to be more precise.  Rather than saying we're checking whether the
91979         function `works', say what we're testing.
91980         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
91981         Reported by Bruno Haible.
91982
91983 2002-03-10  Jim Meyering  <meyering@lucent.com>
91984
91985         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
91986         Suggestion from Santiago Vila.
91987
91988 2002-03-08  Jim Meyering  <meyering@lucent.com>
91989
91990         * lib/rename.c: Mention that this wrapper is needed also on
91991         mips-dec-ultrix4.4 systems.
91992
91993 2002-03-02  Jim Meyering  <meyering@lucent.com>
91994
91995         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
91996         not HAVE_CLOCK_SETTIME.
91997
91998 2002-02-27  Paul Eggert  <eggert@twinsun.com>
91999
92000         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
92001         Check for clock_settime.
92002
92003 2002-02-27  Paul Eggert  <eggert@twinsun.com>
92004
92005         * lib/nanosleep.h: Rename to....
92006         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
92007
92008         * lib/gettime.c: New file.
92009         * lib/settime.c: New file.
92010         * lib/stime.c: Remove.
92011
92012         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
92013         timespec.h.  Remove nanosleep.h.
92014
92015 2002-02-25  Paul Eggert  <eggert@twinsun.com>
92016
92017         * m4/acl.m4: New file.
92018         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
92019         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
92020
92021 2002-02-25  Paul Eggert  <eggert@twinsun.com>
92022
92023         * lib/acl.c, lib/acl.h: New files.
92024         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
92025
92026 2002-02-24  Jim Meyering  <meyering@lucent.com>
92027
92028         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
92029         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
92030         cause trouble.  Reported by Nelson Beebe.
92031
92032 2002-02-23  Paul Eggert  <eggert@twinsun.com>
92033
92034         * lib/path-concat.c (xpath_concat): Reorder code to pacify
92035         compilers that don't know that xalloc_die never returns.
92036
92037 2002-02-20  Jim Meyering  <meyering@lucent.com>
92038
92039         * lib/getdate.c: Regenerate using bison-1.33.
92040
92041 2002-02-17  Jim Meyering  <meyering@lucent.com>
92042
92043         * config/config.guess (main): Don't use `head -1'; it's no longer
92044         portable. Use `sed 1q' instead.
92045
92046 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
92047
92048         * m4/codeset.m4: Upgrade to gettext-0.11.
92049         * m4/gettext.m4: Upgrade to gettext-0.11.
92050         * m4/glibc21.m4: Upgrade to gettext-0.11.
92051         * m4/iconv.m4: Upgrade to gettext-0.11.
92052         * m4/isc-posix.m4: Upgrade to gettext-0.11.
92053         * m4/lcmessage.m4: Upgrade to gettext-0.11.
92054         * m4/lib-ld.m4: New file, from gettext-0.11.
92055         * m4/lib-link.m4: New file, from gettext-0.11.
92056         * m4/lib-prefix.m4: New file, from gettext-0.11.
92057         * m4/progtest.m4: Upgrade to gettext-0.11.
92058
92059 2002-02-15  Paul Eggert  <eggert@twinsun.com>
92060
92061         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
92062         (jm_PREREQ): Use it.
92063
92064 2002-02-15  Paul Eggert  <eggert@twinsun.com>
92065
92066         * lib/posixver.c, lib/posixver.h: New files.
92067         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
92068
92069 2002-02-02  Paul Eggert  <eggert@twinsun.com>
92070             Bruno Haible  <bruno@clisp.org>
92071
92072         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
92073         (fwrite_success_callback): New declaration.
92074         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
92075         print_unicode_char. Call failure callback instead of error.
92076         (fwrite_success_callback): New function.
92077         (exit_failure_callback): New function.
92078         (fallback_failure_callback): New function.
92079         (print_unicode_char): Call unicode_to_mb.
92080
92081 2002-01-26  Jim Meyering  <meyering@lucent.com>
92082
92083         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
92084         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
92085
92086 2002-01-26  Jim Meyering  <meyering@lucent.com>
92087
92088         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
92089
92090 2002-01-22  Paul Eggert  <eggert@twinsun.com>
92091
92092         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
92093
92094 2002-01-22  Jim Meyering  <meyering@lucent.com>
92095
92096         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
92097         Otherwise, some versions of automake would omit the rule that makes
92098         Makefile from Makefile.in.
92099
92100 2002-01-21  Paul Eggert  <eggert@twinsun.com>
92101
92102         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
92103         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
92104         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
92105         (memcoll): Set errno to zero if there is no error.
92106
92107         * lib/quotearg.c (quotearg_buffer_restyled):
92108         Fix bug with quoting buffers containing NUL when backslashing escapes.
92109         This bug was exposed by the other changes in this patch.
92110         (quotearg_n_options): New arg ARGSIZE.
92111         All callers changed.
92112         (quoting_options_from_style): New function.
92113         (quotearg_n_style): Use it.
92114         (quotearg_n_style_mem): New function.
92115
92116         * lib/quotearg.h (quotearg_n_style_mem): New function.
92117
92118 2002-01-19  Jim Meyering  <meyering@lucent.com>
92119
92120         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
92121         Remove useless quotes: DF_PROG="df".
92122         * m4/strnlen.m4: New file.
92123
92124 2002-01-16  Paul Eggert  <eggert@twinsun.com>
92125
92126         * lib/backupfile.c (ISDIGIT): Comment fix.
92127         * lib/getdate.y (ISDIGIT): Likewise.
92128         * lib/posixtm.c (ISDIGIT, year): Likewise.
92129         * lib/strverscmp.c (ISDIGIT): Likewise.
92130         * lib/userspec.c (ISDIGIT): Likewise.
92131
92132 2002-01-16  Jim Meyering  <meyering@lucent.com>
92133
92134         * lib/getdate.y: Add three semicolons, each just before a closing
92135         brace. Bison (as of version 1.31) no longer papers over that mistake.
92136
92137 2002-01-05  Jim Meyering  <meyering@lucent.com>
92138
92139         * lib/version-etc.c (version_etc_copyright): Update copyright year.
92140
92141 2001-12-19  Paul Eggert  <eggert@twinsun.com>
92142
92143         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
92144         not silently exit merely because the output buffer happens to
92145         have nothing pending.
92146
92147 2001-12-18  Paul Eggert  <eggert@twinsun.com>
92148
92149         See the big note in ../ChangeLog.
92150         * lib/human.c (suffixes): Prefer K to k for 1024.
92151         (generate_suffix_backwards): New function.
92152         (human_readable_inexact): Use it.
92153         * lib/xstrtol.c (__xstrtol): If there is no number but there
92154         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
92155         Accept 'K' as well as 'k'.
92156
92157 2001-12-15  Jim Meyering  <meyering@lucent.com>
92158
92159         * lib/regex.h (__restrict_arr): Update from libc.
92160
92161         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
92162         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
92163         (STREQ): Define.
92164
92165 2001-12-14  Jim Meyering  <meyering@lucent.com>
92166
92167         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
92168         Suggestion from Bruno Haible.
92169
92170 2001-12-10  Jim Meyering  <meyering@lucent.com>
92171
92172         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
92173         xrealloc, Instead, include "xalloc.h".
92174         (initbuffer): Don't cast xmalloc return value to char*.
92175         (readline): Reword comment.
92176         Don't cast xrealloc return value to char*
92177         Return NULL, not 0.
92178
92179 2001-12-09  Jim Meyering  <meyering@lucent.com>
92180
92181         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
92182         about `signed and unsigned type in conditional expression'.
92183         * lib/posixtm.c (posix_time_parse): Likewise.
92184
92185         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
92186
92187         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
92188         to avoid a pedantic warning.
92189
92190         * lib/getstr.c: Don't include assert.h.
92191         (getstr): Remove warning-evoking assertions.
92192         Return -1 if offset parameter is out of bounds.
92193         Change the type of a local from int to size_t.
92194
92195         * lib/strftime.c (my_strftime_localtime_r): Include this function
92196         definition in the `#if ! HAVE_TM_GMTOFF' block.
92197
92198         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
92199         Include xalloc.h instead.
92200
92201 2001-12-02  Jim Meyering  <meyering@lucent.com>
92202
92203         * lib/tempname.c: Don't declare getenv, thus reverting the change of
92204         2001-11-18.  It's no longer necessary, now that stdlib.h is always
92205         included.
92206
92207         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
92208         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
92209
92210 2001-11-30  Akim Demaille  <akim@epita.fr>
92211
92212         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
92213         before being defined.
92214
92215 2001-11-27  Paul Eggert  <eggert@twinsun.com>
92216
92217         * lib/quotearg.h (quotearg_n, quotearg_n_style):
92218         First arg is int, not unsigned.
92219         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
92220         (SIZE_MAX, UINT_MAX): New macros.
92221         (quotearg_n_options): Abort if N is negative.
92222         Avoid overflow check on hosts where size_t is 64 bits and int
92223         is 32 bits, as overflow is impossible there.
92224         Fix off-by-one typo that caused unnecessary reallocation.
92225
92226 2001-11-27  Jim Meyering  <meyering@lucent.com>
92227
92228         * lib/tempname.c: Merge with version from libc.
92229         * lib/regex.c: Likewise.
92230
92231         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
92232         systems for which STDC_HEADERS is 0, it was not included, resulting in
92233         a warning about an integer-to-pointer conversion problem with getenv.
92234         Reported by Volker Borchert.
92235
92236 2001-11-26  Jim Meyering  <meyering@lucent.com>
92237
92238         * lib/gtod.h: Remove file.
92239         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
92240         * lib/gettimeofday.c: Don't include gtod.h.
92241         (GTOD_init): Remove function.
92242         (rpl_gettimeofday): Do its job here instead, rather than aborting.
92243         Suggestion from Volker Borchert.
92244
92245 2001-11-23  Jim Meyering  <meyering@lucent.com>
92246
92247         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
92248         it.
92249         * lib/hash.c (struct hash_table): Define it here instead.
92250
92251 2001-11-22  Jim Meyering  <meyering@lucent.com>
92252
92253         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
92254
92255 2001-11-20  Jim Meyering  <meyering@lucent.com>
92256
92257         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
92258         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
92259
92260 2001-11-19  Jim Meyering  <meyering@lucent.com>
92261
92262         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
92263         directory.  Use "conftestXXXXXX" as the template.
92264         Suggestion from Paul Eggert.
92265
92266         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
92267         immediately, so the test doesn't mistakenly hit the max-open-files
92268         limit.
92269
92270 2001-11-18  Paul Eggert  <eggert@twinsun.com>
92271
92272         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
92273         (TEMPORARIES): New macro.
92274         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
92275         removes an artificial limitation (e.g. HP-UX 10.20, where
92276         TMP_MAX is 17576).
92277
92278 2001-11-18  Jim Meyering  <meyering@lucent.com>
92279
92280         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
92281
92282 2001-11-18  Jim Meyering  <meyering@lucent.com>
92283
92284         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
92285         on SunOS 4.
92286
92287         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
92288         files will be created before anything else.
92289
92290 2001-11-17  Paul Eggert  <eggert@twinsun.com>
92291
92292         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
92293         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
92294
92295 2001-11-17  Jim Meyering  <meyering@lucent.com>
92296
92297         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
92298         Prompted by a report from Bob Proulx.
92299
92300         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
92301         Instead, require UTILS_FUNC_MKSTEMP.
92302
92303 2001-11-17  Jim Meyering  <meyering@lucent.com>
92304
92305         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
92306         Now, that's done as part of AC_FUNC_STRTOD.
92307
92308 2001-11-17  Jim Meyering  <meyering@lucent.com>
92309
92310         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
92311         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
92312         rather than group writable.  Patch by Juan F. Codagnone.
92313
92314         * lib/readtokens.c: Remove explicit declarations of xmalloc and
92315         xrealloc, Instead, include "xalloc.h".
92316
92317         * lib/mountlist.c: Include unlocked-io.h after all system headers.
92318         Remove explicit declarations of xmalloc, xrealloc,
92319         and xstrdup.  Instead, include "xalloc.h".
92320
92321         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
92322         unlocked-io.h.
92323         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
92324         Likewise.
92325         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
92326
92327         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
92328         Reported by Padraig Brady.
92329
92330         * lib/mkstemp.c: #undef mkstemp.
92331         Include config.h.
92332         (rpl_mkstemp): Rename from mkstemp.
92333         Protoize.
92334
92335 2001-11-16  Jim Meyering  <meyering@lucent.com>
92336
92337         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
92338         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
92339         determine the amount of total physical memory, use pstat_getstatic.
92340         HPUX-11 doesn't define _SC_PHYS_PAGES.
92341         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
92342         If sysconf couldn't be used to determine the amount of available
92343         physical memory, use both pstat_getstatic and pstat_getdynamic.
92344         Based on a patch from Bob Proulx.
92345
92346 2001-11-10  Jim Meyering  <meyering@lucent.com>
92347
92348         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
92349         (jm_PREREQ): Use it.
92350
92351 2001-11-09  Jim Meyering  <meyering@lucent.com>
92352
92353         * m4/jm-macros.m4: Require autoconf-2.52f.
92354         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
92355         Use these AC_-prefixed names, not the AM_-prefixed ones.
92356
92357         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
92358
92359 2001-11-05  Jim Meyering  <meyering@lucent.com>
92360
92361         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
92362
92363 2001-11-04  Jim Meyering  <meyering@lucent.com>
92364
92365         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
92366         $DEFS.
92367
92368 2001-11-03  Jim Meyering  <meyering@lucent.com>
92369
92370         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
92371         of AC_DEFUN.
92372
92373         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
92374         know the name of the variable in the macro definition.
92375
92376 2001-11-03  Jim Meyering  <meyering@lucent.com>
92377
92378         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
92379         in argmatch_to_argument call.
92380
92381         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
92382         argument.
92383
92384         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
92385         e.g., a fault due to an attempt to free a NULL pointer.
92386
92387 2001-11-01  Jim Meyering  <meyering@lucent.com>
92388
92389         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
92390         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
92391
92392 2001-11-01  Jim Meyering  <meyering@lucent.com>
92393
92394         * lib/dirfd.c, lib/dirfd.h: New files.
92395         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
92396
92397         * lib/hash.c (hash_print) [TESTING]: Clean up.
92398
92399 2001-10-22  Paul Eggert  <eggert@twinsun.com>
92400
92401         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
92402         to avoid a warning if -Wall.
92403
92404 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
92405
92406         * README: New file
92407         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
92408         (per RMS's instructions, this is now the canonical source)
92409         * lgpl/, gpl/: New directories.
92410
92411 2001-10-21  Paul Eggert  <eggert@twinsun.com>
92412
92413         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
92414
92415 2001-10-21  Jim Meyering  <meyering@lucent.com>
92416
92417         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
92418         this code would end up calling gettext even in packages built
92419         with --disable-nls.
92420         * lib/getopt.c (_): Likewise.
92421         * lib/regex.c (_): Likewise.
92422
92423 2001-10-20  Paul Eggert  <eggert@twinsun.com>
92424
92425         * m4/error.m4 (jm_PREREQ_ERROR):
92426         Do not invoke AC_CHECK_FUNCS with strerror_r, as
92427         AC_FUNC_STRERROR_R does that.
92428         Check for strerror declaration.
92429
92430         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
92431         are supposed to have them these days.
92432         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
92433         Merge changes from latest Autoconf CVS.
92434         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
92435         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
92436         POSIX decided to standardize on the int flavor of strerror_r.
92437
92438 2001-10-20  Paul Eggert  <eggert@twinsun.com>
92439
92440         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
92441         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
92442         Use strerror_r that is only a macro, even if it is not a function.
92443         (strerror): Check for HAVE_DECL_STRERROR before declaring.
92444         (private_strerror): Use prototypes, not old-style function definition.
92445         (print_errno_message): New function.
92446         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
92447         char*-flavored one.
92448         (error_tail, error, error_at_line): Use it.
92449
92450 2001-10-11  Jim Meyering  <meyering@lucent.com>
92451
92452         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
92453         and quote_n (1, ... to avoid clobbering a buffer.
92454
92455 2001-10-05  Jim Meyering  <meyering@lucent.com>
92456
92457         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
92458         hash-pjw.h.
92459         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
92460         * lib/hash-pjw.h: New file.
92461
92462 2001-09-30  Jim Meyering  <meyering@lucent.com>
92463
92464         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
92465         `struct fsstat' has the `f_fstypename' member.
92466         Use that to define FS_TYPE, which is now used to make
92467         the getfsstat link test tighter.
92468
92469 2001-09-30  Jim Meyering  <meyering@lucent.com>
92470
92471         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
92472         Include <sys/ucred.h>, for Apple Darwin.
92473         Include sys/mount.h and sys/fs_types.h only if available.
92474         (FS_TYPE): Define.
92475         (read_filesystem_list): Use FS_TYPE.
92476
92477 2001-09-29  Paul Eggert  <eggert@twinsun.com>
92478
92479         * lib/exclude.c (excluded_filename): 0 -> false, since it's
92480         a boolean context.
92481
92482 2001-09-29  Jim Meyering  <meyering@lucent.com>
92483
92484         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
92485         [one-argument getmntent function]): Include stdio.h before mntent.h.
92486         SunOS 4.1.x needs it for the declaration of `FILE'.
92487         Patch by Volker Borchert.
92488
92489         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
92490         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
92491         sys/fs_types.h, and make the link-test for getfsstat guard #include
92492         directives with appropriate #if HAVE_*_H tests so that we can
92493         detect getfsstat on Apple Darwin1.3.7 systems.
92494         Reported by Nelson Beebe.
92495         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
92496
92497 2001-09-28  Paul Eggert  <eggert@twinsun.com>
92498
92499         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
92500         #defines strtoimax.  Also treat the other strto* functions
92501         like strtoimax.
92502
92503         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
92504         Check for strtoul and strtoumax,
92505         as those declarations are made even in the signed case.
92506         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
92507         Likewise, for strtol and strtoimax.
92508
92509 2001-09-28  Paul Eggert  <eggert@twinsun.com>
92510
92511         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
92512         #defines strtoimax.  Also treat the other strto* functions
92513         like strtoimax.
92514
92515         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
92516         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
92517         (strtoimax, strtoumax): Do not declare if already defined as a macro.
92518
92519 2001-09-26  Jim Meyering  <meyering@lucent.com>
92520
92521         Most macros in unlocked-io.h had the wrong number of arguments.
92522         * lib/gen-uio: New script.
92523         (USE_UNLOCKED_IO): Define to 1 if not already defined.
92524         * lib/unlocked-io.hin: Remove file.
92525         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
92526         rather than trying to embed it here.
92527         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
92528         Reported by Padraig Brady.
92529
92530 2001-09-25  Volker Borchert  <bt@teknon.de>
92531
92532         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
92533         `result'.
92534
92535 2001-09-24  Jim Meyering  <meyering@lucent.com>
92536
92537         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
92538
92539 2001-09-23  Jim Meyering  <meyering@lucent.com>
92540
92541         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
92542         instead of the mere test for existence of mntent.h.  The latter
92543         would get a false-positive on AIX 3.4 systems.
92544         In the outer getmntent if-block, don't die if neither of the getmntent
92545         tests succeeds.  Instead, just fall through and continue with the
92546         remaining tests.
92547
92548 2001-09-23  Jim Meyering  <meyering@lucent.com>
92549
92550         * lib/mountlist.c: Remove useless parentheses in #if directives.
92551         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
92552         the deprecated MOUNTED symbol is no longer defined in mntent.h.
92553
92554 2001-09-22  Jim Meyering  <meyering@lucent.com>
92555
92556         * m4/gettext.m4: New file.  From gettext.
92557         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
92558         * m4/progtest.m4: Likewise
92559         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
92560         * m4/glibc21.m4: Likewise.
92561
92562         * m4/libintl.m4: Remove.  No longer used.
92563
92564 2001-09-22  Jim Meyering  <meyering@lucent.com>
92565
92566         * lib/localcharset.c: Update from latest gettext.
92567         * lib/config.charset: Likewise.
92568
92569 2001-09-20  Jim Meyering  <meyering@lucent.com>
92570
92571         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
92572         strtoimax.
92573         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
92574         strtoumax.
92575
92576 2001-09-20  Jim Meyering  <meyering@lucent.com>
92577
92578         * lib/xstrtol.c (strtoimax): Guard declaration with
92579         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
92580         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
92581         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
92582         (strtoumax): Likewise, for completeness (it wasn't necessary).
92583
92584 2001-09-17  Paul Eggert  <eggert@twinsun.com>
92585
92586         * lib/strtoimax.c (HAVE_LONG_LONG):
92587         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
92588         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
92589         to work around bug in IBM C compiler.
92590
92591 2001-09-17  Jim Meyering  <meyering@lucent.com>
92592
92593         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
92594         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
92595         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
92596         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
92597         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
92598         whenever the right hand side need not be expanded by the shell.
92599
92600 2001-09-16  Paul Eggert  <eggert@twinsun.com>
92601
92602         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
92603         library.  It's not correct, as some older glibcs are buggy.
92604         fnmatch wasn't fixed until glibc 2.2.
92605
92606         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
92607         special shell magic here.
92608
92609 2001-09-16  Jim Meyering  <meyering@lucent.com>
92610
92611         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
92612         * m4/jm-macros.m4: Require it.
92613
92614 2001-09-16  Jim Meyering  <meyering@lucent.com>
92615
92616         * lib/mkdir.c: New file.
92617
92618 2001-09-15  Jim Meyering  <meyering@lucent.com>
92619
92620         * m4/jm-macros.m4: Check for help2man.
92621
92622 2001-09-11  Jim Meyering  <meyering@lucent.com>
92623
92624         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
92625         The body, by Paul Eggert, was moved here from configure.in.
92626         * m4/jm-macros.m4: Require UTILS_HOST_OS.
92627
92628 2001-09-04  Paul Eggert  <eggert@twinsun.com>
92629
92630         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
92631         (jm_PREREQ): Use it.
92632
92633 2001-09-04  Paul Eggert  <eggert@twinsun.com>
92634
92635         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
92636         Use ssize_t, not int, to store result of readlink.
92637         Check for ssize_t overflow as well as size_t overflow,
92638         as POSIX says the result of readlink is implementation-defined
92639         when ssize_t overflows.
92640         Remove unnecessary cast to char*.
92641         Use free+malloc instead of realloc, as the storage doesn't need
92642         to be preserved and it's clearer and can be more efficient that way.
92643         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
92644         * lib/xreadlink.h (xreadlink): Update prototype.
92645
92646 2001-09-04  Paul Eggert  <eggert@twinsun.com>
92647
92648         * lib/xgetcwd.c: Revert some of the previous change; intead,
92649         fix the HAVE_GETCWD_NULL code to behave more like the
92650         !HAVE_GETCWD_NULL code used to.
92651
92652         Include "xalloc.h".
92653         (xgetcwd): Do not return NULL when memory is exhausted; instead,
92654         invoke xalloc_die.
92655
92656 2001-09-03  Paul Eggert  <eggert@twinsun.com>
92657
92658         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
92659         sys/param.h, as pathmax.h includes them.
92660
92661 2001-09-03  Paul Eggert  <eggert@twinsun.com>
92662
92663         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
92664         (jm_PREREQ_XGETCWD): New macro.
92665
92666         * m4/getcwd.m4: New file.
92667
92668 2001-09-03  Paul Eggert  <eggert@twinsun.com>
92669
92670         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
92671         like the HAVE_GETCWD_NULL code.
92672         Include pathmax.h if not HAVE_GETCWD.
92673         Do not include xalloc.h.
92674         (INITIAL_BUFFER_SIZE): New symbol.
92675         Do not use xmalloc / xrealloc, since the caller is responsible for
92676         handling errors.  Preserve errno around `free' during failure.
92677         Do not overrun buffer when using getwd.
92678
92679 2001-09-03  Paul Eggert  <eggert@twinsun.com>
92680
92681         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
92682         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
92683         getcwd (NULL, 0).
92684
92685 2001-09-03  Paul Eggert  <eggert@twinsun.com>
92686
92687         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
92688         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
92689         spotted by Jim Meyering.
92690
92691 2001-09-03  Jim Meyering  <meyering@lucent.com>
92692
92693         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
92694         failure.
92695
92696 2001-09-02  Jim Meyering  <meyering@lucent.com>
92697
92698         * lib/error.c: Update from GNU libc.
92699
92700 2001-09-01  Jim Meyering  <meyering@lucent.com>
92701
92702         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
92703         Used by df.
92704
92705 2001-09-01  Jim Meyering  <meyering@lucent.com>
92706
92707         * lib/xreadlink.c: New file.
92708         * lib/xreadlink.h: New file.
92709         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
92710         xreadlink.h.
92711
92712         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
92713         doesn't conflict with sparc Solaris 7's definition in
92714         /usr/include/sys/int_types.h.
92715
92716         * lib/exclude.c: Use `""', not `<>' to #include non-system header
92717         files.
92718         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
92719         and strncasecmp as r-values.  Unixware didn't have declarations.
92720
92721 2001-08-31  Paul Eggert  <eggert@twinsun.com>
92722
92723         * lib/xstrtol.h: Add copyright notice.
92724         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
92725         LONGINT_INVALID_SUFFIX_CHAR.
92726
92727 2001-08-31  Paul Eggert  <eggert@twinsun.com>
92728
92729         * lib/xstrtol.c (strtoimax): New decl.
92730
92731 2001-08-31  Paul Eggert  <eggert@twinsun.com>
92732
92733         * lib/xgetcwd.c: Don't include pathmax.h.
92734         Include stdlib.h and unistd.h if available.
92735         Include xalloc.h.
92736         (xmalloc, xstrdup, free): Remove decls.
92737         (xgetcwd): Don't assume sizes fit in unsigned.
92738         Check for overflow when computing sizes.
92739         Simplify reallocation code.
92740
92741 2001-08-31  Paul Eggert  <eggert@twinsun.com>
92742
92743         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
92744         a directory's st_size can have an arbitrary value, so the old
92745         usage could waste an arbitrary amount of memory.  All uses
92746         changed.
92747         * lib/savedir.h: Update prototype.
92748
92749 2001-08-31  Paul Eggert  <eggert@twinsun.com>
92750
92751         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
92752
92753         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
92754         old strtoimax.c.
92755
92756         Also, make the following further changes to make this file's
92757         configuration more similar to that of strtol.c:
92758         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
92759         (strtoumax, uintmax_t, strtoull, strtol): Remove.
92760         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
92761         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
92762         changed to signed values.
92763
92764         And make the following changes as well:
92765         Fix copyright notice, as 1999 was missing.
92766         (verify): New macro.
92767         (strtoimax): Check sizes at compile-time, not run-time.
92768         Prefer strtol to strtoll if both work.
92769         (main): Remove; it was not that useful and was a pain to maintain.
92770
92771         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
92772
92773 2001-08-31  Jim Meyering  <meyering@lucent.com>
92774
92775         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
92776         Use an initial, malloc'd, buffer of length 128 rather than
92777         a statically allocated one of length 1024.
92778
92779 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92780
92781         Simplify code, partly by assuming autoconf 2.52 semantics.
92782
92783         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
92784
92785         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
92786         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
92787         All uses removed.
92788         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
92789         Move AC_REQUIRE to next-to-top level, to avoid confusion.
92790         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
92791         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
92792         jm_AC_HEADER_INTTYPES_H.
92793         * m4/jm-macros.m4 (jm_MACROS): Likewise.
92794
92795         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
92796
92797         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
92798         Quote first arg of AC_DEFUN.
92799         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
92800         since they are needed to parse the include file even if we need
92801         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
92802         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
92803         but with opposite signedness.
92804
92805 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92806
92807         Merge 'exclude' changes from tar 1.13.22.
92808         This fixes one or two unlikely storage allocation overflow bugs,
92809         but doesn't change user-visible behavior otherwise.
92810
92811 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92812
92813         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
92814         (jm_PREREQ_EXCLUDE): New macro.
92815
92816 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92817
92818         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
92819         tm to be declared.
92820
92821 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92822
92823         * lib/hash.c: Remove '2001' from copyright notice.
92824
92825 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92826
92827         * lib/full-write.h: New file.
92828         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
92829         * lib/full-write.c: Correct credits, as cccp.c no longer
92830         exists and anyway it was so heavily changed from the old cccp
92831         code as to be unrecognizable.  Include full-write.h.
92832         (full_write): Return size_t, with short writes meaning failure.
92833         All callers changed.  This fixes a bug with large buffers
92834         on 64-bit hosts.
92835         * lib/utime.c: Include full-write.h.
92836
92837 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92838
92839         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
92840         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
92841         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
92842         Include if available.
92843         (<xalloc.h>): Include
92844         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
92845         (verify): New macro.  Use it to verify that EXCLUDE macros do not
92846         collide with FNM macros.
92847         (struct patopts): New struct.
92848         (struct exclude): Use it, as exclude patterns now come with options.
92849         (new_exclude): Support above changes.
92850         (new_exclude, add_exclude_file):
92851         Initial size must now be a power of two to simplify overflow checking.
92852         (free_exclude, fnmatch_no_wildcards): New function.
92853         (excluded_filename): No longer requires options arg, as the options
92854         are determined by add_exclude.  Now returns bool, not int.
92855         (excluded_filename, add_exclude):
92856         Add support for the fancy new exclusion options.
92857         (add_exclude, add_exclude_file): Now takes int options arg.
92858         Check for arithmetic overflow when computing sizes.
92859         (add_exclude_file): xrealloc might modify errno, so don't
92860         realloc until after errno might be used.
92861
92862         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
92863         New macros.
92864         (free_exclude): New decl.
92865         (add_exclude, add_exclude_file): Now takes int options arg.
92866         (excluded_filename): No longer requires options arg, as the options
92867         are determined by add_exclude.  Now returns bool, not int.
92868
92869 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92870
92871         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
92872
92873 2001-08-27  Jim Meyering  <meyering@lucent.com>
92874
92875         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
92876
92877         * lib/version-etc.c (N_): Remove definition.
92878         Revert most of last change.
92879         Instead, simply don't mark the `Copyright...' string for translation.
92880         Based on advice from Paul Eggert.
92881
92882         * lib/strtoxmax.c: Tweak comment.
92883
92884 2001-08-26  Jim Meyering  <meyering@lucent.com>
92885
92886         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
92887
92888         * m4/xstrtoimax.m4: New file.
92889         * m4/xstrtoumax.m4: Add comments explaining why we
92890         AC_REPLACE_FUNCS(strtol).
92891
92892 2001-08-26  Jim Meyering  <meyering@lucent.com>
92893
92894         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
92895         of copyright with `%s' so translators don't get an untranslated
92896         message in 2002.
92897         (COPYRIGHT_YEAR): Define.
92898         (version_etc): Use fprintf rather than fputs.
92899         Suggestion from Ulrich Drepper.
92900
92901         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
92902
92903         * lib/strtoll.c: New file, from GNU libc.
92904         * lib/xstrtoimax.c: New file.
92905
92906         * lib/xstrtol.h: Add xstrtoimax.
92907         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
92908         * lib/strtoimax.c: New file.  Likewise, but first define
92909         STRTOUXMAX_SIGNED.
92910
92911         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
92912         ...
92913         * lib/strtoxmax.c: ... then renamed to this.
92914
92915 2001-08-18  Paul Eggert  <eggert@twinsun.com>
92916
92917         * m4/inttypes.m4: Add AC_PREREQ(2.13).
92918         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
92919         (jm_AC_TYPE_INTMAX_T): New macro.
92920         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
92921
92922         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
92923
92924         * m4/longlong.m4: Renamed from ulonglong.m4.
92925         * m4/inttypes.m4: Renamed from inttypes_h.m4.
92926         * m4/uintmax_t.m4: Removed.
92927
92928 2001-08-13  Paul Eggert  <eggert@twinsun.com>
92929
92930         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
92931         Port to Solaris 8, where 'sed' requires a space after the 'r'
92932         command, and where sh dislikes "$/".  Clean up the spacing a bit.
92933         Redirect output to $tmp just once.
92934
92935 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
92936
92937         * lib/addext.c (<errno.h>): Include.
92938         (errno): Declare if not defined.
92939         (addext): Work correctly when pathconf returns -1 and leaves
92940         errno alone because there is no limit.  Also, work even if
92941         pathconf returns a value greater than SIZE_MAX.
92942
92943 2001-08-12  Jim Meyering  <meyering@lucent.com>
92944
92945         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
92946         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
92947         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
92948         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
92949         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
92950         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
92951         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
92952         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
92953         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
92954         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
92955         utime.m4, utimes.m4, xstrtoumax.m4:
92956         Quote the first argument in each use of AC_DEFUN.
92957
92958 2001-08-12  Jim Meyering  <meyering@lucent.com>
92959
92960         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
92961         Simply `return getcwd (NULL, 0);'.
92962         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
92963         Use 1300 as initial value for length, not PATH_MAX.
92964
92965         * lib/pathmax.h: Clean up cpp syntax.
92966
92967 2001-08-12  Jim Meyering  <meyering@lucent.com>
92968
92969         * lib/gettimeofday.c: New file.
92970         * lib/gtod.h: New file.
92971         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
92972
92973 2001-08-05  Jim Meyering  <meyering@lucent.com>
92974
92975         * m4/jm-macros.m4: Require autoconf-2.52.
92976
92977 2001-08-04  Jim Meyering  <meyering@lucent.com>
92978
92979         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
92980         stmt, to get in sync with glibc.
92981
92982 2001-08-03  Paul Eggert  <eggert@twinsun.com>
92983
92984         The following changes are from gettext 0.10.39 as maintained by
92985         Bruno Haible.
92986
92987         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
92988         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
92989         with inverted sense.  All uses changed.
92990
92991         * lib/mbswidth.c: Don't include <limits.h>.
92992         Include <stdlib.h> and <string.h> unconditionally.
92993         (iswcntrl, mbsinit, ISCNTRL): New macros.
92994         (mbsnwidth): Use K&R style function declarations.
92995         Don't bother checking for MB_LEN_MAX == 1, since the compiler
92996         can optimize it when MB_CUR_MAX == 1.
92997         The width of control characters is zero, not 1.
92998
92999 2001-08-03  Paul Eggert  <eggert@twinsun.com>
93000
93001         The following changes are from gettext 0.10.39 as maintained by
93002         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
93003
93004         * m4/codeset.m4: Upgrade to serial AM1.
93005         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
93006         all uses changed.  Quote first arg of AC_DEFUN.
93007         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
93008
93009         * m4/iconv.m4: Upgrade to serial AM2.
93010         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
93011         Add --with-libconv-prefix.
93012         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
93013         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
93014         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
93015         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
93016         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
93017
93018         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
93019         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
93020         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
93021         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
93022         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
93023         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
93024         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
93025         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
93026         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
93027
93028         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
93029         string.h any more.
93030
93031         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
93032         not the default value.
93033
93034         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
93035         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
93036         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
93037         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
93038         Also check for iswcntrl, used for wcwidth fallback.
93039         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
93040         to Autoconf 2.13.
93041
93042 2001-08-03  Jim Meyering  <meyering@lucent.com>
93043
93044         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
93045         as it was in the original.  Reported by Paul Eggert.
93046
93047 2001-07-16  Jim Meyering  <meyering@lucent.com>
93048
93049         * m4/gettimeofday.m4: New file.
93050         Prompted by a report from Bernhard Baehr.
93051
93052 2001-07-15  Jim Meyering  <meyering@lucent.com>
93053
93054         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
93055         stuff. Now it's in ../Makefile.cfg.
93056
93057 2001-07-15  Jim Meyering  <meyering@lucent.com>
93058
93059         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
93060         (BUILT_SOURCES): Add unlocked-io.h.
93061         (io_functions): Define.
93062         (unlocked-io.h): New rule.
93063         (DISTCLEANFILES): Add unlocked-io.h.
93064         (all-local): Depend on unlocked-io.h, to ensure it is created.
93065
93066         * lib/unlocked-io.hin: New file
93067
93068         * lib/regex.c: Update from glibc.
93069
93070 2001-07-05  Jim Meyering  <meyering@lucent.com>
93071
93072         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
93073         recommendation.
93074         (libfetish_a_SOURCES): Put all .h files here instead.
93075         Remove a thus-exposed (better checks in automake) duplicate and
93076         two unnecessary .h files.
93077
93078 2001-07-04  Jim Meyering  <meyering@lucent.com>
93079
93080         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
93081         that generates jm-glibc-io.m4 so that it doesn't trigger any make
93082         distcheck failure.
93083
93084 2001-07-02  Jim Meyering  <meyering@lucent.com>
93085
93086         The following changes were prompted by suggestions from Bruno Haible.
93087
93088         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
93089         is now generated.
93090         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
93091         definition of EXTRA_DIST.
93092         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
93093         ensure that the generated file is created/updated whenever the list
93094         of $(unlocked_functions) is changed.
93095         (jm-glibc-io.m4): New rule.
93096         (unlocked-io.h): New rule -- currently unused.
93097
93098 2001-06-24  Jim Meyering  <meyering@lucent.com>
93099
93100         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
93101         unmatched right bracket, rather than kludging it with an extra,
93102         falsely-matching quote in a comment.  Patch by Akim Demaille.
93103
93104 2001-06-11  Jim Meyering  <meyering@lucent.com>
93105
93106         * lib/regex.c: Update from GNU libc.
93107
93108 2001-05-27  Jim Meyering  <meyering@lucent.com>
93109
93110         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
93111         Check for ut_type in struct utmp.
93112
93113 2001-05-27  Jim Meyering  <meyering@lucent.com>
93114
93115         * lib/readutmp.h (UT_TYPE): Define.
93116
93117 2001-05-24  Jim Meyering  <meyering@lucent.com>
93118
93119         * lib/argmatch.c: Include "quote.h".
93120         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
93121         quote function.  Reported by Göran Uddeborg.
93122
93123 2001-05-22  Jim Meyering  <meyering@lucent.com>
93124
93125         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
93126         now that we use the package-supplied version unconditionally.
93127         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
93128
93129 2001-05-21  Jim Meyering  <meyering@lucent.com>
93130
93131         * m4/regex.m4: Change a couple backticks to single quotes to avoid
93132         shell syntax errors.
93133
93134 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
93135
93136         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
93137
93138 2001-05-20  Paul Eggert  <eggert@twinsun.com>
93139
93140         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
93141         Don't bother to check library strftime, since
93142         we'll be using our own my_strftime function anyway.
93143         Define my_strftime instead of strftime.
93144
93145 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
93146
93147         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
93148         which is not yet declared.
93149
93150 2001-05-15  Jim Meyering  <meyering@lucent.com>
93151
93152         * m4/regex.m4: Use proper quoting so brackets appear in the test
93153         program.
93154         Reported by, and with help from, Bruno Haible.
93155
93156 2001-05-13  Jim Meyering  <meyering@lucent.com>
93157
93158         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
93159         undefined.
93160
93161 2001-05-11  Paul Eggert  <eggert@twinsun.com>
93162
93163         dirname code cleanup.  base_name now behaves more compatibly
93164         with POSIX basename when given file names that have trailing
93165         slashes, and similarly for dir_name.  Add new primitives
93166         base_len and dir_len.  Put the directory-name-related decls
93167         into dirname.h.
93168
93169         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
93170         * lib/backupfile.c (base_name): Likewise.
93171         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
93172         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
93173         * lib/makepath.c (strip_trailing_slashes): Likewise.
93174         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
93175         ISSLASH): Likewise.
93176         * lib/rename.c (strip_trailing_slashes): Likewise.
93177         * lib/same.c (base_name): Likewise.
93178         * lib/stripslash.c (ISSLASH): Likewise.
93179
93180         * lib/addext.c: Include <dirname.h> after size_t is defined.
93181         * lib/backupfile.c: Likewise.
93182
93183         * lib/addext.c (addext): Use base_len to trim redundant
93184         trailing slashes instead of doing it ourselves.
93185         But do not trim the last slash if it is not redundant.
93186
93187         * lib/backupfile.c (find_backup_file_name,
93188         max_backup_version): Use base_len instead of rolling it ourselves.
93189         Handle the case of "" and (on DOS) "C:" correctly.
93190
93191         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
93192         needed. Include <string.h>, <dirname.h>.
93193         (base_name): Allow file names ending in slashes, other than names
93194         that are all slashes.  In this case, return the basename followed
93195         by the slashes.  This is more general, and can be used in places
93196         where the original base_name purposely had an assertion failure.
93197         (base_len): New function.
93198
93199         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
93200         Do not include <assert.h>; no longer needed.
93201         Include xalloc.h.
93202         (memrchr): Remove decl.
93203         (dir_name_r): Remove.
93204         (dir_len): Renamed from dirlen.  All callers changed.
93205         Rewrite in terms of base_name, for simplicity and consistency.
93206         (dir_name): Never return NULL.  All callers changed.
93207         Do not include <stdlib.h> in test program; no longer needed.
93208         return 0; is fine for test program.
93209
93210         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
93211         New macros.
93212         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
93213
93214         * lib/path-concat.c (path_concat): Use base_len to compute
93215         base length, not strlen; this means we cannot rely on memcpy
93216         to null-terminate.
93217
93218         * lib/same.c (STREQ): Remove.
93219         (same_name): Handle the case where the basename ends in trailing '/'.
93220
93221         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
93222         a slash was stripped.  Do not strip the last slash after a
93223         file system prefix.
93224
93225 2001-05-11  Paul Eggert  <eggert@twinsun.com>
93226
93227         * lib/Makefile.am (libfetish_a_SOURCES):
93228         Add strftime.c, since we now compile it on all hosts.
93229
93230         * lib/strftime.c (my_strftime):
93231         Define to nstrftime if emacs, but only if my_strftime is not defined.
93232         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
93233         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
93234         Add one more extra argument: a nanoseconds value.
93235         All uses changed.
93236         (ns): New macro.
93237         (my_strftime function): Add %N format.
93238         (emacs_strftimeu): Renamed from emacs_strftime,
93239         with extra ut argument.
93240
93241 2001-05-09  Paul Eggert  <eggert@twinsun.com>
93242
93243         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
93244
93245 2001-04-21  Jim Meyering  <meyering@lucent.com>
93246
93247         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
93248         doesn't interfere.
93249
93250 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
93251
93252         * m4/ftruncate.m4: Check for chsize.
93253         Link with ftruncate.o unconditionally if ftruncate is missing.
93254         This was required when cross-compiling to i586-mingw32msvc.
93255
93256 2001-04-08  Jim Meyering  <meyering@lucent.com>
93257
93258         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
93259         recomputed; that's necessary when the offset spans a DST transition.
93260         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
93261
93262 2001-04-02  Jim Meyering  <meyering@lucent.com>
93263
93264         * lib/regex.h, regex.c: Update from GNU libc.
93265
93266 2001-03-24  Jim Meyering  <meyering@lucent.com>
93267
93268         * m4/jm-macros.m4: Require autoconf-2.49d.
93269
93270 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
93271
93272         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
93273
93274 2001-03-19  Paul Eggert  <eggert@twinsun.com>
93275
93276         * lib/version-etc.c (version_etc_copyright): Update to 2001.
93277
93278 2001-03-17  Jim Meyering  <meyering@lucent.com>
93279
93280         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
93281         now that the version in autoconf is equivalent.
93282         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
93283
93284         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
93285         Suggestion from Akim Demaille.
93286
93287         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
93288         (jm_PREREQ_TEMPNAME): New function.
93289
93290 2001-03-16  Paul Eggert  <eggert@twinsun.com>
93291
93292         * lib/tempname.c (uint64_t): Define to uintmax_t if
93293         not defined, and if UINT64_MAX is not defined.
93294         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
93295         Reported by John David Anglin.
93296
93297 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
93298
93299         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
93300         resolve alias if codeset is empty.
93301         * lib/config.charset (BeOS): Use wildcard syntax.
93302
93303 2001-03-13  Jim Meyering  <meyering@lucent.com>
93304
93305         * lib/path-concat.c (path_concat)
93306         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
93307         concatenating e.g., `C:' and `foo'.
93308         From Bruno Haible.
93309
93310 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
93311
93312         * lib/localcharset.c (locale_charset): Don't use
93313         setlocale(LC_CTYPE,NULL). Don't return NULL.
93314         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
93315
93316 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
93317
93318         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
93319         support for DOS/DJGPP.
93320
93321 2001-03-01  Paul Eggert  <eggert@twinsun.com>
93322
93323         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
93324         lacks mkstemp.  Compile our own tempname.c if we compile our own
93325         mkstemp.c, as mkstemp relies on tempname.
93326
93327 2001-03-01  Jim Meyering  <meyering@lucent.com>
93328
93329         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
93330         AH_VERBATIM really does output its argument verbatim.
93331
93332 2001-02-28  Paul Eggert  <eggert@twinsun.com>
93333
93334         * lib/Makefile.am (libfetish_a_SOURCES):
93335         Add dup-safer.c, fopen-safer.c.
93336         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
93337
93338         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
93339         * lib/unistd-safer.h: New files.
93340
93341 2001-02-25  Paul Eggert  <eggert@twinsun.com>
93342
93343         The mkstemp replacement is taken from glibc 2.2.2, with some
93344         portability fixes for use outside glibc, as follows:
93345
93346         * lib/tempname.c (struct_stat64): New macro.
93347         (direxists, __gen_tempname): Use it.
93348         This avoids a portability problem with Solaris 8.
93349
93350         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
93351         (<stddef.h>, <stdint.h>, <string.h>):
93352         Include only if STDC_HEADERS || _LIBC.
93353         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
93354         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
93355         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
93356         (__set_errno): Define this macro if <errno.h> doesn't.
93357         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
93358         Define these macros if <stdio.h> doesn't.
93359         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
93360         Define these macros if <sys/stat.h>
93361         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
93362         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
93363         __xstat64): Define if not _LIBC.
93364         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
93365         (__gen_tempname): Invoke gettimeofday only if
93366         HAVE_GETTIMEOFDAY || _LIBC;
93367         otherwise, fall back on plain "time".
93368         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
93369
93370         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
93371
93372         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
93373
93374 2001-02-18  Paul Eggert  <eggert@twinsun.com>
93375
93376         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
93377
93378 2001-02-17  Paul Eggert  <eggert@twinsun.com>
93379
93380         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
93381         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
93382         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
93383         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
93384
93385 2001-02-17  Paul Eggert  <eggert@twinsun.com>
93386
93387         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
93388         Remove workaround macros for hosts that have mbrtowc but not
93389         mbstate_t, as we now insist on proper declarations for both
93390         before using mbrtowc.
93391
93392 2001-02-17  Jim Meyering  <meyering@lucent.com>
93393
93394         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
93395         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
93396         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
93397         UnixWare 7.1.1.
93398
93399         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
93400         rather than AC_CACHE_VAL.
93401
93402 2001-02-17  Jim Meyering  <meyering@lucent.com>
93403
93404         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
93405         around included file name.
93406
93407         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
93408
93409         * lib/strftime.c: Update from GNU libc (the only changes were to
93410         comments).
93411
93412 2001-02-17  Jim Meyering  <meyering@lucent.com>
93413
93414         * lib/regex.c: Update from libc.
93415
93416 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
93417
93418         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
93419         clash.
93420
93421 2001-02-16  Paul Eggert  <eggert@twinsun.com>
93422
93423         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
93424         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
93425         Reported by Mark Hounschell via Paul Eggert.
93426
93427 2001-02-07  Jim Meyering  <meyering@lucent.com>
93428
93429         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
93430
93431 2001-02-05  Jim Meyering  <meyering@lucent.com>
93432
93433         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
93434         it includes the patch required for `large file' support with at least
93435         HP-UX's 10.20 /bin/cc.
93436
93437 2001-02-03  Jim Meyering  <meyering@lucent.com>
93438
93439         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
93440         AS_IF, now that it works once again (mysteriously).
93441         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
93442
93443 2001-01-30  Jim Meyering  <meyering@lucent.com>
93444
93445         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
93446         * m4/chown.m4: Rename conftestchown to conftest.chown.
93447         * m4/rename.m4: s/conftestdir/conftest.d1/ and
93448         s/conftestdir2/conftest.d2/.
93449         * m4/utimes.m4: s/conftestdata/conftest.data/
93450         Inspired by Pavel Roskin's change in autoconf.
93451
93452 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
93453
93454         * lib/config.charset: Update for FreeBSD 4.2.
93455
93456 2001-01-27  Jim Meyering  <meyering@lucent.com>
93457
93458         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
93459         a use of AS_IF.
93460         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
93461
93462 2001-01-26  Jim Meyering  <meyering@lucent.com>
93463
93464         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
93465         quotearg.c includes it.
93466
93467 2001-01-26  Jim Meyering  <meyering@lucent.com>
93468
93469         * lib/quotearg.c: Include stddef.h.
93470         * lib/quote.c: Include stddef.h.
93471         Reported by Axel Kittenberger.
93472
93473         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
93474         line in double quotes so that it evokes a better diagnostic.
93475         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
93476         Reported by Axel Kittenberger.
93477
93478 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
93479
93480         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
93481         as if it was a `charset'.
93482
93483 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
93484
93485         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
93486         has const.
93487
93488 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
93489
93490         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
93491         to avoid a warning.  Add back 'const' to inptr.
93492
93493 2001-01-20  Jim Meyering  <meyering@lucent.com>
93494
93495         Be sure that headers are checked before used in code compiled
93496         for the type checks.
93497         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
93498         In place of that, invoke jm_CHECK_ALL_TYPES.
93499         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
93500         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
93501         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
93502         The check for ssize_t was mistakenly run before the test for unistd.h.
93503
93504         The configure-time check for stdbool.h was missing.
93505         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
93506         (jm_PREREQ_HASH): New function.
93507
93508 2001-01-17  Jim Meyering  <meyering@lucent.com>
93509
93510         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
93511         for autoconf-2.49c.
93512         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
93513
93514 2001-01-16  Jim Meyering  <meyering@lucent.com>
93515
93516         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
93517         From Bruno Haible.
93518
93519 2001-01-14  Jim Meyering  <meyering@lucent.com>
93520
93521         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
93522         foo and bar.  Create conftestdir/ in the script, not in the C code.
93523         Remove directories in the script, not in the C code.
93524         Remove conftestdir{,2} before trying to create the directory.
93525         Make the entire configure script fail if the mkdir fails.
93526
93527 2001-01-14  Jim Meyering  <meyering@lucent.com>
93528
93529         * lib/rename.c: New file.  From Volker Borchert.
93530         Include stdlib.h, string.h or strings.h, and xalloc.h.
93531         Use strip_trailing_slashes rather than open-coding it.
93532
93533 2001-01-03  Paul Eggert  <eggert@twinsun.com>
93534
93535         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
93536
93537 2001-01-03  Jim Meyering  <meyering@lucent.com>
93538
93539         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
93540         of local `inptr' to avoid warning with some system declarations of
93541         iconv.
93542
93543 2001-01-02  Volker Borchert  <bt@teknon.de>
93544
93545         * m4/rename.m4: New file.
93546         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
93547
93548 2001-01-01  Jim Meyering  <meyering@lucent.com>
93549
93550         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
93551         even on systems with utmpx.h.  It's necessary for the declaration of
93552         utmp's ut_user member.  Reported by Andreas Jaeger.
93553
93554         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
93555         available. They are required for the declarations of getgrgid and
93556         getpwuid resp.
93557         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
93558         Reported by Andreas Jaeger.
93559
93560 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
93561
93562         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
93563         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
93564         so `make install' also works in VPATH builds.
93565
93566 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
93567
93568         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
93569         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
93570         can be used in subdirectories.
93571
93572 2000-12-29  Paul Eggert  <eggert@twinsun.com>
93573
93574         * lib/modechange.c: Do not assume that mode_t uses the
93575         traditional octal encoding.  E.g. "chmod 1 FOO" should set
93576         the other-execute bit of FOO even if S_IXOTH != 1.
93577
93578         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
93579         WOTH, XOTH, ALLM): New macros.
93580         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
93581          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
93582         Use them.
93583         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
93584         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
93585         (mode_compile):
93586         No need to use uintmax_t; unsigned long is long enough.
93587         Don't bother to get suffix since we don't use it.
93588
93589 2000-12-26  Jim Meyering  <meyering@lucent.com>
93590
93591         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
93592         better with autoheader.
93593
93594 2000-12-24  Jim Meyering  <meyering@lucent.com>
93595
93596         * lib/hash.c (is_prime): Return explicit boolean values.
93597         (hash_get_first): Return NULL to appease Irix5.6's 89.
93598         Reported by Nelson Beebe.
93599
93600 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
93601
93602         * lib/localcharset.c (locale_charset): Add support for Win32.
93603
93604 2000-12-18  Paul Eggert  <eggert@twinsun.com>
93605
93606         * lib/physmem.h, lib/physmem.c: New files.
93607
93608         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
93609         (noinst_HEADERS): Add physmem.h.
93610
93611         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
93612         't' for compatibility with Solaris 8 sort.
93613
93614 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
93615
93616         * lib/config.charset: Add support for BeOS.
93617
93618 2000-12-17  Jim Meyering  <meyering@lucent.com>
93619
93620         * m4/dos.m4 (jm_AC_DOS): New file and macro.
93621         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
93622
93623 2000-12-16  Jim Meyering  <meyering@lucent.com>
93624
93625         This bug had a serious impact on chown: `chown N:M FILE' (for integer
93626         N and M) would have treated it like `chown N:N FILE'.
93627
93628         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
93629
93630 2000-12-16  Jim Meyering  <meyering@lucent.com>
93631
93632         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
93633         SHELLS_FILE to a file name that's useful on djgpp systems.
93634         Include stdlib.h.
93635         (ADDITIONAL_DEFAULT_SHELLS): Define.
93636         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
93637         Based mostly on a patch from Prashant TR.
93638
93639 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
93640
93641         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
93642         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
93643         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
93644
93645 2000-12-08  Andreas Schwab  <schwab@suse.de>
93646
93647         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
93648         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
93649
93650 2000-12-07  Jim Meyering  <meyering@lucent.com>
93651
93652         * lib/stripslash.c (ISSLASH): Define.
93653         (strip_trailing_slashes): Use ISSLASH rather than comparing against
93654         `/'.
93655         From Prashant TR.
93656
93657         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
93658         (dir_name_r): Declare this function as static.
93659         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
93660         manifest itself on a name containing a mix of slashes and
93661         backslashes.
93662         Make this function work with names starting with a DOS-style
93663         drive letter and colon prefix.
93664         (dir_name): Append `.' if necessary.
93665         Based mostly on patches from Prashant TR and Eli Zaretskii.
93666
93667         * lib/dirname.h (dir_name_r): Remove prototype.
93668
93669 2000-12-06  Paul Eggert  <eggert@twinsun.com>
93670
93671         * m4/off_t-format.m4: Remove this file.
93672         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
93673
93674 2000-12-06  Jim Meyering  <meyering@lucent.com>
93675
93676         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
93677         replacement strtoull, we may well need the replacement strtoul, too.
93678         Check for declarations of strtoul and strtoull.
93679         Check for strtol.  Mainly as a cue to cause automake to include
93680         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
93681         Check for limits.h -- strtol.c needs it.
93682
93683 2000-12-05  Jim Meyering  <meyering@lucent.com>
93684
93685         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
93686
93687 2000-12-04  Jim Meyering  <meyering@lucent.com>
93688
93689         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
93690         Also include memory.h, stdlib.h, unistd.h if appropriate.
93691         Reported by Andreas Jaeger (conflicting declaration of malloc).
93692
93693 2000-12-02  Jim Meyering  <meyering@lucent.com>
93694
93695         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
93696         * m4/jm-macros.m4 (jm_MACROS): require it.
93697
93698 2000-12-02  Jim Meyering  <meyering@lucent.com>
93699
93700         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
93701
93702 2000-12-01  Paul Eggert  <eggert@twinsun.com>
93703
93704         * lib/memrchr.c: Include <config.h> before any system include file.
93705
93706 2000-11-30  Jim Meyering  <meyering@lucent.com>
93707
93708         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
93709
93710 2000-11-30  Jim Meyering  <meyering@lucent.com>
93711
93712         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
93713
93714 2000-11-29  Paul Eggert  <eggert@twinsun.com>
93715
93716         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
93717
93718 2000-11-26  Jim Meyering  <meyering@lucent.com>
93719
93720         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
93721
93722 2000-11-22  Paul Eggert  <eggert@twinsun.com>
93723
93724         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
93725         size of (size_t) -1; it's not portable.
93726
93727 2000-11-17  Jim Meyering  <meyering@lucent.com>
93728
93729         * lib/strstr.c: Update from GNU libc.
93730
93731 2000-11-17  Akim Demaille  <akim@epita.fr>
93732
93733         * lib/obstack.h: Formatting changes.
93734         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
93735         prevent type checking.
93736         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
93737         cast the value to (void *): assigning a `foo *' to a `void *'
93738         variable is valid.
93739         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
93740
93741 2000-11-16  Jim Meyering  <meyering@lucent.com>
93742
93743         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
93744
93745 2000-11-11  Jim Meyering  <meyering@lucent.com>
93746
93747         * lib/error.c: Add a couple #includes, merging from GNU libc version.
93748
93749 2000-11-10  Jim Meyering  <meyering@lucent.com>
93750
93751         * lib/obstack.h: Update from GNU libc.
93752         * lib/obstack.c: Likewise.
93753
93754 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
93755
93756         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
93757
93758 2000-11-06  Paul Eggert  <eggert@twinsun.com>
93759
93760         * lib/getusershell.c (setusershell): Use rewind rather than
93761         fseek/fseeko, to avoid configuration hassles with fseeko.
93762         Don't bother opening SHELLS_FILE if shellstream is NULL;
93763         it's not necessary.
93764
93765 2000-11-05  Jim Meyering  <meyering@lucent.com>
93766
93767         * lib/makepath.h (make_dir): Declare.
93768         * lib/makepath.c (make_dir): Remove `static' attribute.
93769         Tweak a comment.
93770
93771 2000-11-04  Jim Meyering  <meyering@lucent.com>
93772
93773         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
93774
93775 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
93776
93777         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
93778         last one in a bucket, advance to the next bucket.
93779
93780 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
93781
93782         * lib/fnmatch.c: Do not comment out all the code if we are using
93783         the GNU C library, because in some cases we are replacing buggy
93784         code in the GNU C library itself.
93785
93786 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
93787
93788         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
93789         (regex_compile): Catch bogus \(\1\).
93790
93791 2000-10-30  Paul Eggert  <eggert@twinsun.com>
93792
93793         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
93794         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
93795         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
93796
93797 2000-10-30  Paul Eggert  <eggert@twinsun.com>
93798
93799         * lib/error.h, getline.h, modechange.h:
93800         Remove "2000" from Copyright line, as the file hasn't been
93801         changed this year other than in the copyright notice.
93802
93803         * lib/xalloc.h: Add "2000" to Copyright line, as this file
93804         was changed this year.
93805
93806 2000-10-29  Jim Meyering  <meyering@lucent.com>
93807
93808         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
93809         renaming.
93810         * m4/ls-mntd-fs.m4: Likewise
93811
93812 2000-10-29  Jim Meyering  <meyering@lucent.com>
93813
93814         * lib/xstat.in: Fix grammar in comment.
93815
93816 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
93817
93818         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
93819         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
93820         doesn't define __restrict_arr.
93821
93822 2000-10-28  Jim Meyering  <meyering@lucent.com>
93823
93824         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
93825         (jm_PREREQ_MEMCHR): New function.
93826
93827 2000-10-28  Jim Meyering  <meyering@lucent.com>
93828
93829         * lib/memchr.c: Update from libc.
93830         Adjust for portability:
93831         [HAVE_STDLIB_H]: Include stdlib.h.
93832         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
93833         Undef __memchr, too.
93834         [!weak_alias]: Define __memchr to memchr.
93835
93836         * lib/regex.c: Update from libc.
93837         * lib/regex.h: Likewise.
93838         * lib/getopt1.c: Likewise.
93839         * lib/memcmp.c: Likewise.
93840
93841         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
93842         Avoid using fseek, when possible -- it's broken by design.
93843         Patch by Ulrich Drepper.
93844
93845 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
93846
93847         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
93848         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
93849         Giving in to popular pressure to shut up the compiler with casts.
93850
93851 2000-10-26  Jim Meyering  <meyering@lucent.com>
93852
93853         * lib/strftime.c: Update from libc.
93854
93855 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
93856
93857         * regex.c: More `unsigned char' -> `re_char' changes.
93858         Also change several `int' into `re_wchar_t'.
93859         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
93860         (PUSH_FAILURE_POINTER): Don't cast any more.
93861         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
93862         We want GCC to complain, since this piece of code makes
93863         re_match non-reentrant, which *should* be fixed.
93864         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
93865         (EXTEND_BUFFER): Use RETALLOC.
93866         (SET_LIST_BIT): Don't cast.
93867         (re_wchar_t): New type.
93868         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
93869         that those two functions will always properly return.
93870         (IMMEDIATE_QUIT_CHECK): Cast to void.
93871         (analyse_first): Use recursion rather than an explicit stack.
93872         (re_compile_fastmap): Can't fail anymore.
93873         (re_search_2): Don't check re_compile_fastmap for failure.
93874         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
93875         Now also sets the new value (passed in a new argument).
93876         (re_match_2_internal): Use it.
93877         Also, use a new var `reg' of type size_t when looping through regs
93878         rather than reuse the inappropriate `mcnt'.
93879
93880 2000-10-25  Jim Meyering  <meyering@lucent.com>
93881
93882         * lib/obstack.c: Update from libc.
93883
93884 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
93885
93886         * regex.c (regex_compile): Change the way of handling a range from
93887         a char less than 256 to a char not less than 256.
93888
93889 2000-10-24  Andrew Innes  <andrewi@gnu.org>
93890
93891         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
93892         NT-Emacs only.
93893         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
93894         so that re_search functions only quit when callers expect them to.
93895
93896 2000-10-23  Jim Meyering  <meyering@lucent.com>
93897
93898         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
93899         wrong.  That set_locale call must not have any side effects.
93900         From Paul Eggert.
93901
93902 2000-10-22  Jim Meyering  <meyering@lucent.com>
93903
93904         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
93905         [CYCLIC]: Remove now-unused definition.
93906
93907         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
93908         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
93909         Suggestion from Ulrich Drepper.
93910
93911 2000-10-21  Jim Meyering  <meyering@lucent.com>
93912
93913         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
93914         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
93915         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
93916
93917 2000-10-21  Jim Meyering  <meyering@lucent.com>
93918
93919         * lib/dirname.c (memrchr): Declare if necessary.
93920         (dir_name): Remove the restriction that there be no
93921         trailing slashes.  Now, this code skips past them, effectively
93922         ignoring them.
93923         [TEST_DIRNAME] (main): New unit tests.
93924
93925         * lib/memrchr.c: New file from GNU libc.
93926         Undef __memrchr, too.
93927         [!weak_alias]: Define __memrchr to memrchr.
93928         Guard weak_alias use with `#ifdef weak_alias'.
93929
93930 2000-10-21  Jim Meyering  <meyering@lucent.com>
93931
93932         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
93933         (dir_name): Use dir_name_r.
93934         * lib/dirname.h (dir_name_r): Declare it.
93935
93936 2000-10-17  Jim Meyering  <meyering@lucent.com>
93937
93938         * lib/quote.h (PARAMS): Define and use.
93939         Reported by Akim Demaille.
93940
93941         * lib/getopt.c: Update from libc.
93942
93943 2000-10-16  Jim Meyering  <meyering@lucent.com>
93944
93945         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
93946         setlocale.
93947         From Jan Fedak.
93948
93949 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
93950
93951         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
93952
93953 2000-09-25  Jim Meyering  <meyering@lucent.com>
93954
93955         * lib/md5.h (rol): Define (from GnuPG).
93956
93957         * lib/sha.c: Give credit (GnuPG) where due.
93958         (M): Use rol rather than open-coding it.
93959         Add a FIXME comment.
93960
93961 2000-09-21  Jim Meyering  <meyering@lucent.com>
93962
93963         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
93964         Reported by Michael Stone.
93965
93966 2000-09-20  Jim Meyering  <meyering@lucent.com>
93967
93968         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
93969         (noinst_HEADERS): Add sha.h.
93970         Based on code from Scott G. Miller and from GnuPG.
93971
93972 2000-09-18  Jim Meyering  <meyering@lucent.com>
93973
93974         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
93975         LIBS. Otherwise, everyone ends up linking with -lelf for some
93976         configurations.
93977         Reported by Mike Stone.
93978
93979 2000-09-15  Jim Meyering  <meyering@lucent.com>
93980
93981         * lib/regex.c: Update from libc.
93982
93983 2000-09-10  Jim Meyering  <meyering@lucent.com>
93984
93985         * lib/getopt.c (_getopt_internal): Update from glibc.
93986
93987 2000-09-09  Jim Meyering  <meyering@lucent.com>
93988
93989         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
93990         think it should be used as a general replacement for isascii.
93991         * lib/fnmatch.c: Likewise.
93992         * lib/mbswidth.c: Likewise
93993         * lib/regex.c: Likewise.
93994
93995         Don't use atoi.
93996         * lib/userspec.c: Include sys/param.h and limits.h.
93997         Include xstrtol.h.
93998         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
93999         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
94000         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
94001         UID, GID.  Check range.
94002
94003 2000-09-06  Jim Meyering  <meyering@lucent.com>
94004
94005         * lib/getopt.c (_getopt_internal): Update from glibc.
94006
94007 2000-08-30  Jim Meyering  <meyering@lucent.com>
94008
94009         * lib/strftime.c: Merge in changes from GNU libc.
94010
94011 2000-08-26  Jim Meyering  <meyering@lucent.com>
94012
94013         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
94014         * m4/fpending.m4: New file.
94015
94016 2000-08-26  Jim Meyering  <meyering@lucent.com>
94017
94018         * lib/closeout.c: Include "__fpending.h".
94019         (close_stdout_status): Return right away if there's nothing to flush.
94020
94021         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
94022         * lib/__fpending.c: New file.
94023         * lib/__fpending.h: New file.
94024
94025 2000-08-20  Jim Meyering  <meyering@lucent.com>
94026
94027         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
94028         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
94029         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
94030
94031 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
94032
94033         Improve fileutils installation on systems where running
94034         programs (like install) can't be unlinked.
94035         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
94036         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
94037
94038 2000-08-07  Paul Eggert  <eggert@twinsun.com>
94039
94040         Standardize on "memory exhausted" instead of "Memory exhausted"
94041         or "virtual memory exhausted".
94042         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
94043         "virtual memory exhausted".
94044         * lib/same.c (same_name): Invoke xalloc_die instead of printing
94045         our own message.
94046         * lib/userspec.c (parse_user_spec): Likewise.
94047         * lib/bumpalloc.h: comment fix
94048         * lib/same.c, userspec.c: Include xalloc.h.
94049
94050         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
94051         not char *const and pointing to a constant array.
94052         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
94053         (xrealloc): Comment fix.
94054
94055         * lib/userspec.c (parse_user_spec):
94056         Don't translate a message until just before returning,
94057         to avoid unnecessary translation.
94058
94059 2000-08-07  Jim Meyering  <meyering@lucent.com>
94060
94061         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
94062         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
94063         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
94064         getgroups.c, gethostname.c, getopt.h, group-member.c,
94065         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
94066         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
94067         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
94068         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
94069         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
94070         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
94071         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
94072         yesno.c: Back out Copyright date changes for each file with no change
94073         this year.  This eases coordination with other programs using the same
94074         source code modules.  From Paul Eggert.
94075
94076 2000-08-06  Paul Eggert  <eggert@twinsun.com>
94077
94078         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
94079         not char, for compatibility with glibc 2.1.3 strftime.c.
94080
94081 2000-08-03  Greg McGary  <greg@mcgary.org>
94082
94083         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
94084         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
94085         (EXTEND_BUFFER): Use them.
94086
94087 2000-08-01  Jim Meyering  <meyering@lucent.com>
94088
94089         * lib/dirname.c (ISSLASH): Define.
94090         (BACKSLASH_IS_PATH_SEPARATOR): Define.
94091         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
94092         both `\' and `/' may be use as path separators.
94093         Based on a patch from Prashant TR.
94094
94095 2000-07-31  Paul Eggert  <eggert@twinsun.com>
94096
94097         * lib/quotearg.c (quotearg_n_options): Don't make the initial
94098         slot vector a constant, since it might get modified.
94099
94100 2000-07-31  Jim Meyering  <meyering@lucent.com>
94101
94102         * lib/xmalloc.c: Use `virtual memory exhausted', not
94103         `Memory exhausted'.
94104         * lib/obstack.c (print_and_abort): Likewise.
94105
94106 2000-07-30  Paul Eggert  <eggert@twinsun.com>
94107
94108         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
94109         buffer, so that the caller can always quote one small
94110         component of a "memory exhausted" message in slot 0.
94111         From a suggestion by Jim Meyering.
94112
94113 2000-07-30  Jim Meyering  <meyering@lucent.com>
94114
94115         * lib/makepath.c (make_path): Quote the other instance, too.
94116
94117         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
94118         (STATIC_BUF_SIZE): Define.
94119         (quotearg_n_options): Use only statically allocated storage when
94120         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
94121         than STATIC_BUF_SIZE.
94122
94123 2000-07-29  Jim Meyering  <meyering@lucent.com>
94124
94125         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
94126         * lib/dirname.c (dir_name): Likewise.
94127
94128         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
94129         `/'.
94130
94131         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
94132         (dir_name): Assert that there are no trailing slashes.
94133
94134 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
94135
94136         * lib/mbswidth.h (mbswidth): Add a flags argument.
94137         (mbswidth): New declaration.
94138         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
94139         * lib/mbswidth.c (mbswidth): Add a flags argument.
94140         (mbsnwidth): New function.
94141
94142 2000-07-24  Jim Meyering  <meyering@lucent.com>
94143
94144         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
94145
94146 2000-07-23  Paul Eggert  <eggert@twinsun.com>
94147
94148         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
94149
94150 2000-07-23  Paul Eggert  <eggert@twinsun.com>
94151
94152         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
94153         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
94154         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
94155         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
94156         invoke multibyte primitives.
94157
94158 2000-07-23  Paul Eggert  <eggert@twinsun.com>
94159
94160         * lib/quotearg.c:
94161         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
94162         so that mbstate_t is always defined.
94163
94164         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
94165         be 1 in at least one GCC installation, and this configuration
94166         error is likely to be common.  Ignoring MB_LEN_MAX hurts
94167         performance on hosts that have mbrtowc but have only unibyte
94168         locales, but I assume these hosts are rare.
94169
94170 2000-07-23  Paul Eggert  <eggert@twinsun.com>
94171
94172         * lib/mbswidth.c (_XOPEN_SOURCE):
94173         Don't define; this causes problems on Solaris 7.
94174         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
94175
94176 2000-07-23  Jim Meyering  <meyering@lucent.com>
94177
94178         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
94179         too: getgrgid, getpwuid, getuid.
94180
94181 2000-07-23  Jim Meyering  <meyering@lucent.com>
94182
94183         * lib/basename.c (base_name): Add an assertion.
94184
94185 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
94186
94187         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
94188         shadow its mbsinit function.
94189
94190 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
94191
94192         * lib/mbswidth.h: New file.
94193         * lib/mbswidth.c: New file.
94194         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
94195         (noinst_HEADERS): Add mbswidth.h.
94196
94197 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
94198
94199         * lib/config.charset: Add support for FreeBSD. Improve support for
94200         HP-UX and IRIX 6.
94201
94202 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
94203
94204         * m4/mbswidth.m4: New file.
94205         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
94206
94207 2000-07-15  Jim Meyering  <meyering@lucent.com>
94208
94209         * lib/makepath.c: Include quote.h.
94210         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
94211         corresponding argument in a `quote (...)' call.
94212         Give better diagnostics.
94213
94214         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
94215         (noinst_HEADERS): Add quote.h.
94216
94217         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
94218         from tar's src/misc.c.
94219         * lib/quote.h: New file.  Prototypes for same.
94220
94221 2000-07-14  Paul Eggert  <eggert@twinsun.com>
94222
94223         From a suggestion by Bruno Haible.
94224         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
94225         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
94226         to decide whether to define the BeOS workaround macro;
94227         this adjusts to the change to AC_MBSTATE_T.
94228
94229 2000-07-14  Jim Meyering  <meyering@lucent.com>
94230
94231         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
94232         jm_AC_TYPE_UINTMAX_T.
94233
94234 2000-07-13  Paul Eggert  <eggert@twinsun.com>
94235
94236         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
94237
94238         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
94239         quotearg_buffer_restyled): Add support for
94240         clocale_quoting_style.  Undo previous change to
94241         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
94242         and "{RIGHT QUOTATION MARK}" msgids.
94243
94244 2000-07-10  Paul Eggert  <eggert@twinsun.com>
94245
94246         From a suggestion by Bruno Haible.
94247         * m4/mbstate_t.m4 (AC_MBSTATE_T):
94248         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
94249         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
94250         and mbstate_t, to a single-part test that simply defines mbstate_t.
94251         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
94252         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
94253
94254 2000-07-10  Jim Meyering  <meyering@lucent.com>
94255
94256         * m4/strerror_r.m4: Mirror the correction made in autoconf.
94257
94258         * m4/gnu-source.m4: Output to confdefs.h directly.
94259         Suggestion from Akim Demaille.
94260
94261 2000-07-09  Paul Eggert  <eggert@twinsun.com>
94262
94263         The old behavior of quoting `like this' doesn't look good with
94264         newer, ISO-style fonts.  See:
94265         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
94266
94267         Instead, quote "like this" by default.  Let the translator
94268         tailor the locale-specific quoting behavior by providing
94269         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
94270
94271         * lib/quotearg.c (N_): New macro.
94272         (gettext_default): New function.
94273         (quotearg_buffer_restyled): Use
94274         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
94275         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
94276
94277 2000-07-09  Jim Meyering  <meyering@lucent.com>
94278
94279         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
94280         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
94281
94282         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
94283         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
94284
94285 2000-07-09  Jim Meyering  <meyering@lucent.com>
94286
94287         * lib/Most files: Update copyright dates to include 2000.
94288
94289 2000-07-08  Jim Meyering  <meyering@lucent.com>
94290
94291         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
94292         if not defined.
94293         (xgethostname): Remove now-unnecessary #ifdef.
94294         Move declaration of `err' into loop where it's used.
94295
94296 2000-07-05  Paul Eggert  <eggert@twinsun.com>
94297         and Bruno Haible  <haible@clisp.cons.org>
94298
94299         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
94300         only if the test for an object-type mbstate_t fails.  This
94301         prevents us from mistakenly reporting that mbstate_t is a
94302         system object type after we "#define mbstate_t int" to work
94303         around its lack.
94304
94305 2000-07-05  Paul Eggert  <eggert@twinsun.com>
94306         and Bruno Haible  <haible@clisp.cons.org>
94307
94308         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
94309
94310 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
94311
94312         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
94313         to strerror_r.
94314         Include <ctype.h> for use of isalpha.
94315
94316 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
94317
94318         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
94319         by allocating a larger buffer. Test the gethostname return value for
94320         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
94321         returns an error and ENAMETOOLONG isn't defined.
94322
94323 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
94324
94325         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
94326         dimension.
94327
94328 2000-07-04  Jim Meyering  <meyering@lucent.com>
94329
94330         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
94331         of the deprecated AC_CHECKING.
94332
94333 2000-07-04  Jim Meyering  <meyering@lucent.com>
94334
94335         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
94336         Reported by Bruno Haible.
94337
94338 2000-07-04  Jim Meyering  <meyering@lucent.com>
94339
94340         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
94341         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
94342         lacks mbrtowc.
94343
94344 2000-07-03  Paul Eggert  <eggert@twinsun.com>
94345
94346         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
94347         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
94348
94349 2000-07-03  Paul Eggert  <eggert@twinsun.com>
94350         and Bruno Haible  <haible@clisp.cons.org>
94351
94352         * lib/quotearg.c (mbrtowc):
94353         Assign to *pwc, and return 1 only if result is nonzero.
94354         (iswprint): Use ISPRINT when substituting our own mbrtowc.
94355
94356 2000-07-03  Jim Meyering  <meyering@lucent.com>
94357
94358         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
94359
94360 2000-07-03  Jim Meyering  <meyering@lucent.com>
94361
94362         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
94363         This is necessary to get a definition of e.g., UTMP_FILE on
94364         HP-UX 10.20.
94365         From Bob Proulx.
94366
94367 2000-07-02  Jim Meyering  <meyering@lucent.com>
94368
94369         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
94370
94371         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
94372         AC_LIBOBJ(function_name).
94373         * m4/chown.m4: Likewise.
94374         * m4/fnmatch.m4: Likewise.
94375         * m4/ftruncate.m4: Likewise.
94376         * m4/getgroups.m4: Likewise.
94377         * m4/getline.m4: Likewise.
94378         * m4/group-member.m4: Likewise.
94379         * m4/jm-macros.m4: Likewise.
94380         * m4/lstat.m4: Likewise.
94381         * m4/malloc.m4: Likewise.
94382         * m4/memcmp.m4: Likewise.
94383         * m4/nanosleep.m4: Likewise.
94384         * m4/putenv.m4: Likewise.
94385         * m4/realloc.m4: Likewise.
94386         * m4/regex.m4: Likewise.
94387         * m4/stat.m4: Likewise.
94388         * m4/strftime.m4: Likewise.
94389
94390 2000-07-02  Jim Meyering  <meyering@lucent.com>
94391
94392         * lib/quotearg.c (mbstate_t): Don't define here.
94393
94394 2000-07-02  Jim Meyering  <meyering@lucent.com>
94395
94396         * lib/nanosleep.c (SIGCONT): Define if not already defined.
94397
94398 2000-07-01  Jim Meyering  <meyering@lucent.com>
94399
94400         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
94401
94402 2000-07-01  Jim Meyering  <meyering@lucent.com>
94403
94404         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
94405         problem.
94406
94407 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
94408
94409         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
94410         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
94411
94412 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
94413
94414         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
94415         per change in ../m4/ls-mntd-fs.m4.
94416         (read_filesystem_list): Ignore symbolic links.
94417
94418 2000-06-29  Jim Meyering  <meyering@lucent.com>
94419
94420         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
94421         for declaration of strcmp.
94422
94423         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
94424
94425         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
94426         Avoid warning by casting result to `char *' to remove `const'.
94427
94428 2000-06-28  Jim Meyering  <meyering@lucent.com>
94429
94430         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
94431         included by quotearg.c, for which we perform this test.  From
94432         Bruno Haible.
94433
94434 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
94435
94436         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
94437         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
94438         <utmpx.h> exists, put readutmp.o into LIBOBJS.
94439
94440 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
94441
94442         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
94443
94444 2000-06-26  Paul Eggert  <eggert@twinsun.com>
94445
94446         savedir now sets errno on failure and invokes xmalloc to get memory.
94447         Fix a couple of other minor bugs while we're at it.
94448
94449         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
94450         (NAMLEN): Remove macro.
94451         (malloc, realloc): Remove decls.
94452         (stpcpy): Likewise.
94453         ("xalloc.h"): Include.
94454         (NAME_SIZE_DEFAULT): New macro.
94455         (savedir): Use xmalloc / xrealloc to allocate memory.
94456         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
94457         Skip "" directory entries.
94458         Use strlen to calculate directory entry length, since the old method
94459         is rarely used these days and isn't worth supporting.
94460         Don't use a pointer after freeing it.
94461         Check for integer overflow when calculating allocation size.
94462         Use memcpy to copy entries, instead of stpcpy.
94463         Set errno properly when returning NULL.
94464         Check for readdir error.
94465
94466 2000-06-26  Jim Meyering  <meyering@lucent.com>
94467
94468         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
94469
94470 2000-06-25  Jim Meyering  <meyering@lucent.com>
94471
94472         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
94473         Linux header bug when _XOPEN_SOURCE is defined to 500.
94474
94475 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
94476
94477         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
94478         deficiency.
94479
94480 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
94481
94482         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
94483         Include xalloc.h.
94484         Don't include <stdlib.h>.  Don't declare malloc, realloc.
94485
94486 2000-06-24  Jim Meyering  <meyering@lucent.com>
94487
94488         * m4/strerror_r.m4: Revive this file -- to try out an experimental
94489         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
94490         for which strerror does return char*, but which lacks a conveniently
94491         accessible declaration of the function.  If the compile-test says
94492         strerror_r doesn't work, then resort to a `run'-test that works on
94493         BeOS and segfaults on DEC Unix.
94494
94495 2000-06-24  Jim Meyering  <meyering@lucent.com>
94496
94497         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
94498
94499 2000-06-23  Paul Eggert  <eggert@twinsun.com>
94500
94501         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
94502         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
94503
94504 2000-06-23  Paul Eggert  <eggert@twinsun.com>
94505
94506         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
94507         (mbrtowc, mbstate_t): Define substitutes if
94508         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
94509         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
94510         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
94511
94512 2000-06-23  Jim Meyering  <meyering@lucent.com>
94513
94514         * m4/afs.m4: Add missing AC_MSG_RESULT.
94515         Reported by Bruno Haible.
94516
94517         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
94518         Suggestion from Bruno Haible.
94519
94520 2000-06-23  Jim Meyering  <meyering@lucent.com>
94521
94522         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
94523
94524 2000-06-21  Jim Meyering  <meyering@lucent.com>
94525
94526         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
94527
94528 2000-06-21  Jim Meyering  <meyering@lucent.com>
94529
94530         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
94531         (noinst_HEADERS): Add getstr.h.
94532
94533         * lib/getline.c (getstr): Move into a separate file.
94534         * lib/getstr.c (getstr): New file, extracted from getline.c, with
94535         the following changes: new parameter, delim2; both delim[12]
94536         parameters have type `int', not `char'.  The latter would lose
94537         with 8-bit delimiters.
94538         * lib/getstr.h: New file.
94539
94540 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
94541
94542         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
94543         than 1024, return a memory chunk of least possible size, instead
94544         of size PATH_MAX + 2. In the loop, increment the size proportionally.
94545         Use free/xmalloc instead of xrealloc to avoid copying for very long
94546         paths.
94547
94548 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
94549
94550         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
94551         the empty string.
94552
94553 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
94554
94555         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
94556         address, not strdup.  Include <stdlib.h> and don't declare free().
94557
94558 2000-06-19  Jim Meyering  <meyering@lucent.com>
94559
94560         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
94561
94562 2000-06-18  Jim Meyering  <meyering@lucent.com>
94563
94564         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
94565
94566         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
94567         `checking whether...' message to be consistent with that of the
94568         lstat test.
94569
94570 2000-06-18  Jim Meyering  <meyering@lucent.com>
94571
94572         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
94573         Besides, these days every porting target provides a mkdir function.
94574
94575         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
94576         needed. (this snippet comes from src/system.h).
94577
94578 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
94579
94580         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
94581
94582 2000-06-15  Paul Eggert  <eggert@twinsun.com>
94583
94584         * lib/human.c (adjust_value): New function.
94585         (human_readable_inexact): Apply rounding style even when
94586         printing approximate values.
94587
94588 2000-06-14  Paul Eggert  <eggert@twinsun.com>
94589
94590         * lib/human.c (human_readable_inexact): Allow an input block
94591         size that is not a multiple of the output block size, and vice versa.
94592         Reported by Piergiorgio Sartor.
94593
94594 2000-06-14  Paul Eggert  <eggert@twinsun.com>
94595
94596         * lib/getdate.y (get_date): Apply relative times after time
94597         zone indicator, not before.  Reported by Todd A. Jacobs.
94598
94599 2000-06-13  Jim Meyering  <meyering@lucent.com>
94600
94601         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
94602
94603         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
94604
94605 2000-06-12  Paul Eggert  <eggert@twinsun.com>
94606
94607         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
94608
94609 2000-06-12  Jim Meyering  <meyering@lucent.com>
94610
94611         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
94612         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
94613         optional argument.
94614         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
94615         the optional argument, `lib'.
94616
94617 2000-06-08  Jim Meyering  <meyering@lucent.com>
94618
94619         * m4/largefile.m4: Remove file (now that it's part of autoconf).
94620
94621 2000-06-04  Paul Eggert  <eggert@twinsun.com>
94622
94623         Rewrite largefile configuration so that we don't need to run
94624         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
94625         AC_CANONICAL_HOST in configure.in -- jmm]
94626
94627         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
94628         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
94629         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
94630         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
94631         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
94632         All uses changed.
94633         Instead of inspecting the output of getconf, try to compile the
94634         test program without and with the macro definition.
94635         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
94636         for getconf.  Instead, check for the needed flags by compiling
94637         test programs.
94638
94639 2000-06-04  Paul Eggert  <eggert@twinsun.com>
94640
94641         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
94642
94643 2000-06-04  Jim Meyering  <meyering@lucent.com>
94644
94645         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
94646         SunOS 4.1.4 for which gid_t is an unsigned type.
94647
94648 2000-06-03  Jim Meyering  <meyering@lucent.com>
94649
94650         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
94651         now that autoconf requires that.
94652
94653         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
94654         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
94655         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
94656
94657 2000-06-03  Jim Meyering  <meyering@lucent.com>
94658
94659         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
94660
94661 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
94662
94663         * m4/glibc21.m4: New file.
94664         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
94665
94666 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
94667
94668         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
94669         newer, don't install charset.alias.
94670         * lib/config.charset: Change the Linux/glibc rules so they become empty
94671         on glibc-2.1 or newer.
94672
94673 2000-06-02  Jim Meyering  <meyering@lucent.com>
94674
94675         * lib/mountlist.c: Back out last change.  Instead, do this...
94676         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
94677         me_dummy member using the same `ignore'-testing code.
94678         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
94679         fs_type strings.
94680         From Mark D. Roth.
94681
94682 2000-05-29  Jim Meyering  <meyering@lucent.com>
94683
94684         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
94685         mounts with the `ignore' attribute.  Based on a patch from
94686         Mark D. Roth.
94687
94688 2000-05-28  Jim Meyering  <meyering@lucent.com>
94689
94690         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
94691         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
94692         * m4/stat.m4: Likewise.
94693         * m4/lstat.m4: Likewise.
94694         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
94695
94696         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
94697         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
94698
94699 2000-05-26  Jim Meyering  <meyering@lucent.com>
94700
94701         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
94702
94703 2000-05-24  Jim Meyering  <meyering@lucent.com>
94704
94705         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
94706         autoconf requires that.
94707         * m4/lib-check.m4: Likewise.
94708         * m4/jm-macros.m4: Likewise.
94709         * m4/strftime.m4: Likewise.
94710
94711         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
94712         AC_CHECK_DECLS, now that autoconf requires that.
94713
94714 2000-05-22  Jim Meyering  <meyering@lucent.com>
94715
94716         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
94717         * m4/lstat.m4: Likewise.
94718
94719 2000-05-22  Jim Meyering  <meyering@lucent.com>
94720
94721         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
94722
94723 2000-05-20  Jim Meyering  <meyering@lucent.com>
94724
94725         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
94726         (jm_PREREQ): Use it.
94727
94728 2000-05-18  Jim Meyering  <meyering@lucent.com>
94729
94730         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
94731         back, too, since it may have been modified by allocate_entry.
94732         (hash_delete): Rewrite to use neither the assignment operator
94733         nor the comma operator in an if-expression.
94734
94735 2000-05-15  Paul Eggert  <eggert@twinsun.com>
94736
94737         * lib/closeout.c:
94738         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
94739         Remove; no longer needed.
94740         "quotearg.h": Add include.
94741         (file_name): Do not bother to explicitly initialize to NULL; it's less
94742         efficient on some hosts.
94743         (close_stdout_status): Remove test as to whether stdout was already
94744         closed; it breaks for the case "echo x | sort >&-".
94745         Quote file name colons.
94746         Do not assume that _("write error") lacks format strings.
94747
94748 2000-05-15  Jim Meyering  <meyering@lucent.com>
94749
94750         * lib/version-etc.c (version_etc_copyright): Update the copyright
94751         string used in all --version output.
94752
94753 2000-05-14  Jim Meyering  <meyering@lucent.com>
94754
94755         * lib/closeout.c (close_stdout_set_file_name): New function.
94756         (close_stdout_status): Use new file-scoped global.
94757         Return right away if fstat says the stdout file descriptor is invalid.
94758         * lib/closeout.h (close_stdout_set_file_name): Declare.
94759
94760 2000-05-10  Jim Meyering  <meyering@lucent.com>
94761
94762         * lib/closeout.c [default_exit_status]: New file-scoped variable.
94763         (close_stdout_set_status): New function.
94764         * lib/closeout.h (close_stdout_set_status): Declare.
94765
94766 2000-05-09  Jim Meyering  <meyering@lucent.com>
94767
94768         * m4/gettext.m4: Rename this...
94769         * m4/libintl.m4: ...to this.
94770
94771 2000-05-08  Jim Meyering  <meyering@lucent.com>
94772
94773         * lib/long-options.c: Don't include closeout.h.
94774         (parse_long_options): Don't call close_stdout for --version.
94775
94776 2000-05-06  Paul Eggert  <eggert@twinsun.com>
94777
94778         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
94779         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
94780         2.1.3 bug.  This avoids a clash when files like regex.c define
94781         _GNU_SOURCE.
94782
94783 2000-05-06  Jim Meyering  <meyering@lucent.com>
94784
94785         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
94786         (AC_REPLACE_FUNCS): Add strnlen.
94787
94788         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
94789         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
94790
94791         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
94792         AC_SEARCH_LIBS call for nanosleep.
94793         (LIB_NANOSLEEP): Set and AC_SUBST.
94794
94795 2000-05-06  Jim Meyering  <meyering@lucent.com>
94796
94797         * lib/strnlen.c: Undefine __strnlen and strnlen.
94798         [!weak_alias]: Define __strnlen to strnlen.
94799
94800         * lib/atexit.c: New file, from libiberty.
94801
94802 2000-05-06  Jim Meyering  <meyering@lucent.com>
94803
94804         * lib/closeout.c (close_stdout_status): Also check for errors on the
94805         stderr stream.
94806
94807 2000-05-05  Jim Meyering  <meyering@lucent.com>
94808
94809         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
94810         AC_SEARCH_LIBS call for clock_gettime.
94811         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
94812
94813         * m4/search-libs.m4: Update from autoconf.
94814
94815         su doesn't work on Solaris 2.6.
94816         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
94817         <shadow.h>.  Reported by Dragos Harabor.
94818
94819 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
94820
94821         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
94822         memcpy instead of xmalloc, xrealloc, path_concat.
94823         (locale_charset): Treat empty environment variables as absent.
94824         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
94825
94826 2000-05-04  Jim Meyering  <meyering@lucent.com>
94827
94828         * lib/getopt.c: Update from glibc.
94829         * lib/obstack.c: Likewise.
94830         * lib/obstack.h: Likewise.
94831         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
94832         file
94833
94834         * lib/regex.h: Likewise.
94835         * lib/strndup.c: Likewise.
94836         * lib/strnlen.c: New file, from glibc.
94837
94838 2000-05-03  Jim Meyering  <meyering@lucent.com>
94839
94840         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
94841
94842 2000-05-02  Paul Eggert  <eggert@twinsun.com>
94843
94844         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
94845         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
94846         compile-time test, rather than inspecting host and OS, to
94847         decide whether to define _LARGEFILE_SOURCE.
94848
94849 2000-05-01  Jim Meyering  <meyering@lucent.com>
94850
94851         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
94852
94853         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
94854         Based on a patch from Bruno Haible.
94855
94856 2000-05-01  Jim Meyering  <meyering@lucent.com>
94857
94858         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
94859
94860 2000-04-29  Jim Meyering  <meyering@lucent.com>
94861
94862         * lib/path-concat.c: Declare strdup only if it's not defined.
94863         * lib/canon-host.c: Likewise.
94864
94865 2000-04-28  Jim Meyering  <meyering@lucent.com>
94866
94867         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
94868         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
94869         is included first, then limits.h is included by locale.h by libintl.h.
94870         From John David Anglin.
94871
94872 2000-04-25  Jim Meyering  <meyering@lucent.com>
94873
94874         * lib/makepath.c (S_IRWXUGO): Define.
94875         (make_path): Always perform explicit chmod if MODE specifies any
94876         of the `special' permission bits.  Prompted by a bug report against
94877         install from Mate Wierdl and Joost van Baal.
94878
94879 2000-04-18  Jim Meyering  <meyering@lucent.com>
94880
94881         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
94882         (jm_PREREQ): Use it.
94883
94884 2000-04-18  Jim Meyering  <meyering@lucent.com>
94885
94886         * lib/README: New file.
94887
94888         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
94889         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
94890
94891 2000-04-17  Jim Meyering  <meyering@lucent.com>
94892
94893         Get it right :-)
94894         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
94895         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
94896         Suggestion from Akim Demaille.
94897
94898 2000-04-17  Jim Meyering  <meyering@lucent.com>
94899
94900         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
94901         the definition of it to rpl_strftime also defined-away the system's
94902         declaration.
94903
94904 2000-04-15  Jim Meyering  <meyering@lucent.com>
94905
94906         Use `C' to denote so-called `contiguous' files, the same way
94907         that tar does.
94908         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
94909         (ftypelet): Use S_ISCTG.
94910         From Michael Deutschmann.
94911
94912 2000-04-14  Jim Meyering  <meyering@lucent.com>
94913
94914         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
94915         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
94916         clobbered.
94917
94918 2000-04-14  Jim Meyering  <meyering@lucent.com>
94919
94920         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
94921
94922 2000-04-13  Jim Meyering  <meyering@lucent.com>
94923
94924         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
94925         AH_VERBATIM to insert required #ifndef into config.h.in.
94926         Suggestion from Akim Demaille.
94927
94928 2000-04-12  Jim Meyering  <meyering@lucent.com>
94929
94930         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
94931         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
94932         Christian Krackowizer.
94933
94934         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
94935         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
94936         (AC_SYS_LARGEFILE): Require.
94937         (AM_C_PROTOTYPES): Require.
94938
94939 2000-04-08  Jim Meyering  <meyering@lucent.com>
94940
94941         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
94942         names don't conflict.  Reported by Eli Zaretskii.
94943
94944 2000-04-07  Jim Meyering  <meyering@lucent.com>
94945
94946         * lib/putenv.c: Move inclusion of errno.h so it follows that of
94947         sys/types.h, to work around system header problems on AIX 3.2.5.
94948         From Bruno Haible.
94949
94950 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
94951
94952         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
94953         bug.  Deal with the different error behavior of Irix iconv.
94954
94955 2000-04-05  Paul Eggert  <eggert@twinsun.com>
94956
94957         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
94958         IRIX if the installer said otherwise.
94959
94960 2000-04-05  Jim Meyering  <meyering@lucent.com>
94961
94962         Portability tweaks required for ultrix4.3.
94963         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
94964         (jm_CHECK_DECLS): Add getutent to the list of functions.
94965         (_jm_DECL_HEADERS): Add utmpx.h.
94966         From John David Anglin.
94967
94968         * m4/strftime.m4: Back out the 2000-04-02 change.
94969         Instead of that change, simply undefine putenv in the test program.
94970
94971 2000-04-05  Jim Meyering  <meyering@lucent.com>
94972
94973         Portability tweaks required for ultrix4.3.
94974         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
94975         getutent.
94976         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
94977         * lib/canon-host.c: Declare strdup.
94978         * lib/path-concat.c: Likewise.
94979         From John David Anglin.
94980
94981 2000-04-04  Jim Meyering  <meyering@lucent.com>
94982
94983         Be more DOS 8.3-friendly.
94984         * lib/ref-add.sin: Renamed from ref-add.sed.in.
94985         * lib/ref-del.sin: Renamed from ref-del.sed.in.
94986         * lib/Makefile.am: Reflect renaming.
94987         Reported by Eli Zaretskii.
94988
94989         Use a temporary file name that won't clash with `charset.alias'
94990         in the DOS 8.3 name space.
94991         * lib/Makefile.am (charset_tmp): Define.
94992         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
94993         (uninstall-local): Likewise.
94994         Reported by Eli Zaretskii.
94995
94996 2000-04-03  Jim Meyering  <meyering@lucent.com>
94997
94998         * m4/gettext.m4: Fix typo in comment.
94999
95000         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
95001         textutils/configure.in).  Suggestion from Paul Eggert.
95002         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
95003
95004 2000-04-02  Paul Eggert  <eggert@twinsun.com>
95005
95006         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
95007         variable in the shell rather than using putenv, which isn't
95008         portable.  This avoids the configure-time inter-test dependency
95009         on the potentially-renamed putenv function.
95010
95011 2000-03-30  Paul Eggert  <eggert@twinsun.com>
95012
95013         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
95014         before checking struct stat.st_blksize, so that
95015         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
95016
95017 2000-03-29  Paul Eggert  <eggert@twinsun.com>
95018
95019         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
95020         since strftime.c uses HAVE_STRFTIME to decide whether to use
95021         the underlying strftime.
95022
95023 2000-03-29  Paul Eggert  <eggert@twinsun.com>
95024
95025         * lib/time/strftime.c (my_strftime): Make sure we call the system
95026         strftime, not ourselves, when invoking the underlying strftime.
95027
95028 2000-03-24  Jim Meyering  <meyering@lucent.com>
95029
95030         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
95031         (charset_alias): Define.
95032         (install-exec-local): Factor out common code.
95033         (uninstall-local): Split lines longer than 80.
95034         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
95035         (SUFFIXES): Define.
95036         (.sed.in.sed): New rule.  Don't redirect directly to $@.
95037         (CLEANFILES): Add ref-add.sed and ref-del.sed.
95038
95039 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
95040
95041         * lib/config.charset: Output a line containing "Packages using this
95042         file".
95043         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
95044         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
95045         ref-del.sed): New rules.
95046
95047 2000-03-17  Jim Meyering  <meyering@lucent.com>
95048
95049         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
95050         Otherwise, include <strings.h>
95051
95052 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
95053
95054         * lib/unicodeio.c (utf8_wctomb): New function.
95055         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
95056         format instead of in UCS-4 with platform dependent endianness.
95057
95058 2000-03-10  Jim Meyering  <meyering@lucent.com>
95059
95060         * m4/lib-check.m4: Look for getspnam in -lgen, too.
95061         From Marco Franzen.
95062
95063 2000-03-07  Paul Eggert  <eggert@twinsun.com>
95064
95065         * lib/savedir.c (savedir): Work even if directory size is
95066         negative; this can happen with some screwy NFS configurations.
95067
95068 2000-03-06  Jim Meyering  <meyering@lucent.com>
95069
95070         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
95071         if it's NULL (because we ran out of memory).  From Bruno Haible.
95072
95073 2000-03-05  Jim Meyering  <meyering@lucent.com>
95074
95075         * lib/localcharset.c ("path-concat.h"): Include.
95076         (get_charset_aliases): Use path_concat instead of ANSI string
95077         concatenation.
95078
95079         * lib/unicodeio.h (PARAMS): Define.
95080         Use it to guard prototype.
95081
95082 2000-03-04  Jim Meyering  <meyering@lucent.com>
95083
95084         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
95085         for lib/localcharset.c.
95086
95087 2000-03-04  Jim Meyering  <meyering@lucent.com>
95088
95089         * lib/Makefile.am (install-exec-local): Create $(libdir) before
95090         installing into it.
95091         (uninstall-local): Uncomment this rule so `make distcheck' works
95092         once again.
95093
95094         * lib/unicodeio.c (<errno.h>): Include it.
95095         (errno): Declare if not defined.
95096
95097         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
95098
95099         * lib/config.charset: New version, incorporating remarks from a linux
95100         i18n mailing list.  From Bruno Haible.
95101
95102 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
95103
95104         * m4/codeset.m4: New file.
95105         * m4/iconv.m4: New file.
95106         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
95107
95108 2000-03-03  Jim Meyering  <meyering@lucent.com>
95109
95110         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
95111
95112 2000-03-02  Jim Meyering  <meyering@lucent.com>
95113
95114         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
95115         the messages come out on separate lines.
95116
95117         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
95118         rather than jm_CHECK_DECLARATIONS.
95119         * m4/decl.m4: Remove now-unused file.
95120
95121         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
95122         geteuid.
95123
95124 2000-03-02  Jim Meyering  <meyering@lucent.com>
95125
95126         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
95127
95128 2000-03-01  Jim Meyering  <meyering@lucent.com>
95129
95130         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
95131         * lib/unicodeio.c: Likewise.
95132
95133 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
95134
95135         * lib/config.charset: New file.
95136         * lib/localcharset.c: New file.
95137         * lib/unicodeio.h, lib/unicodeio.c: New files.
95138         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
95139         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
95140         (noinst_HEADERS): Add unicodeio.h.
95141         (all-local, install-exec-local, charset.alias): New targets.
95142
95143 2000-02-28  Paul Eggert  <eggert@twinsun.com>
95144
95145         * lib/quotearg.c (ALERT_CHAR): New macro.
95146         (quotearg_buffer_restyled): Use it.
95147
95148 2000-02-27  Jim Meyering  <meyering@lucent.com>
95149
95150         * m4/check-decl.m4: Add getenv to the list.
95151
95152 2000-02-27  Jim Meyering  <meyering@lucent.com>
95153
95154         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
95155         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
95156
95157         * lib/backupfile.c: Guard inclusion of stdlib.h with
95158         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
95159         Declare malloc if needed.
95160
95161         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
95162         `#ifndef HAVE_DECL..'
95163         now that autoconf always defines the HAVE_DECL_ symbols.
95164         * lib/human.c: Likewise.
95165         * lib/same.c: Likewise.
95166         * lib/strtoumax.c: Likewise.
95167
95168         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
95169         declaration check was not run.
95170         * lib/hash.c: Likewise.
95171         * lib/human.c: Likewise.
95172         * lib/same.c: Likewise.
95173         * lib/strtoumax.c: Likewise.
95174
95175         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
95176         `.', then first look up the entire `.'-containing string as a login
95177         name.
95178
95179 2000-02-23  Jim Meyering  <meyering@lucent.com>
95180
95181         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
95182         in place of my hack.
95183
95184 2000-02-18  Paul Eggert  <eggert@twinsun.com>
95185
95186         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
95187         (textint): New typedef.
95188         (parser_control): Member year changed from int to textint.
95189         All uses changed.
95190         (YYSTYPE): Removed; replaced by %union with int and textint members.
95191         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
95192         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
95193         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
95194         (tSNUMBER, tUNUMBER): Now of type <textintval>.
95195         (date, number, to_year): Use width of number in digits, not its value,
95196         to determine whether it's a 2-digit year, or a 2-digit time.
95197         (yylex): Store number of digits of numeric tokens.
95198         Reported by John Kendall.
95199
95200         (parser_control): Changed from struct parser_control to typedef (for
95201         consistency).  All uses changed.
95202
95203         (tID): Removed; not used.
95204         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
95205
95206 2000-02-14  Paul Eggert  <eggert@twinsun.com>
95207
95208         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
95209         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
95210
95211 2000-02-12  Jim Meyering  <meyering@lucent.com>
95212
95213         * lib/userspec.c (ISDIGIT): Define it.
95214         (isdigit): Remove definition.
95215         (is_number): Use ISDIGIT, not isdigit.
95216         <libintl.h>: Include.
95217         (_ and N_): Define.
95218         (parse_user_spec): Mark translatable strings.
95219
95220 2000-02-10  Jim Meyering  <meyering@lucent.com>
95221
95222         With these changes, nanosleep.[ch] are finally enough like the other
95223         lib/* replacement files to compile on a few more losing systems.
95224
95225         * lib/nanosleep.h: Don't include config.h.
95226         Remove prototype from declaration of nanosleep.
95227         (PARAMS): Remove now-unneeded definition.
95228         * lib/nanosleep.c: #undef nanosleep.
95229         (rpl_nanosleep): Rename from nanosleep.
95230
95231 2000-02-10  Jim Meyering  <meyering@lucent.com>
95232
95233         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
95234         gnu_nanosleep to rpl_nanosleep.
95235
95236 2000-02-09  Jim Meyering  <meyering@lucent.com>
95237
95238         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
95239         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
95240
95241 2000-02-08  Akim Demaille  <akim@epita.fr>
95242
95243         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
95244         `[' and `]' and remove uses of `changequote'.
95245         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
95246         (AC_SYS_LARGEFILE): Likewise.
95247         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
95248         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
95249         of changequote.
95250         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
95251         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
95252         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
95253         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
95254
95255 2000-02-05  Jim Meyering  <meyering@lucent.com>
95256
95257         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
95258         Remove explicit use of AC_HEADER_TIME.  It is required by
95259         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
95260         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
95261         in autoconf whereby the expansion of the latter ended up preceding
95262         the expansion of its prerequisite, AC_HEADER_TIME.
95263         Reported by Volker Borchert.
95264
95265 2000-02-03  Jim Meyering  <meyering@lucent.com>
95266
95267         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
95268
95269 2000-02-03  Jim Meyering  <meyering@lucent.com>
95270
95271         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
95272         rather than with `#if HAVE_UTMPNAME'.
95273
95274 2000-02-02  Jim Meyering  <meyering@lucent.com>
95275
95276         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
95277         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
95278         Reported by Eli Zaretskii.
95279
95280 2000-02-01  Jim Meyering  <meyering@lucent.com>
95281
95282         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
95283
95284 2000-01-31  Jim Meyering  <meyering@lucent.com>
95285
95286         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
95287         functions.  Add the time.h and sys/time.h headers along with the
95288         AC_REQUIRE'ment of AC_HEADER_TIME.
95289
95290 2000-01-31  Jim Meyering  <meyering@lucent.com>
95291
95292         * lib/nanosleep.h (nanosleep): Guard declaration with
95293         `#if ! HAVE_DECL_NANOSLEEP'.
95294         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
95295         the declaration in that vendor's sys/timers.h.
95296         Reported by Christian Krackowizer.
95297
95298         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
95299         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
95300         (ISPRINT): Likewise.
95301         Reported by Tom Tromey.
95302
95303 2000-01-30  Jim Meyering  <meyering@lucent.com>
95304
95305         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
95306
95307         * m4/prereq.m4 (utmp_includes): Define.
95308         Check for ut_user and ut_name members in both struct utmpx
95309         and struct utmp.
95310
95311 2000-01-30  Jim Meyering  <meyering@lucent.com>
95312
95313         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
95314         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
95315         header files where only utmpx.ut_user is declared.
95316
95317         * lib/readutmp.h (UT_USER): Define.
95318
95319 2000-01-29  Jim Meyering  <meyering@lucent.com>
95320
95321         * m4/lib-check.m4: New file containing library-related checks from
95322         fileutils and sh-utils (textutils had none).
95323
95324 2000-01-28  Jim Meyering  <meyering@lucent.com>
95325
95326         * m4/perl.m4: Change format of warning message to look more like that
95327         from the missing script.  Suggestion from François Pinard.
95328
95329 2000-01-25  Jim Meyering  <meyering@lucent.com>
95330
95331         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
95332         well as time.h in the compile check.
95333         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
95334         Fix typo in cross-compiling case: s/yes/no/.
95335
95336 2000-01-23  Jim Meyering  <meyering@lucent.com>
95337
95338         * m4/jm-macros.m4: Move df-related tests here from
95339         fileutils/configure.in
95340
95341         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
95342         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
95343
95344         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
95345         s/space/ac_fsusage_space/.
95346         (jm_FILE_SYSTEM_USAGE): Take two parameters.
95347
95348         * m4/ftruncate.m4: New file (derived from part of
95349         fileutils/configure.in).
95350         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
95351         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
95352
95353         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
95354         AC_SUBST these here, rather than just in sh-util/configure.in, so
95355         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
95356         all the same.
95357         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
95358         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
95359         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
95360         (AC_SUBST(POW_LIBM)): Likewise.
95361         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
95362
95363 2000-01-23  Jim Meyering  <meyering@lucent.com>
95364
95365         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
95366         obstack.c.
95367
95368 2000-01-22  Jim Meyering  <meyering@lucent.com>
95369
95370         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
95371
95372         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
95373
95374         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
95375         configure.in
95376         (AC_CHECK_HEADERS): Likewise for sh-utils.
95377         (AC_CHECK_HEADERS): Likewise for textutils.
95378         Merge the three lists of headers.
95379
95380         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
95381         from fileutils' configure.in.
95382
95383         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
95384         code. Moved tests into their own function (_jm_DECL_HEADERS) in
95385         check-decl.m4.
95386
95387         * m4/check-decl.m4: Use #if rather than #ifdef.
95388         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
95389         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
95390         (_jm_DECL_HEADERS): Define new function.
95391         (jm_CHECK_DECLARATIONS): Require it.
95392
95393 2000-01-22  Jim Meyering  <meyering@lucent.com>
95394
95395         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
95396         [! HAVE_DECL_STRTOULL]: Declare strtoull.
95397         Required for some AIX systems.  Reported by Christian Krackowizer.
95398         [TESTING] (main): New function.
95399
95400         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
95401         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
95402         letters.
95403
95404         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
95405         iswprint.
95406
95407         * lib/strverscmp.c (ISDIGIT): Define.
95408         (strverscmp): Use ISDIGIT, not isdigit.
95409
95410 2000-01-19  Jim Meyering  <meyering@lucent.com>
95411
95412         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
95413         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
95414         defines `struct timespec' in <sys/time.h>
95415
95416         * m4/c-bs-a.m4: Remove uses of changequote altogether.
95417         Thanks to Akim for explaining.
95418
95419 2000-01-17  Paul Eggert  <eggert@twinsun.com>
95420
95421         * lib/nanosleep.c (nanosleep):
95422         Don't use SA_INTERRUPT to decide whether to call sigaction, as
95423         POSIX.1 doesn't require SA_INTERRUPT and some systems
95424         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
95425         it's been part of POSIX.1 since day 1 (in 1988).
95426
95427 2000-01-17  Jim Meyering  <meyering@lucent.com>
95428
95429         * lib/interlock: Remove unused file.  Reported by François Pinard.
95430
95431 2000-01-16  Paul Eggert  <eggert@twinsun.com>
95432
95433         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
95434         alert, backslash, formfeed, and vertical tab unnecessarily in
95435         shell quoting style.
95436
95437 2000-01-16  Jim Meyering  <meyering@lucent.com>
95438
95439         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
95440         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
95441         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
95442         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
95443
95444 2000-01-16  Jim Meyering  <meyering@lucent.com>
95445
95446         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
95447         because the latter didn't work.
95448
95449 2000-01-15  Jim Meyering  <meyering@lucent.com>
95450
95451         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
95452         (AC_REPLACE_FUNCS): Add memcpy and memset.
95453         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
95454         Add strpbrk.
95455         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
95456
95457 2000-01-12  Jim Meyering  <meyering@lucent.com>
95458
95459         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
95460         (jm_PREREQ): Use it.
95461         (jm_PREREQ_READUTMP): New macro.
95462         (jm_PREREQ): Use it.
95463
95464 2000-01-11  Paul Eggert  <eggert@twinsun.com>
95465
95466         Quote multibyte characters correctly.
95467         * m4/c-bs-a.m4: New file.
95468         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
95469         (jm_PREREQ): Use it.
95470
95471 2000-01-11  Paul Eggert  <eggert@twinsun.com>
95472
95473         * m4/uintmax_t.m4: Port to autoconf 2.13.
95474
95475 2000-01-08  Jim Meyering  <meyering@ascend.com>
95476
95477         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
95478         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
95479
95480 2000-01-04  Jim Meyering  <meyering@ascend.com>
95481
95482         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
95483         jm_STRUCT_DIRENT_D_TYPE.
95484         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
95485         jm_STRUCT_DIRENT_D_INO.
95486         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
95487         jm_STRUCT_UTIMBUF.
95488         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
95489         renamings.
95490         * m4/utime.m4: Likewise.
95491
95492         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
95493         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
95494
95495 2000-01-03  Paul Eggert  <eggert@twinsun.com>
95496
95497         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
95498         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
95499
95500 2000-01-02  Jim Meyering  <meyering@ascend.com>
95501
95502         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
95503         remember if this is necessary.
95504
95505 1999-12-26  Jim Meyering  <meyering@ascend.com>
95506
95507         * m4/jm-macros.m4: Use it here.
95508         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
95509
95510 1999-12-23  Jim Meyering  <meyering@ascend.com>
95511
95512         * m4/jm-macros.m4: Check for clock_gettime (moved from
95513         fileutils/configure.in)
95514         Check for gettimeofday.
95515
95516 1999-12-20  Jim Meyering  <meyering@ascend.com>
95517
95518         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
95519         autoconf-2.14a-1999-12-20.
95520
95521 1999-12-19  Jim Meyering  <meyering@ascend.com>
95522
95523         * m4/lstat-slash.m4: New file.
95524         * m4/jm-macros.m4: Use the new macro:
95525         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
95526
95527 1999-12-07  Jim Meyering  <meyering@ascend.com>
95528
95529         * m4/perl.m4: Require that File::Compare be available, too.
95530         Too many systems seem to lack it.
95531
95532         * m4/strftime.m4: Add checks for most of the cpp macros tested in
95533         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
95534
95535 1999-11-18  Paul Eggert  <eggert@twinsun.com>
95536
95537         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
95538         problem with the QNX 4.25 shell, which doesn't propagate exit
95539         status of failed commands inside shell assignments.
95540
95541 1999-11-17  Jim Meyering  <meyering@ascend.com>
95542
95543         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
95544
95545 1999-11-07  Jim Meyering  <meyering@ascend.com>
95546
95547         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
95548
95549 1999-11-06  Jim Meyering  <meyering@ascend.com>
95550
95551         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
95552         * m4/jm-macros.m4 (jm_MACROS): Use it here.
95553
95554 1999-11-05  Jim Meyering  <meyering@ascend.com>
95555
95556         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
95557         configure.in of textutils, fileutils, and sh-utils into this one
95558         (shared between those packages) file.
95559         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
95560         AC_STRUCT_ST_BLKSIZE.
95561
95562 1999-11-03  Jim Meyering  <meyering@ascend.com>
95563
95564         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
95565         of AC_CHECK_TYPE checks includes unistd.h.
95566         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
95567         Suggestion from Akim Demaille.
95568
95569 1999-10-30  Jim Meyering  <meyering@ascend.com>
95570
95571         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
95572         m4-quoted string.
95573         * m4/ls-mntd-fs.m4: Likewise.
95574         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
95575         * m4/jm-winsz1.m4: Likewise.
95576
95577         * m4/const.m4: Remove file, since the fix made it into the experimental
95578         version of autoconf.
95579         * m4/mktime.m4: Likewise.
95580
95581         * m4/check-type.m4: Remove file, now that the latest version of
95582         AC_CHECK_TYPE takes a third arg to specify additional #includes.
95583
95584         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
95585         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
95586         AC_CHECK_TYPE.
95587
95588 1999-10-04  Jim Meyering  <meyering@ascend.com>
95589
95590         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
95591
95592 1999-09-22  Paul Eggert  <eggert@twinsun.com>
95593
95594         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
95595         2.95.1 bug with HP-UX 10.20.
95596
95597 1999-09-17  Jim Meyering  <meyering@ascend.com>
95598
95599         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
95600         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
95601         due to missing strdup (against sh-utils-2.0).
95602
95603 1999-08-29  Jim Meyering  <meyering@ascend.com>
95604
95605         * m4/jm-macros.m4: Require jm_BISON.
95606         * m4/bison.m4: New file.
95607
95608 1999-08-17  Paul Eggert  <eggert@twinsun.com>
95609
95610         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
95611         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
95612
95613 1999-08-05  Jim Meyering  <meyering@ascend.com>
95614
95615         * m4/getline.m4: Rename test file from conftestdata to conftest.data
95616         to avoid conflicts with `conftest' on 8+3 filesystems.
95617         Suggestion from Eli Zaretskii.
95618
95619 1999-08-04  Jim Meyering  <meyering@ascend.com>
95620
95621         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
95622         fileutils and sh-utils (textutils's getline test was inadequate).
95623         (AM_FUNC_GETLINE): Run this test.
95624         (AC_CHECK_FUNCS): Check for getdelim.
95625         Reported by Bob Proulx.
95626
95627 1999-08-02  Jim Meyering  <meyering@ascend.com>
95628
95629         * m4/jm-macros.m4: Add a comment.
95630
95631 1999-08-01  Paul Eggert  <eggert@twinsun.com>
95632
95633         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
95634         <inttypes.h> defines strtoumax as a macro (and not as a
95635         function).
95636
95637 1999-08-01  Paul Eggert  <eggert@twinsun.com>
95638
95639         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
95640         that we can shift, multiply and divide unsigned long long
95641         values; Ultrix cc can't do it.
95642
95643 1999-08-01  Paul Eggert  <eggert@twinsun.com>
95644
95645         * m4/mktime.m4: New file, which is a preview of what should appear
95646         in the next public autoconf release.
95647
95648 1999-08-01  Paul Eggert  <eggert@twinsun.com>
95649
95650         * m4/lfs.m4: Remove this file.
95651         * m4/largefile.m4: New file.  It contains the old contents of
95652         lfs.m4, except that all names with prefix AC_LFS have been
95653         changed to use the prefix AC_SYS_LARGEFILE instead, to be
95654         compatible with future autoconf versions.  Also, some minor m4
95655         quoting problems have been fixed.
95656
95657 1999-08-01  Paul Eggert  <eggert@twinsun.com>
95658
95659         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
95660         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
95661         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
95662         and simplify the shell code.
95663
95664 1999-08-01  Jim Meyering  <meyering@ascend.com>
95665
95666         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
95667         m4.
95668
95669 1999-07-20  Jim Meyering  <meyering@ascend.com>
95670
95671         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
95672
95673 1999-07-15  Jim Meyering  <meyering@ascend.com>
95674
95675         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
95676
95677 1999-05-22  Jim Meyering  <meyering@ascend.com>
95678
95679         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
95680
95681 1999-05-20  Jim Meyering  <meyering@ascend.com>
95682
95683         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
95684         Add a colon after each `then' in case $4 is empty.
95685
95686 1999-05-16  Jim Meyering  <meyering@ascend.com>
95687
95688         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
95689
95690 1999-05-10  Jim Meyering  <meyering@ascend.com>
95691
95692         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
95693
95694         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
95695         AC_FUNC_MKTIME.
95696
95697 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
95698
95699         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
95700
95701 1999-05-04  Paul Eggert  <eggert@twinsun.com>
95702
95703         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
95704         not CPPFLAGS, so that linking works correctly in IRIX.
95705
95706 1999-04-30  Paul Eggert  <eggert@twinsun.com>
95707
95708         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
95709
95710 1999-04-20  Paul Eggert  <eggert@twinsun.com>
95711
95712         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
95713         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
95714         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
95715         jm_AC_TYPE_UNSIGNED_LONG_LONG.
95716         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
95717
95718         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
95719
95720 1999-04-20  Jim Meyering  <meyering@ascend.com>
95721
95722         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
95723         AC_REPLACE xstroull if necessary.  From Paul Eggert.
95724         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
95725
95726 1999-04-18  Jim Meyering  <meyering@ascend.com>
95727
95728         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
95729         * m4/jm-macros.m4: Use it.
95730
95731 1999-04-06  Jim Meyering  <meyering@ascend.com>
95732
95733         * m4/strftime.m4: Remove test for %f.
95734
95735 1999-03-29  Jim Meyering  <meyering@ascend.com>
95736
95737         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
95738         superset of the AC_TYPE_* checks in the textutils, fileutils,
95739         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
95740         AC_TYPE_PID_T.
95741
95742 1999-03-28  Jim Meyering  <meyering@ascend.com>
95743
95744         * m4/jm-macros.m4: Define GNU_PACKAGE here.
95745         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
95746         replaced e.g., in the *.sh files of the sh-utils.
95747
95748 1999-03-20  Jim Meyering  <meyering@ascend.com>
95749
95750         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
95751         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
95752         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
95753
95754 1999-03-19  Jim Meyering  <meyering@ascend.com>
95755
95756         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
95757
95758 1999-03-12  Jim Meyering  <meyering@ascend.com>
95759
95760         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
95761
95762 1999-03-07  Jim Meyering  <meyering@ascend.com>
95763
95764         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
95765         declared.
95766
95767 1999-02-17  Jim Meyering  <meyering@ascend.com>
95768
95769         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
95770         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
95771
95772 1999-02-07  Jim Meyering  <meyering@ascend.com>
95773
95774         * m4/group-member.m4: New file -- extracted from sh-utils'
95775         configure.in.
95776
95777         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
95778         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
95779
95780 1999-02-06  Jim Meyering  <meyering@ascend.com>
95781
95782         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
95783         * m4/fnmatch.m4: Likewise.
95784         * m4/getgroups.m4: Likewise.
95785         * m4/lstat.m4: Likewise.
95786         * m4/malloc.m4: Likewise.
95787         * m4/putenv.m4: Likewise.
95788         * m4/realloc.m4: Likewise.
95789         * m4/regex.m4: Likewise.
95790         * m4/stat.m4: Likewise.
95791         * m4/strftime.m4: Likewise.
95792         Suggestion from Alain Magloire.
95793
95794         * m4/chown.m4: Use `.$ac_objext', not `.o'.
95795         * m4/fnmatch.m4: Likewise.
95796         * m4/getgroups.m4: Likewise.
95797         * m4/getline.m4: Likewise.
95798         * m4/lstat.m4: Likewise.
95799         * m4/malloc.m4: Likewise.
95800         * m4/memcmp.m4: Likewise.
95801         * m4/putenv.m4: Likewise.
95802         * m4/realloc.m4: Likewise.
95803         * m4/regex.m4: Likewise.
95804         * m4/stat.m4: Likewise.
95805         * m4/strftime.m4: Likewise.
95806         Suggestion from Alain Magloire.
95807
95808         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
95809         an argument.
95810
95811         * m4/regex.m4: Add a run-time Test for proper operation of
95812         re_compile_pattern.
95813
95814 1999-01-31  Jim Meyering  <meyering@ascend.com>
95815
95816         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
95817
95818 1999-01-30  Jim Meyering  <meyering@ascend.com>
95819
95820         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
95821
95822         * m4/jm-mktime.m4: Make this a wrapper around the official
95823         AM_FUNC_MKTIME rather than my private copy, now that the official one
95824         is up to date.
95825         * m4/mktime.m4: Remove file.
95826
95827         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
95828         * m4/uptime.m4: Likewise.
95829         * m4/uintmax_t.m4: Likewise.
95830
95831 1999-01-28  Jim Meyering  <meyering@ascend.com>
95832
95833         * m4/jm-macros.m4: Use jm_AFS.
95834         * m4/afs.m4: New file (from fileutils' configure.in).
95835
95836         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
95837         * m4/chown.m4: Likewise.
95838         * m4/d-ino.m4: Likewise.
95839         * m4/d-type.m4: Likewise.
95840         * m4/fnmatch.m4: Likewise.
95841         * m4/getgroups.m4: Likewise.
95842         * m4/gettext.m4: Likewise.
95843         * m4/jm-mktime.m4: Likewise.
95844         * m4/jm-winsz2.m4: Likewise.
95845         * m4/lcmessage.m4: Likewise.
95846         * m4/ls-mntd-fs.m4: Likewise.
95847         * m4/malloc.m4: Likewise.
95848         * m4/memcmp.m4: Likewise.
95849         * m4/putenv.m4: Likewise.
95850         * m4/realloc.m4: Likewise.
95851         * m4/st_mtim.m4: Likewise.
95852         * m4/strftime.m4: Likewise.
95853
95854 1999-01-16  Jim Meyering  <meyering@ascend.com>
95855
95856         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
95857         (ARGMATCH_DIE_DECL): Define.
95858
95859 1999-01-12  Jim Meyering  <meyering@ascend.com>
95860
95861         * m4/Makefile.am.in: Rewrite to avoid using fmt.
95862         Reported by Lars Hecking.
95863
95864 1999-01-10  Jim Meyering  <meyering@ascend.com>
95865
95866         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
95867         gross kludge.
95868         * m4/inttypes_h.m4: Likewise.
95869         * m4/lstat.m4: Likewise.
95870         * m4/malloc.m4: Likewise.
95871         * m4/readdir.m4: Likewise.
95872         * m4/realloc.m4: Likewise.
95873         * m4/st_dm_mode.m4: Likewise.
95874         * m4/stat.m4: Likewise.
95875         * m4/utimbuf.m4: Likewise.
95876         * m4/utimes.m4: Likewise.
95877
95878         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
95879         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
95880         comments in config.h.in are meaningful.
95881
95882         * m4/jm-macros.m4: Require autoconf-2.13 here.
95883
95884         * m4/regex.m4: By default, don't use the included regex.c on systems
95885         with glibc 2.  Suggestion from Uli Drepper.
95886
95887 1999-01-02  Jim Meyering  <meyering@ascend.com>
95888
95889         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
95890
95891 1998-12-18  Jim Meyering  <meyering@ascend.com>
95892
95893         * m4/Makefile.am.in (Makefile.am): Simplify rule.
95894         Based on a suggestion from Lars Hecking.
95895
95896 1998-11-16  Paul Eggert  <eggert@twinsun.com>
95897
95898         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
95899
95900 1998-11-16  Jim Meyering  <meyering@ascend.com>
95901
95902         * m4/lfs.m4: Double-quote the `uname...` expression.
95903
95904 1998-11-14  Jim Meyering  <meyering@ascend.com>
95905
95906         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
95907         * m4/stat.m4: Likewise.
95908
95909 1998-11-03  Jim Meyering  <meyering@ascend.com>
95910
95911         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
95912         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
95913
95914 1998-10-18  Jim Meyering  <meyering@ascend.com>
95915
95916         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
95917
95918 1998-10-17  Jim Meyering  <meyering@ascend.com>
95919
95920         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
95921         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
95922         calls for those previously hard-coded headers.  Instead, take a new
95923         parameter.
95924         (jm_CHECK_DECLARATIONS): Reflect interface change.
95925         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
95926         (jm_CHECK_DECL_LOCALTIME_R): New macro.
95927
95928         * m4/mktime.m4: Test for spring-forward gap before long-running test.
95929
95930 1998-10-14  Jim Meyering  <meyering@ascend.com>
95931
95932         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
95933         instead of "TZ=America/Vancouver".  From Paul Eggert.
95934
95935 1998-10-11  Jim Meyering  <meyering@ascend.com>
95936
95937         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
95938         This adds a test for a recently added compatibility fix for mktime.c.
95939         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
95940
95941 1998-09-27  Jim Meyering  <meyering@ascend.com>
95942
95943         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
95944
95945         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
95946         ../configure.in, including a change from Gordon Matzigkeit to allow
95947         cross-compiling for the Hurd.
95948
95949         * m4/glibc.m4: New file/macro to test for the GNU C Library
95950         versions 1 and 2.  From Gordon Matzigkeit.
95951         Indent.
95952
95953 1998-09-21  Jim Meyering  <meyering@ascend.com>
95954
95955         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
95956
95957 1998-08-18  Paul Eggert  <eggert@twinsun.com>
95958
95959         Port nanosecond-resolution times to UnixWare 2.1.2 and
95960         pedantic Solaris 2.6.
95961
95962         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
95963         AC_STRUCT_ST_MTIM.
95964         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
95965         Generate name of ns member, instead of just 1 or undef.
95966         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
95967
95968 1998-08-15  Jim Meyering  <meyering@ascend.com>
95969
95970         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
95971         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
95972         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
95973         instead of jm_TYPE_SSIZE_T.
95974
95975 1998-08-12  Jim Meyering  <meyering@ascend.com>
95976
95977         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
95978
95979 1998-08-02  Jim Meyering  <meyering@ascend.com>
95980
95981         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
95982         in acconfig.h manually.
95983
95984 1998-07-31  Paul Eggert  <eggert@twinsun.com>
95985
95986         * m4/st_mtim.m4: New file.
95987
95988 1998-07-28  Jim Meyering  <meyering@ascend.com>
95989
95990         * m4/utimes.m4: Undef stat.
95991
95992 1998-07-25  Jim Meyering  <meyering@ascend.com>
95993
95994         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
95995         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
95996
95997 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
95998
95999         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
96000         uid and gid actually remain unchanged.
96001
96002 1998-07-07  Jim Meyering  <meyering@ascend.com>
96003
96004         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
96005
96006 1998-07-04  Jim Meyering  <meyering@ascend.com>
96007
96008         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
96009         to prove that this macro can be used in packages without regex.c.
96010
96011 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
96012
96013         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
96014         is to be used.
96015
96016 1998-07-03  Jim Meyering  <meyering@ascend.com>
96017
96018         * m4/gettext.m4: Add -lintl if it's found to be necessary.
96019
96020         * m4/gettext.m4: New file -- from gettext-0.10.35.
96021         * m4/lcmessage.m4: Likewise.
96022         * m4/progtest.m4: Likewise.
96023
96024         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
96025         * m4/jm-macros.m4: Require the new macro.
96026
96027 1998-06-29  Jim Meyering  <meyering@ascend.com>
96028
96029         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
96030         for the definition of NGROUPS (used in a system header included
96031         by sys/mount.h).
96032
96033 1998-06-28  Jim Meyering  <meyering@ascend.com>
96034
96035         * m4/ls-mntd-fs.m4: New file.
96036         * m4/fstypename.m4: New file.
96037
96038         * m4/jm-macros.m4: Require the new macro.
96039         * m4/jm-glibc-io.m4: New file.
96040
96041 1998-05-19  Jim Meyering  <meyering@ascend.com>
96042
96043         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
96044         * m4/lchown.m4: New file.
96045
96046         * m4/Makefile.am.in: New file.
96047         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
96048
96049 1998-05-14  Jim Meyering  <meyering@ascend.com>
96050
96051         * m4/Makefile.am (EXTRA_DIST): Add them.
96052         * m4/jm-macros.m4: New file.
96053         * m4/utimbuf.m4: New file.
96054
96055 1998-05-12  Jim Meyering  <meyering@ascend.com>
96056
96057         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
96058
96059 1998-05-11  Jim Meyering  <meyering@ascend.com>
96060
96061         * m4/isc-posix.m4: New file.
96062
96063 1998-05-10  Jim Meyering  <meyering@ascend.com>
96064
96065         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
96066
96067 1998-05-09  Jim Meyering  <meyering@ascend.com>
96068
96069         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
96070         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
96071         with automake.
96072
96073         * m4/ssize_t.m4: New file.
96074         * m4/mktime.m4: Remove file -- the new automake has this now.
96075
96076 1998-04-26  Jim Meyering  <meyering@ascend.com>
96077
96078         * m4/assert.m4: New file.
96079         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
96080
96081 1998-04-05  Jim Meyering  <meyering@ascend.com>
96082
96083         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
96084         (jm_PREREQ): Use it here.
96085
96086 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
96087
96088         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
96089         in acconfig.h.
96090
96091 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
96092
96093         * m4/prereq.m4: New file.
96094         * m4/error.m4: New file.
96095         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
96096
96097 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
96098
96099         * m4/getline.m4: Don't set am_cv_func_working_getline before the
96100         cache-check for the same variable -- that defeated the purpose of
96101         the test; the test program was never run.  This was a problem only
96102         on systems with losing getline functions -- HP-UX 10.20 is one.
96103         Reported by Bjorn Helgaas.
96104
96105 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
96106
96107         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
96108
96109 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
96110
96111         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
96112
96113         * m4/const.m4: New file.  Use an initializer in this declaration
96114         typedef int charset[2]; const charset x;
96115         Reported by Bob Glickstein.
96116
96117 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
96118
96119         * m4/chown.m4: Fix reversed types on -1 args to chown.
96120         From Kaveh Ghazi.
96121
96122 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
96123
96124         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
96125         Add lseek and memchr.
96126
96127         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
96128         T.E.Dickey <dickey@clark.net> said that some older preprocessors
96129         have a 20-character limit on names.
96130
96131 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
96132
96133         * m4/inttypes_h.m4: New file.
96134         * m4/uintmax_t.m4: New file.
96135         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
96136
96137
96138         -----
96139
96140         Local Variables:
96141         coding: utf-8
96142         End:
96143
96144         Copyright (C) 1997-2012 Free Software Foundation, Inc.
96145
96146         Copying and distribution of this file, with or without
96147         modification, are permitted provided the copyright notice
96148         and this notice are preserved.